diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-02-19 18:11:38 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-02-19 18:11:38 +0000 |
commit | d3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b (patch) | |
tree | 2cc06ced4f3026b351ca1da6e5453de43b0913a5 /user/nsd/APKBUILD | |
parent | de3a1692418779d6a0f4e00cf90f3f72ca9113f0 (diff) | |
parent | fad97d18b3b4e56c0933b61a5801b060dcf99be5 (diff) | |
download | packages-d3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b.tar.gz packages-d3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b.tar.bz2 packages-d3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b.tar.xz packages-d3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b.zip |
Merge branch 'nsd' into 'master'
user/nsd: New package
See merge request !167
Diffstat (limited to 'user/nsd/APKBUILD')
-rw-r--r-- | user/nsd/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/user/nsd/APKBUILD b/user/nsd/APKBUILD new file mode 100644 index 000000000..388c902a1 --- /dev/null +++ b/user/nsd/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Luis Ressel <aranea@aixah.de> +# Maintainer: Luis Ressel <aranea@aixah.de> +pkgname=nsd +pkgver=4.1.26 +pkgrel=0 +pkgdesc="An authoritative only name server" +url="https://www.nlnetlabs.nl/projects/nsd/about/" +arch="all" +options="!check" # No test suite +license="BSD-3-Clause" +depends="" +makedepends="libevent-dev openssl-dev" +subpackages="$pkgname-doc $pkgname-openrc" +install="$pkgname.pre-install" +pkgusers="nsd" +pkggroups="nsd" +source="https://nlnetlabs.nl/downloads/$pkgname/$pkgname-$pkgver.tar.gz + nsd.confd + nsd.initd" + +build() { + cd "$builddir" + + # dnstap has yet unpackaged dependencies + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-pidfile=/run/nsd.pid \ + --disable-dnstap \ + --enable-bind8-stats \ + --enable-ratelimit \ + --enable-ratelimit-default-is-off \ + --enable-recvmmsg \ + --with-ssl=/usr \ + --with-libevent=/usr + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +openrc() { + default_openrc + install -Dm755 "$srcdir/nsd.initd" "$subpkgdir/etc/init.d/nsd" + install -Dm644 "$srcdir/nsd.confd" "$subpkgdir/etc/conf.d/nsd" +} + +sha512sums="49c07ad79e4e056bd519dad157a44d5cc55cd9a28723fd910159dc761d4ba56ef86cb7bf289dc5d1b363a49b999232bb7ec1afa737ca5c2659c4c9893e93494b nsd-4.1.26.tar.gz +f0ef1d3427e92650239d9d91402810c045fc9223e3f42ce86986422bf2039a0bcc02dffdfe1153d54de5c76c8f2bdc3e34fe341c65b41f2d333b02c00b5b0eae nsd.confd +139e52dec98792173f06d298574db0d0e6966a06af8a0a3069487beb01fd570c09d22322569b54bacdc43232dbfb99a8c497d4417d2bbfee88bcdd9d1b4d22f7 nsd.initd" |