76 lines
2 KiB
Bash
76 lines
2 KiB
Bash
# Template file for 'squid'
|
|
pkgname=squid
|
|
version=3.5.27
|
|
revision=3
|
|
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=${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=g++
|
|
BUILDCXXFLAGS=-O2"
|
|
conf_files="/etc/squid/squid.conf
|
|
/etc/squid/errorpage.css
|
|
/etc/squid/cachemgr.conf
|
|
/etc/squid/mime.conf"
|
|
system_accounts="squid"
|
|
#example changelog="http://www.squid-cache.org/Versions/v3/3.5/changesets/"
|
|
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="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://www.squid-cache.org/"
|
|
distfiles="ftp://ftp.fu-berlin.de/unix/www/${pkgname}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=5ddb4367f2dc635921f9ca7a59d8b87edb0412fa203d1543393ac3c7f9fef0ec
|
|
|
|
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
|
|
}
|