summaryrefslogtreecommitdiff
path: root/community/ndisc6/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ndisc6/PKGBUILD
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ndisc6/PKGBUILD')
-rw-r--r--community/ndisc6/PKGBUILD46
1 files changed, 46 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: