-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
88 lines (85 loc) · 2.34 KB
/
template
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Template file for 'squid'
pkgname=squid
version=5.7
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/v5/changesets/"
distfiles="http://www.squid-cache.org/Versions/v5/squid-${version}.tar.xz"
checksum=6b0753aaba4c9c4efd333e67124caecf7ad6cc2d38581f19d2f0321f5b7ecd81
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
}