# Contributor: Valery Kartel # Contributor: Matt Smith # Contributor: Leonardo Arena # Maintainer: Natanael Copa pkgname=nsd pkgver=4.1.8 pkgrel=0 pkgdesc="NSD is an authoritative only, high performance, simple and open source name server." url="http://www.nlnetlabs.nl/projects/nsd/" arch="all" license="BSD" depends="" depends_dev= makedepends="$depends_dev openssl-dev libevent-dev" install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-deinstall" subpackages="$pkgname-doc $pkgname-dbg" pkgusers="nsd" pkggroups="nsd" source="http://www.nlnetlabs.nl/downloads/$pkgname/$pkgname-$pkgver.tar.gz nsd.initd " _builddir="$srcdir/$pkgname-$pkgver" 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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 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 || return 1 rm -fr "$pkgdir"/var/run || return 1 } md5sums="3a510e8f2ef4762525e53982d7b487cb nsd-4.1.8.tar.gz 1ecd0e86dd3abd250df6a408a4e1cd6f nsd.initd" sha256sums="34bc9babfeca18cf3ea1d8d61f7a9b7fcc5253b4d5f78ddc9691244590554c82 nsd-4.1.8.tar.gz 223dd84d552d26f1930ff60960df4ebd0d3820f0cde758ab46ad6c5502e2cb6b nsd.initd" sha512sums="34f3ee7218fb8606674d9b58538ec7d2b713c2575969e0c6bc7de9c0c4da7e06d2ec1f2b84a5222b3ad8fe104d6358dd4131de9dfb07a56a01186fab52286063 nsd-4.1.8.tar.gz 0425f606bf102175adab6d198aeb692872576f9c0bfce11b9d9e4145595b4902e5ef3fe2c3ae5d832308f43282618494b8dd27eb76658e79df85cc7798008722 nsd.initd"