[arch-commits] Commit in unbound/trunk (PKGBUILD rc.d)
Gaetan Bisson
bisson at nymeria.archlinux.org
Mon May 13 09:56:20 UTC 2013
Date: Monday, May 13, 2013 @ 11:56:20
Author: bisson
Revision: 90585
remove deprecated rc script
Modified:
unbound/trunk/PKGBUILD
Deleted:
unbound/trunk/rc.d
----------+
PKGBUILD | 9 +++------
rc.d | 39 ---------------------------------------
2 files changed, 3 insertions(+), 45 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-13 09:56:17 UTC (rev 90584)
+++ PKGBUILD 2013-05-13 09:56:20 UTC (rev 90585)
@@ -17,12 +17,10 @@
backup=('etc/unbound/unbound.conf')
source=("http://unbound.net/downloads/${pkgname}-${pkgver}.tar.gz"
'unbound.service'
- 'unbound.conf'
- 'rc.d')
+ 'unbound.conf')
sha1sums=('1752976533be2a4f0c9cdbab9d2cbb67d4f27c43'
'a2493cb105ff6aa23d756514badb13b02d37f319'
- '5d473ec2943fd85367cdb653fcd58e186f07383f'
- 'dc96e772f467b32555df21d16fdb15e98194c228')
+ '5d473ec2943fd85367cdb653fcd58e186f07383f')
install=install
@@ -33,7 +31,7 @@
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-static=no \
+ --disable-static \
--disable-rpath \
--with-conf-file=/etc/unbound/unbound.conf \
--with-pidfile=/run/unbound.pid \
@@ -47,7 +45,6 @@
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}"
install -D -m644 ../unbound.conf "${pkgdir}/etc/unbound/unbound.conf"
install -D -m644 doc/example.conf.in "${pkgdir}/etc/unbound/unbound.conf.example"
install -D -m644 ../unbound.service "${pkgdir}/usr/lib/systemd/system/unbound.service"
Deleted: rc.d
===================================================================
--- rc.d 2013-05-13 09:56:17 UTC (rev 90584)
+++ rc.d 2013-05-13 09:56:20 UTC (rev 90585)
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-name=unbound
-prog="/usr/sbin/unbound"
-
-PID=$(pidof -o %PPID $prog)
-
-case "$1" in
-start)
- stat_busy "Starting $name daemon"
- [[ -z "$PID" ]] && eval $prog &>/dev/null \
- && { add_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-stop)
- stat_busy "Stopping $name daemon"
- [[ -n "$PID" ]] && kill $PID &>/dev/null \
- && { rm_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-reload)
- stat_busy "Reloading $name daemon"
- [[ -n "$PID" ]] && kill -SIGHUP $PID &>/dev/null \
- && { stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-restart)
- $0 stop
- sleep 2
- $0 start
- ;;
-*)
- echo "usage: $0 {start|stop|restart|reload}"
- exit 1
- ;;
-esac
More information about the arch-commits
mailing list