diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/squid/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/squid/PKGBUILD')
-rw-r--r-- | extra/squid/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/extra/squid/PKGBUILD b/extra/squid/PKGBUILD new file mode 100644 index 000000000..ab4cca63d --- /dev/null +++ b/extra/squid/PKGBUILD @@ -0,0 +1,62 @@ +# $Id: PKGBUILD 79502 2010-05-04 00:58:56Z kevin $ +# Maintainer: Kevin Piche <kevin@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=squid +pkgver=2.7.STABLE9 +pkgrel=1 +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 fix-for-new-cap-headers.patch) +md5sums=('3c6642c85470b1079207d43bba25a819' + '082e53bb6e2c79bc44ac95c3d69145da' + 'd213b0cc1db72b749bb8c88716fdab39' + '81f9a446d143f42c6a3f30304e91c39f' + '270977cdd9b47ef44c0c427ab9034777' + '5e17df989e2a74e869790c066f61225b' + '9b7586646c8a81730029798895a0eaca') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/squid-makefiles.patch || return 1 + + ./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-snmp \ + --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 + --with-large-files +#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* ${pkgdir}/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 |