PKGBUILDs/community/squid/PKGBUILD

111 lines
3.6 KiB
Bash
Raw Normal View History

2018-07-03 19:50:51 +00:00
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Mark Coolen <mark.coolen@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Kevin Piche <kevin@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - explicitly link v5/v6 with libatomic
pkgname=squid
2020-01-27 14:24:35 +00:00
pkgver=4.10
2020-05-06 20:52:43 +00:00
pkgrel=2
2018-07-03 19:50:51 +00:00
pkgdesc='Full-featured Web proxy cache server'
arch=('x86_64')
url='http://www.squid-cache.org'
2019-09-19 12:48:32 +00:00
depends=('openssl' 'pam' 'perl' 'libltdl' 'libcap' 'nettle' 'gnutls' 'libnsl' 'libxml2')
2018-07-03 19:50:51 +00:00
makedepends=('krb5')
license=('GPL')
options=('emptydirs')
backup=('etc/squid/squid.conf'
'etc/squid/cachemgr.conf'
'etc/squid/errorpage.css'
'etc/squid/mime.conf')
validpgpkeys=('EA31CC5E9488E5168D2DCC5EB268E706FF5CF463'
'B06884EDB779C89B044E64E3CD6DBF8EF3B17D3E')
source=("http://www.squid-cache.org/Versions/v4/$pkgname-$pkgver.tar.xz"{,.asc}
'squid.pam'
'squid.tmpfiles'
'squid.sysusers'
'squid-rotate.service'
'squid-rotate.timer')
2020-01-27 14:24:35 +00:00
sha256sums=('98f0100afd8a42ea5f6b81eb98b0e4b36d7a54beab1c73d2f1705ab49b025f1f'
2018-07-03 19:50:51 +00:00
'SKIP'
'11fb388f8679fd6461e0de006810ea608a3686fffda16904b0ed71f412be499c'
'495f54e51f6ec1e4dce87090d76718aea1eb37559c4439d876dd39598163062a'
'c903eb86e6968b9d3bd0a9ad3335e8ce76a718b6217251e9dd7e66d5cf1ac94a'
'3a97aa6bf6dcdc427e73bb2f36afdeaaf2bbf7dd2c0bbb7f1a948850198a8b7c'
'8bc77fa1f653a17a4956feac042be9577ba30a8a43480b443fbd67640ae711ee')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic"
2018-07-03 22:20:36 +00:00
LIBS=$LIBS \
2018-07-03 19:50:51 +00:00
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--datadir=/usr/share/squid \
--sysconfdir=/etc/squid \
--libexecdir=/usr/lib/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,rock" \
--enable-delay-pools \
--enable-arp-acl \
--with-openssl \
--enable-snmp \
--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=proxy \
--enable-async-io \
--enable-truncate \
--enable-icap-client \
--enable-ssl-crtd \
--disable-arch-native \
--disable-strict-error-checking \
--enable-wccpv2
make
}
package() {
cd "$srcdir"
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
2019-09-19 12:48:32 +00:00
install -Dm644 "$srcdir/squid.pam" "$pkgdir/usr/lib/pam.d/squid"
2018-07-03 19:50:51 +00:00
install -Dm644 "$srcdir/squid.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/squid.conf"
install -Dm644 "$srcdir/squid.sysusers" "$pkgdir/usr/lib/sysusers.d/squid.conf"
2018-10-29 15:05:05 +00:00
install -Dm644 "$pkgname-$pkgver/tools/systemd/squid.service" \
2018-07-03 19:50:51 +00:00
"$pkgdir/usr/lib/systemd/system/squid.service"
install -Dm644 "$srcdir/squid-rotate.service" \
"$pkgdir/usr/lib/systemd/system/squid-rotate.service"
install -Dm644 "$srcdir/squid-rotate.timer" \
"$pkgdir/usr/lib/systemd/system/squid-rotate.timer"
# install -dm755 "$pkgdir/usr/lib/systemd/system/timers.target.wants"
# ln -s ../squid-rotate.timer \
# "$pkgdir/usr/lib/systemd/system/timers.target.wants/squid-rotate.timer"
rm -rf "$pkgdir/run" "$pkgdir"/var/{cache,log,run}
}
# vim: ts=2 sw=2 et ft=sh