summaryrefslogtreecommitdiff
path: root/community/ldns/PKGBUILD
blob: df63e9f89a1e3dc2770bc982ecb062468b05aafa (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
35
36
37
# 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
pkgrel=1
pkgdesc='Fast DNS library with DNSSEC support, including tools such as Drill'
arch=('i686' 'x86_64')
url='http://www.nlnetlabs.nl/projects/ldns/'
license=('custom:BSD')
depends=('openssl')
makedepends=('libpcap')
optdepends=('libpcap: ldns-dpa tool')
options=('!libtool')
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha1sums=('7798a32c6f50a4fb7d56ddf772163dc1cb79c1a4')

build() {
	_conf='--prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-static=no --disable-rpath'

	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure $_conf
	make
	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
}