opt/squid/Pkgfile

41 lines
1.2 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
2006-02-23 16:26:10 +01:00
name=squid
2011-04-06 17:14:46 +02:00
version=3.1.12
2006-02-23 16:26:10 +01:00
release=1
2010-03-30 19:55:54 +02:00
source=(http://www.squid-cache.org/Versions/v3/3.1/$name-$version.tar.bz2 \
squid)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2008-10-28 13:54:04 +01:00
2010-03-30 19:55:54 +02:00
sed -i '/^DEFAULT_SWAP_DIR/s/cache/squid/' src/Makefile.in
2008-10-28 13:54:04 +01:00
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2007-09-06 10:13:26 +02:00
--mandir=/usr/man \
2006-02-23 16:26:10 +01:00
--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 \
2008-10-28 13:54:04 +01:00
--with-default-user=squid \
2006-02-23 16:26:10 +01:00
--enable-linux-netfilter \
2008-10-28 13:54:04 +01:00
--enable-storeio=ufs,aufs,diskd \
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
2007-12-01 09:44:23 +01:00
2006-02-23 16:26:10 +01:00
make all
make DESTDIR=$PKG install
2010-05-04 20:32:54 +02:00
rm -r $PKG/{usr/include,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}
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
}