diff options
Diffstat (limited to 'main/ldns/APKBUILD')
-rw-r--r-- | main/ldns/APKBUILD | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/main/ldns/APKBUILD b/main/ldns/APKBUILD index 17fb7905e5..170c60109f 100644 --- a/main/ldns/APKBUILD +++ b/main/ldns/APKBUILD @@ -1,9 +1,9 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ldns pkgver=1.6.11 -pkgrel=0 -pkgdesc="A DNS library" +pkgrel=1 +pkgdesc="Lowlevel DNS(SEC) library" url="http://nlnetlabs.nl/projects/ldns/" arch="all" license="Custom" @@ -11,7 +11,7 @@ depends= depends_dev="openssl-dev" makedepends="$depends_dev perl" install="" -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-dev $pkgname-doc drill $pkgname-tools" source="http://nlnetlabs.nl/downloads/ldns/ldns-$pkgver.tar.gz" _builddir="$srcdir"/ldns-$pkgver @@ -33,13 +33,33 @@ build() { --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 + (cd drill && ./configure --prefix=/usr) + (cd examples && ./configure --prefix=/usr) + make || return 1 + make -C drill || return 1 + make -C examples || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + make -C drill DESTDIR="$pkgdir" install || return 1 + make -C examples DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 } +drill() { + pkgdesc="DNS(SEC) query tool ala dig" + mkdir -p "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/drill "$subpkgdir"/usr/bin/ +} + +tools() { + pkgdesc="ldsn example tools" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + md5sums="c55b592a679672281712c457fbb41eb5 ldns-1.6.11.tar.gz" |