diff options
Diffstat (limited to 'community/polipo')
-rw-r--r-- | community/polipo/PKGBUILD | 10 | ||||
-rw-r--r-- | community/polipo/polipo.rc.d | 71 |
2 files changed, 4 insertions, 77 deletions
diff --git a/community/polipo/PKGBUILD b/community/polipo/PKGBUILD index 47b7f460d..c4934c525 100644 --- a/community/polipo/PKGBUILD +++ b/community/polipo/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 80790 2012-12-03 18:01:33Z ttoepper $ +# $Id: PKGBUILD 90446 2013-05-12 13:12:12Z jelle $ # Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de> # Contributor: Jelle van der Waa <jelle vdwaa nl> # Contributor: Thomas Holmquist <thomas@vorget.com> @@ -7,7 +7,7 @@ pkgname=polipo pkgver=1.0.4.1 -pkgrel=9 +pkgrel=10 pkgdesc="A small and fast caching web proxy." arch=('i686' 'x86_64' 'mips64el') url="http://www.pps.jussieu.fr/~jch/software/polipo/" @@ -16,9 +16,8 @@ depends=('bash') makedepends=('texinfo') install=polipo.install source=("http://freehaven.net/~chrisd/polipo/polipo-$pkgver.tar.gz" - "polipo.rc.d" "polipo.conf.d" "polipo.service") + "polipo.conf.d" "polipo.service") md5sums=('bfc5c85289519658280e093a270d6703' - '7406aad26807fb3a4e5f7b01ecb97a59' '685aa0c6070dee11c701932d23afcc6a' '143ef45db99dc745b6c3a606847be9fe') @@ -45,8 +44,7 @@ package() { # install license install -Dm644 COPYING $pkgdir/usr/share/licenses/polipo/LICENSE - # install daemon scripts / cron - install -Dm 755 $srcdir/polipo.rc.d $pkgdir/etc/rc.d/polipo + # install systemd service / cron install -Dm 644 $srcdir/polipo.service $pkgdir/usr/lib/systemd/system/polipo.service install -Dm 644 $srcdir/polipo.conf.d $pkgdir/etc/conf.d/polipo.conf } diff --git a/community/polipo/polipo.rc.d b/community/polipo/polipo.rc.d deleted file mode 100644 index 0333ded57..000000000 --- a/community/polipo/polipo.rc.d +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -daemon_name=polipo - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/$daemon_name.conf - -get_pid() { - pidof -o %PPID $daemon_name -} - -case "$1" in - start) - stat_busy "Starting $daemon_name daemon" - - PID=$(get_pid) - if [[ -z $PID ]]; then - [[ -f /run/$daemon_name.pid ]] && - rm -f /run/$daemon_name.pid - # RUN - su -c "/usr/bin/$daemon_name ${POLIPO_ARGS}" -s /bin/sh - nobody - # - if [[ $? -gt 0 ]]; then - stat_fail - exit 1 - else - echo $(get_pid) > /run/$daemon_name.pid - add_daemon $daemon_name - stat_done - fi - else - stat_fail - exit 1 - fi - ;; - - stop) - stat_busy "Stopping $daemon_name daemon" - PID=$(get_pid) - # KILL - [[ -n $PID ]] && kill $PID &> /dev/null - # - if [[ $? -gt 0 ]]; then - stat_fail - exit 1 - else - rm -f /run/$daemon_name.pid &> /dev/null - rm_daemon $daemon_name - stat_done - fi - ;; - - restart) - $0 stop - sleep 3 - $0 start - ;; - - status) - stat_busy "Checking $daemon_name status"; - ck_status $daemon_name - ;; - - *) - echo "usage: $0 {start|stop|restart|status}" -esac - -exit 0 - -# vim:set ts=2 sw=2 et: |