diff options
author | agc <agc> | 2001-10-16 15:08:55 +0000 |
---|---|---|
committer | agc <agc> | 2001-10-16 15:08:55 +0000 |
commit | a4f1b4bd4e93163bc4ce902cf095cec405bcd14e (patch) | |
tree | a44225c5a5fa923982c9dd9c78d9c9a2d86f1388 /net/mtr/patches | |
parent | 72ce3494e20ed164491b37f94e1e90b3dbebbccb (diff) | |
download | pkgsrc-a4f1b4bd4e93163bc4ce902cf095cec405bcd14e.tar.gz |
Split this package into two - the original mtr uses a curses-based
interface, the mtr-gtk package uses gtk. For use in environments
which need mtr's functionality, but which are unlikely to have X11
installed, such as DMZ hosts, etc.
Patches by Andrew Brown, atatat@netbsd.org.
Diffstat (limited to 'net/mtr/patches')
-rw-r--r-- | net/mtr/patches/patch-ac | 31 | ||||
-rw-r--r-- | net/mtr/patches/patch-ad | 25 | ||||
-rw-r--r-- | net/mtr/patches/patch-ae | 47 |
3 files changed, 103 insertions, 0 deletions
diff --git a/net/mtr/patches/patch-ac b/net/mtr/patches/patch-ac new file mode 100644 index 00000000000..5baae140e29 --- /dev/null +++ b/net/mtr/patches/patch-ac @@ -0,0 +1,31 @@ +$NetBSD: patch-ac,v 1.1 2001/10/16 15:08:56 agc Exp $ + +Rip out any mention of GTK from the configure.in script so that mtr +can build happily without it. + +--- configure.in 2001/10/16 11:19:57 1.1 ++++ configure.in 2001/10/16 11:20:48 +@@ -1,10 +1,8 @@ + AC_INIT(mtr.c) + AM_INIT_AUTOMAKE(mtr, 0.42) + +-AC_SUBST(GTK_OBJ) + AC_SUBST(CURSES_OBJ) + +-GTK_OBJ=gtk.o + CURSES_OBJ=curses.o + + AC_PROG_CC +@@ -39,11 +37,7 @@ + + AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found)) + +-AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS" +- LIBS="$LIBS $GTK_LIBS", +- AC_MSG_WARN(Building without GTK+ display support) +- AC_DEFINE(NO_GTK) +- GTK_OBJ=) ++AC_DEFINE(NO_GTK) + + AC_CHECK_FUNC(socket, , + AC_CHECK_LIB(socket, socket, , AC_MSG_ERROR(No socket library found))) diff --git a/net/mtr/patches/patch-ad b/net/mtr/patches/patch-ad new file mode 100644 index 00000000000..d966b1bb22b --- /dev/null +++ b/net/mtr/patches/patch-ad @@ -0,0 +1,25 @@ +$NetBSD: patch-ad,v 1.1 2001/10/16 15:08:56 agc Exp $ + +Remove the gtk related options since we're not using gtk. + +--- mtr.c 2001/10/16 11:22:10 1.1 ++++ mtr.c 2001/10/16 11:23:02 +@@ -56,7 +56,6 @@ + { "report", 0, 0, 'r' }, + { "report-cycles", 1, 0, 'c' }, + { "curses", 0, 0, 't' }, +- { "gtk", 0, 0, 'g' }, + { "interval", 1, 0, 'i' }, + { "psize", 1, 0, 'p' }, + { "no-dns", 0, 0, 'n' }, +@@ -182,8 +181,8 @@ + } + + if(PrintHelp) { +- printf("usage: %s [-hvrctglsni] [--help] [--version] [--report]\n" +- "\t\t[--report-cycles=COUNT] [--curses] [--gtk]\n" ++ printf("usage: %s [-hvrctlsni] [--help] [--version] [--report]\n" ++ "\t\t[--report-cycles=COUNT] [--curses]\n" + "\t\t[--raw] [--split] [--no-dns]\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 new file mode 100644 index 00000000000..586423e0d94 --- /dev/null +++ b/net/mtr/patches/patch-ae @@ -0,0 +1,47 @@ +$NetBSD: patch-ae,v 1.1 2001/10/16 15:08:56 agc Exp $ + +Remove the instruction on how to get to the gtk interface since +we don't have one. + +--- mtr.8 2001/10/16 11:24:00 1.1 ++++ mtr.8 2001/10/16 11:24:58 +@@ -8,7 +8,7 @@ + .SH SYNOPSIS + .B mtr + [\c +-.B \-hvrctglsni\c ++.B \-hvrctlsni\c + ] + [\c + .B \-\-help\c +@@ -35,9 +35,6 @@ + .B \-\-no-dns\c + ] + [\c +-.B \-\-gtk\c +-] +-[\c + .B \-\-interval\ SECONDS\c + ] + [\c +@@ -147,20 +144,6 @@ + .B mtr + to display numeric IP numbers and not try to resolve the + 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 |