pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/mtr Update "mtr" package to version 0.74. Changes ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/249e83e889bd
branches:  trunk
changeset: 546229:249e83e889bd
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Aug 24 12:36:34 2008 +0000

description:
Update "mtr" package to version 0.74. Changes since version 0.72:
- KES reported a build problem. Turns out I need to install gtk-1.2
  on my development sytem, otherwise my release script causes the
  build to break.
- changed some docs to advertise the new mailing list.
- added documentation for the Mac OS X compilation problem.
- added -Wno-pointer-sign to the compiler options.
- Nico Lichtmaier's cleanup-gtk patch. (now mtr uses a more modern
  dialect of gtk).
- as possible after opening the sockets, it still had some
  sprintf calls, which have now been converted into snprintf.

diffstat:

 net/mtr/Makefile         |   5 ++---
 net/mtr/distinfo         |  12 +++++-------
 net/mtr/patches/patch-aa |  21 ---------------------
 net/mtr/patches/patch-ab |  46 +++++++---------------------------------------
 net/mtr/patches/patch-ac |  45 ---------------------------------------------
 5 files changed, 14 insertions(+), 115 deletions(-)

diffs (179 lines):

diff -r 24cc738f0413 -r 249e83e889bd net/mtr/Makefile
--- a/net/mtr/Makefile  Sun Aug 24 10:21:33 2008 +0000
+++ b/net/mtr/Makefile  Sun Aug 24 12:36:34 2008 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.50 2008/08/10 05:02:23 obache Exp $
+# $NetBSD: Makefile,v 1.51 2008/08/24 12:36:34 tron Exp $
 
-DISTNAME=      mtr-0.72
-PKGREVISION=   1
+DISTNAME=      mtr-0.74
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.bitwizard.nl/mtr/
 
diff -r 24cc738f0413 -r 249e83e889bd net/mtr/distinfo
--- a/net/mtr/distinfo  Sun Aug 24 10:21:33 2008 +0000
+++ b/net/mtr/distinfo  Sun Aug 24 12:36:34 2008 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.23 2008/05/22 12:10:49 tron Exp $
+$NetBSD: distinfo,v 1.24 2008/08/24 12:36:34 tron Exp $
 
-SHA1 (mtr-0.72.tar.gz) = afc26c9e8a30eba7ca92ba68d4489b0c9c07977d
-RMD160 (mtr-0.72.tar.gz) = 69843b82fb2de2b2a597c21a62d8eb9473df31b6
-Size (mtr-0.72.tar.gz) = 295845 bytes
-SHA1 (patch-aa) = 3db4ccac08fadcf2fcf75753efc165c6d92a97c3
-SHA1 (patch-ab) = 3923fcd252bdcd9475e937fb78d1d7e5ec607180
-SHA1 (patch-ac) = a34b91ff6ff7a89bea4fc8b262d7604017ff6fad
+SHA1 (mtr-0.74.tar.gz) = 33038f02872827ac0f3f10d4b7a86d02c76459a5
+RMD160 (mtr-0.74.tar.gz) = 38bba2bee80f2ae5180354e18f025d71506f3739
+Size (mtr-0.74.tar.gz) = 178587 bytes
+SHA1 (patch-ab) = 6736da4136b3a4483330973b5cd05668542fe268
diff -r 24cc738f0413 -r 249e83e889bd net/mtr/patches/patch-aa
--- a/net/mtr/patches/patch-aa  Sun Aug 24 10:21:33 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2006/10/03 19:15:20 wiz Exp $
-
---- configure.orig     2006-09-29 19:41:56.000000000 +0000
-+++ configure
-@@ -7204,6 +7204,7 @@ _ACEOF
-   LIBS="-lresolv $LIBS"
- 
- else
-+  LIBS="$ac_check_lib_save_LIBS"
- 
- echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
- echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
-@@ -7287,8 +7288,6 @@ fi
- 
- fi
- 
--LIBS="$LIBS -lresolv"
--
- echo "$as_me:$LINENO: checking for herror" >&5
- echo $ECHO_N "checking for herror... $ECHO_C" >&6
- if test "${ac_cv_func_herror+set}" = set; then
diff -r 24cc738f0413 -r 249e83e889bd net/mtr/patches/patch-ab
--- a/net/mtr/patches/patch-ab  Sun Aug 24 10:21:33 2008 +0000
+++ b/net/mtr/patches/patch-ab  Sun Aug 24 12:36:34 2008 +0000
@@ -1,40 +1,8 @@
-$NetBSD: patch-ab,v 1.14 2006/10/03 19:15:20 wiz Exp $
+$NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $
 
