opt/squid/Pkgfile

48 lines
1.3 KiB
Plaintext
Raw Normal View History

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
2022-09-07 12:24:28 +02:00
version=5.7
2021-02-16 13:49:37 +01:00
release=1
2021-10-05 09:22:20 +02:00
source=(http://www.squid-cache.org/Versions/v5/$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
sed '/DEFAULT_STATEDIR/s/$(localstatedir)//' -i src/ipc/Makefile.in
2022-06-09 14:04:32 +02:00
export CXXFLAGS="$CXXFLAGS -Wno-error"
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=/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 \
--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
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 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 755 $SRC/squid $PKG/etc/rc.d/squid
2006-02-23 16:26:10 +01:00
}