diff options
author | Ahmed Bilal Khalid <ahmedbilal96@gmail.com> | 2019-08-25 13:09:49 +0500 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-26 15:01:10 -0300 |
commit | 95ff6546c9b01ed9857a2e1aa701d32e5add2664 (patch) | |
tree | 8c4dddbde7de28a84bf0f96f519d2fb110acdf22 | |
parent | 461de1ded90e26de29325952ad926623009ebd07 (diff) | |
download | aports-95ff6546c9b01ed9857a2e1aa701d32e5add2664.tar.bz2 aports-95ff6546c9b01ed9857a2e1aa701d32e5add2664.tar.xz |
testing/ndisc6: add rdnssd initscript
-rw-r--r-- | testing/ndisc6/APKBUILD | 16 | ||||
-rw-r--r-- | testing/ndisc6/rdnssd.initd | 20 |
2 files changed, 31 insertions, 5 deletions
diff --git a/testing/ndisc6/APKBUILD b/testing/ndisc6/APKBUILD index 39015e02e7..373a2d8fac 100644 --- a/testing/ndisc6/APKBUILD +++ b/testing/ndisc6/APKBUILD @@ -2,17 +2,19 @@ # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> pkgname=ndisc6 pkgver=1.0.4 -pkgrel=0 +pkgrel=1 pkgdesc="ndisc6 gathers a few diagnostic tools for IPv6 networks including" url="https://www.remlab.net/ndisc6" arch="all" license="GPL-2.0-or-later" depends="perl" makedepends="linux-headers" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-openrc" source="https://www.remlab.net/files/ndisc6/ndisc6-$pkgver.tar.bz2 - remove-undef-gnu-source.patch - " + remove-undef-gnu-source.patch + + rdnssd.initd + " options="suid" build() { @@ -31,7 +33,11 @@ check() { package() { make DESTDIR="$pkgdir" install + install -D -m755 "$srcdir"/rdnssd.initd \ + "$pkgdir"/etc/init.d/rdnssd } sha512sums="6f6cd939fb7079518db5c1bcd11353c722237d7735d229f9fd20d03e9f16b1ddf07c7c78c91364886148f2a82d6805eafe7e27da6b4e7c99b111603ec5fab842 ndisc6-1.0.4.tar.bz2 -d70c74f965308afbfc266071ec0d073d59cfd42f250e27c8f4f3e1c7b849a6bb9226407e74af30366d348e4213c7497791e8f2edc7b903703e611c036c250644 remove-undef-gnu-source.patch" +d70c74f965308afbfc266071ec0d073d59cfd42f250e27c8f4f3e1c7b849a6bb9226407e74af30366d348e4213c7497791e8f2edc7b903703e611c036c250644 remove-undef-gnu-source.patch +8342a2d64b35e8f1a2354f5c7b59a7c4a8b84333b47a52f1dc7e2c8c375c35ab3a0734e6b30d1c764d57c0dadb42916a1112451a14957ebe5605e98480dc619b rdnssd.initd +" diff --git a/testing/ndisc6/rdnssd.initd b/testing/ndisc6/rdnssd.initd new file mode 100644 index 0000000000..32b68c2dbc --- /dev/null +++ b/testing/ndisc6/rdnssd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + before net + use logger +} + +start() { + ebegin "Starting rdnssd" + start-stop-daemon --start --quiet --exec /usr/sbin/rdnssd -- -u root -r /etc/resolv.conf + eend $? +} + +stop() { + ebegin "Stopping rdnssd" + start-stop-daemon --stop --quiet --pidfile /run/rdnssd.pid +} |