From shalunov@internet2.edu  Wed Oct 19 19:40:04 2005
Return-Path: <shalunov@internet2.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 52A7816A421
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Oct 2005 19:40:00 +0000 (GMT)
	(envelope-from shalunov@internet2.edu)
Received: from basie.internet2.edu (basie.internet2.edu [207.75.164.22])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B4A7143D64
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Oct 2005 19:39:59 +0000 (GMT)
	(envelope-from shalunov@internet2.edu)
Received: from localhost (unknown [127.0.0.1])
	by basie.internet2.edu (Postfix) with ESMTP id 0CE961CD575
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Oct 2005 15:39:59 -0400 (EDT)
Received: from basie.internet2.edu ([127.0.0.1])
 by localhost (basie.internet2.edu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10768-01 for <FreeBSD-gnats-submit@freebsd.org>;
 Wed, 19 Oct 2005 15:39:58 -0400 (EDT)
Received: from localhost (unknown [127.0.0.1])
	by basie.internet2.edu (Postfix) with ESMTP id AC9AC1CD54E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Oct 2005 15:39:58 -0400 (EDT)
Message-Id: <20051019194000.D898A2E083@localhost>
Date: Wed, 19 Oct 2005 15:40:00 -0400 (EDT)
From: stanislav shalunov <shalunov@internet2.edu>
Reply-To: stanislav shalunov <shalunov@internet2.edu>
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: benchmarks/thrulay: network capacity tester
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87683
>Category:       ports
>Synopsis:       New port: benchmarks/thrulay: network capacity tester
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 19 19:50:14 GMT 2005
>Closed-Date:    Thu Oct 20 19:33:05 GMT 2005
>Last-Modified:  Thu Oct 20 19:33:05 GMT 2005
>Originator:     Stanislav Shalunov
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Internet2
>Environment:
System: FreeBSD abel.internet2.edu 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Nov 24 13:24:56 EST 2004 root@abel.internet2.edu:/usr/src/sys/i386/compile/IBM-T30 i386
>Description:

The program thrulay is used to measure the capacity, delay, and
other performance metrics of a network by sending a bulk TCP or UDP
stream over it.

Special features of thrulay include:
* For TCP, ability to measure round-trip delay along with throughput
* For UDP, ability to measure
  - one-way delay, with quantiles
  - packet loss
  - packet duplication
  - reordering
* For UDP, the ability to send precisely positioned true Poisson streams
  (microsecond errors in sending times)
* Human- and machine-readable output (ready to be fed to gnuplot)

WWW: http://www.internet2.edu/~shalunov/thrulay/

>How-To-Repeat:
	
>Fix:

# 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:
#
#	thrulay
#	thrulay/Makefile
#	thrulay/pkg-descr
#	thrulay/pkg-plist
#	thrulay/distinfo
#	thrulay/files
#	thrulay/files/thrulayd.sh.sample
#	thrulay/pkg-message
#
echo c - thrulay
mkdir -p thrulay > /dev/null 2>&1
echo x - thrulay/Makefile
sed 's/^X//' >thrulay/Makefile << 'END-of-thrulay/Makefile'
X# New ports collection makefile for:   thrulay
X# Date created:        2005-10-19
X# Whom:                shalunov
X#
X# $FreeBSD$
X
XPORTNAME=	thrulay
XPORTVERSION=	0.8
XCATEGORIES=	benchmarks net ipv6
XMASTER_SITES=	http://unc.dl.sourceforge.net/sourceforge/thrulay/ \
X		http://internap.dl.sourceforge.net/sourceforge/thrulay/ \
X		http://www.internet2.edu/~shalunov/thrulay/
X
XMAINTAINER=	shalunov@internet2.edu
XCOMMENT=	Network capacity tester
X
XMAN1=		thrulay.1
XMAN8=		thrulayd.8
XMANCOMPRESSED=	no
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
Xpost-install:
X	${INSTALL_SCRIPT} ${FILESDIR}/thrulayd.sh.sample ${PREFIX}/etc/rc.d/
X	@if [ ! -f ${PREFIX}/etc/rc.d/thrulayd.sh ]; then \
X		${CP} -p ${PREFIX}/etc/rc.d/thrulayd.sh.sample \
X			${PREFIX}/etc/rc.d/thrulayd.sh ; \
X	fi
X
X.include <bsd.port.mk>
END-of-thrulay/Makefile
echo x - thrulay/pkg-descr
sed 's/^X//' >thrulay/pkg-descr << 'END-of-thrulay/pkg-descr'
XThe program thrulay is used to measure the capacity, delay, and
Xother performance metrics of a network by sending a bulk TCP or UDP
Xstream over it.
X
XSpecial features of thrulay include:
X* For TCP, ability to measure round-trip delay along with throughput
X* For UDP, ability to measure
X  - one-way delay, with quantiles
X  - packet loss
X  - packet duplication
X  - reordering
X* For UDP, the ability to send precisely positioned true Poisson streams
X  (microsecond errors in sending times)
X* Human- and machine-readable output (ready to be fed to gnuplot)
X
XWWW: http://www.internet2.edu/~shalunov/thrulay/
END-of-thrulay/pkg-descr
echo x - thrulay/pkg-plist
sed 's/^X//' >thrulay/pkg-plist << 'END-of-thrulay/pkg-plist'
Xbin/thrulay
Xsbin/thrulayd
X@unexec if cmp -s %D/etc/rc.d/thrulayd.sh.sample %D/etc/rc.d/thrulayd.sh; then rm -f %D/etc/rc.d/thrulayd.sh; fi
Xetc/rc.d/thrulayd.sh.sample
X@exec if [ ! -f %D/etc/rc.d/thrulayd.sh ] ; then cp -p %D/%F %B/thrulayd.sh; fi
END-of-thrulay/pkg-plist
echo x - thrulay/distinfo
sed 's/^X//' >thrulay/distinfo << 'END-of-thrulay/distinfo'
XMD5 (thrulay-0.8.tar.gz) = 725fb13344608a652e818bcd16fe9ef6
END-of-thrulay/distinfo
echo c - thrulay/files
mkdir -p thrulay/files > /dev/null 2>&1
echo x - thrulay/files/thrulayd.sh.sample
sed 's/^X//' >thrulay/files/thrulayd.sh.sample << 'END-of-thrulay/files/thrulayd.sh.sample'
X#!/bin/sh
X
Xthrulayd=/usr/local/sbin/thrulayd
X
Xcase "$1" in
Xstart)
X	[ -x $thrulayd ] && $thrulayd && echo -n ' thrulayd'
X	;;
X*)
X	echo "Usage: `basename $0` {start}" >&2
X	;;
Xesac
X
Xexit 0
END-of-thrulay/files/thrulayd.sh.sample
echo x - thrulay/pkg-message
sed 's/^X//' >thrulay/pkg-message << 'END-of-thrulay/pkg-message'
XThe thrulay client is usable immediately.  The thrulayd deamon needs to be
Xstarted, which will happen automatically in the next boot cycle.  You may
Xalso start it manually by entering /usr/local/sbin/thrulayd as root.
END-of-thrulay/pkg-message
exit

