aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-11 10:29:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-11 10:29:30 +0000
commit55d08e35363c3ac6741723c20b3559002585ff6f (patch)
tree053880fe8f343e60c2712b82884c130dd27eb8b2 /main
parent4dafb4f192c8596ccf4d68bed7fa6373309ad321 (diff)
downloadaports-55d08e35363c3ac6741723c20b3559002585ff6f.tar.bz2
aports-55d08e35363c3ac6741723c20b3559002585ff6f.tar.xz
main/ldns: build drill and example tools
Diffstat (limited to 'main')
-rw-r--r--main/ldns/APKBUILD28
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"