diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-09-25 16:08:24 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-09-25 16:08:24 +0000 |
commit | 9da1d49f473e4cfea3d2e98d400cde0e9aed274d (patch) | |
tree | 736ab06348fd4b20658a47695a59b0ebb6a7ade8 /net | |
parent | ddfbcda6c6f8e31fd37b413217b39bb9dd0bf498 (diff) | |
download | pkgsrc-9da1d49f473e4cfea3d2e98d400cde0e9aed274d.tar.gz |
Fix build on SunOS (needs -lsocket -lnsl and strings.h for bzero()).
Diffstat (limited to 'net')
-rw-r--r-- | net/paris-traceroute/Makefile | 4 | ||||
-rw-r--r-- | net/paris-traceroute/distinfo | 3 | ||||
-rw-r--r-- | net/paris-traceroute/patches/patch-src_Util.cc | 16 |
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> |