summaryrefslogtreecommitdiff
path: root/net/dnstracer
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-02-26 18:17:39 +0000
committerwiedi <wiedi@pkgsrc.org>2014-02-26 18:17:39 +0000
commit704fec3cc27bd9a480c1ea0c4659c39e92686ba6 (patch)
tree2e83bccd991e64db61d0628c062fe004800a17d8 /net/dnstracer
parent8113c96f0680a01a53d77b17ffdd91acbc30e9d7 (diff)
downloadpkgsrc-704fec3cc27bd9a480c1ea0c4659c39e92686ba6.tar.gz
Link network libs and always use the gethostbyname2 wrapper on SunOS
Diffstat (limited to 'net/dnstracer')
-rw-r--r--net/dnstracer/Makefile4
-rw-r--r--net/dnstracer/distinfo3
-rw-r--r--net/dnstracer/patches/patch-dnstracer.c14
3 files changed, 19 insertions, 2 deletions
diff --git a/net/dnstracer/Makefile b/net/dnstracer/Makefile
index 03872ef7138..76cbccdd835 100644
--- a/net/dnstracer/Makefile
+++ b/net/dnstracer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2012/10/23 17:18:18 asau Exp $
+# $NetBSD: Makefile,v 1.12 2014/02/26 18:17:39 wiedi Exp $
DISTNAME= dnstracer-1.9
CATEGORIES= net
@@ -12,4 +12,6 @@ USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_FEATURES+= inet6
+LDFLAGS.SunOS+= -lresolv -lsocket -lnsl
+
.include "../../mk/bsd.pkg.mk"
diff --git a/net/dnstracer/distinfo b/net/dnstracer/distinfo
index eabbb8d0153..9b4badffc8b 100644
--- a/net/dnstracer/distinfo
+++ b/net/dnstracer/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2012/02/06 14:20:24 shattered Exp $
+$NetBSD: distinfo,v 1.4 2014/02/26 18:17:39 wiedi Exp $
SHA1 (dnstracer-1.9.tar.gz) = b8c60b281c0eb309acd1b1551c51cccb951685c7
RMD160 (dnstracer-1.9.tar.gz) = deb18bce06d2524c6ef2df2d8bf6f7730b3be45e
Size (dnstracer-1.9.tar.gz) = 130884 bytes
+SHA1 (patch-dnstracer.c) = 29f30b307feee65a119bb950f68302c58e291924
diff --git a/net/dnstracer/patches/patch-dnstracer.c b/net/dnstracer/patches/patch-dnstracer.c
new file mode 100644
index 00000000000..a1d1bcd73d2
--- /dev/null
+++ b/net/dnstracer/patches/patch-dnstracer.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-dnstracer.c,v 1.1 2014/02/26 18:17:39 wiedi Exp $
+There is no gethostbyname2 on SunOS, always use the wrapper
+
+--- dnstracer.c.orig 2008-02-09 12:47:37.000000000 +0000
++++ dnstracer.c
+@@ -66,7 +66,7 @@
+ #define DEFAULT_QUERYTYPE ns_t_a
+ #define DEFAULT_NOIPV6 0
+
+-#ifdef NOIPV6
++#if defined(NOIPV6) || defined(__sun)
+ #define gethostbyname2(a, b) gethostbyname(a)
+ #endif
+