diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-14 21:28:44 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-14 21:29:07 +0100 |
commit | d6a87940dae4b014ad1000489fa784231abec5c5 (patch) | |
tree | 8ae4ffa3ed7db3d561cb55c114f2042f08db7d26 /main | |
parent | d63e3f0cc0a3d3a20e1a39b67b4ae6fcdfafec48 (diff) | |
download | aports-d6a87940dae4b014ad1000489fa784231abec5c5.tar.bz2 aports-d6a87940dae4b014ad1000489fa784231abec5c5.tar.xz |
main/dnsmasq: add subpackage -dnssec
Diffstat (limited to 'main')
-rw-r--r-- | main/dnsmasq/APKBUILD | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/main/dnsmasq/APKBUILD b/main/dnsmasq/APKBUILD index ece69d88d6..5fc4793454 100644 --- a/main/dnsmasq/APKBUILD +++ b/main/dnsmasq/APKBUILD @@ -6,10 +6,10 @@ pkgdesc="A lightweight DNS, DHCP, RA, TFTP and PXE server" url="http://www.thekelleys.org.uk/dnsmasq/" arch="all" license="GPL2" -depends="" -makedepends="linux-headers" +depends="!$pkgname-dnssec" +makedepends="linux-headers nettle-dev" install="$pkgname.pre-install $pkgname.pre-upgrade" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-dnssec" source="http://www.thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd @@ -19,7 +19,11 @@ builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" - make PREFIX=/usr CFLAGS="$CFLAGS" all || return 1 + + make CFLAGS="$CFLAGS" COPTS="-DHAVE_DNSSEC" all || return 1 + mv src/dnsmasq src/dnsmasq~dnssec || return 1 + + make CFLAGS="$CFLAGS" clean all } # dnsmasq doesn't provide any test suite (shame on them!), so just check that @@ -44,6 +48,20 @@ package() { install -d -m755 "$pkgdir"/etc/dnsmasq.d } +dnssec() { + pkgdesc="$pkgdesc with DNSSEC support" + depends="!$pkgname" + + cd "$builddir" + + install -D -m 755 src/dnsmasq~dnssec \ + "$subpkgdir"/usr/sbin/dnsmasq || return 1 + install -D -m 644 trust-anchors.conf \ + "$subpkgdir"/usr/share/$pkgname/trust-anchors.conf || return 1 + + cp -r "$pkgdir"/etc "$subpkgdir"/etc +} + sha512sums="c22627a8d864671096d3b3428ec4f879b513e1f1e7f79be3ab89444c56234e748fbfa6b6b4f9e521984fea95d363f4aa2ca6243f0dfc12ffb74bed0648ae21c5 dnsmasq-2.76.tar.gz 1ab7a44ac19bdaf15ca995e236409f9010b3092155add87cc6a919452423919e710525de7da8f01315729ce56db6ba2584567ba67c787d4c3d64a366572331c4 dnsmasq.initd 9a401bfc408bf1638645c61b8ca734bea0a09ef79fb36648ec7ef21666257234254bbe6c73c82cc23aa1779ddcdda0e6baa2c041866f16dfb9c4e0ba9133eab8 dnsmasq.confd |