summaryrefslogtreecommitdiff
path: root/community/nsd/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/nsd/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/nsd/PKGBUILD')
-rw-r--r--community/nsd/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/nsd/PKGBUILD b/community/nsd/PKGBUILD
new file mode 100644
index 000000000..797a82a98
--- /dev/null
+++ b/community/nsd/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 91246 2013-05-20 14:50:30Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Roberto Alsina <ralsina@kde.org>
+
+pkgname=nsd
+pkgver=3.2.15
+pkgrel=2
+pkgdesc='Authoritative only, high performance and simple DNS server'
+url='http://www.nlnetlabs.nl/nsd/'
+license=('BSD')
+depends=('openssl')
+makedepends=('flex')
+arch=('i686' 'x86_64')
+source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'service')
+sha1sums=('e31a81ab7877422b34e1f163f9509cd93f395664'
+ 'f35ecb887e86ae0a54ac70aef5a7577fc8761877')
+
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/ \
+ --sbindir=/usr/bin \
+ --datarootdir=/usr/share \
+ --with-pidfile=/run/nsd.pid \
+ --enable-ratelimit
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/nsd.service
+ rm doc/differences.pdf
+ install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
+ install -m644 doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"
+ ln -s ../../doc/"${pkgname}"/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}