summaryrefslogtreecommitdiff
path: root/testing/ldns/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-24 00:01:27 +0000
committerroot <root@rshg054.dnsready.net>2012-04-24 00:01:27 +0000
commit264f2be5f341b9946381d84ebaffc95f9199990b (patch)
tree21ee2b5c6a55b957afc2674f59d66a33635e5705 /testing/ldns/PKGBUILD
parentf81dfba1507be388ae1b2c2437fccad46aadc950 (diff)
Tue Apr 24 00:01:27 UTC 2012
Diffstat (limited to 'testing/ldns/PKGBUILD')
-rw-r--r--testing/ldns/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/ldns/PKGBUILD b/testing/ldns/PKGBUILD
new file mode 100644
index 000000000..d113c41ec
--- /dev/null
+++ b/testing/ldns/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 156650 2012-04-22 08:06:30Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: mathieui <mathieui@mathieui.net>
+# Contributor: jiribb <jiribb@gmail.com>
+
+pkgname=ldns
+pkgver=1.6.12
+pkgrel=2
+pkgdesc='Fast DNS library supporting recent RFCs'
+url='http://www.nlnetlabs.nl/projects/ldns/'
+license=('custom:BSD')
+arch=('i686' 'x86_64')
+options=('!libtool')
+depends=('openssl' 'dnssec-anchors')
+optdepends=('libpcap: ldns-dpa tool')
+makedepends=('libpcap')
+source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'Makefile.patch')
+sha1sums=('1d61df0f666908551d5a62768f77d63e727810aa'
+ '01bce260e9639d9cd26109a689dddf2498e5026a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i ../Makefile.patch
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static=no \
+ --disable-rpath \
+ --with-drill \
+ --with-examples \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}