summaryrefslogtreecommitdiff
path: root/squid/Pkgfile
blob: 1be91b204dbe95a83eaa29b95a745923b8e71e8f (plain)
    1 # Description: A full-featured web proxy cache
    2 # URL:         http://www.squid-cache.org
    3 # Maintainer:  Juergen Daubert, juergen dot daubert at t-online dot de
    4 
    5 name=squid
    6 version=2.7.STABLE5
    7 release=1
    8 source=(http://www.squid-cache.org/Versions/v2/2.7/$name-$version.tar.bz2 \
    9         squid.conf squid)
   10 
   11 build () {
   12     cd $name-$version
   13     ./configure --prefix=/usr \
   14                 --mandir=/usr/man \
   15                 --sysconfdir=/etc/squid \
   16                 --libexecdir=/usr/lib/squid \
   17                 --localstatedir=/var/squid \
   18                 --datadir=/usr/share/squid \
   19                 --enable-linux-netfilter \
   20                 --enable-err-languages=English \
   21                 --enable-epoll \
   22                 --enable-storeio=ufs,aufs,coss \
   23                 --with-large-files \
   24                 --with-pthreads \
   25                 --with-aufs-threads=16
   26 
   27     make all
   28     make DESTDIR=$PKG install
   29 
   30     rm $PKG/usr/bin/RunCache
   31     rm -r $PKG/{var/squid/logs,etc/squid/mime.conf.default}
   32     mv $PKG/usr/share/squid/errors/{English/*,.}
   33     rm -r $PKG/usr/share/squid/errors/English
   34 
   35     mkdir -p $PKG/var/log/squid
   36     chmod 0700 $PKG/var/{squid,log/squid}
   37     chown -R squid:squid $PKG/var/{squid,log/squid}
   38     install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
   39     install -m 644  $SRC/squid.conf $PKG/etc/squid
   40 }

Generated by cgit