2006-02-23 15:26:10 +00:00
|
|
|
# Description: A full-featured web proxy cache
|
|
|
|
# URL: http://www.squid-cache.org
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=squid
|
2008-10-20 16:59:22 +02:00
|
|
|
version=2.7.STABLE5
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2008-10-20 16:59:22 +02:00
|
|
|
source=(http://www.squid-cache.org/Versions/v2/2.7/$name-$version.tar.bz2 \
|
2006-02-23 15:26:10 +00:00
|
|
|
squid.conf squid)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr \
|
2007-09-06 10:13:26 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--sysconfdir=/etc/squid \
|
2007-12-01 09:44:23 +01:00
|
|
|
--libexecdir=/usr/lib/squid \
|
2006-02-23 15:26:10 +00:00
|
|
|
--localstatedir=/var/squid \
|
|
|
|
--datadir=/usr/share/squid \
|
|
|
|
--enable-linux-netfilter \
|
2006-07-21 17:40:31 +00:00
|
|
|
--enable-err-languages=English \
|
2007-12-01 09:44:23 +01:00
|
|
|
--enable-epoll \
|
|
|
|
--enable-storeio=ufs,aufs,coss \
|
|
|
|
--with-large-files \
|
|
|
|
--with-pthreads \
|
|
|
|
--with-aufs-threads=16
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make all
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2007-12-01 09:44:23 +01:00
|
|
|
rm $PKG/usr/bin/RunCache
|
2006-02-23 15:26:10 +00:00
|
|
|
rm -r $PKG/{var/squid/logs,etc/squid/mime.conf.default}
|
|
|
|
mv $PKG/usr/share/squid/errors/{English/*,.}
|
|
|
|
rm -r $PKG/usr/share/squid/errors/English
|
|
|
|
|
|
|
|
mkdir -p $PKG/var/log/squid
|
|
|
|
chmod 0700 $PKG/var/{squid,log/squid}
|
2007-01-25 17:08:04 +01:00
|
|
|
chown -R squid:squid $PKG/var/{squid,log/squid}
|
2006-03-12 13:06:38 +00:00
|
|
|
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
|
|
|
|
install -m 644 $SRC/squid.conf $PKG/etc/squid
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|