diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-14 03:52:55 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-14 03:52:55 +0000 |
commit | 7c266ff5a9e1f533fd8bd8c2fbbcc05df350dcd3 (patch) | |
tree | a65448ff1236d65a3fea9015e7cd01e6483eb282 /extra/varnish | |
parent | 3d6877ee9ee7bba813a4b6be30a11d2b1942c656 (diff) |
Mon Apr 14 03:47:31 UTC 2014
Diffstat (limited to 'extra/varnish')
-rw-r--r-- | extra/varnish/PKGBUILD | 20 | ||||
-rw-r--r-- | extra/varnish/varnish.install | 8 | ||||
-rw-r--r-- | extra/varnish/varnish.service | 7 |
3 files changed, 28 insertions, 7 deletions
diff --git a/extra/varnish/PKGBUILD b/extra/varnish/PKGBUILD index 32567111c..b69d6ca31 100644 --- a/extra/varnish/PKGBUILD +++ b/extra/varnish/PKGBUILD @@ -1,25 +1,27 @@ -# $Id: PKGBUILD 200724 2013-12-03 14:59:11Z dreisner $ +# $Id: PKGBUILD 210293 2014-04-13 15:14:17Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> # Contributor: Douglas Soares de Andrade # Contributor: Roberto Alsina <ralsina@kde.org> pkgname=varnish -pkgver=3.0.5 +pkgver=4.0.0 pkgrel=1 pkgdesc="High-performance HTTP accelerator" arch=('i686' 'x86_64') url="http://www.varnish-cache.org/" license=('BSD') depends=('gcc' 'libedit' 'pcre') +makedepends=('python-docutils') +optdepends=('python: needed for vmod development') backup=('etc/varnish/default.vcl') install=$pkgname.install source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz" varnish-vcl-reload varnish.service) -md5sums=('674d44775cc927aee4601edb37f60198' +md5sums=('05af2deae29f37b166392a0237756250' '03196dee7fc68e75069393d52c370762' - '276f1761b3c7c6a83688038659194bbb') + '699d118a069c2e63e49c81f275ce2658') build() { cd "$pkgname-$pkgver" @@ -34,11 +36,17 @@ build() { } package() { - make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install install -m755 "$srcdir/varnish-vcl-reload" "$pkgdir/usr/bin" install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" + # config + install -Dm644 "etc/example.vcl" "$pkgdir/etc/varnish/default.vcl" + install -Dm644 "etc/builtin.vcl" "$pkgdir/usr/share/doc/varnish/builtin.vcl" + # license - install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/extra/varnish/varnish.install b/extra/varnish/varnish.install index 1cbb1f16e..66e825f70 100644 --- a/extra/varnish/varnish.install +++ b/extra/varnish/varnish.install @@ -4,3 +4,11 @@ post_remove() { rm -rf var/lib/varnish } + +post_upgrade() { + if [ "$(vercmp 4.0.0-1 "$2")" -eq 1 ]; then + echo ":: You must update your VCL to be compatible with 4.0.0. See the following" + echo " upgrade guide to port your configuration:" + echo " https://www.varnish-cache.org/docs/trunk/whats-new/upgrading.html" + fi +} diff --git a/extra/varnish/varnish.service b/extra/varnish/varnish.service index 01fda89c2..54c5ac835 100644 --- a/extra/varnish/varnish.service +++ b/extra/varnish/varnish.service @@ -1,10 +1,15 @@ [Unit] -Description=Web Application Accelerator +Description=High-perfomance HTTP accelerator After=network.target [Service] ExecStart=/usr/bin/varnishd -a 0.0.0.0:80,[::]:80 -f /etc/varnish/default.vcl -T localhost:6082 -s malloc,64M -u nobody -g nobody -F ExecReload=/usr/bin/varnish-vcl-reload +PrivateTmp=true +PrivateDevices=true +LimitNOFILE=131072 +LimitMEMLOCK=82000 +LimitCORE=infinity [Install] WantedBy=multi-user.target |