opt/squid/Pkgfile

46 lines
1.2 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-02-12 15:11:56 +01:00
version=5.4.1
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
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
}