2006-02-23 16:26:10 +01:00
|
|
|
# Description: A full-featured web proxy cache
|
2021-02-16 13:49:37 +01:00
|
|
|
# URL: http://www.squid-cache.org
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: db linux-pam libcap libnsl libtirpc libtool expat libxml2
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=squid
|
2021-05-11 15:38:06 +02:00
|
|
|
version=4.15
|
2021-02-16 13:49:37 +01:00
|
|
|
release=1
|
2018-03-19 13:00:18 +01:00
|
|
|
source=(http://www.squid-cache.org/Versions/v4/$name-$version.tar.xz
|
2021-02-16 13:49:37 +01:00
|
|
|
squid)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2008-10-28 13:54:04 +01:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--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-swapdir=/var/squid \
|
|
|
|
--with-default-user=squid \
|
|
|
|
--enable-linux-netfilter \
|
|
|
|
--enable-storeio=ufs,aufs,diskd,rock \
|
|
|
|
--enable-removal-policies=lru,heap \
|
|
|
|
--with-large-files \
|
|
|
|
--with-pthreads \
|
|
|
|
--with-aufs-threads=16 \
|
|
|
|
--disable-auto-locale \
|
|
|
|
--disable-arch-native \
|
|
|
|
--without-{mit,heimdal}-krb5 \
|
|
|
|
--without-{nettle,gnutls}
|
2007-12-01 09:44:23 +01:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
make all
|
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
rm -r $PKG/var/run
|
|
|
|
find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
|
|
|
|
install -d -m 0700 -o squid -g squid $PKG/var/run/squid
|
|
|
|
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|