2006-02-23 15:26:10 +00:00
|
|
|
# Description: A full-featured web proxy cache
|
|
|
|
# URL: http://www.squid-cache.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=squid
|
2016-07-02 13:52:37 +02:00
|
|
|
version=3.5.20
|
2014-08-29 09:33:20 +02:00
|
|
|
release=1
|
2016-02-17 10:46:18 +01:00
|
|
|
source=(http://www.squid-cache.org/Versions/v3/3.5/$name-$version.tar.xz
|
2010-03-30 19:55:54 +02:00
|
|
|
squid)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2008-10-28 13:54:04 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--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 \
|
2010-03-30 19:55:54 +02:00
|
|
|
--with-logdir=/var/log/squid \
|
|
|
|
--with-pidfile=/var/run/squid.pid \
|
2012-09-15 15:35:18 +02:00
|
|
|
--with-swapdir=/var/squid \
|
2008-10-28 13:54:04 +01:00
|
|
|
--with-default-user=squid \
|
2006-02-23 15:26:10 +00:00
|
|
|
--enable-linux-netfilter \
|
2012-09-15 15:35:18 +02:00
|
|
|
--enable-storeio=ufs,aufs,diskd,rock \
|
2014-06-30 20:01:26 +02:00
|
|
|
--enable-removal-policies=lru,heap \
|
2007-12-01 09:44:23 +01:00
|
|
|
--with-large-files \
|
|
|
|
--with-pthreads \
|
2010-03-30 19:55:54 +02:00
|
|
|
--with-aufs-threads=16 \
|
|
|
|
--disable-auto-locale
|
2007-12-01 09:44:23 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make all
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2014-05-04 09:47:40 +02:00
|
|
|
rm -r $PKG/var/run
|
2010-03-30 19:55:54 +02:00
|
|
|
find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
|
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
|
|
|
}
|