From nobody@FreeBSD.org  Fri Jul 17 00:01:55 2009
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 2FBAA1065676
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jul 2009 00:01:55 +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 1E1748FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jul 2009 00:01:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6H01suF072926
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jul 2009 00:01:54 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n6H01s0i072923;
	Fri, 17 Jul 2009 00:01:54 GMT
	(envelope-from nobody)
Message-Id: <200907170001.n6H01s0i072923@www.freebsd.org>
Date: Fri, 17 Jul 2009 00:01:54 GMT
From: dunno <>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [new port] benchmarks/nuttcp: TCP/UDP network testing tool
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136829
>Category:       ports
>Synopsis:       [new port] benchmarks/nuttcp: TCP/UDP network testing tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 17 00:10:03 UTC 2009
>Closed-Date:    Fri Jul 17 00:31:17 UTC 2009
>Last-Modified:  Fri Jul 17 00:50:02 UTC 2009
>Originator:     dunno
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
>Description:
nuttcp is based on nttcp, which in turn was an enhancement  by  someone
at  Silicon  Graphics  (SGI) on the original ttcp, which was written by
Mike Muuss at BRL sometime before December 1984, to compare the perfor-
mance of TCP stacks by U.C. Berkeley and BBN to help DARPA decide which
version to place in the first BSD Unix  release.   nuttcp  has  several
useful  features beyond those of the basic ttcp/nttcp, such as a server
mode, rate limiting, multiple parallel streams, and timer based  usage.
More recent changes include IPv6 support, IPv4 multicast, and the abil-
ity to set the maximum segment size or TOS/DSCP bits.
                                                       -- from man page

WWW: http://www.lcp.nrl.navy.mil/nuttcp/

>How-To-Repeat:

>Fix:
--- nuttcp.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/csup/ports/benchmarks/Makefile,v
retrieving revision 1.66
diff -u -p -r1.66 Makefile
--- Makefile	13 Jul 2009 22:40:20 -0000	1.66
+++ Makefile	16 Jul 2009 23:51:39 -0000
@@ -32,6 +32,7 @@
     SUBDIR += netpipe
     SUBDIR += nqueens
     SUBDIR += nttcp
+    SUBDIR += nuttcp
     SUBDIR += octave-forge-benchmark
     SUBDIR += p5-Benchmark-Forking
     SUBDIR += p5-Benchmark-Stopwatch
