summaryrefslogtreecommitdiff
path: root/community/nsd/PKGBUILD
blob: ef11a6dc1c74e53db619e645b9639c95e47b8954 (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
# $Id: PKGBUILD 43285 2011-03-24 13:35:27Z bisson $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Roberto Alsina <ralsina@kde.org>

pkgname=nsd
pkgver=3.2.8
pkgrel=1
pkgdesc='Authoritative only, high performance and simple DNS server'
arch=('i686' 'x86_64')
url='http://www.nlnetlabs.nl/nsd/'
license=('BSD')
depends=('openssl')
makedepends=('flex')
source=("http://www.nlnetlabs.nl/downloads/nsd/nsd-$pkgver.tar.gz")
sha1sums=('e8db690a09f53152f0dca6e4fbfabcc89003fced')

install=nsd.install

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/ --exec-prefix=/usr --datarootdir=/usr/share
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	install -d "$pkgdir"/{etc/rc.d,usr/share/{doc,licenses}/"$pkgname"}
	rm doc/differences.pdf
	install -m644 doc/* "$pkgdir"/usr/share/doc/"$pkgname"
	ln -s ../../doc/"$pkgname"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
	ln -s ../../usr/sbin/nsdc "$pkgdir"/etc/rc.d/nsd
}