>Release-Note:
>Audit-Trail:

From: Sergey Matveychuk <sem@FreeBSD.org>
To: bug-followup@FreeBSD.org,  shalunov@internet2.edu
Cc:  
Subject: Re: ports/87683: New port: benchmarks/thrulay: network capacity tester
Date: Thu, 20 Oct 2005 21:24:02 +0400

 Could you make couple little fixes to satisfy portlint -A?
 
 -- 
 Sem.

From: stanislav shalunov <shalunov@internet2.edu>
To: Sergey Matveychuk <sem@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/87683: New port: benchmarks/thrulay: network capacity tester
Date: 20 Oct 2005 13:41:51 -0400

 Sergey Matveychuk <sem@FreeBSD.org> writes:
 
 > Could you make couple little fixes to satisfy portlint -A?
 
 Didn't know about -A for portlint (the porter's guide doesn't mention
 it; should it?).  Removed the full pathname for the daemon from the
 pkg-message file and ``portlint -A'' is now happy (patch after
 signature).
 
 -- 
 Stanislav Shalunov		http://www.internet2.edu/~shalunov/
 
 This message is designed to be viewed at an angle of 45 degrees.
 
 
 
 
 diff -ur thrulay.orig/pkg-message thrulay/pkg-message
 --- thrulay.orig/pkg-message    Thu Oct 20 13:33:30 2005
 +++ thrulay/pkg-message Thu Oct 20 13:38:01 2005
 @@ -1,3 +1,4 @@
 +The package consists of a client (thrulay) and a daemon (thrulayd).
  The thrulay client is usable immediately.  The thrulayd deamon needs to be
  started, which will happen automatically in the next boot cycle.  You may
 -also start it manually by entering /usr/local/sbin/thrulayd as root.
 +also start thrulayd now manually as root.

