diff options
author | root <root@rshg054.dnsready.net> | 2012-04-24 00:01:27 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-24 00:01:27 +0000 |
commit | 264f2be5f341b9946381d84ebaffc95f9199990b (patch) | |
tree | 21ee2b5c6a55b957afc2674f59d66a33635e5705 /community/radvd | |
parent | f81dfba1507be388ae1b2c2437fccad46aadc950 (diff) |
Tue Apr 24 00:01:27 UTC 2012
Diffstat (limited to 'community/radvd')
-rw-r--r-- | community/radvd/PKGBUILD | 6 | ||||
-rw-r--r-- | community/radvd/radvd.rc | 39 |
2 files changed, 22 insertions, 23 deletions
diff --git a/community/radvd/PKGBUILD b/community/radvd/PKGBUILD index f70330c26..af5a4f8c2 100644 --- a/community/radvd/PKGBUILD +++ b/community/radvd/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 69072 2012-04-08 22:59:52Z seblu $ +# $Id: PKGBUILD 69704 2012-04-22 21:26:38Z seblu $ # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> # Contributor: Kaiting Chen <kaitocracy@gmail.com> # Contributor: Mark Smith <markzzzsmith@yahoo.com.au> pkgname=radvd pkgver=1.8.5 -pkgrel=3 +pkgrel=4 pkgdesc='IPv6 Router Advertisement Daemon' url='http://www.litech.org/radvd/' license=('custom') @@ -17,7 +17,7 @@ source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.gz" "$pkgname.conf" "$pkgname.service") sha1sums=('344c145bd29938b7eefb0210cf92bf18df3e191d' - 'efe02c38eac45bed065fd48c1e3e7753c90c7c2a' + '08dd01319682f4ef2e847d11aa375e0239c08c7a' '63ce41d790a0472e6b3b15928f6a71d1dbb7700d' '9cb6b2eaaf445fe8d17dfc50fde15709d4de7d1d') build() { diff --git a/community/radvd/radvd.rc b/community/radvd/radvd.rc index 26ad0dbf4..3cac104e7 100644 --- a/community/radvd/radvd.rc +++ b/community/radvd/radvd.rc @@ -4,37 +4,36 @@ . /etc/rc.d/functions . /etc/conf.d/${0##*/} -NAME='IPv6 Router Advertisement Daemon' DAEMON=/usr/sbin/radvd PIDFILE=${PIDFILE:-/run/${0##*/}.pid} DAEMON_OPTS+=("--pidfile=$PIDFILE") # check pid file [[ -r "$PIDFILE" ]] && - read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID || unset PID + read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID || unset PID case "$1" in - start) - stat_busy "Starting $NAME daemon" - [[ ! $PID ]] && $DAEMON "${DAEMON_OPTS[@]}" && - add_daemon $NAME && stat_done && exit 0 - stat_fail - ;; + start) + stat_busy "Starting ${0##*/} daemon" + [[ ! $PID ]] && $DAEMON "${DAEMON_OPTS[@]}" && + add_daemon ${0##*/} && stat_done && exit 0 + stat_fail + ;; stop) - stat_busy "Stopping $NAME daemon" - [[ $PID ]] && kill $PID &> /dev/null && rm_daemon $NAME && stat_done && exit 0 - stat_fail - ;; + stat_busy "Stopping ${0##*/} daemon" + [[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0 + stat_fail + ;; restart) - $0 stop - $0 start - exit 0 - ;; - *) - echo "usage: ${0##*/} {start|stop|restart}" >&2 - ;; + $0 stop + $0 start + exit 0 + ;; + *) + echo "usage: ${0##*/} {start|stop|restart}" >&2 + ;; esac exit 1 -# vim:set ts=2 sw=2 ft=sh noet: +# vim:set ts=2 sw=2 ft=sh et: |