Commit ef1b26f6 authored by Natanael Copa's avatar Natanael Copa

main/nsd: upgrade to 4.0.0

parent 5e0dc635
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=nsd
pkgver=3.2.16
pkgrel=2
pkgver=4.0.0
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"
makedepends="$depends_dev openssl-dev libevent-dev"
install="$pkgname.pre-install $pkgname.post-deinstall"
subpackages="$pkgname-doc"
pkgusers="nsd"
pkggroups="nsd"
source="http://www.nlnetlabs.nl/downloads/$pkgname/$pkgname-$pkgver.tar.gz
0010-stop-unlink-pid-error.patch
nsdc
nsd.initd
nsd.confd
"
_builddir="$srcdir/$pkgname-$pkgver"
......@@ -41,6 +38,8 @@ build() {
--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
}
......@@ -49,12 +48,8 @@ package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/nsdc \
"$pkgdir"/usr/sbin/nsdc || return 1
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/nsd || return 1
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/nsd || return 1
chown nsd "$pkgdir"/var/db/nsd || return 1
}
......@@ -71,18 +66,9 @@ doc() {
"$subpkgdir"/usr/share/man || return 1
}
md5sums="c16a845884851d26c85d5117f11e5f08 nsd-3.2.16.tar.gz
cc592572846b978a6f52130a8e518ab3 0010-stop-unlink-pid-error.patch
3aa94004a39319db89a329e9f24fb9da nsdc
4c0eef07caac9083aeeb9b15602d014d nsd.initd
37bd648259fdd919c79aaa0168b4423c nsd.confd"
sha256sums="15a5fd69ea80345eefced83a58b40e8f262a06ac4f7f83606d33033b167d6604 nsd-3.2.16.tar.gz
729e3897e77ad424b525b93b3df371f239999cf66b7f1271c925dee27721536d 0010-stop-unlink-pid-error.patch
5295b40d1f55635850837c003993015027f050567d396197875b9287183a05ad nsdc
e5cc18f8d8a14a6d37f6f536846991c294324cdf4575bf6cf77d7299b1fe0a9a nsd.initd
1f397b7b98e694787728462a3451433c314a7fc4afbc2d9cfd66dcbae1d793c0 nsd.confd"
sha512sums="361934717b1975a68c074e0f1fe324259a5939871a6e76f5d7d0535f02a129f0940b16fb544b111c8c8849439c75387e2f50223a2ef3442bac66a2be23bcd529 nsd-3.2.16.tar.gz
6cf28cf846fd1910b7ed2d143286efec5011486646cab0ea845633c68681ee5e4d2b7462aa6108673966341fc3e5e29c8f2b978981d88c5091855a06af7bdeb0 0010-stop-unlink-pid-error.patch
c7830033819f3b9e8b4a90ef05f018d5fb7752cc71b3b8ebfd7113302c9a3fc937422fe6a53c0af7608b5a078a001cd104db12383d6531082f51b41cde83daed nsdc
4fbbd137612ab793ab7b74c38cc557e801fc48a2d564258e015b67f4c7cc85092938bd82e3f45ec09de9996524426086f55fb3a2fd5f830ec580483962275f69 nsd.initd
356087670fd860f5cc9e2ebc7309fbd9771d2fa3b92b5086cc7b10af459a31a470921d38b30324d152d8de680f0b071ee077093c330dff060a0f1120b4a4d7e5 nsd.confd"
md5sums="87556b1f8deb3434fd9805d459a96328 nsd-4.0.0.tar.gz
86c343e8d2976dd120e7436e8d1d1717 nsd.initd"
sha256sums="62608a409d0f68c9d8d4595031b9de9130ac02efe39733be5dee40d5a90e991c nsd-4.0.0.tar.gz
947ef0ebeaa6ed97de6cb5bca0be95facffbc8d382366c583de06015d33b8157 nsd.initd"
sha512sums="75969e0b448a84e16431cbde1a693f4df59e3a036a89ad20cfbda28d31841c31240da3fd69125aae5f19578ef9c9ffc1ddfe8b9bc7877c2df1cef377675fd731 nsd-4.0.0.tar.gz
b2f2e0d4c6e1f3bcca0f46021ca71d19e924e576c6dd4390b1c15329a00e9249b9c001fed49ebe8aafa9428a671edb7664addf3e382a9bf5bdd05c82f3b5e54a nsd.initd"
#
# Specify nsd options here.
#
# configuration file default
configfile="/etc/nsd/nsd.conf"
# The directory where NSD binaries reside
sbindir="/usr/sbin"
# how verbose is zonec run. Specify Nothing (empty string), -v or -vv.
ZONEC_VERBOSE=-v
# how patch is done. Specify 1 (with use of textfiles, default) or 0 (without)
PATCH_STYLE=1
This diff is collapsed.
#!/bin/sh
#
# nsdc replacement script by Matt Smith <msmith@alpinelinux.org>
#
usage() {
echo "Usage: `basename $0` {start|stop|reload|rebuild|restart|"
echo " running|update|notify|patch}"
echo "commands:"
echo " start Start nsd server."
echo " stop Stop nsd server."
echo " reload Nsd server reloads database file."
echo " rebuild Compile database file from zone files."
echo " restart Stop the nsd server and start it again."
echo " running Prints message and exit nonzero if server not running."
echo " update Try to update all slave zones hosted on this server."
echo " notify Send notify messages to all secondary servers."
echo " patch Merge zone transfer changes back to zone files."
}
if [ $# -eq 0 ]; then
usage
else
case "$1" in
"-h"|"--help")
usage;;
*)
/etc/init.d/nsd $*
esac
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment