void-packages/srcpkgs/squid/template
Anthony Iliopoulos d4f09c20ef squid: update to 4.15.
Fix changelog.

Closes: #31480 [via git-merge-pr]
2021-06-15 16:53:22 -03:00

88 lines
2.3 KiB
Bash

# Template file for 'squid'
pkgname=squid
version=4.15
revision=1
build_style=gnu-configure
configure_args="
--sbindir=/usr/bin
--sysconfdir=/etc/squid
--libexecdir=/usr/libexec/squid
--datadir=/usr/share/squid
--localstatedir=/var
--with-logdir=/var/log/squid
--with-pidfile=/run/squid.pid
--enable-auth
--enable-auth-basic
--enable-auth-ntlm
--enable-auth-digest
--enable-auth-negotiate
--enable-esi
--enable-removal-policies=lru,heap
--enable-storeio=aufs,ufs,diskd,rock
--enable-delay-pools
--enable-arp-acl
--with-openssl=${XBPS_CROSS_BASE}/usr
--enable-snmp
--enable-icmp
--enable-linux-netfilter
--enable-ident-lookups
--enable-useragent-log
--enable-cache-digests
--enable-referer-log
--enable-arp-acl
--enable-htcp
--enable-carp
--enable-epoll
--with-large-files
--enable-arp-acl
--with-default-user=squid
--enable-async-io
--enable-truncate
--enable-icap-client
--enable-ssl-crtd
--disable-arch-native
--disable-strict-error-checking
--enable-wccpv2
--with-build-environment=default
squid_cv_gnu_atomics=yes
squid_opt_enable_large_files=yes
BUILDCXX=${CXX_host}
BUILDCXXFLAGS=-O2"
conf_files="/etc/squid/squid.conf
/etc/squid/errorpage.css
/etc/squid/cachemgr.conf
/etc/squid/mime.conf"
make_dirs="/var/log/squid 750 squid squid
/var/cache/squid 750 squid squid"
hostmakedepends="perl pkg-config"
makedepends="libldap-devel libnetfilter_conntrack-devel pam-devel
libcap-devel libltdl-devel libxml2-devel"
depends="perl"
checkdepends="libcppunit-devel"
short_desc="Caching proxy for the Web"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.squid-cache.org/"
changelog="http://www.squid-cache.org/Versions/v4/changesets/"
distfiles="http://www.squid-cache.org/Versions/v4/squid-${version}.tar.xz"
checksum=b693a4e5ab2811a8a854f60de0a62afbbf3a952bb1d047952c9ae01321f84a25
system_accounts="squid"
# squid-conf-tests requires a squid user in the system
make_check=no
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
post_install() {
chmod u+s \
${DESTDIR}/usr/libexec/squid/basic_ncsa_auth \
${DESTDIR}/usr/libexec/squid/basic_pam_auth \
${DESTDIR}/usr/libexec/squid/pinger
vsv squid
vinstall ${FILESDIR}/cron.daily 0744 etc/cron.daily squid
# CVE-2018-1000027
echo 'log_uses_indirect_client off' >> ${DESTDIR}/etc/squid/squid.conf
}