Index: nuttcp/Makefile
===================================================================
RCS file: nuttcp/Makefile
diff -N nuttcp/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ nuttcp/Makefile	16 Jul 2009 23:54:01 -0000
@@ -0,0 +1,40 @@
+# New ports collection makefile for:	nuttcp
+# Date Created:				17 Jul 2009
+# Whom:					dunno
+#
+# $FreeBSD$
+#
+
+PORTNAME=	nuttcp
+PORTVERSION=	5.5.5
+CATEGORIES=	benchmarks net
+MASTER_SITES=	ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/
+
+MAINTAINER=	ports@FreeBSD.org
+COMMENT=	TCP/UDP network testing tool
+
+USE_BZIP2=	yes
+MAKEFILE=	/dev/null
+ALL_TARGET=	${PORTNAME}
+MAN8=		${PORTNAME}.8
+
+post-patch:
+	${FIND} ${WRKSRC}/ -type f -exec \
+		${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
+
+	${MKDIR} ${DATADIR}/
+.	for file in LICENSE README examples.txt
+		${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/
+.	endfor
+
+	${MKDIR} -p ${PREFIX}/etc/xinetd.d/
+.	for file in nuttcp nuttcp4 nuttcp6
+		${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file}
+			${PREFIX}/etc/xinetd.d/
+.	endfor
+
+.include <bsd.port.mk>
Index: nuttcp/distinfo
===================================================================
RCS file: nuttcp/distinfo
diff -N nuttcp/distinfo
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ nuttcp/distinfo	16 Jul 2009 23:08:42 -0000
@@ -0,0 +1,3 @@
+MD5 (nuttcp-5.5.5.tar.bz2) = ec79568d622f85d6077c0dc819a31b84
+SHA256 (nuttcp-5.5.5.tar.bz2) = b3c857028351136009af1d40d29e6b683e1f5575f7f6135642958c6fc9a03e01
+SIZE (nuttcp-5.5.5.tar.bz2) = 72697
Index: nuttcp/pkg-descr
===================================================================
RCS file: nuttcp/pkg-descr
diff -N nuttcp/pkg-descr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ nuttcp/pkg-descr	16 Jul 2009 23:23:01 -0000
@@ -0,0 +1,12 @@
+nuttcp is based on nttcp, which in turn was an enhancement  by  someone
+at  Silicon  Graphics  (SGI) on the original ttcp, which was written by
+Mike Muuss at BRL sometime before December 1984, to compare the perfor-
+mance of TCP stacks by U.C. Berkeley and BBN to help DARPA decide which
+version to place in the first BSD Unix  release.   nuttcp  has  several
+useful  features beyond those of the basic ttcp/nttcp, such as a server
+mode, rate limiting, multiple parallel streams, and timer based  usage.
+More recent changes include IPv6 support, IPv4 multicast, and the abil-
+ity to set the maximum segment size or TOS/DSCP bits.
+                                                       -- from man page
+
+WWW: http://www.lcp.nrl.navy.mil/nuttcp/
--- nuttcp.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Fri Jul 17 00:30:32 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136829 
State-Changed-From-To: open->closed 
State-Changed-By: wxs 
State-Changed-When: Fri Jul 17 00:31:16 UTC 2009 
State-Changed-Why:  
We do not add ports with no maintainer. 

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

From: oaeo aoee <mhalahm@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/136829: [new port] benchmarks/nuttcp: TCP/UDP network 
	testing tool
Date: Fri, 17 Jul 2009 04:34:59 +0400

 Damn, I keep making silly mistakes. Forgot to escape newline char.
 
 Sorry. I hope this one is last one.
 
 --- nuttcp.diff begins here ---
 Index: benchmarks/Makefile
 ===================================================================
 RCS file: /home/csup/ports/benchmarks/Makefile,v
 retrieving revision 1.66
 diff -u -p -r1.66 Makefile
 --- benchmarks/Makefile	13 Jul 2009 22:40:20 -0000	1.66
 +++ benchmarks/Makefile	16 Jul 2009 23:51:39 -0000
 @@ -32,6 +32,7 @@
      SUBDIR += netpipe
      SUBDIR += nqueens
      SUBDIR += nttcp
 +    SUBDIR += nuttcp
      SUBDIR += octave-forge-benchmark
      SUBDIR += p5-Benchmark-Forking
      SUBDIR += p5-Benchmark-Stopwatch
 Index: benchmarks/nuttcp/Makefile
 ===================================================================
 RCS file: benchmarks/nuttcp/Makefile
 diff -N benchmarks/nuttcp/Makefile
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ benchmarks/nuttcp/Makefile	17 Jul 2009 00:28:29 -0000
 @@ -0,0 +1,40 @@
 +# New ports collection makefile for:	nuttcp
 +# Date Created:				17 Jul 2009
 +# Whom:					dunno
 +#
 +# $FreeBSD$
 +#
 +
 +PORTNAME=	nuttcp
 +PORTVERSION=	5.5.5
 +CATEGORIES=	benchmarks net
 +MASTER_SITES=	ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/
 +
 +MAINTAINER=	ports@FreeBSD.org
 +COMMENT=	TCP/UDP network testing tool
 +
 +USE_BZIP2=	yes
 +MAKEFILE=	/dev/null
 +ALL_TARGET=	${PORTNAME}
 +MAN8=		${PORTNAME}.8
 +
 +post-patch:
 +	${FIND} ${WRKSRC}/ -type f -exec \
 +		${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
 +
 +do-install:
 +	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
 +	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
 +
 +	${MKDIR} ${DATADIR}/
 +.	for file in LICENSE README examples.txt
 +		${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/
 +.	endfor
 +
 +	${MKDIR} ${PREFIX}/etc/xinetd.d/
 +.	for file in nuttcp nuttcp4 nuttcp6
 +		${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file} \
 +			${PREFIX}/etc/xinetd.d/
 +.	endfor
 +
 +.include <bsd.port.mk>
 Index: benchmarks/nuttcp/distinfo
 ===================================================================
 RCS file: benchmarks/nuttcp/distinfo
 diff -N benchmarks/nuttcp/distinfo
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ benchmarks/nuttcp/distinfo	16 Jul 2009 23:08:42 -0000
 @@ -0,0 +1,3 @@
 +MD5 (nuttcp-5.5.5.tar.bz2) = ec79568d622f85d6077c0dc819a31b84
 +SHA256 (nuttcp-5.5.5.tar.bz2) =
 b3c857028351136009af1d40d29e6b683e1f5575f7f6135642958c6fc9a03e01
 +SIZE (nuttcp-5.5.5.tar.bz2) = 72697
 Index: benchmarks/nuttcp/pkg-descr
 ===================================================================
 RCS file: benchmarks/nuttcp/pkg-descr
 diff -N benchmarks/nuttcp/pkg-descr
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ benchmarks/nuttcp/pkg-descr	16 Jul 2009 23:23:01 -0000
 @@ -0,0 +1,12 @@
 +nuttcp is based on nttcp, which in turn was an enhancement  by  someone
 +at  Silicon  Graphics  (SGI) on the original ttcp, which was written by
 +Mike Muuss at BRL sometime before December 1984, to compare the perfor-
 +mance of TCP stacks by U.C. Berkeley and BBN to help DARPA decide which
 +version to place in the first BSD Unix  release.   nuttcp  has  several
 +useful  features beyond those of the basic ttcp/nttcp, such as a server
 +mode, rate limiting, multiple parallel streams, and timer based  usage.
 +More recent changes include IPv6 support, IPv4 multicast, and the abil-
 +ity to set the maximum segment size or TOS/DSCP bits.
 +                                                       -- from man page
 +
 +WWW: http://www.lcp.nrl.navy.mil/nuttcp/
 Index: benchmarks/nuttcp/pkg-plist
 ===================================================================
 RCS file: benchmarks/nuttcp/pkg-plist
 diff -N benchmarks/nuttcp/pkg-plist
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ benchmarks/nuttcp/pkg-plist	16 Jul 2009 23:30:33 -0000
 @@ -0,0 +1,9 @@
 +bin/nuttcp
 +%%DATADIR%%/LICENSE
 +%%DATADIR%%/README
 +%%DATADIR%%/examples.txt
 +etc/xinetd.d/nuttcp
 +etc/xinetd.d/nuttcp4
 +etc/xinetd.d/nuttcp6
 +@dirrm %%DATADIR%%
 +@dirrmtry etc/xinetd.d
 --- nuttcp.diff ends here ---

From: oaeo aoee <mhalahm@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/136829: [new port] benchmarks/nuttcp: TCP/UDP network 
	testing tool
Date: Fri, 17 Jul 2009 04:22:45 +0400

 Oops, forgot plist. Here is fixed diff. Removed `-p' before ${MKDIR} as well.
 
 --- nuttcp.diff begins here ---
 Index: Makefile
 ===================================================================
 RCS file: /home/csup/ports/benchmarks/Makefile,v
 retrieving revision 1.66
 diff -u -p -r1.66 Makefile
 --- Makefile	13 Jul 2009 22:40:20 -0000	1.66
 +++ Makefile	16 Jul 2009 23:51:39 -0000
 @@ -32,6 +32,7 @@
      SUBDIR += netpipe
      SUBDIR += nqueens
      SUBDIR += nttcp
 +    SUBDIR += nuttcp
      SUBDIR += octave-forge-benchmark
      SUBDIR += p5-Benchmark-Forking
      SUBDIR += p5-Benchmark-Stopwatch
 Index: nuttcp/Makefile
 ===================================================================
 RCS file: nuttcp/Makefile
 diff -N nuttcp/Makefile
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ nuttcp/Makefile	17 Jul 2009 00:05:02 -0000
 @@ -0,0 +1,40 @@
 +# New ports collection makefile for:	nuttcp
 +# Date Created:				17 Jul 2009
 +# Whom:					dunno
 +#
 +# $FreeBSD$
 +#
 +
 +PORTNAME=	nuttcp
 +PORTVERSION=	5.5.5
 +CATEGORIES=	benchmarks net
 +MASTER_SITES=	ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/
 +
 +MAINTAINER=	ports@FreeBSD.org
 +COMMENT=	TCP/UDP network testing tool
 +
 +USE_BZIP2=	yes
 +MAKEFILE=	/dev/null
 +ALL_TARGET=	${PORTNAME}
 +MAN8=		${PORTNAME}.8
 +
 +post-patch:
 +	${FIND} ${WRKSRC}/ -type f -exec \
 +		${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
 +
 +do-install:
 +	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
 +	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
 +
 +	${MKDIR} ${DATADIR}/
 +.	for file in LICENSE README examples.txt
 +		${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/
 +.	endfor
 +
 +	${MKDIR} ${PREFIX}/etc/xinetd.d/
 +.	for file in nuttcp nuttcp4 nuttcp6
 +		${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file}
 +			${PREFIX}/etc/xinetd.d/
 +.	endfor
 +
 +.include <bsd.port.mk>
 Index: nuttcp/distinfo
 ===================================================================
 RCS file: nuttcp/distinfo
 diff -N nuttcp/distinfo
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ nuttcp/distinfo	16 Jul 2009 23:08:42 -0000
 @@ -0,0 +1,3 @@
 +MD5 (nuttcp-5.5.5.tar.bz2) = ec79568d622f85d6077c0dc819a31b84
 +SHA256 (nuttcp-5.5.5.tar.bz2) =
 b3c857028351136009af1d40d29e6b683e1f5575f7f6135642958c6fc9a03e01
 +SIZE (nuttcp-5.5.5.tar.bz2) = 72697
 Index: nuttcp/pkg-descr
 ===================================================================
 RCS file: nuttcp/pkg-descr
 diff -N nuttcp/pkg-descr
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ nuttcp/pkg-descr	16 Jul 2009 23:23:01 -0000
 @@ -0,0 +1,12 @@
 +nuttcp is based on nttcp, which in turn was an enhancement  by  someone
 +at  Silicon  Graphics  (SGI) on the original ttcp, which was written by
 +Mike Muuss at BRL sometime before December 1984, to compare the perfor-
 +mance of TCP stacks by U.C. Berkeley and BBN to help DARPA decide which
 +version to place in the first BSD Unix  release.   nuttcp  has  several
 +useful  features beyond those of the basic ttcp/nttcp, such as a server
 +mode, rate limiting, multiple parallel streams, and timer based  usage.
 +More recent changes include IPv6 support, IPv4 multicast, and the abil-
 +ity to set the maximum segment size or TOS/DSCP bits.
 +                                                       -- from man page
 +
 +WWW: http://www.lcp.nrl.navy.mil/nuttcp/
 Index: nuttcp/pkg-plist
 ===================================================================
 RCS file: nuttcp/pkg-plist
 diff -N nuttcp/pkg-plist
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ nuttcp/pkg-plist	16 Jul 2009 23:30:33 -0000
 @@ -0,0 +1,9 @@
 +bin/nuttcp
 +%%DATADIR%%/LICENSE
 +%%DATADIR%%/README
 +%%DATADIR%%/examples.txt
 +etc/xinetd.d/nuttcp
 +etc/xinetd.d/nuttcp4
 +etc/xinetd.d/nuttcp6
 +@dirrm %%DATADIR%%
 +@dirrmtry etc/xinetd.d
 --- nuttcp.diff ends here ---
>Unformatted:
