From b7b6ab56eb3db6f3a3da259336aacd3f11c91988 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Sat, 4 Dec 1999 14:27:30 +0000 Subject: import FreeBSD-current package for mtr-0.41: Traceroute and ping in a single graphical network diagnostic tool --- net/mtr/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ net/mtr/files/md5 | 1 + net/mtr/patches/patch-01 | 11 +++++++++++ net/mtr/patches/patch-02 | 11 +++++++++++ net/mtr/patches/patch-03 | 11 +++++++++++ net/mtr/pkg/COMMENT | 1 + net/mtr/pkg/DESCR | 10 ++++++++++ net/mtr/pkg/PLIST | 1 + 8 files changed, 91 insertions(+) create mode 100644 net/mtr/Makefile create mode 100644 net/mtr/files/md5 create mode 100644 net/mtr/patches/patch-01 create mode 100644 net/mtr/patches/patch-02 create mode 100644 net/mtr/patches/patch-03 create mode 100644 net/mtr/pkg/COMMENT create mode 100644 net/mtr/pkg/DESCR create mode 100644 net/mtr/pkg/PLIST diff --git a/net/mtr/Makefile b/net/mtr/Makefile new file mode 100644 index 00000000000..bde25cdef1a --- /dev/null +++ b/net/mtr/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: mtr +# Version required: 0.41 +# Date created: 12 August 1998 +# Whom: Bill Fumerola +# +# $FreeBSD: ports/net/mtr/Makefile,v 1.16 1999/10/28 08:06:00 mharo Exp $ +# + +DISTNAME= mtr-0.41 +CATEGORIES= net +MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \ + http://www.giovannelli.it/~gmarco/files/ + +MAINTAINER= billf@FreeBSD.org + +HAS_CONFIGURE= yes + +MAN8= mtr.8 + +pre-patch: +.if !defined(USE_GTK) + @${ECHO} "" + @${ECHO} "If you want to compile with GTK support," + @${ECHO} "hit Ctrl-C right now and use \"make USE_GTK=yes\" " + @${ECHO} "" +CONFIGURE_ARGS=--with-gtk-prefix=/nopath +.else +USE_XLIB= yes +LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 +CONFIGURE_ENV= GTK_CONFIG="${X11BASE}/bin/gtk12-config" +.endif + +do-install: + ${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/mtr ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/mtr.8 ${PREFIX}/man/man8 + +post-install: + @${ECHO} "" + @${ECHO} "${PREFIX}/sbin/mtr is setuid \"root\" " + @${ECHO} "" + @${ECHO} "Please read about potential security issues" + @${ECHO} "in file ${WRKSRC}/SECURITY (not installed)" + @${ECHO} "" + +.include diff --git a/net/mtr/files/md5 b/net/mtr/files/md5 new file mode 100644 index 00000000000..6186e1ce0d6 --- /dev/null +++ b/net/mtr/files/md5 @@ -0,0 +1 @@ +MD5 (mtr-0.41.tar.gz) = fd081c7c27fedfcf9de0dc04e632475b diff --git a/net/mtr/patches/patch-01 b/net/mtr/patches/patch-01 new file mode 100644 index 00000000000..ca716124094 --- /dev/null +++ b/net/mtr/patches/patch-01 @@ -0,0 +1,11 @@ +--- net.c.orig Wed Jun 9 11:06:27 1999 ++++ net.c Wed Jul 14 02:03:23 1999 +@@ -213,7 +213,7 @@ + rv = sendto(sendsock, packet, packetsize, 0, + (struct sockaddr *)&remoteaddress, sizeof(remoteaddress)); + if (rv >= 0) { +- fprintf (stderr, "You've got a broken (FreeBSD?) system\n"); ++/* fprintf (stderr, "You've got a broken (FreeBSD?) system\n"); */ + BSDfix = 1; + } + } diff --git a/net/mtr/patches/patch-02 b/net/mtr/patches/patch-02 new file mode 100644 index 00000000000..bcb4216cdfc --- /dev/null +++ b/net/mtr/patches/patch-02 @@ -0,0 +1,11 @@ +--- dns.c.orig Wed Jun 9 11:09:20 1999 ++++ dns.c Tue Aug 10 01:21:12 1999 +@@ -751,7 +751,7 @@ + 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,buf,MaxPacketsize); + if (r == -1){ + restell("Resolver error: Query too large."); diff --git a/net/mtr/patches/patch-03 b/net/mtr/patches/patch-03 new file mode 100644 index 00000000000..58efa5fde67 --- /dev/null +++ b/net/mtr/patches/patch-03 @@ -0,0 +1,11 @@ +--- Makefile.in.old Wed Oct 27 16:49:03 1999 ++++ Makefile.in Wed Oct 27 16:49:22 1999 +@@ -210,7 +210,7 @@ + + mtr: $(mtr_OBJECTS) $(mtr_DEPENDENCIES) + @rm -f mtr +- $(LINK) $(mtr_LDFLAGS) $(mtr_OBJECTS) $(mtr_LDADD) $(LIBS) ++ $(LINK) $(mtr_LDFLAGS) $(mtr_OBJECTS) $(mtr_LDADD) -lmytinfo $(LIBS) + + install-man8: + $(mkinstalldirs) $(DESTDIR)$(man8dir) diff --git a/net/mtr/pkg/COMMENT b/net/mtr/pkg/COMMENT new file mode 100644 index 00000000000..b0012cdef63 --- /dev/null +++ b/net/mtr/pkg/COMMENT @@ -0,0 +1 @@ +Traceroute and ping in a single graphical network diagnostic tool diff --git a/net/mtr/pkg/DESCR b/net/mtr/pkg/DESCR new file mode 100644 index 00000000000..cdf6caa027a --- /dev/null +++ b/net/mtr/pkg/DESCR @@ -0,0 +1,10 @@ +mtr combines the functionality of the "traceroute" and "ping" programs +into a single network diagnostic tool. + +Authors: Matt Kimball is the primary author of mtr. + Roger Wolff is currently maintaing mtr. +WWW: http://www.bitwizard.nl/mtr/ + +Ported to FreeBSD by: +Bill Fumerola (billf@chc-chimes.com) +Gianmarco Giovannelli (gmarco@giovannelli.it) diff --git a/net/mtr/pkg/PLIST b/net/mtr/pkg/PLIST new file mode 100644 index 00000000000..e51c7880c1e --- /dev/null +++ b/net/mtr/pkg/PLIST @@ -0,0 +1 @@ +sbin/mtr -- cgit v1.2.3