Commit 2d56167a authored by Natanael Copa's avatar Natanael Copa

main/ldns: build drill and example tools

fixes #861
(cherry picked from commit 55d08e35)
parent b9ee7399
# 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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment