1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 'mips64el')
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
|