summaryrefslogtreecommitdiff
path: root/community/ldns/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ldns/PKGBUILD')
-rw-r--r--community/ldns/PKGBUILD30
1 files changed, 22 insertions, 8 deletions
diff --git a/community/ldns/PKGBUILD b/community/ldns/PKGBUILD
index df63e9f89..6e28bc429 100644
--- a/community/ldns/PKGBUILD
+++ b/community/ldns/PKGBUILD
@@ -1,9 +1,11 @@
+# $Id: PKGBUILD 56190 2011-10-03 10:19:02Z bisson $
+
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: jiribb <jiribb@gmail.com> and <mathieui> <mathieui@mathieui.net>
# Contributor: mathieui <mathieui@mathieui.net>
pkgname=ldns
-pkgver=1.6.10
+pkgver=1.6.11
pkgrel=1
pkgdesc='Fast DNS library with DNSSEC support, including tools such as Drill'
arch=('i686' 'x86_64')
@@ -14,24 +16,36 @@ makedepends=('libpcap')
optdepends=('libpcap: ldns-dpa tool')
options=('!libtool')
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('7798a32c6f50a4fb7d56ddf772163dc1cb79c1a4')
+sha1sums=('2c4537eee39a1af63e8dde4f35498ce78c968c1f')
build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
_conf='--prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-static=no --disable-rpath'
+ _tmp="$(mktemp -d)"
- cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure $_conf
+ ./configure ${_conf}
+ make
+ make DESTDIR="${_tmp}" install
+
+ cd drill
+ ./configure ${_conf} --with-ldns="${_tmp}"
+ make
+
+ cd ../examples
+ ./configure ${_conf} --with-ldns="${_tmp}"
make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd drill
- ./configure $_conf --with-ldns="${pkgdir}"
- make
make DESTDIR="${pkgdir}" install
cd ../examples
- ./configure $_conf --with-ldns="${pkgdir}"
- make
make DESTDIR="${pkgdir}" install
}