summaryrefslogtreecommitdiff
path: root/community/nsd/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/nsd/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/nsd/PKGBUILD')
-rw-r--r--community/nsd/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/nsd/PKGBUILD b/community/nsd/PKGBUILD
new file mode 100644
index 000000000..ef11a6dc1
--- /dev/null
+++ b/community/nsd/PKGBUILD
@@ -0,0 +1,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
+}