33 lines
1.0 KiB
Plaintext
33 lines
1.0 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.5.STABLE12
|
|||
|
release=1
|
|||
|
source=(http://www.squid-cache.org/Versions/v2/2.5/$name-$version.tar.gz \
|
|||
|
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
|
|||
|
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 ../squid $PKG/etc/rc.d/squid
|
|||
|
install -m 644 ../squid.conf $PKG/etc/squid
|
|||
|
}
|