# Contributor: Tyler A # Contributor: ungleich # Maintainer: Kevin Daudt pkgname=ndisc6 pkgver=1.0.7 pkgrel=0 pkgdesc="a small collection of useful tools for IPv6 networking" url="https://www.remlab.net/ndisc6" arch="all" license="GPL-2.0-or-later" makedepends="linux-headers perl" subpackages="$pkgname-doc rdnssd rdnssd-openrc:openrc:noarch $pkgname-dnssort::noarch" source="https://www.remlab.net/files/ndisc6/ndisc6-$pkgver.tar.bz2 rdnssd.initd rdnssd.resolvconf " build() { ./configure \ --build=$BUILD \ --host=$CHOST \ --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-nls \ --disable-suid-install make } check() { make check } package() { make DESTDIR="$pkgdir" install install -D -m755 "$srcdir"/rdnssd.initd "$pkgdir"/etc/init.d/rdnssd } dnssort() { pkgdesc="ndisc6 dnssort (perl)" install_if="$pkgname perl" depends=perl mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/dnssort "$subpkgdir"/usr/bin/ } rdnssd() { pkgdesc="autoconfigures the list of DNS servers through slateless IPv6 autoconfiguration" amove usr/sbin/rdnssd amove etc/rdnssd amove var/run/rdnssd install -D -m755 "$srcdir"/rdnssd.resolvconf \ "$subpkgdir"/etc/rdnssd/resolvconf } sha512sums=" cd3da7efc050b9f71a0d41336367c21936b37a2a040b58f01ccd5657a4cbd791b974bcd32e0725b325d9322974b0e721af9a6d9ef4693506e437c29a15d81526 ndisc6-1.0.7.tar.bz2 7225d35c258bc59c23850811583811e3f62936cc395a010e5e0d32734916dec5f7c434b0915075a26c4670bd218b2e47269b7a685a71eab185766ba614f6f3cf rdnssd.initd 7b23eafa78bd88d43d0910dbb6cb8d248c00425edb0826571c4d4f9129de33f07093dba4a42f05a549ef1bb9a0fd301716a30bf95ceea18d445e291f0169a444 rdnssd.resolvconf "