[arch-commits] Commit in polipo/trunk (PKGBUILD polipo.rc.d)

Jelle van der Waa jelle at nymeria.archlinux.org
Sun May 12 13:10:04 UTC 2013


    Date: Sunday, May 12, 2013 @ 15:10:04
  Author: jelle
Revision: 90445

upgpkg: polipo 1.0.4.1-10

Remove old initscipts rc.d files

Modified:
  polipo/trunk/PKGBUILD
Deleted:
  polipo/trunk/polipo.rc.d

-------------+
 PKGBUILD    |    8 ++----
 polipo.rc.d |   71 ----------------------------------------------------------
 2 files changed, 3 insertions(+), 76 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-12 12:57:54 UTC (rev 90444)
+++ PKGBUILD	2013-05-12 13:10:04 UTC (rev 90445)
@@ -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')
 url="http://www.pps.jussieu.fr/~jch/software/polipo/"
@@ -16,9 +16,8 @@
 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 @@
   # 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
 }

Deleted: polipo.rc.d
===================================================================
--- polipo.rc.d	2013-05-12 12:57:54 UTC (rev 90444)
+++ polipo.rc.d	2013-05-12 13:10:04 UTC (rev 90445)
@@ -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:




More information about the arch-commits mailing list