blob: 648ece985cd5c45bcb735457df86f88a45f7693b (
plain)
1 # Description: A full-featured web proxy cache
2 # URL: http://www.squid-cache.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: db libcap libtool
5
6 name=squid
7 version=4.1
8 release=1
9 source=(http://www.squid-cache.org/Versions/v4/$name-$version.tar.xz
10 squid)
11
12 build () {
13 cd $name-$version
14
15 ./configure --prefix=/usr \
16 --sysconfdir=/etc/squid \
17 --libexecdir=/usr/lib/squid \
18 --localstatedir=/var \
19 --datadir=/usr/share/squid \
20 --with-logdir=/var/log/squid \
21 --with-pidfile=/var/run/squid.pid \
22 --with-swapdir=/var/squid \
23 --with-default-user=squid \
24 --enable-linux-netfilter \
25 --enable-storeio=ufs,aufs,diskd,rock \
26 --enable-removal-policies=lru,heap \
27 --with-large-files \
28 --with-pthreads \
29 --with-aufs-threads=16 \
30 --disable-auto-locale \
31 --disable-arch-native
32
33 make all
34 make DESTDIR=$PKG install
35
36 rm -r $PKG/var/run
37 find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
38
39 install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
40 install -d -m 0700 -o squid -g squid $PKG/var/run/squid
41 install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
42 }
|