pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/dnstracer Fix build on Darwin and SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/481f371890cc
branches:  trunk
changeset: 363645:481f371890cc
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Jun 14 09:30:20 2017 +0000

description:
Fix build on Darwin and SunOS.

diffstat:

 net/dnstracer/Makefile               |   4 +++-
 net/dnstracer/distinfo               |   3 ++-
 net/dnstracer/patches/patch-Makefile |  15 +++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r adccd55b0479 -r 481f371890cc net/dnstracer/Makefile
--- a/net/dnstracer/Makefile    Wed Jun 14 09:29:36 2017 +0000
+++ b/net/dnstracer/Makefile    Wed Jun 14 09:30:20 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2016/07/09 06:38:41 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2017/06/14 09:30:20 jperkin Exp $
 
 DISTNAME=              dnstracer-1.10
 PKGREVISION=           2
@@ -17,6 +17,8 @@
 AUTO_MKDIRS=           yes
 USE_TOOLS+=            gzip tar perl:run pod2man
 
+CFLAGS.SunOS+=         -Du_int16_t=uint16_t -Du_int32_t=uint32_t
+LDFLAGS.Darwin+=       -lresolv
 LDFLAGS.SunOS+=                -lresolv -lsocket -lnsl
 
 # filename is .tar.bz2, but it seems .tar.gz format
diff -r adccd55b0479 -r 481f371890cc net/dnstracer/distinfo
--- a/net/dnstracer/distinfo    Wed Jun 14 09:29:36 2017 +0000
+++ b/net/dnstracer/distinfo    Wed Jun 14 09:30:20 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.7 2015/11/04 00:34:58 agc Exp $
+$NetBSD: distinfo,v 1.8 2017/06/14 09:30:20 jperkin Exp $
 
 SHA1 (dnstracer-1.10.tar.bz2) = b08c3b5d90226610931e49144b3e7fdf2d567d8a
 RMD160 (dnstracer-1.10.tar.bz2) = e5ab05ac6464e5aae4f3d7ce460ab7f4a9fbecf0
 SHA512 (dnstracer-1.10.tar.bz2) = 8174f92c5c1b300c1011a24f0cf2f16dc2b52a082729e52d1033a047e20d132d6005b89618ecbbd25cbdc1c95cdc0748cf666bdc56b769b240d8885469bc6e05
 Size (dnstracer-1.10.tar.bz2) = 19169 bytes
+SHA1 (patch-Makefile) = 30ee38e87cdeb7bb1f9ee73714a3d8305f229baa
 SHA1 (patch-dnstracer.c) = a21dbd54c3fd742c8650b95fcb4fd84c6540f537
diff -r adccd55b0479 -r 481f371890cc net/dnstracer/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dnstracer/patches/patch-Makefile      Wed Jun 14 09:30:20 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2017/06/14 09:30:20 jperkin Exp $
+
+Use pkgsrc flags.
+
+--- Makefile.orig      2008-06-11 12:51:35.000000000 +0000
++++ Makefile
+@@ -18,7 +18,7 @@ clean:
+       -rm dnstracer.o dnstracer dnstracer.8 dnstracer.core
+ 
+ dnstracer: dnstracer.c dnstracer-missing.h
+-      $(CC) -Wall -o dnstracer -DVERSION="${VERSION}" dnstracer.c
++      $(CC) $(CFLAGS) -o dnstracer $(LDFLAGS) -DVERSION="${VERSION}" dnstracer.c
+ 
+ dnstracer.8: dnstracer.pod
+       pod2man --release="${MANDATE}" --date="${MANDATE}" \



Home | Main Index | Thread Index | Old Index