From: Sergey Matveychuk <sem@FreeBSD.org>
To: stanislav shalunov <shalunov@internet2.edu>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/87683: New port: benchmarks/thrulay: network capacity tester
Date: Thu, 20 Oct 2005 22:26:56 +0400

 There is a problem with build on 4.11:
 ===>  Building for thrulay-0.8
 gmake[1]: Entering directory 
 `/work/a/ports/benchmarks/thrulay/work/thrulay-0.8/doc'
 gmake[1]: Nothing to be done for `all'.
 gmake[1]: Leaving directory 
 `/work/a/ports/benchmarks/thrulay/work/thrulay-0.8/doc'
 gmake[1]: Entering directory 
 `/work/a/ports/benchmarks/thrulay/work/thrulay-0.8/src'
 cc -DHAVE_CONFIG_H -O -pipe  -I.. -std=gnu99 -Wno-long-long -Wall 
 -pedantic -W -Wpointer-arith -Wnested-externs   -c -o assertd.o assertd.c
 cc1: unknown C standard `gnu99'
 gmake[1]: *** [assertd.o] Error 1
 gmake[1]: Leaving directory 
 `/work/a/ports/benchmarks/thrulay/work/thrulay-0.8/src'
 gmake: *** [all] Error 2
 *** Error code 2
 
 No problem with 5.4 and 6.0.
 It can be fixed with USE_GCC.
 
 -- 
 Sem.

From: stanislav shalunov <shalunov@internet2.edu>
To: Sergey Matveychuk <sem@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/87683: New port: benchmarks/thrulay: network capacity tester
Date: 20 Oct 2005 14:43:37 -0400

 Sergey Matveychuk <sem@FreeBSD.org> writes:
 
 > There is a problem with build on 4.11:
 > cc1: unknown C standard `gnu99'
 > No problem with 5.4 and 6.0.
 > It can be fixed with USE_GCC.
 
 I have no 4.x machine to try this on, but I expect that, as you
 suggest, the following patch should solve this.  Sorry about my
 inability to test on 4.x.
 
 diff -u Makefile.orig Makefile
 --- Makefile.orig       Wed Oct 19 15:33:10 2005
 +++ Makefile    Thu Oct 20 14:39:16 2005
 @@ -17,6 +17,7 @@
  MAN1=          thrulay.1
  MAN8=          thrulayd.8
  MANCOMPRESSED= no
 +USE_GCC=       3.2+
  HAS_CONFIGURE= yes
  USE_GMAKE=     yes
  
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Thu Oct 20 19:33:04 GMT 2005 
State-Changed-Why:  
New port added, thanks! 

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