[arch-commits] Commit in varnish/repos (10 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Sep 7 14:02:26 UTC 2015
Date: Monday, September 7, 2015 @ 16:02:25
Author: foutrelis
Revision: 245459
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
varnish/repos/staging-i686/
varnish/repos/staging-i686/PKGBUILD
(from rev 245458, varnish/trunk/PKGBUILD)
varnish/repos/staging-i686/varnish-vcl-reload
(from rev 245458, varnish/trunk/varnish-vcl-reload)
varnish/repos/staging-i686/varnish.install
(from rev 245458, varnish/trunk/varnish.install)
varnish/repos/staging-i686/varnish.service
(from rev 245458, varnish/trunk/varnish.service)
varnish/repos/staging-x86_64/
varnish/repos/staging-x86_64/PKGBUILD
(from rev 245458, varnish/trunk/PKGBUILD)
varnish/repos/staging-x86_64/varnish-vcl-reload
(from rev 245458, varnish/trunk/varnish-vcl-reload)
varnish/repos/staging-x86_64/varnish.install
(from rev 245458, varnish/trunk/varnish.install)
varnish/repos/staging-x86_64/varnish.service
(from rev 245458, varnish/trunk/varnish.service)
-----------------------------------+
staging-i686/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
staging-i686/varnish-vcl-reload | 20 +++++++++++++
staging-i686/varnish.install | 14 +++++++++
staging-i686/varnish.service | 15 ++++++++++
staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
staging-x86_64/varnish-vcl-reload | 20 +++++++++++++
staging-x86_64/varnish.install | 14 +++++++++
staging-x86_64/varnish.service | 15 ++++++++++
8 files changed, 202 insertions(+)
Copied: varnish/repos/staging-i686/PKGBUILD (from rev 245458, varnish/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Douglas Soares de Andrade
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+pkgname=varnish
+pkgver=4.0.3
+pkgrel=2
+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=('16a683f2e41f7d80219cec5d4649380c'
+ '03196dee7fc68e75069393d52c370762'
+ '699d118a069c2e63e49c81f275ce2658')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --sbindir=/usr/bin
+
+ make
+}
+
+package() {
+ 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 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: varnish/repos/staging-i686/varnish-vcl-reload (from rev 245458, varnish/trunk/varnish-vcl-reload)
===================================================================
--- staging-i686/varnish-vcl-reload (rev 0)
+++ staging-i686/varnish-vcl-reload 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cfg=${1:-/etc/varnish/default.vcl}
+if [ ! -e "$cfg" ]; then
+ printf 'ERROR: VCL file %s does not exist\n' "$cfg" >&2
+ exit 1
+fi
+
+activecfg=$(varnishadm 'vcl.list' | awk '/active/ { print $3 }')
+if [ -z "$activecfg" ]; then
+ printf 'ERROR: No active VCL found!\n' >&2
+ exit 1
+fi
+
+newcfg=$(date +'vcl-%s')
+printf 'INFO: using new config %s\n' "$cfg"
+
+varnishadm "vcl.load $newcfg $cfg" &&
+varnishadm "vcl.use $newcfg" &&
+varnishadm "vcl.discard $activecfg"
Copied: varnish/repos/staging-i686/varnish.install (from rev 245458, varnish/trunk/varnish.install)
===================================================================
--- staging-i686/varnish.install (rev 0)
+++ staging-i686/varnish.install 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# remove localstatedir -- compiled VCL and slab files will still be here.
+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
+}
Copied: varnish/repos/staging-i686/varnish.service (from rev 245458, varnish/trunk/varnish.service)
===================================================================
--- staging-i686/varnish.service (rev 0)
+++ staging-i686/varnish.service 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,15 @@
+[Unit]
+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
Copied: varnish/repos/staging-x86_64/PKGBUILD (from rev 245458, varnish/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Douglas Soares de Andrade
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+pkgname=varnish
+pkgver=4.0.3
+pkgrel=2
+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=('16a683f2e41f7d80219cec5d4649380c'
+ '03196dee7fc68e75069393d52c370762'
+ '699d118a069c2e63e49c81f275ce2658')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --sbindir=/usr/bin
+
+ make
+}
+
+package() {
+ 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 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: varnish/repos/staging-x86_64/varnish-vcl-reload (from rev 245458, varnish/trunk/varnish-vcl-reload)
===================================================================
--- staging-x86_64/varnish-vcl-reload (rev 0)
+++ staging-x86_64/varnish-vcl-reload 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cfg=${1:-/etc/varnish/default.vcl}
+if [ ! -e "$cfg" ]; then
+ printf 'ERROR: VCL file %s does not exist\n' "$cfg" >&2
+ exit 1
+fi
+
+activecfg=$(varnishadm 'vcl.list' | awk '/active/ { print $3 }')
+if [ -z "$activecfg" ]; then
+ printf 'ERROR: No active VCL found!\n' >&2
+ exit 1
+fi
+
+newcfg=$(date +'vcl-%s')
+printf 'INFO: using new config %s\n' "$cfg"
+
+varnishadm "vcl.load $newcfg $cfg" &&
+varnishadm "vcl.use $newcfg" &&
+varnishadm "vcl.discard $activecfg"
Copied: varnish/repos/staging-x86_64/varnish.install (from rev 245458, varnish/trunk/varnish.install)
===================================================================
--- staging-x86_64/varnish.install (rev 0)
+++ staging-x86_64/varnish.install 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# remove localstatedir -- compiled VCL and slab files will still be here.
+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
+}
Copied: varnish/repos/staging-x86_64/varnish.service (from rev 245458, varnish/trunk/varnish.service)
===================================================================
--- staging-x86_64/varnish.service (rev 0)
+++ staging-x86_64/varnish.service 2015-09-07 14:02:25 UTC (rev 245459)
@@ -0,0 +1,15 @@
+[Unit]
+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
More information about the arch-commits
mailing list