# Contributor: Valery Kartel # Contributor: Matt Smith # Contributor: Leonardo Arena # Contributor: Iggy Jackson # Maintainer: Natanael Copa pkgname=nsd pkgver=4.2.2 pkgrel=0 pkgdesc="Authoritative only, high performance and simple DNS server" url="https://www.nlnetlabs.nl/projects/nsd" arch="all" license="BSD-3-Clause" makedepends="openssl-dev libevent-dev" install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc" pkgusers="nsd" pkggroups="nsd" source="https://www.nlnetlabs.nl/downloads/nsd/nsd-$pkgver.tar.gz nsd.initd " build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --sbindir=/usr/sbin \ --mandir=/usr/share/man \ --with-user=nsd \ --with-pidfile=/var/run/nsd/nsd.pid \ --with-xfrdir=/var/db/nsd make } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -d "$pkgdir"/usr/share/doc/$pkgname cp -a "$builddir"/doc/* "$builddir"/contrib \ "$pkgdir"/usr/share/doc/$pkgname/ chown nsd.nsd "$pkgdir"/var/db/nsd rm -fr "$pkgdir"/var/run } sha512sums="43e2ee980a11ed0ad521cc9d8be1e2d29fa8ab552bdda043ffa7e5bc71cf07ad49319629f71e93dcf1dabd315f93bcfb9fd8b5847f27b125cf151fb4f63779b2 nsd-4.2.2.tar.gz 0425f606bf102175adab6d198aeb692872576f9c0bfce11b9d9e4145595b4902e5ef3fe2c3ae5d832308f43282618494b8dd27eb76658e79df85cc7798008722 nsd.initd"