From nobody@FreeBSD.org  Sun Dec 16 02:30:24 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 48DBE16A49A
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <josh.carroll@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Request for addition of tcptraceroute-devel port (version 1.5beta7)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118738
>Category:       ports
>Synopsis:       [new port] Request for addition of tcptraceroute-devel port (version 1.5beta7)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 16 02:40:01 UTC 2007
>Closed-Date:    Thu Dec 27 22:11:29 UTC 2007
>Last-Modified:  Thu Dec 27 22:11:29 UTC 2007
>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 <bsd.port.mk>
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:
Class-Changed-From-To: update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Sun Dec 16 03:04:28 UTC 2007 
Class-Changed-Why:  
Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118738 
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun Dec 16 15:36:00 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118738 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/118738: commit references a PR
Date: Thu, 27 Dec 2007 22:08:37 +0000 (UTC)

 miwi        2007-12-27 22:08:27 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/tcptraceroute-devel Makefile distinfo pkg-descr pkg-plist 
   Added files:
     net/tcptraceroute-devel/files patch-configure 
   Removed files:
     net/tcptraceroute-devel/files patch-Makefile 
                                   patch-tcptraceroute.c 
   Log:
   - Update to 1.5beta7
   
   PR:             118738
   Submitted by:   Josh Carroll <josh.carroll@gmail.com>
   
   Revision  Changes    Path
   1.12      +30 -13    ports/net/tcptraceroute-devel/Makefile
   1.7       +3 -3      ports/net/tcptraceroute-devel/distinfo
   1.6       +0 -36     ports/net/tcptraceroute-devel/files/patch-Makefile (dead)
   1.1       +46 -0     ports/net/tcptraceroute-devel/files/patch-configure (new)
   1.2       +0 -26     ports/net/tcptraceroute-devel/files/patch-tcptraceroute.c (dead)
   1.4       +0 -2      ports/net/tcptraceroute-devel/pkg-descr
   1.4       +9 -1      ports/net/tcptraceroute-devel/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Thu Dec 27 22:11:27 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118738 
>Unformatted:
