# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=squid pkgver=4.4 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.0" depends="logrotate" makedepends="openssl-dev perl-dev autoconf automake heimdal-dev libtool libcap-dev linux-headers" subpackages="$pkgname-doc" linguas="af ar az bg ca cs da de el es et fa fi fr he hu hy id it ja ka 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/v4/squid-${pkgver}.tar.xz $pkgname.initd $pkgname.confd $pkgname.logrotate " pkgusers="squid" pkggroups="squid" builddir="$srcdir"/$pkgname-$pkgver options="!check" # does not work. Error message is about "applet not found", some issue with the installed busybox # secfixes: # 3.5.27-r2: # - CVE-2018-1000024 # - CVE-2018-1000027 # - CVE-2018-1172 build() { cd "$builddir" case "$CARCH" in mips|mipsel) export ac_cv_search___atomic_load_8=-latomic ;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --datadir=/usr/share/squid \ --sysconfdir=/etc/squid \ --libexecdir=/usr/lib/squid \ --localstatedir=/var \ --with-logdir=/var/log/squid \ --disable-strict-error-checking \ --disable-arch-native \ --enable-removal-policies="lru,heap" \ --enable-auth-digest \ --enable-auth-basic="getpwnam,NCSA,SMB,SMB_LM,RADIUS" \ --enable-epoll \ --enable-external-acl-helpers="file_userip,unix_group,wbinfo_group,session" \ --enable-auth-ntlm="fake,SMB_LM" \ --enable-auth-negotiate="kerberos,wrapper" \ --disable-mit \ --enable-heimdal \ --enable-delay-pools \ --enable-arp-acl \ --enable-openssl \ --enable-ssl-crtd \ --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 \ --enable-follow-x-forwarded-for \ --with-large-files \ --with-default-user=squid \ --with-openssl make } 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/ } sha512sums="8ed45abc65febf2955db11bafd49e940914a58230a8945afab9ea4926c4bafd538474a0836665b4131e23a23d6389d512a40bbe53368b8206ba4765fd71fb21f squid-4.4.tar.xz 15d95f7d787be8c2e6619ef1661fd8aae8d2c1ede706748764644c7dc3d7c34515ef6e8b7543295fddc4e767bbd74a7cf8c42e77cf60b3d574ff11b3f6e336c9 squid.initd 7292661de344e8a87d855c83afce49511685d2680effab3afab110e45144c0117935f3bf73ab893c9e6d43f7fb5ba013635e24f6da6daf0eeb895ef2e9b5baa9 squid.confd 89a703fa4f21b6c7c26e64a46fd52407e20f00c34146ade0bea0c4b63d050117c0f8e218f2256a1fbf6abb84f4ec9b0472c9a4092ff6e78f07c4f5a25d0892a5 squid.logrotate"