From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 16 02:40:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 954E416A41A for ; Sun, 16 Dec 2007 02:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF1E13C467 for ; Sun, 16 Dec 2007 02:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBG2e2Bo006624 for ; Sun, 16 Dec 2007 02:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBG2e2xe006623; Sun, 16 Dec 2007 02:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 16 Dec 2007 02:40:02 GMT Resent-Message-Id: <200712160240.lBG2e2xe006623@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Josh Carroll Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48DBE16A49A for ; Sun, 16 Dec 2007 02:30:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 44B7613C468 for ; Sun, 16 Dec 2007 02:30:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBG2UBra032030 for ; Sun, 16 Dec 2007 02:30:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id lBG2UBYW032029; Sun, 16 Dec 2007 02:30:11 GMT (envelope-from nobody) Message-Id: <200712160230.lBG2UBYW032029@www.freebsd.org> Date: Sun, 16 Dec 2007 02:30:11 GMT From: Josh Carroll To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/118738: Request for addition of tcptraceroute-devel port (version 1.5beta7) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2007 02:40:02 -0000 >Number: 118738 >Category: ports >Synopsis: Request for addition of tcptraceroute-devel port (version 1.5beta7) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Dec 16 02:40:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Josh Carroll >Release: 7.0-BETA4 >Organization: n/a >Environment: FreeBSD pflog.net 7.0-BETA4 FreeBSD 7.0-BETA4 #1: Sun Dec 9 16:34:24 EST 2007 root@:/usr/obj/usr/src/sys/PFLOG amd64 >Description: I would like to request the addition of a tcptraceroute-devel port to include tcptraceroute version 1.5beta7 into the ports tree. This version uses /usr/ports/net/libnet (libnet 11), and should conflict with /usr/ports/net/tcptraceroute (this port already indicates CONFLICTS= tcptraceroute-1.4*, however the tcptraceroute port would need to be updated to include a similar conflict directive). I have put together this new port in the attached shar file. It was successfully built in a tinderbox for 5-STABLE, 7-STABLE, 8-CURRENT, 6-STABLE, 6.2-RELEASE and 6.1-RELEASE on the amd64 architecture. Please let me know if you have any questions or concerns. Regards, Josh >How-To-Repeat: n/a >Fix: cd /usr/ports/net sh /path/to/tcptraceroute_devel.shar cd tcptraceroute-devel make clean all install Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tcptraceroute-devel # tcptraceroute-devel/files # tcptraceroute-devel/files/patch-configure # tcptraceroute-devel/Makefile # tcptraceroute-devel/distinfo # tcptraceroute-devel/pkg-descr # tcptraceroute-devel/pkg-plist # echo c - tcptraceroute-devel mkdir -p tcptraceroute-devel > /dev/null 2>&1 echo c - tcptraceroute-devel/files mkdir -p tcptraceroute-devel/files > /dev/null 2>&1 echo x - tcptraceroute-devel/files/patch-configure sed 's/^X//' >tcptraceroute-devel/files/patch-configure << 'END-of-tcptraceroute-devel/files/patch-configure' X--- configure.old 2006-03-28 20:49:55.000000000 -0500 X+++ configure 2007-12-13 13:57:42.000000000 -0500 X@@ -3713,38 +3713,11 @@ X X fi; X X-LIBNET_CONFIG="libnet-config" # relative, using $PATH X- X-# Check whether --with-libnet or --without-libnet was given. X-if test "${with_libnet+set}" = set; then X- withval="$with_libnet" X- X- LIBNETCC="" X- LIBNETLD="" X- X- test -x "$withval/bin/libnet-config" && LIBNET_CONFIG="$withval/bin/libnet-config" X- test -x "$withval/libnet-config" && LIBNET_CONFIG="$withval/libnet-config" X- X- test -f "$withval/libnet.h" && LIBNETCC="$LIBNETCC -I$withval" X- test -f "$withval/include/libnet.h" && LIBNETCC="$LIBNETCC -I$withval/include" X- X- test -f "$withval/libnet.a" && LIBNETLD="$LIBNETLD -L$withval" X- test -f "$withval/lib/libnet.a" && LIBNETLD="$LIBNETLD -L$withval/lib" X- X- if test -z "$LIBNETCC" -o -z "$LIBNETLD" X- then X- { { echo "$as_me:$LINENO: error: No valid libnet library found in $withval" >&5 X-echo "$as_me: error: No valid libnet library found in $withval" >&2;} X- { (exit 1); exit 1; }; } X- else X- CPPFLAGS="$CPPFLAGS $LIBNETCC" X- LDFLAGS="$LDFLAGS $LIBNETLD" X- { echo "$as_me:$LINENO: using libnet in $withval" >&5 X-echo "$as_me: using libnet in $withval" >&6;} X- fi X- X-fi; X- X+LIBNET_CONFIG="libnet11-config" # relative, using $PATH X+LIBNETCC=`$LIBNET_CONFIG --cflags` X+LIBNETLD=`$LIBNET_CONFIG --libs` X+CPPFLAGS="$CPPFLAGS $LIBNETCC" X+LDFLAGS="$LDFLAGS $LIBNETLD" X X echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5 X echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6 END-of-tcptraceroute-devel/files/patch-configure echo x - tcptraceroute-devel/Makefile sed 's/^X//' >tcptraceroute-devel/Makefile << 'END-of-tcptraceroute-devel/Makefile' X# New ports collection makefile for: tcptraceroute-devel X# Date created: 12 December 2007 X# Whom: josh.carroll@gmail.com X# X# $FreeBSD$ X# X XPORTNAME= tcptraceroute XPORTVERSION= 1.5beta7 XCATEGORIES= net XMASTER_SITES= http://michael.toren.net/code/tcptraceroute/ \ X http://pflog.net/tcptraceroute/ X XMAINTAINER= josh.carroll@gmail.com XCOMMENT= A traceroute implementation using TCP packets X XBUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet X XCONFLICTS= tcptraceroute-1.4* X XUSE_GMAKE=yes XGNU_CONFIGURE= yes X XMAN1= tcptraceroute.1 X XLIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config X XCONFIGURE_ARGS= --with-libpcap=/usr --bindir=${PREFIX}/sbin XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} X XINSTALL_TARGET= install-exec-am install-man X Xpost-install: X @${CHMOD} u+s ${PREFIX}/sbin/tcptraceroute X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/tcptraceroute.1.html ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/tcptraceroute.lsm ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/COPYING ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/ChangeLog ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/examples.txt ${DOCSDIR} X.endif X X.include END-of-tcptraceroute-devel/Makefile echo x - tcptraceroute-devel/distinfo sed 's/^X//' >tcptraceroute-devel/distinfo << 'END-of-tcptraceroute-devel/distinfo' XMD5 (tcptraceroute-1.5beta7.tar.gz) = 65d1001509f971ea986fcbc2dd009643 XSHA256 (tcptraceroute-1.5beta7.tar.gz) = aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57 XSIZE (tcptraceroute-1.5beta7.tar.gz) = 119119 END-of-tcptraceroute-devel/distinfo echo x - tcptraceroute-devel/pkg-descr sed 's/^X//' >tcptraceroute-devel/pkg-descr << 'END-of-tcptraceroute-devel/pkg-descr' Xtcptraceroute is a traceroute implementation using TCP packets. X XThe more traditional traceroute(8) sends out either UDP or ICMP ECHO Xpackets with a TTL of one, and increments the TTL until the destination Xhas been reached. By printing the gateways that generate ICMP time Xexceeded messages along the way, it is able to determine the path Xpackets are taking to reach the destination. X XThe problem is that with the widespread use of firewalls on the modern XInternet, many of the packets that traceroute(8) sends out end up being Xfiltered, making it impossible to completely trace the path to the Xdestination. However, in many cases, these firewalls will permit inbound XTCP packets to specific ports that hosts sitting behind the firewall are Xlistening for connections on. By sending out TCP SYN packets instead of XUDP or ICMP ECHO packets, tcptraceroute is able to bypass the most Xcommon firewall filters. X XWWW: http://michael.toren.net/code/tcptraceroute/ END-of-tcptraceroute-devel/pkg-descr echo x - tcptraceroute-devel/pkg-plist sed 's/^X//' >tcptraceroute-devel/pkg-plist << 'END-of-tcptraceroute-devel/pkg-plist' Xsbin/tcptraceroute X%%PORTDOCS%%%%DOCSDIR%%/tcptraceroute.1.html X%%PORTDOCS%%%%DOCSDIR%%/tcptraceroute.lsm X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/examples.txt X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-tcptraceroute-devel/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: