summaryrefslogtreecommitdiff
path: root/squid/Pkgfile
blob: bc1fb9aa32ce9687c469d937565c0e37823ccf1e (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 
    5 name=squid
    6 version=3.4.9
    7 release=1
    8 source=(http://www.squid-cache.org/Versions/v3/3.4/$name-$version.tar.xz
    9         squid)
   10 
   11 build () {
   12     cd $name-$version
   13 
   14     ./configure --prefix=/usr \
   15                 --mandir=/usr/man \
   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 
   32     make all
   33     make DESTDIR=$PKG install
   34 
   35     rm -r $PKG/var/run
   36     find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
   37 
   38     install -d -m 0700 -o squid -g squid $PKG/var/{log/squid,squid}
   39     install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
   40 }

Generated by cgit