summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authorwiz <wiz>2006-04-03 18:38:58 +0000
committerwiz <wiz>2006-04-03 18:38:58 +0000
commit930fd3c1fa2606524b9cf99f3218fc9290e94a66 (patch)
tree2951c800155eef87f9a5a61bd8cdfebb0b2e7d16 /net/mtr
parent2b49f5976a9e044c5a33e1a64a160193595197e2 (diff)
downloadpkgsrc-930fd3c1fa2606524b9cf99f3218fc9290e94a66.tar.gz
Update mtr to 0.71:
0.71: The build-time check for the resolver library was improved. Binding to a specific interface was fixed. Incorrect display of multiple routes was fixed. Several minor bugs were fixed. v0.70 Antinio submitted a cumulative patch containing some nice improvements. He also submitted an automake patch that causes mtr to no longer compile on my system. I refuse to have mtr "in the dark" that I can't test-compile the dist. Add option for gtk support, and remove mtr-gtk package.
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile8
-rw-r--r--net/mtr/distinfo13
-rw-r--r--net/mtr/options.mk13
-rw-r--r--net/mtr/patches/patch-aa14
-rw-r--r--net/mtr/patches/patch-ab6
-rw-r--r--net/mtr/patches/patch-ad21
-rw-r--r--net/mtr/patches/patch-ae44
7 files changed, 25 insertions, 94 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 52c53950dce..7dcfe80bb85 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.43 2006/02/05 23:10:27 joerg Exp $
+# $NetBSD: Makefile,v 1.44 2006/04/03 18:38:58 wiz Exp $
#
-DISTNAME= mtr-0.69
-PKGREVISION= 1
+DISTNAME= mtr-0.71
CATEGORIES= net
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/
@@ -14,9 +13,10 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
-CONFIGURE_ARGS+= --without-gtk
INSTALLATION_DIRS= man/man8 sbin
+.include "options.mk"
+
# mtr uses libtermcap by default, but needs wattr_{on,off} from (n)curses,
# so we rewrite -ltermcap to -lncurses (which will be auto-mangled into
# -lcurses on the appropriate platforms).
diff --git a/net/mtr/distinfo b/net/mtr/distinfo
index 0144caab900..e0c9f4efc7e 100644
--- a/net/mtr/distinfo
+++ b/net/mtr/distinfo
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.17 2006/03/22 23:57:12 joerg Exp $
+$NetBSD: distinfo,v 1.18 2006/04/03 18:38:58 wiz Exp $
-SHA1 (mtr-0.69.tar.gz) = 3fd0fa148b349d1966e0d79af0ffb84ecc7bed4b
-RMD160 (mtr-0.69.tar.gz) = e95e0f27253d8d94587b429cbb65311035e93c2e
-Size (mtr-0.69.tar.gz) = 183216 bytes
-SHA1 (patch-aa) = 5eb4ab7bfa02095c2b7a110426dd4aa5738f0a2c
-SHA1 (patch-ab) = f132e394a4b6b00f56e38333d3f49bf5c11965b9
-SHA1 (patch-ad) = 0565b900e45baf624866e3858ab43a2ab2c4bbfe
-SHA1 (patch-ae) = 4e40b16e0416f024898eda8375b5560ae08cbfaa
+SHA1 (mtr-0.71.tar.gz) = 5a2b72e0d69522e524e961c3195d5878c49510b4
+RMD160 (mtr-0.71.tar.gz) = 9979721f39a83f4ad6d41d3e9f4c7848b7a99745
+Size (mtr-0.71.tar.gz) = 205442 bytes
+SHA1 (patch-ab) = 6305e59e7e2532e0446b33be5584fe1afc0a063b
diff --git a/net/mtr/options.mk b/net/mtr/options.mk
new file mode 100644
index 00000000000..fff2ab936aa
--- /dev/null
+++ b/net/mtr/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2006/04/03 18:38:58 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mtr
+PKG_SUPPORTED_OPTIONS= gtk
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk)
+.include "../../x11/gtk/buildlink3.mk"
+.include "../../mk/x11.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-gtk
+.endif
diff --git a/net/mtr/patches/patch-aa b/net/mtr/patches/patch-aa
deleted file mode 100644
index e55f5d89646..00000000000
--- a/net/mtr/patches/patch-aa
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2005/02/27 22:49:43 wiz Exp $
-
---- net.c.orig 2005-01-13 09:13:53.000000000 +0100
-+++ net.c
-@@ -305,7 +305,9 @@ void net_send_query(int index)
- rv = sendto(sendsock, packet, abs(packetsize), 0,
- remotesockaddr, salen);
- if (rv >= 0) {
-+#if 0
- fprintf (stderr, "You've got a broken (FreeBSD?) system\n");
-+#endif
- BSDfix = 1;
- }
- }
diff --git a/net/mtr/patches/patch-ab b/net/mtr/patches/patch-ab
index 85fe3d65388..19864dc4978 100644
--- a/net/mtr/patches/patch-ab
+++ b/net/mtr/patches/patch-ab
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.10 2006/03/22 23:57:12 joerg Exp $
+$NetBSD: patch-ab,v 1.11 2006/04/03 18:38:58 wiz Exp $
---- dns.c.orig 2005-01-11 08:32:42.000000000 +0000
+--- dns.c.orig 2006-03-23 05:45:58.000000000 +0000
+++ dns.c
@@ -28,13 +28,20 @@
#include <sys/time.h>
@@ -105,7 +105,7 @@ $NetBSD: patch-ab,v 1.10 2006/03/22 23:57:12 joerg Exp $
(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 */
+ (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++)
diff --git a/net/mtr/patches/patch-ad b/net/mtr/patches/patch-ad
deleted file mode 100644
index af310245ea8..00000000000
--- a/net/mtr/patches/patch-ad
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-ad,v 1.4 2005/02/27 22:49:43 wiz Exp $
-
---- mtr.c.orig 2005-01-11 09:33:41.000000000 +0100
-+++ mtr.c
-@@ -126,7 +126,6 @@ void parse_arg (int argc, char **argv)
- { "report", 0, 0, 'r' },
- { "xml", 0, 0, 'x' },
- { "curses", 0, 0, 't' },
-- { "gtk", 0, 0, 'g' },
- { "raw", 0, 0, 'l' },
- { "split", 0, 0, 'p' }, /* BL */
- /* maybe above should change to -d 'x' */
-@@ -369,7 +368,7 @@ int main(int argc, char **argv)
-
- if (PrintHelp) {
- printf("usage: %s [-hvrctglsni46] [--help] [--version] [--report]\n"
-- "\t\t[--report-cycles=COUNT] [--curses] [--gtk]\n"
-+ "\t\t[--report-cycles=COUNT] [--curses]\n"
- "\t\t[--raw] [--split] [--no-dns] [--address interface]\n" /* BL */
- "\t\t[--psize=bytes/-p=bytes]\n" /* ok */
- "\t\t[--interval=SECONDS] HOSTNAME [PACKETSIZE]\n", argv[0]);
diff --git a/net/mtr/patches/patch-ae b/net/mtr/patches/patch-ae
deleted file mode 100644
index 85af218f06c..00000000000
--- a/net/mtr/patches/patch-ae
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: patch-ae,v 1.4 2005/02/27 22:49:43 wiz Exp $
-
---- mtr.8.orig 2005-01-11 09:10:13.000000000 +0100
-+++ mtr.8
-@@ -8,7 +8,7 @@ mtr \- a network diagnostic tool
- .SH SYNOPSIS
- .B mtr
- [\c
--.B \-hvrctglsni46\c
-+.B \-hvrctlsni46\c
- ]
- [\c
- .B \-\-help\c
-@@ -35,9 +35,6 @@ mtr \- a network diagnostic tool
- .B \-\-no-dns\c
- ]
- [\c
--.B \-\-gtk\c
--]
--[\c
- .B \-\-address\ IP.ADD.RE.SS\c
- ]
- [\c
-@@ -153,20 +150,6 @@ to display numeric IP numbers and not tr
- host names.
-
- .TP
--.B \-g
--.TP
--.B \-\-gtk
--.br
--Use this option to force
--.B mtr
--to use the GTK+ based X11 window interface (if available).
--GTK+ must have been available on the system when
--.B mtr
--was built for this to work. See the GTK+ web page at
--.B http://www.gimp.org/gtk/
--for more information about GTK+.
--
--.TP
- .B \-s
- .TP
- .B \-\-split