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.STABLE1 PROGNAME="SQUID Web Proxy Cache" DESC="squid-2.4.STABLE1\n\n\ SQUID Internet Object Cache http://www.squid-cache.org" # maintainer BUILD=3 MAINTAINER="Robert Stan " SOURCE=http://www.squid-cache.org LOCATION=ftp://ftp.linuxmafia.org/pub/Slackware-8/robert/squid-$VERSION # package name PKGNAME=squid compile() { tar xvzf $CWD/$PKGNAME-$VERSION-src.tar.gz cd $PKGNAME-$VERSION for p in $CWD/*.patch ; do patch -p0 < $p done 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" CFLAGS=-O2 make } install() { make install mkdir -p /usr/doc/$PKGNAME-$VERSION cp -a $DOCS /usr/doc/$PKGNAME-$VERSION cp -a $CWD/rc.squid /usr/doc/$PKGNAME-$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 } subpacks() { echo "No subpacks..." }