diff options
author | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
commit | 223ca251f3ce07eb5484be845e631d6ca645b263 (patch) | |
tree | a9e543c45cd0d58c82e39617f602a718d86976c4 /community/radvd | |
parent | 1fed401c439c264bd92a4c13af1bea0bea458cb4 (diff) |
Tue Apr 10 00:01:08 UTC 2012
Diffstat (limited to 'community/radvd')
-rw-r--r-- | community/radvd/PKGBUILD | 9 | ||||
-rw-r--r-- | community/radvd/radvd.rc | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/community/radvd/PKGBUILD b/community/radvd/PKGBUILD index f995de0ae..f70330c26 100644 --- a/community/radvd/PKGBUILD +++ b/community/radvd/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 67688 2012-03-13 21:44:10Z seblu $ +# $Id: PKGBUILD 69072 2012-04-08 22:59:52Z 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=2 +pkgrel=3 pkgdesc='IPv6 Router Advertisement Daemon' url='http://www.litech.org/radvd/' license=('custom') @@ -17,10 +17,9 @@ source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.gz" "$pkgname.conf" "$pkgname.service") sha1sums=('344c145bd29938b7eefb0210cf92bf18df3e191d' - '9acb452eede739ca6ce42c9470e8bf258a3dddf4' + 'efe02c38eac45bed065fd48c1e3e7753c90c7c2a' '63ce41d790a0472e6b3b15928f6a71d1dbb7700d' '9cb6b2eaaf445fe8d17dfc50fde15709d4de7d1d') - build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --with-pidfile=/run/radvd.pid \ @@ -42,7 +41,7 @@ package() { install -D -m 755 ../$pkgname.rc "$pkgdir/etc/rc.d/$pkgname" install -D -m 644 ../$pkgname.conf "$pkgdir/etc/conf.d/$pkgname" install -D -m 644 ../$pkgname.service \ - "$pkgdir/lib/systemd/system/$pkgname.service" + "$pkgdir/usr/lib/systemd/system/$pkgname.service" } # vim:set ts=2 sw=2 ft=sh et: diff --git a/community/radvd/radvd.rc b/community/radvd/radvd.rc index fdd9ee8ce..26ad0dbf4 100644 --- a/community/radvd/radvd.rc +++ b/community/radvd/radvd.rc @@ -8,7 +8,10 @@ NAME='IPv6 Router Advertisement Daemon' DAEMON=/usr/sbin/radvd PIDFILE=${PIDFILE:-/run/${0##*/}.pid} DAEMON_OPTS+=("--pidfile=$PIDFILE") -[[ -r "$PIDFILE" ]] && read PID < "$PIDFILE" + +# check pid file +[[ -r "$PIDFILE" ]] && + read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID || unset PID case "$1" in start) |