# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=squid pkgver=3.2.0.17 pkgrel=1 pkgdesc="A full-featured Web proxy cache server." url="http://www.squid-cache.org" install="squid.pre-install squid.pre-upgrade" pkgusers="squid" pkggroups="squid" arch="all" license="GPL-2" depends="logrotate" makedepends="openssl-dev perl-dev autoconf automake heimdal-dev libtool libcap-dev" subpackages="$pkgname-doc" linguas="af ar az bg ca cs da de el es et fa fi fr he hu hy id it ja ko lt lv ms nl oc pl pt ro ru sk sl sr sv th tr uk uz vi zh" langdir="/usr/share/squid/errors" source="http://www.squid-cache.org/Versions/v3/3.2/squid-$pkgver.tar.bz2 squid-3.2.0.16-loggable-urlgroup.patch squid-3.2-stathist-memleak.patch cf_gen-pthread.patch squid.initd squid.confd $pkgname.logrotate " pkgusers="squid" pkggroups="squid" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done # ./bootstrap.sh } build() { cd "$_builddir" ./configure --prefix=/usr \ --datadir=/usr/share/squid \ --sysconfdir=/etc/squid \ --libexecdir=/usr/lib/squid \ --localstatedir=/var \ --with-logdir=/var/log/squid \ --disable-strict-error-checking \ --enable-removal-policies="lru,heap" \ --enable-digest-auth-helpers="password" \ --enable-basic-auth-helpers="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,squid_radius_auth" \ --enable-epoll \ --enable-external-acl-helpers="ip_user,unix_group,wbinfo_group" \ --enable-ntlm-auth-helpers="fakeauth,no_check,smb_lm" \ --enable-negotiate-auth-helpers="squid_kerb_auth" \ --disable-mit \ --enable-heimdal \ --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-poll --with-maxfd=4096 \ --enable-follow-x-forwarded-for \ --with-large-files \ --with-default-user=squid \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -m644 -D "$srcdir"/$pkgname.logrotate \ "$pkgdir"/etc/logrotate.d/squid install -d -o squid -g squid \ "$pkgdir"/var/cache/squid \ "$pkgdir"/var/log/squid \ "$pkgdir"/var/run/squid chmod +x "$pkgdir"/usr/lib/squid/* } squid_kerb_auth() { pkgdesc="Squid kerberos authetication helper" install -d "$subpkgdir"/usr/lib/squid mv "$pkgdir"/usr/lib/squid/squid_kerb_auth "$subpkgdir"/usr/lib/squid/ } md5sums="8e38fa22983e0611389e49ecdda42b85 squid-3.2.0.17.tar.bz2 16e3b38996d4c5858e1478f8eb650876 squid-3.2.0.16-loggable-urlgroup.patch 020b2500c46300a83d491ba711ebb91a squid-3.2-stathist-memleak.patch c60237de253c02937f272d3b189d7679 cf_gen-pthread.patch 905e57c6d41414f54a75a5c0f9f7fac7 squid.initd 2897c725c201be53d3c9a7db0101bdf0 squid.confd 58823e0b86bc2dc71d270208b7b284b4 squid.logrotate"