DOCS="CONTRIBUTORS COPY* CREDITS ChangeLog INSTALL QUICKSTART README TODO" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=2.4.STABLE6 PROGNAME="SQUID Web Proxy Cache" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ squid: squid-$VERSION\n\ squid:\n\ squid: SQUID Internet Object Cache http://www.squid-cache.org\n\ squid:\n\ squid:\n\ squid:\n\ squid:\n\ squid:\n\ squid:\n\ squid:\n\ squid:" # maintainer ARCH=i386 BUILD=1rob MAINTAINER="Robert Stan " SOURCE=http://www.squid-cache.org/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/squid-$VERSION/ # package name PKGNAME="squid-${VERSION}-${ARCH}-${BUILD}" compile() { tar xvzf $CWD/squid-$VERSION-src.tar.gz ln -s squid-$VERSION squid for p in $CWD/*.patch; do patch -p0 < $p ;done cd squid-$VERSION CFLAGS=-O2 ./configure --prefix=/ \ --exec-prefix=/usr \ --libexecdir=/usr/sbin \ --sysconfdir=/etc/squid \ --localstatedir=/var/lib/squid \ --enable-storeio="ufs,diskd,coss,null" \ --enable-removal-policies="lru,heap" \ --enable-delay-pools \ --enable-snmp \ --enable-arp-acl \ --enable-truncate \ --enable-auth-modules="getpwnam" \ i386-slackware-linux || exit 1 CFLAGS=-O2 make || exit 1 } install() { make install mkdir -p /usr/doc/squid-$VERSION cp -a $DOCS /usr/doc/squid-$VERSION cp -a $CWD/rc.squid /usr/doc/squid-$VERSION } attributes() { echo "No special attributes..." } special() { mkdir -p $PKG/var/lib/squid/logs echo "chown -R nobody.nogroup var/lib/squid" >> $CTL/doinst.sh # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }