41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Description: A full-featured web proxy cache
|
|
# URL: http://www.squid-cache.org
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
name=squid
|
|
version=3.1.19
|
|
release=1
|
|
source=(http://www.squid-cache.org/Versions/v3/3.1/$name-$version.tar.bz2 \
|
|
squid)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
sed -i '/^DEFAULT_SWAP_DIR/s/cache/squid/' src/Makefile.in
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc/squid \
|
|
--libexecdir=/usr/lib/squid \
|
|
--localstatedir=/var \
|
|
--datadir=/usr/share/squid \
|
|
--with-logdir=/var/log/squid \
|
|
--with-pidfile=/var/run/squid.pid \
|
|
--with-default-user=squid \
|
|
--enable-linux-netfilter \
|
|
--enable-storeio=ufs,aufs,diskd \
|
|
--with-large-files \
|
|
--with-pthreads \
|
|
--with-aufs-threads=16 \
|
|
--disable-auto-locale
|
|
|
|
make all
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/{usr/include,var/run}
|
|
find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
|
|
|
|
install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
|
|
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
|
|
}
|