PKGBUILDs/extra/squid/PKGBUILD

61 lines
2.5 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 51906 2009-09-13 13:58:38Z dan $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=squid
pkgver=2.7.STABLE6
pkgrel=3
pkgdesc="A full-featured Web proxy cache server."
arch=(i686 x86_64)
url="http://www.squid-cache.org"
depends=('openssl' 'pam' 'cron' 'perl')
makedepends=('libcap>=2.16')
license=('GPL')
backup=(etc/squid/squid.conf etc/squid/mime.conf etc/conf.d/squid)
install=$pkgname.install
source=(http://www.squid-cache.org/Versions/v2/2.7/${pkgname}-${pkgver}.tar.bz2
squid-makefiles.patch squid squid.conf.d squid.pam
squid.cron)
md5sums=('6de3a6a7a56a7ecae092f2d31a04f039'
'082e53bb6e2c79bc44ac95c3d69145da'
'd213b0cc1db72b749bb8c88716fdab39'
'81f9a446d143f42c6a3f30304e91c39f'
'270977cdd9b47ef44c0c427ab9034777'
'5e17df989e2a74e869790c066f61225b')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i ../squid-makefiles.patch
./configure --prefix=/usr --datadir=/usr/share/squid \
--sysconfdir=/etc/squid --libexecdir=/usr/lib/squid \
--localstatedir=/var --enable-auth="basic,digest,ntlm" \
--enable-removal-policies="lru,heap" \
--enable-digest-auth-helpers="password" \
--enable-storeio="aufs,ufs,diskd,coss,null" \
--enable-basic-auth-helpers="getpwnam,YP,NCSA,SMB,MSNT,PAM,multi-domain-NTLM" \
--enable-external-acl-helpers="ip_user,unix_group,wbinfo_group" \
--enable-ntlm-auth-helpers="SMB,fakeauth,no_check" \
--enable-delay-pools --enable-arp-acl --enable-ssl \
--enable-linux-netfilter --enable-ident-lookups \
--enable-useragent-log --enable-cache-digests --enable-referer-log \
--enable-async-io --enable-truncate --enable-arp-acl \
--enable-htcp --enable-carp --enable-epoll --with-maxfd=4096
#some versions have build problems with both async and truncate enabled:
# --enable-async-io --enable-arp-acl \
make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -rf ${pkgdir}/var
mv ${pkgdir}/usr/bin/Run* ${startdir}/pkg/usr/lib/squid
mkdir -p ${pkgdir}/var/cache/squid
mkdir -p ${pkgdir}/var/log/squid
install -D -m755 ${srcdir}/squid ${pkgdir}/etc/rc.d/squid
install -D -m755 ${srcdir}/squid.cron ${pkgdir}/etc/cron.weekly/squid
install -D -m644 ${srcdir}/squid.conf.d ${pkgdir}/etc/conf.d/squid
install -D -m644 ${srcdir}/squid.pam ${pkgdir}/etc/pam.d/squid
install -D -m644 ${pkgdir}/etc/squid/squid.conf \
${pkgdir}/etc/squid/squid.conf.default
}
# vim: ts=2 sw=2 et ft=sh