blob: c6f3e1012a40b39028dd6ac0a31dee50a68de3ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nsd
pkgver=4.1.9
pkgrel=1
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="9ac1d5ba51351d3d98b7de765439af57 nsd-4.1.9.tar.gz
1ecd0e86dd3abd250df6a408a4e1cd6f nsd.initd"
sha256sums="b811224d635331de741f1723aefc41adda0a0a3a499ec310aa01dd3b4b95c8f2 nsd-4.1.9.tar.gz
223dd84d552d26f1930ff60960df4ebd0d3820f0cde758ab46ad6c5502e2cb6b nsd.initd"
sha512sums="4602dfd07f41dca80fb3b2af471305ad2baba45f7aa294bd3e50d673ec6cc3b1170b410a425796cef52b3af6eea6282dcb00c1f21d5642b0962b3d111dade940 nsd-4.1.9.tar.gz
0425f606bf102175adab6d198aeb692872576f9c0bfce11b9d9e4145595b4902e5ef3fe2c3ae5d832308f43282618494b8dd27eb76658e79df85cc7798008722 nsd.initd"
|