pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/mtr Update to 0.78: Inclusion of two pkgsrc patches.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e7ebd4c66ad
branches:  trunk
changeset: 576364:1e7ebd4c66ad
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jun 08 10:17:43 2010 +0000

description:
Update to 0.78: Inclusion of two pkgsrc patches.

diffstat:

 net/mtr/Makefile         |   4 +-
 net/mtr/distinfo         |  10 ++---
 net/mtr/patches/patch-ab |  89 ------------------------------------------------
 net/mtr/patches/patch-ac |  15 --------
 4 files changed, 6 insertions(+), 112 deletions(-)

diffs (140 lines):

diff -r 628c7c69aa6b -r 1e7ebd4c66ad net/mtr/Makefile
--- a/net/mtr/Makefile  Tue Jun 08 10:15:51 2010 +0000
+++ b/net/mtr/Makefile  Tue Jun 08 10:17:43 2010 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.58 2010/06/05 14:49:51 wiz Exp $
+# $NetBSD: Makefile,v 1.59 2010/06/08 10:17:43 wiz Exp $
 
-DISTNAME=      mtr-0.77
+DISTNAME=      mtr-0.78
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.bitwizard.nl/mtr/
 
diff -r 628c7c69aa6b -r 1e7ebd4c66ad net/mtr/distinfo
--- a/net/mtr/distinfo  Tue Jun 08 10:15:51 2010 +0000
+++ b/net/mtr/distinfo  Tue Jun 08 10:17:43 2010 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.29 2010/06/05 14:50:12 wiz Exp $
+$NetBSD: distinfo,v 1.30 2010/06/08 10:17:43 wiz Exp $
 
-SHA1 (mtr-0.77.tar.gz) = 67461d021860fe5f3553ea9f00823f887a0ec389
-RMD160 (mtr-0.77.tar.gz) = 6e84bdf166861145a01a202ece0ec17c82111272
-Size (mtr-0.77.tar.gz) = 272517 bytes
+SHA1 (mtr-0.78.tar.gz) = d4e95e9f65b992f3a78bf2275bd94216eaa1efef
+RMD160 (mtr-0.78.tar.gz) = d2388ae8dd2a89809a8a1030dcc5b8554fe01cf0
+Size (mtr-0.78.tar.gz) = 272361 bytes
 SHA1 (patch-aa) = fcee60ebcdc1b532439aa893f5d710f95f563e1c
-SHA1 (patch-ab) = 67699e8d4a8eb6d63a918e298960e7e8e105de40
-SHA1 (patch-ac) = 50fcafe1a0de3f285036882c79fdf61e03fbc045
diff -r 628c7c69aa6b -r 1e7ebd4c66ad net/mtr/patches/patch-ab
--- a/net/mtr/patches/patch-ab  Tue Jun 08 10:15:51 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-$NetBSD: patch-ab,v 1.17 2010/06/05 14:49:51 wiz Exp $
-
---- dns.c.orig 2009-11-27 07:49:15.000000000 +0000
-+++ dns.c
-@@ -309,6 +309,17 @@ char nullstring[] = "";
- 
- int use_dns = 1;
- 
-+#ifdef res_ninit
-+#define RES_INIT() res_ninit(&myres);
-+#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \
-+    res_nmkquery(&myres, a, b, c, d, e, f, g, h, i)
-+struct __res_state myres;
-+#else
-+#define RES_INIT() res_init();
-+#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \
-+    res_mkquery(a, b, c, d, e, f, g, h, i)
-+#define myres _res
-+#endif
- 
- /* Code */
- #ifdef CorruptCheck
-@@ -484,14 +495,14 @@ void dns_open(void)
-   int option,i;
- 
-   if (!dns) return;
--  res_init();
--  if (!_res.nscount) {
-+  RES_INIT();
-+  if (!myres.nscount) {
-     fprintf(stderr,"No nameservers defined.\n");
-     exit(-1);
-   }
--  _res.options|= RES_RECURSE | RES_DEFNAMES | RES_DNSRCH;
--  for (i = 0;i < _res.nscount;i++)
--    _res.nsaddr_list[i].sin_family = AF_INET;
-+  myres.options|= RES_RECURSE | RES_DEFNAMES | RES_DNSRCH;
-+  for (i = 0;i < myres.nscount;i++)
-+    myres.nsaddr_list[i].sin_family = AF_INET;
-   resfd = socket(AF_INET, SOCK_DGRAM, 0);
-   if (resfd == -1) {
-     fprintf(stderr,"Unable to allocate socket for nameserver communication: %s\n",
-@@ -874,17 +885,17 @@ void dorequest(char *s,int type,word id)
- {
-   packetheader *hp;
-   int r,i;
--  int buf[(MaxPacketsize/sizeof (int))+1];
-+  unsigned char buf[MaxPacketsize];
- 
--  r = res_mkquery(QUERY,s,C_IN,type,NULL,0,NULL,(unsigned char*)buf,MaxPacketsize);
-+  r = RES_MKQUERY(QUERY,s,C_IN,type,NULL,0,NULL,(unsigned char*)buf,MaxPacketsize);
-   if (r == -1) {
-     restell("Resolver error: Query too large.");
-     return;
-   }
-   hp = (packetheader *)buf;
-   hp->id = id;        /* htons() deliberately left out (redundant) */
--  for (i = 0;i < _res.nscount;i++)
--    (void)sendto(resfd,buf,r,0,(struct sockaddr *)&_res.nsaddr_list[i],
-+  for (i = 0;i < myres.nscount;i++)
-+    (void)sendto(resfd,buf,r,0,(struct sockaddr *)&myres.nsaddr_list[i],
-                sizeof(struct sockaddr));
- }
- 
-@@ -1240,18 +1251,18 @@ void dns_ack(void)
-     /* Check to see if this server is actually one we sent to */
-     if ( addrcmp( (void *) &(from4->sin_addr), (void *) &localhost,
-                   (int) AF_INET ) == 0 ) {
--      for (i = 0;i < _res.nscount;i++)
--      if ( addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr),
-+      for (i = 0;i < myres.nscount;i++)
-+      if ( addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr),
-                     (void *) &(from4->sin_addr), (int) AF_INET ) == 0 ||
--           addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr),
-+           addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr),
-                     (void *) &unspec_addr, (int) AF_INET ) == 0 )     /* 0.0.0.0 replies as 127.0.0.1 */
-         break;
-     } else
--      for (i = 0;i < _res.nscount;i++)
--      if ( addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr),
-+      for (i = 0;i < myres.nscount;i++)
-+      if ( addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr),
-                     (void *) &(from4->sin_addr), AF_INET ) == 0 )
-         break;
--    if (i == _res.nscount) {
-+    if (i == myres.nscount) {
-       snprintf(tempstring, sizeof(tempstring), "Resolver error: Received reply from unknown source: %s",
-             inet_ntoa(from4->sin_addr ));
-       restell(tempstring);
diff -r 628c7c69aa6b -r 1e7ebd4c66ad net/mtr/patches/patch-ac
--- a/net/mtr/patches/patch-ac  Tue Jun 08 10:15:51 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$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



Home | Main Index | Thread Index | Old Index