---- dns.c.orig 2006-03-26 06:54:11.000000000 +0000
-+++ dns.c
-@@ -28,13 +28,20 @@
- #include <sys/time.h>
- #include <sys/select.h>
- #include <sys/stat.h>
--#include <sys/errno.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
-+#ifdef __APPLE__
-+#include <arpa/nameser8_compat.h>
-+#else
- #include <arpa/nameser.h>
-+#endif
- #include <netdb.h>
-+#ifdef __APPLE__
-+#include <resolv8_compat.h>
-+#else
- #include <resolv.h>
-+#endif
- #include <unistd.h>
- #include <fcntl.h>
- #include <ctype.h>
-@@ -54,9 +61,6 @@ extern char *sys_errlist[];
- #define strerror(errno) (((errno) >= 0 && (errno) < sys_nerr) ? sys_errlist[errno] : "unlisted error")
- #endif
- 
--/*  Hmm, it seems Irix requires this  */
--extern int errno;
--
- extern int af;
- 
- /* Defines */
-@@ -294,6 +298,17 @@ char nullstring[] = "";
+--- dns.c.orig 2008-08-19 18:07:33.000000000 +0100
++++ dns.c      2008-08-24 13:22:55.000000000 +0100
+@@ -310,6 +310,17 @@
  
  int use_dns = 1;
  
@@ -52,7 +20,7 @@
  
  /* Code */
  #ifdef CorruptCheck
-@@ -468,14 +483,14 @@ void dns_open(void)
+@@ -484,14 +495,14 @@
  {
    int option,i;
  
@@ -72,7 +40,7 @@
    resfd = socket(AF_INET, SOCK_DGRAM, 0);
    if (resfd == -1) {
      fprintf(stderr,"Unable to allocate socket for nameserver communication: %s\n",
-@@ -858,17 +873,17 @@ void dorequest(char *s,int type,word id)
+@@ -874,17 +885,17 @@
  {
    packetheader *hp;
    int r,i;
@@ -94,7 +62,7 @@
                 sizeof(struct sockaddr));
  }
  
-@@ -1224,18 +1239,18 @@ void dns_ack(void)
+@@ -1240,18 +1251,18 @@
      /* Check to see if this server is actually one we sent to */
      if ( addrcmp( (void *) &(from4->sin_addr), (void *) &localhost,
                    (int) AF_INET ) == 0 ) {
diff -r 24cc738f0413 -r 249e83e889bd net/mtr/patches/patch-ac
--- a/net/mtr/patches/patch-ac  Sun Aug 24 10:21:33 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2008/05/22 12:10:49 tron Exp $
-
---- split.c.orig       2005-01-11 08:34:07.000000000 +0000
-+++ split.c    2008-05-22 13:07:48.000000000 +0100
-@@ -100,24 +100,28 @@
-     addr = net_addr(at);
-     
-     if( addrcmp( (void *) addr, (void *) &unspec_addr, af ) != 0 ) {
-+      int bytes;
-       name = dns_lookup(addr);
-       if(name != NULL) {
-       /* May be we should test name's length */
--      sprintf(newLine, "%s %d %d %d %d %d %d", name,
--              net_loss(at),
--              net_returned(at), net_xmit(at),
--              net_best(at) /1000, net_avg(at)/1000, 
--              net_worst(at)/1000);
-+      bytes = snprintf(newLine, sizeof(newLine), "%s %d %d %d %d %d %d",
-+                       name,
-+                       net_loss(at),
-+                       net_returned(at), net_xmit(at),
-+                       net_best(at) /1000, net_avg(at)/1000, 
-+                       net_worst(at)/1000);
-       } else {
--      sprintf(newLine, "%s %d %d %d %d %d %d", 
--              strlongip( addr ),
--              net_loss(at),
--              net_returned(at), net_xmit(at),
--              net_best(at) /1000, net_avg(at)/1000, 
--              net_worst(at)/1000);
-+      bytes = snprintf(newLine, sizeof(newLine), "%s %d %d %d %d %d %d", 
-+                       strlongip( addr ),
-+                       net_loss(at),
-+                       net_returned(at), net_xmit(at),
-+                       net_best(at) /1000, net_avg(at)/1000, 
-+                       net_worst(at)/1000);
-       }
-+      if (bytes < 0 || bytes >= sizeof(newLine))
-+        strcpy(newLine, "???");
-     } else {
--      sprintf(newLine, "???");
-+      strcpy(newLine, "???");
-     }
- 
-     if (strcmp(newLine, Lines[at]) == 0) {



Home | Main Index | Thread Index | Old Index