diff options
author | tron <tron@pkgsrc.org> | 2010-01-09 19:44:05 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2010-01-09 19:44:05 +0000 |
commit | da2d459e469d4df6a1f0c884c8b1e81d0dbfb894 (patch) | |
tree | a7132c8066079f3e1c2b3d6e9b596f0af7d4362f | |
parent | ff551b2098b1d2d9edeac8f9fa5e2757bc6d83f4 (diff) | |
download | pkgsrc-da2d459e469d4df6a1f0c884c8b1e81d0dbfb894.tar.gz |
Remove a bogus cast which breaks the build with Sun Studio C.
While here set the license to "gnu-gpl-v2".
-rw-r--r-- | net/mtr/Makefile | 3 | ||||
-rw-r--r-- | net/mtr/distinfo | 3 | ||||
-rw-r--r-- | net/mtr/patches/patch-ac | 15 |
3 files changed, 19 insertions, 2 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile index 4d626d0fd68..821d3acde7d 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2009/09/12 22:07:56 tron Exp $ +# $NetBSD: Makefile,v 1.57 2010/01/09 19:44:05 tron Exp $ DISTNAME= mtr-0.75 CATEGORIES= net @@ -8,6 +8,7 @@ PKGREVISION= 2 MAINTAINER= sommerfeld@NetBSD.org HOMEPAGE= http://www.bitwizard.nl/mtr/ COMMENT= Traceroute and ping in a single graphical network diagnostic tool +LICENSE= gnu-gpl-v2 PKG_INSTALLATION_TYPES= overwrite pkgviews PKG_DESTDIR_SUPPORT= user-destdir diff --git a/net/mtr/distinfo b/net/mtr/distinfo index ff66b5206b6..d1b16fecce7 100644 --- a/net/mtr/distinfo +++ b/net/mtr/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.26 2008/11/05 19:58:25 wiz Exp $ +$NetBSD: distinfo,v 1.27 2010/01/09 19:44:05 tron Exp $ SHA1 (mtr-0.75.tar.gz) = d9d3f849e32dda8aa5a7a297c25053e5d8504b27 RMD160 (mtr-0.75.tar.gz) = d7df41c0c9b457eeff4034c9bc2f01456b8f6c68 Size (mtr-0.75.tar.gz) = 179376 bytes SHA1 (patch-aa) = 844cfa989ee103f3dbc3c1c96a7d631496a251a9 SHA1 (patch-ab) = 09ad79840272c6e3dc1cad74a3349a0ab6bfee40 +SHA1 (patch-ac) = 50fcafe1a0de3f285036882c79fdf61e03fbc045 diff --git a/net/mtr/patches/patch-ac b/net/mtr/patches/patch-ac new file mode 100644 index 00000000000..4ac8f79e307 --- /dev/null +++ b/net/mtr/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.5 2010/01/09 19:44:05 tron Exp $ + +Remove bogus cast which breaks the build with Sun Studio C. + +--- net.c.orig 2008-09-19 10:37:57.000000000 +0100 ++++ net.c 2010-01-09 19:34:47.000000000 +0000 +@@ -1205,7 +1205,7 @@ + switch ( saddr->sa_family ) { + case AF_INET: + sa4 = (struct sockaddr_in *) saddr; +- strncpy( strptr, inet_ntoa( (struct in_addr) sa4->sin_addr ), len - 1 ); ++ strncpy( strptr, inet_ntoa( sa4->sin_addr ), len - 1 ); + strptr[ len - 1 ] = '\0'; + return; + #ifdef ENABLE_IPV6 |