[arch-commits] Commit in varnish/repos (10 files)
Dave Reisner
dreisner at archlinux.org
Thu Sep 22 23:55:35 UTC 2011
Date: Thursday, September 22, 2011 @ 19:55:35
Author: dreisner
Revision: 138432
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
varnish/repos/extra-i686/
varnish/repos/extra-i686/PKGBUILD
(from rev 138431, varnish/trunk/PKGBUILD)
varnish/repos/extra-i686/rc.varnish
(from rev 138431, varnish/trunk/rc.varnish)
varnish/repos/extra-i686/varnish.conf.d
(from rev 138431, varnish/trunk/varnish.conf.d)
varnish/repos/extra-i686/varnish.install
(from rev 138431, varnish/trunk/varnish.install)
varnish/repos/extra-x86_64/
varnish/repos/extra-x86_64/PKGBUILD
(from rev 138431, varnish/trunk/PKGBUILD)
varnish/repos/extra-x86_64/rc.varnish
(from rev 138431, varnish/trunk/rc.varnish)
varnish/repos/extra-x86_64/varnish.conf.d
(from rev 138431, varnish/trunk/varnish.conf.d)
varnish/repos/extra-x86_64/varnish.install
(from rev 138431, varnish/trunk/varnish.install)
------------------------------+
extra-i686/PKGBUILD | 44 +++++++++++++++++++++++++++++++++++++++
extra-i686/rc.varnish | 46 +++++++++++++++++++++++++++++++++++++++++
extra-i686/varnish.conf.d | 9 ++++++++
extra-i686/varnish.install | 6 +++++
extra-x86_64/PKGBUILD | 44 +++++++++++++++++++++++++++++++++++++++
extra-x86_64/rc.varnish | 46 +++++++++++++++++++++++++++++++++++++++++
extra-x86_64/varnish.conf.d | 9 ++++++++
extra-x86_64/varnish.install | 6 +++++
8 files changed, 210 insertions(+)
Copied: varnish/repos/extra-i686/PKGBUILD (from rev 138431, varnish/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,44 @@
+# $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=3.0.1
+pkgrel=1
+pkgdesc="High-performance HTTP accelerator"
+arch=('i686' 'x86_64')
+url="http://www.varnish-cache.org/"
+license=('BSD')
+depends=('gcc' 'libedit' 'pcre')
+backup=('etc/conf.d/varnish')
+install=$pkgname.install
+options=('!libtool')
+source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz"
+ "$pkgname.conf.d"
+ "rc.$pkgname")
+md5sums=('d01d9c1f2da2b2a1b18299a0b44c8580'
+ 'd42eebc7f0ac429d9740125ff1e61daf'
+ '18b7747020ecfe2eac7445971a7014e3')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ install -D -m755 "$srcdir/rc.$pkgname" "$pkgdir/etc/rc.d/$pkgname"
+ install -D -m644 "$srcdir/$pkgname.conf.d" "$pkgdir/etc/conf.d/$pkgname"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: varnish/repos/extra-i686/rc.varnish (from rev 138431, varnish/trunk/rc.varnish)
===================================================================
--- extra-i686/rc.varnish (rev 0)
+++ extra-i686/rc.varnish 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/varnish
+
+pidfile=/run/varnish.pid
+if [[ -r $pidfile ]]; then
+ read -r PID < "$pidfile"
+ if [[ ! -d /proc/$PID ]]; then
+ # stale pidfile
+ unset PID
+ rm -f "$pidfile"
+ fi
+fi
+
+case "$1" in
+ start)
+ stat_busy "Starting Varnish Reverse Proxy"
+ if /usr/sbin/varnishd $VARNISHD_OPTS -P "$pidfile"; then
+ add_daemon varnish
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Varnish Reverse Proxy"
+ if [[ $PID ]] && kill $PID &>/dev/null; then
+ rm_daemon varnish
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+ ;;
+esac
Copied: varnish/repos/extra-i686/varnish.conf.d (from rev 138431, varnish/trunk/varnish.conf.d)
===================================================================
--- extra-i686/varnish.conf.d (rev 0)
+++ extra-i686/varnish.conf.d 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,9 @@
+#
+# Command line options to varnishd
+#
+
+VARNISHD_OPTS="-a 0.0.0.0:80 \
+ -b localhost:8080 \
+ -T localhost:6082 \
+ -s malloc,64M
+ -u nobody -g nobody"
Copied: varnish/repos/extra-i686/varnish.install (from rev 138431, varnish/trunk/varnish.install)
===================================================================
--- extra-i686/varnish.install (rev 0)
+++ extra-i686/varnish.install 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# remove localstatedir -- compiled VCL and slab files will still be here.
+post_remove() {
+ rm -rf /var/lib/varnish
+}
Copied: varnish/repos/extra-x86_64/PKGBUILD (from rev 138431, varnish/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,44 @@
+# $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=3.0.1
+pkgrel=1
+pkgdesc="High-performance HTTP accelerator"
+arch=('i686' 'x86_64')
+url="http://www.varnish-cache.org/"
+license=('BSD')
+depends=('gcc' 'libedit' 'pcre')
+backup=('etc/conf.d/varnish')
+install=$pkgname.install
+options=('!libtool')
+source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz"
+ "$pkgname.conf.d"
+ "rc.$pkgname")
+md5sums=('d01d9c1f2da2b2a1b18299a0b44c8580'
+ 'd42eebc7f0ac429d9740125ff1e61daf'
+ '18b7747020ecfe2eac7445971a7014e3')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ install -D -m755 "$srcdir/rc.$pkgname" "$pkgdir/etc/rc.d/$pkgname"
+ install -D -m644 "$srcdir/$pkgname.conf.d" "$pkgdir/etc/conf.d/$pkgname"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: varnish/repos/extra-x86_64/rc.varnish (from rev 138431, varnish/trunk/rc.varnish)
===================================================================
--- extra-x86_64/rc.varnish (rev 0)
+++ extra-x86_64/rc.varnish 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/varnish
+
+pidfile=/run/varnish.pid
+if [[ -r $pidfile ]]; then
+ read -r PID < "$pidfile"
+ if [[ ! -d /proc/$PID ]]; then
+ # stale pidfile
+ unset PID
+ rm -f "$pidfile"
+ fi
+fi
+
+case "$1" in
+ start)
+ stat_busy "Starting Varnish Reverse Proxy"
+ if /usr/sbin/varnishd $VARNISHD_OPTS -P "$pidfile"; then
+ add_daemon varnish
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Varnish Reverse Proxy"
+ if [[ $PID ]] && kill $PID &>/dev/null; then
+ rm_daemon varnish
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+ ;;
+esac
Copied: varnish/repos/extra-x86_64/varnish.conf.d (from rev 138431, varnish/trunk/varnish.conf.d)
===================================================================
--- extra-x86_64/varnish.conf.d (rev 0)
+++ extra-x86_64/varnish.conf.d 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,9 @@
+#
+# Command line options to varnishd
+#
+
+VARNISHD_OPTS="-a 0.0.0.0:80 \
+ -b localhost:8080 \
+ -T localhost:6082 \
+ -s malloc,64M
+ -u nobody -g nobody"
Copied: varnish/repos/extra-x86_64/varnish.install (from rev 138431, varnish/trunk/varnish.install)
===================================================================
--- extra-x86_64/varnish.install (rev 0)
+++ extra-x86_64/varnish.install 2011-09-22 23:55:35 UTC (rev 138432)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# remove localstatedir -- compiled VCL and slab files will still be here.
+post_remove() {
+ rm -rf /var/lib/varnish
+}
More information about the arch-commits
mailing list