opt/squid/Pkgfile

45 lines
1.5 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01: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
2018-10-01 13:10:19 +02:00
# Depends on: db libcap libtool expat libxml2
2006-02-23 16:26:10 +01:00
name=squid
2019-02-19 12:39:22 +01:00
version=4.6
2018-06-28 11:21:48 +02:00
release=1
2018-03-19 13:00:18 +01:00
source=(http://www.squid-cache.org/Versions/v4/$name-$version.tar.xz
squid)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2008-10-28 13:54:04 +01:00
2006-02-23 16:26:10 +01: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 16:26:10 +01: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 16:26:10 +01:00
--enable-linux-netfilter \
2012-09-15 15:35:18 +02:00
--enable-storeio=ufs,aufs,diskd,rock \
--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 \
2018-10-01 13:10:19 +02:00
--disable-arch-native \
--without-{mit,heimdal}-krb5 \
--without-{nettle,gnutls}
2007-12-01 09:44:23 +01:00
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
2008-10-28 13:54:04 +01:00
install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
2018-03-27 18:36:16 +02:00
install -d -m 0700 -o squid -g squid $PKG/var/run/squid
2006-03-12 14:06:38 +01:00
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
2006-02-23 16:26:10 +01:00
}