Date: Wed, 5 Jun 2002 10:46:50 +0200 From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: petef@FreeBSD.ORG Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ports/38911: new port: net/tcptraceroute (A traceroute implementation using TCP packets) Message-ID: <20020605104650.20566c6f.corecode@corecode.ath.cx> In-Reply-To: <200206050324.g553O5n66692@freefall.freebsd.org> References: <200206050324.g553O5n66692@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=.s,B'KT2.ZU)cx_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 4 Jun 2002 20:24:05 -0700 (PDT) petef@FreeBSD.ORG wrote: > Synopsis: new port: net/tcptraceroute (A traceroute implementation using TCP packets) > > State-Changed-From-To: open->feedback > State-Changed-By: petef > State-Changed-When: Tue Jun 4 20:23:38 PDT 2002 > State-Changed-Why: > This is already in the ports tree, maintained by ports@ and at version 1.2. > Can you submit a diff against the port in-tree? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=38911 uh ;] last time i checked i didn't see it... here is the diff: o take maintainership o remove files/patch-Makefile o install tcptraceroute setuid to allow non-root users to use it o reformat pkg-descr to use no more than 72 chars per line o and of course: update to upstream version 1.3 cheerz simon --8<--cut-here----- diff -ruN ./Makefile /home/corecode/ports/tcptraceroute/Makefile --- tcptraceroute/Makefile Fri Mar 22 04:31:49 2002 +++ /home/corecode/ports/tcptraceroute/Makefile Wed Jun 5 04:03:26 2002 @@ -6,13 +6,24 @@ # PORTNAME= tcptraceroute -PORTVERSION= 1.2 +PORTVERSION= 1.3 CATEGORIES= net MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= corecode@corecode.ath.cx BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet MAN8= tcptraceroute.8 + +do-build: + @cd ${WRKSRC}; \ + ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ + `libnet-config --defines` -o tcptraceroute tcptraceroute.c \ + `libnet-config --libs` -lpcap + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/tcptraceroute ${PREFIX}/bin + @${CHMOD} u+s ${PREFIX}/bin/tcptraceroute + @${INSTALL_MAN} ${WRKSRC}/tcptraceroute.8 ${MAN8PREFIX}/man/man8 .include <bsd.port.mk> diff -ruN ./distinfo /home/corecode/ports/tcptraceroute/distinfo --- tcptraceroute/distinfo Fri Mar 22 04:31:49 2002 +++ /home/corecode/ports/tcptraceroute/distinfo Wed Jun 5 03:43:08 2002 @@ -1 +1 @@ -MD5 (tcptraceroute-1.2.tar.gz) = e31e3f5bfd817d32ed6d954382ca768d +MD5 (tcptraceroute-1.3.tar.gz) = 89c1ca7cf0b2b2c946b774fd9506c029 diff -ruN ./files/patch-Makefile /home/corecode/ports/tcptraceroute/files/patch-Makefile --- tcptraceroute/files/patch-Makefile Mon Mar 25 02:02:03 2002 +++ /home/corecode/ports/tcptraceroute/files/patch-Makefile Thu Jan 1 01:00:00 1970 @@ -1,36 +0,0 @@ ---- Makefile.orig Wed Aug 1 07:52:40 2001 -+++ Makefile Sun Mar 24 10:36:40 2002 -@@ -1,20 +1,27 @@ - # tcptraceroute -- A traceroute implementation using TCP packets - # Copyright (c) 2001, Michael C. Toren <mct@toren.net> - --CC = gcc --CFLAGS = -O2 -Wall --DESTDIR=/usr/local/bin -+CC ?= cc -+CFLAGS ?= -O2 -Wall -+LNETINC= -I/usr/local/include -+LNETLIB= -L/usr/local/lib -+ -+BINDIR= ${PREFIX}/bin -+MANDIR= ${PREFIX}/man -+ -+all: tcptraceroute - - tcptraceroute: tcptraceroute.c -- $(CC) $(CFLAGS) `libnet-config --defines` \ -+ $(CC) $(CFLAGS) `libnet-config --defines` $(LNETINC) \ - -o tcptraceroute tcptraceroute.c \ -- `libnet-config --libs` -lpcap -+ $(LNETLIB) `libnet-config --libs` -lpcap - - static: - $(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static" - - install: tcptraceroute -- install -D tcptraceroute $(DESTDIR)/tcptraceroute -+ install -c -s tcptraceroute $(BINDIR)/tcptraceroute -+ install -c -m 444 tcptraceroute.8 $(MANDIR)/man8/tcptraceroute.8 - - distrib: clean changelog man - diff -ruN ./pkg-descr /home/corecode/ports/tcptraceroute/pkg-descr --- tcptraceroute/pkg-descr Fri Mar 22 04:31:49 2002 +++ /home/corecode/ports/tcptraceroute/pkg-descr Wed Jun 5 03:53:04 2002 @@ -1,17 +1,20 @@ -tcptraceroute is a traceroute implementation using TCP packets. +tcptraceroute is a traceroute implementation using TCP packets. -The more traditional traceroute(8) sends out either UDP or ICMP ECHO packets -with a TTL of one, and increments the TTL until the destination has been -reached. By printing the gateways that generate ICMP time exceeded messages -along the way, it is able to determine the path packets are taking to reach -the destination. +The more traditional traceroute(8) sends out either UDP or ICMP ECHO +packets with a TTL of one, and increments the TTL until the destination +has been reached. By printing the gateways that generate ICMP time +exceeded messages along the way, it is able to determine the path +packets are taking to reach the destination. -The problem is that with the widespread use of firewalls on the modern -Internet, many of the packets that traceroute(8) sends out end up being -filtered, making it impossible to completely trace the path to the destination. -However, in many cases, these firewalls will permit inbound TCP packets to -specific ports that hosts sitting behind the firewall are listening for -connections on. By sending out TCP SYN packets instead of UDP or ICMP ECHO -packets, tcptraceroute is able to bypass the most common firewall filters. +The problem is that with the widespread use of firewalls on the modern +Internet, many of the packets that traceroute(8) sends out end up being +filtered, making it impossible to completely trace the path to the +destination. However, in many cases, these firewalls will permit inbound +TCP packets to specific ports that hosts sitting behind the firewall are +listening for connections on. By sending out TCP SYN packets instead of +UDP or ICMP ECHO packets, tcptraceroute is able to bypass the most +common firewall filters. WWW: http://michael.toren.net/code/tcptraceroute/ + +- Simon 'corecode' Schubert -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.s,B'KT2.ZU)cx_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE8/c/+r5S+dk6z85oRAsVqAKDnLDLU1GIW3Ea2BOMkW/T0KmuOwgCgzp5K QVE93r29WeUe8diFiGkS0w0= =OoLA -----END PGP SIGNATURE----- --=.s,B'KT2.ZU)cx_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020605104650.20566c6f.corecode>