summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-09-25 16:08:24 +0000
committerjperkin <jperkin>2014-09-25 16:08:24 +0000
commit0ad0e16fcea44a7d754f5b63e6163852261a8f7b (patch)
tree736ab06348fd4b20658a47695a59b0ebb6a7ade8
parent2bf5aa54d527d722f078ff20770621e3fc7ae811 (diff)
downloadpkgsrc-0ad0e16fcea44a7d754f5b63e6163852261a8f7b.tar.gz
Fix build on SunOS (needs -lsocket -lnsl and strings.h for bzero()).
-rw-r--r--net/paris-traceroute/Makefile4
-rw-r--r--net/paris-traceroute/distinfo3
-rw-r--r--net/paris-traceroute/patches/patch-src_Util.cc16
3 files changed, 21 insertions, 2 deletions
diff --git a/net/paris-traceroute/Makefile b/net/paris-traceroute/Makefile
index 91e71c1740c..6889ea5d8a9 100644
--- a/net/paris-traceroute/Makefile
+++ b/net/paris-traceroute/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/04/22 17:27:27 imil Exp $
+# $NetBSD: Makefile,v 1.2 2014/09/25 16:08:24 jperkin Exp $
#
DISTNAME= paris-traceroute-0.92-dev
@@ -16,6 +16,8 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
+LDFLAGS.SunOS+= -lsocket -lnsl
+
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
do-install:
diff --git a/net/paris-traceroute/distinfo b/net/paris-traceroute/distinfo
index 15a38e5b9fe..ea8242a2984 100644
--- a/net/paris-traceroute/distinfo
+++ b/net/paris-traceroute/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/04/22 17:27:27 imil Exp $
+$NetBSD: distinfo,v 1.2 2014/09/25 16:08:24 jperkin Exp $
SHA1 (paris-traceroute-0.92-dev.tar.gz) = 83096a5bbc58329633407db040ece2af21954f6b
RMD160 (paris-traceroute-0.92-dev.tar.gz) = 05fb22f0d8138950eb73ab69adf3c2d2cb50ff03
Size (paris-traceroute-0.92-dev.tar.gz) = 1063191 bytes
+SHA1 (patch-src_Util.cc) = a46a3318bf8fd5325bf62f1040370f525824e034
diff --git a/net/paris-traceroute/patches/patch-src_Util.cc b/net/paris-traceroute/patches/patch-src_Util.cc
new file mode 100644
index 00000000000..ca7f045c100
--- /dev/null
+++ b/net/paris-traceroute/patches/patch-src_Util.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Util.cc,v 1.1 2014/09/25 16:08:24 jperkin Exp $
+
+SunOS needs strings.h for bzero().
+
+--- src/Util.cc.orig 2007-06-06 09:21:19.000000000 +0000
++++ src/Util.cc
+@@ -5,6 +5,9 @@
+
+ #include <stdio.h>
+ #include <string.h>
++#ifdef __sun
++#include <strings.h>
++#endif
+ #include <unistd.h>
+ //#include <asm/types.h>
+ #include <sys/ioctl.h>