New package: squid-3.5.3
This commit is contained in:
parent
db173f0e64
commit
85e26769ef
3 changed files with 85 additions and 0 deletions
4
srcpkgs/squid/files/cron.daily
Normal file
4
srcpkgs/squid/files/cron.daily
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
if sv status squid | grep -q '^run'; then
|
||||
squid -k rotate
|
||||
fi
|
4
srcpkgs/squid/files/squid/run
Normal file
4
srcpkgs/squid/files/squid/run
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh -e
|
||||
install -o squid -g squid -m 0755 -d /var/run/squid
|
||||
squid -N -s -z
|
||||
exec squid -N -s
|
77
srcpkgs/squid/template
Normal file
77
srcpkgs/squid/template
Normal file
|
@ -0,0 +1,77 @@
|
|||
# Template file for 'squid'
|
||||
pkgname=squid
|
||||
version=3.5.3
|
||||
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-removal-policies="lru,heap"
|
||||
--enable-storeio="aufs,ufs,diskd"
|
||||
--enable-delay-pools
|
||||
--enable-arp-acl
|
||||
--with-openssl=/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"
|
||||
conf_files="/etc/squid/squid.conf
|
||||
/etc/squid/errorpage.css
|
||||
/etc/squid/cachemgr.conf
|
||||
/etc/squid/mime.conf"
|
||||
system_accounts="squid"
|
||||
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"
|
||||
depends="perl"
|
||||
short_desc="Caching proxy for the Web"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://www.squid-cache.org/"
|
||||
distfiles="http://www.squid-cache.org/Versions/v${version%%.*}/${version%.*}/${pkgname}-${version}.tar.bz2"
|
||||
checksum=6c4f5f9cef9e2331d20974d8ebbd1cbcd567d2acca266bcb074394516e18b7f6
|
||||
nocross=yes
|
||||
|
||||
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
|
||||
vsconf ${DESTDIR}/etc/squid/mime.conf.default
|
||||
vsconf ${DESTDIR}/etc/squid/squid.conf.default
|
||||
vsconf ${DESTDIR}/etc/squid/squid.conf.documented
|
||||
vsconf ${DESTDIR}/etc/squid/cachemgr.conf.default
|
||||
vsconf ${DESTDIR}/etc/squid/errorpage.css.default
|
||||
rm ${DESTDIR}/etc/squid/*.default ${DESTDIR}/etc/squid/*.documented
|
||||
vinstall ${FILESDIR}/cron.daily 0744 etc/cron.daily squid
|
||||
}
|
Loading…
Reference in a new issue