34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Description: A full-featured web proxy cache
|
|
# URL: http://www.squid-cache.org
|
|
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
name=squid
|
|
version=2.6.STABLE12
|
|
release=1
|
|
source=(http://www.squid-cache.org/Versions/v2/2.6/$name-$version.tar.bz2 \
|
|
squid.conf squid)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/squid \
|
|
--libexecdir=/usr/sbin \
|
|
--localstatedir=/var/squid \
|
|
--datadir=/usr/share/squid \
|
|
--enable-linux-netfilter \
|
|
--enable-err-languages=English \
|
|
--enable-epoll
|
|
make all
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/{var/squid/logs,etc/squid/mime.conf.default}
|
|
mv $PKG/usr/share/squid/errors/{English/*,.}
|
|
rm -r $PKG/usr/share/squid/errors/English
|
|
|
|
mkdir -p $PKG/var/log/squid
|
|
chmod 0700 $PKG/var/{squid,log/squid}
|
|
chown -R squid:squid $PKG/var/{squid,log/squid}
|
|
install -D -m 755 $SRC/squid $PKG/etc/rc.d/squid
|
|
install -m 644 $SRC/squid.conf $PKG/etc/squid
|
|
}
|