2006-02-23 15:26:10 +00: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
|
2023-09-05 18:59:56 +02:00
|
|
|
# Depends on: db libcap libnsl libtirpc libtool expat libxml2 zstd
|
|
|
|
# Optional: brotli gnutls krb5 libunistr libidn2 nettle tdb
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=squid
|
2024-04-10 13:36:01 +02:00
|
|
|
version=6.9
|
2023-12-07 11:11:23 +01:00
|
|
|
release=1
|
2023-07-08 13:08:14 +02:00
|
|
|
source=(http://www.squid-cache.org/Versions/v6/$name-$version.tar.xz
|
2023-12-07 11:11:23 +01:00
|
|
|
squid)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2021-02-16 13:49:37 +01:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2008-10-28 13:54:04 +01:00
|
|
|
|
2022-02-22 18:43:18 +01:00
|
|
|
sed '/DEFAULT_STATEDIR/s/$(localstatedir)//' -i src/ipc/Makefile.in
|
|
|
|
|
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 \
|
2022-02-22 18:43:18 +01:00
|
|
|
--with-pidfile=/run/squid.pid \
|
2021-02-16 13:49:37 +01:00
|
|
|
--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 \
|
2023-09-05 18:59:56 +02:00
|
|
|
--disable-arch-native
|
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 15:26:10 +00:00
|
|
|
|
2022-02-22 18:43:18 +01:00
|
|
|
rm -r $PKG/run $PKG/var/run
|
2021-02-16 13:49:37 +01:00
|
|
|
find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
|
2006-02-23 15:26:10 +00: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 755 $SRC/squid $PKG/etc/rc.d/squid
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|