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
|
2009-07-27 09:39:55 +02:00
|
|
|
version=3.0.STABLE17
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2008-10-28 13:54:04 +01:00
|
|
|
source=(http://www.squid-cache.org/Versions/v3/3.0/$name-$version.tar.bz2 \
|
|
|
|
squid squid-config.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2008-10-28 13:54:04 +01:00
|
|
|
|
|
|
|
patch -p1 -i $SRC/squid-config.patch
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./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 \
|
2008-10-28 13:54:04 +01:00
|
|
|
--localstatedir=/var \
|
2006-02-23 15:26:10 +00:00
|
|
|
--datadir=/usr/share/squid \
|
2008-10-28 13:54:04 +01:00
|
|
|
--with-default-user=squid \
|
2006-02-23 15:26:10 +00:00
|
|
|
--enable-linux-netfilter \
|
2006-07-21 17:40:31 +00:00
|
|
|
--enable-err-languages=English \
|
2008-10-28 13:54:04 +01:00
|
|
|
--enable-storeio=ufs,aufs,diskd \
|
2007-12-01 09:44:23 +01:00
|
|
|
--with-large-files \
|
|
|
|
--with-pthreads \
|
|
|
|
--with-aufs-threads=16
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make all
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2008-10-28 13:54:04 +01:00
|
|
|
rm $PKG/usr/bin/{RunCache,RunAccel}
|
2006-02-23 15:26:10 +00:00
|
|
|
mv $PKG/usr/share/squid/errors/{English/*,.}
|
2008-10-28 13:54:04 +01:00
|
|
|
rm -r $PKG/usr/share/squid/errors/{English,templates}
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2008-10-28 13:54:04 +01:00
|
|
|
install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
|
2006-03-12 13:06:38 +00:00
|
|
|
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|