# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dnstracer
pkgver=1.9
pkgrel=0
pkgdesc="Trace a chain of DNS servers to the source"
url="http://www.mavetju.org/unix/dnstracer.php"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev libtool automake autoconf"
install=""
subpackages="$pkgname-doc"
source="http://www.mavetju.org/download/$pkgname-$pkgver.tar.gz
	configure.patch"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--enable-ipv6
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="7db73ce3070119c98049a617fe52ea84  dnstracer-1.9.tar.gz
adfaf69d1511a03bc0bcb951735770c0  configure.patch"
sha256sums="2ebc08af9693ba2d9fa0628416f2d8319ca1627e41d64553875d605b352afe9c  dnstracer-1.9.tar.gz
09cd00d8ebd68c65121d4aff6fa69693f83bb370eaf343f88561d94ec1baf762  configure.patch"
sha512sums="e69fe772062ff315ff3148c26df78bd41c75d11dcfa6431f1e9374e6069182bd80826b22dc116011d975838d9527913d46edd78de049edd25e3ac9247d5f3473  dnstracer-1.9.tar.gz
ad27c174bcbec9aceaf539646c4c77d9f2ef8e34c39e251b2b467ed2964f3d1fce6a3e8cbca01cb2e3784db8bb5b53e96fe0696bca3bd2d3fe074a2dea343fba  configure.patch"
