diff options
Diffstat (limited to 'community/pound')
-rw-r--r-- | community/pound/PKGBUILD | 15 | ||||
-rw-r--r-- | community/pound/pound.init | 38 | ||||
-rw-r--r-- | community/pound/pound.runit | 2 | ||||
-rw-r--r-- | community/pound/pound.service | 4 |
4 files changed, 9 insertions, 50 deletions
diff --git a/community/pound/PKGBUILD b/community/pound/PKGBUILD index a73a0b4d7..717203c27 100644 --- a/community/pound/PKGBUILD +++ b/community/pound/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 78356 2012-10-17 15:19:00Z spupykin $ +# $Id: PKGBUILD 91955 2013-05-30 09:43:54Z 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=3.1 +pkgrel=6 pkgdesc="A reverse proxy, load balancer, and SSL wrapper" arch=('i686' 'x86_64' 'mips64el') url="http://www.apsis.ch/pound/index_html" @@ -13,19 +13,17 @@ license=('GPL') depends=('pcre' 'openssl') backup=(etc/pound/pound.cfg) source=(http://www.apsis.ch/pound/Pound-$pkgver.tgz - pound.init pound.runit pound.service pound.cfg) md5sums=('8c913b527332694943c4c67c8f152071' - 'bd3bddb6dc17fdcab824815a4705b055' - '4bd5e2a8d8e707eb900ae88929e00d4c' - '23c70776fcd1cf71572f90a8809f7408' + '2a555ee5871a849cb1f6e6ba2ff054df' + 'c0d0726a96dfda0e83843362e401b3dc' '8937808acd22c6391ebe4340af8df854') build() { cd $srcdir/Pound-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc/pound + ./configure --prefix=/usr --sysconfdir=/etc/pound --sbindir=/usr/bin make } @@ -34,11 +32,10 @@ package() { install -d $pkgdir/usr/sbin make DESTDIR=$pkgdir install chown root.root -R $pkgdir/usr - install -d $pkgdir/etc/rc.d - install -m0755 $srcdir/pound.init $pkgdir/etc/rc.d/pound install -d $pkgdir/etc/sv install -d $pkgdir/etc/sv/pound install -m0755 $srcdir/pound.runit $pkgdir/etc/sv/pound/run install -D -m0644 $srcdir/pound.cfg $pkgdir/etc/pound/pound.cfg install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service + rmdir $pkgdir/usr/sbin } diff --git a/community/pound/pound.init b/community/pound/pound.init deleted file mode 100644 index b8187c81f..000000000 --- a/community/pound/pound.init +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# general config -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start) - 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" - [ -f /var/run/pound.pid ] && kill `cat /var/run/pound.pid` - if [ $? -gt 0 ]; then - stat_fail - else - rm -f /var/run/pound.pid - rm_daemon pound - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" - ;; -esac -exit 0 diff --git a/community/pound/pound.runit b/community/pound/pound.runit index ed59ea046..ae904583c 100644 --- a/community/pound/pound.runit +++ b/community/pound/pound.runit @@ -4,7 +4,7 @@ exec 2>&1 . /etc/rc.conf . /etc/rc.d/functions -BIN=/usr/sbin/pound +BIN=/usr/bin/pound OPTS="-f /etc/pound/pound.cfg -p /var/run/pound.pid" SVC=pound diff --git a/community/pound/pound.service b/community/pound/pound.service index 0a91f3424..5ec089c9a 100644 --- a/community/pound/pound.service +++ b/community/pound/pound.service @@ -3,8 +3,8 @@ Description=A reverse proxy, load balancer, and SSL wrapper [Service] Type=forking -PIDFile=/var/run/pound.pid -ExecStart=/usr/sbin/pound -f /etc/pound/pound.cfg -p /var/run/pound.pid +PIDFile=/run/pound.pid +ExecStart=/usr/bin/pound -f /etc/pound/pound.cfg -p /run/pound.pid [Install] WantedBy=multi-user.target |