summaryrefslogblamecommitdiff
path: root/user/nsd/APKBUILD
blob: 1ccd1014d938ed14fcb2e2504cbf96c76b79934e (plain) (tree)
1
2
3
4
5
                                            
                                            
           
            
        













                                                                       


                      
         

















                                                   







                                                                      
                                                                                                                                                              
                                                                                                                                            
# Contributor: Mira Ressel <aranea@aixah.de>
# Maintainer: Alyx Wolcott <alyx@leuhta.com>
pkgname=nsd
pkgver=4.6.1
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"

# secfixes:
#   4.2.2-r1:
#     - CVE-2019-13207

build() {
	# 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() {
	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="cab557a20cf8564cbf6e38405ca28b00baa6e14105527c3b16f49f57fed5e39cdb2bcd62999bad4aff2c69e0967bdba66a1eaa7b73a0d4d99d97535cc5860bfe  nsd-4.6.1.tar.gz
f0ef1d3427e92650239d9d91402810c045fc9223e3f42ce86986422bf2039a0bcc02dffdfe1153d54de5c76c8f2bdc3e34fe341c65b41f2d333b02c00b5b0eae  nsd.confd
139e52dec98792173f06d298574db0d0e6966a06af8a0a3069487beb01fd570c09d22322569b54bacdc43232dbfb99a8c497d4417d2bbfee88bcdd9d1b4d22f7  nsd.initd"