diff options
Diffstat (limited to 'community/ndisc6')
-rw-r--r-- | community/ndisc6/PKGBUILD | 46 | ||||
-rw-r--r-- | community/ndisc6/ndisc6.install | 8 | ||||
-rw-r--r-- | community/ndisc6/rdnssd.service | 12 |
3 files changed, 66 insertions, 0 deletions
diff --git a/community/ndisc6/PKGBUILD b/community/ndisc6/PKGBUILD new file mode 100644 index 000000000..99bbe8325 --- /dev/null +++ b/community/ndisc6/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 90526 2013-05-13 00:18:50Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Chris Brannon <chris@the-brannons.com> +# Contributor: Mark Smith <markzzzsmith@yahoo.com.au> + +pkgname=ndisc6 +pkgver=1.0.2 +pkgrel=7 +pkgdesc='Collection of IPv6 networking utilities' +arch=('i686' 'x86_64') +url='http://www.remlab.net/ndisc6/' +license=('GPL') +depends=('glibc' 'perl') +makedepends=('glibc' 'gcc') +options=(!emptydirs) +install=$pkgname.install +source=("http://www.remlab.net/files/ndisc6/$pkgname-$pkgver.tar.bz2" + 'rdnssd.service') +md5sums=('50cb4c19606cf6ff2b7388e71832f579' + '88a290cbcf51ac5e10ed5f995a8ba4b9') + +prepare() { + # patch invalid path + sed -ri 's,PATH=/sbin:/bin,PATH=/sbin:/bin:/usr/sbin:/usr/bin,' \ + $pkgname-$pkgver/rdnssd/merge-hook.in +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --sysconfdir=/etc + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 "$srcdir/rdnssd.service" "$pkgdir/usr/lib/systemd/system/rdnssd.service" + install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" + echo 'd /run/rdnssd 0755 nobody root' > "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/ndisc6/ndisc6.install b/community/ndisc6/ndisc6.install new file mode 100644 index 000000000..fb1d5c926 --- /dev/null +++ b/community/ndisc6/ndisc6.install @@ -0,0 +1,8 @@ +#!/bin/sh + +# arg 1: the new package version +post_install() { + systemd-tmpfiles --create ndisc6.conf +} + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/community/ndisc6/rdnssd.service b/community/ndisc6/rdnssd.service new file mode 100644 index 000000000..6fdf91f2d --- /dev/null +++ b/community/ndisc6/rdnssd.service @@ -0,0 +1,12 @@ +[Unit] +Description=RDNSS daemon for Linux +Before=network.target +Requires=network.target + +[Service] +Type=forking +PIDFile=/run/rdnssd.pid +ExecStart=/usr/bin/rdnssd -H /etc/rdnssd/merge-hook + +[Install] +WantedBy=multi-user.target |