From d63c899498bc18cec300c008bb7748da57d30d6e Mon Sep 17 00:00:00 2001
From: maxice8 <30738253+maxice8@users.noreply.github.com>
Date: Sat, 21 Oct 2017 04:37:20 -0200
Subject: [PATCH] dnstracer: update to 1.10. (#8408)

---
 srcpkgs/dnstracer/template | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/dnstracer/template b/srcpkgs/dnstracer/template
index 0efc684956..f71827d3d7 100644
--- a/srcpkgs/dnstracer/template
+++ b/srcpkgs/dnstracer/template
@@ -1,15 +1,23 @@
 # Template file for 'dnstracer'
 pkgname=dnstracer
-version=1.9
+version=1.10
 revision=1
-build_style=gnu-configure
+wrksrc="$pkgname"
+build_style=gnu-makefile
+hostmakedepends="perl"
 short_desc="Trace a chain of DNS servers to the source"
 maintainer="Diogo Leal <diogo@diogoleal.com>"
 license="BSD"
 homepage="http://www.mavetju.org/unix/dnstracer.php"
-distfiles="http://www.mavetju.org/download/dnstracer-${version}.tar.gz"
-checksum=2ebc08af9693ba2d9fa0628416f2d8319ca1627e41d64553875d605b352afe9c
+distfiles="http://www.mavetju.org/download/dnstracer-${version}.tar.bz2"
+checksum=64cda0ed15ef598a38ec72a96a356e3d10b7f822fc75928115eae96a65ae2b21
 
-post_install() {
+pre_build() {
+	sed -i 's|-Wall|-Wall $(CFLAGS) $(LDFLAGS)|g' Makefile
+}
+
+do_install() {
+	vbin dnstracer
+	vman dnstracer.8
 	vlicense LICENSE
 }