summaryrefslogtreecommitdiff
path: root/community/pound
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-18 00:01:47 +0000
committerroot <root@rshg054.dnsready.net>2012-04-18 00:01:47 +0000
commit637c1cfdcd258a870ad5367cbf47a8a2799039c7 (patch)
tree04dabe84f2527ce4ef85b0905f186ebb93cacdb9 /community/pound
parent0fb510ac9b1defac6c3d54a68eccd7e18635b474 (diff)
Wed Apr 18 00:01:47 UTC 2012
Diffstat (limited to 'community/pound')
-rw-r--r--community/pound/PKGBUILD16
-rwxr-xr-xcommunity/pound/pound.init42
-rwxr-xr-xcommunity/pound/pound.runit3
3 files changed, 28 insertions, 33 deletions
diff --git a/community/pound/PKGBUILD b/community/pound/PKGBUILD
index 363b16dcc..97b236233 100644
--- a/community/pound/PKGBUILD
+++ b/community/pound/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 64351 2012-02-11 23:23:24Z allan $
+# $Id: PKGBUILD 69456 2012-04-16 13:52:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=pound
pkgver=2.6
-pkgrel=1
+pkgrel=2
pkgdesc="A reverse proxy, load balancer, and SSL wrapper"
arch=('i686' 'x86_64')
url="http://www.apsis.ch/pound/index_html"
@@ -15,18 +15,14 @@ backup=(etc/pound/pound.cfg)
source=(http://www.apsis.ch/pound/Pound-$pkgver.tgz
pound.init
pound.runit
- pound.cfg
- pound-2.5-openssl.patch)
+ pound.cfg)
md5sums=('8c913b527332694943c4c67c8f152071'
- '4df8548f106fca08323e8e4071beaa43'
- '716cc0bf334b594751bece24c7d1df2d'
- '8937808acd22c6391ebe4340af8df854'
- 'c2c48dc395ffc045f9d35394992292d0')
+ 'bd3bddb6dc17fdcab824815a4705b055'
+ '4bd5e2a8d8e707eb900ae88929e00d4c'
+ '8937808acd22c6391ebe4340af8df854')
build() {
cd $srcdir/Pound-$pkgver
- # Patch to build against OpenSSL 1.0.0 (Thanks Fedora!)
-# patch -p1 -i $srcdir/pound-2.5-openssl.patch || return 1
./configure --prefix=/usr --sysconfdir=/etc/pound
make
}
diff --git a/community/pound/pound.init b/community/pound/pound.init
index 369d6626d..b8187c81f 100755
--- a/community/pound/pound.init
+++ b/community/pound/pound.init
@@ -6,33 +6,33 @@
case "$1" in
start)
- stat_busy "Starting Pound"
- /usr/sbin/pound -f /etc/pound/pound.cfg -p /var/run/pound.pid &
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon pound
- stat_done
- fi
- ;;
+ stat_busy "Starting Pound"
+ /usr/sbin/pound -f /etc/pound/pound.cfg -p /var/run/pound.pid &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon pound
+ stat_done
+ fi
+ ;;
stop)
- stat_busy "Stopping Pound"
+ stat_busy "Stopping Pound"
[ -f /var/run/pound.pid ] && kill `cat /var/run/pound.pid`
- if [ $? -gt 0 ]; then
- stat_fail
- else
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
rm -f /var/run/pound.pid
- rm_daemon pound
- stat_done
- fi
- ;;
+ rm_daemon pound
+ stat_done
+ fi
+ ;;
restart)
- $0 stop
+ $0 stop
sleep 1
- $0 start
- ;;
+ $0 start
+ ;;
*)
- echo "usage: $0 {start|stop|restart}"
+ echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0
diff --git a/community/pound/pound.runit b/community/pound/pound.runit
index 2e0be991e..ed59ea046 100755
--- a/community/pound/pound.runit
+++ b/community/pound/pound.runit
@@ -11,7 +11,7 @@ SVC=pound
PID=`pidof $BIN`
if [ -z "$PID" ]
then
- if [ -f /var/run/$SVC.pid ]
+ if [ -f /var/run/$SVC.pid ]
then
rm /var/run/$SVC.pid
rm_daemon $SVC
@@ -21,4 +21,3 @@ then
else
[ -z $PID ] || exec watchpid $PID
fi
-