diff options
author | miwi <miwi@FreeBSD.org> | 2009-09-04 03:03:12 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-09-04 03:03:12 +0800 |
commit | f1394ab58695110b2078d97b6d7d5abc57f8fa62 (patch) | |
tree | d2ba9dc544aea1acb3dd7e37d7af58eb83c1107c /benchmarks | |
parent | 72dab7bdbaf9fab0bce492665697c5670a8c131e (diff) | |
download | freebsd-ports-gnome-f1394ab58695110b2078d97b6d7d5abc57f8fa62.tar.gz freebsd-ports-gnome-f1394ab58695110b2078d97b6d7d5abc57f8fa62.tar.zst freebsd-ports-gnome-f1394ab58695110b2078d97b6d7d5abc57f8fa62.zip |
nuttcp is a network performance measurement tool intended for use
by network and system managers. Its most basic usage is to determine
the raw TCP (or UDP) network layer throughput by transferring memory
buffers from a source system across an interconnecting network to
a destination system, either transferring data for a specified time
interval, or alternatively transferring a specified number of bytes.
nuttcp is based on nttcp, but have several useful features such
as a server mode, rate limiting, multiple parallel streams, and
timer based usage.
WWW: http://www.lcp.nrl.navy.mil/nuttcp/
PR: ports/137876
Submitted by: Andy Clark <andrewclarkii at gmail.com>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 1 | ||||
-rw-r--r-- | benchmarks/nuttcp/Makefile | 67 | ||||
-rw-r--r-- | benchmarks/nuttcp/distinfo | 6 | ||||
-rw-r--r-- | benchmarks/nuttcp/pkg-descr | 12 | ||||
-rw-r--r-- | benchmarks/nuttcp/pkg-plist | 11 |
5 files changed, 97 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index ec69b43062e6..5c757363e693 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -32,6 +32,7 @@ SUBDIR += netpipe SUBDIR += nqueens SUBDIR += nttcp + SUBDIR += nuttcp SUBDIR += octave-forge-benchmark SUBDIR += p5-Benchmark-Forking SUBDIR += p5-Benchmark-Stopwatch diff --git a/benchmarks/nuttcp/Makefile b/benchmarks/nuttcp/Makefile new file mode 100644 index 000000000000..1ba9b39253d5 --- /dev/null +++ b/benchmarks/nuttcp/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: nuttcp +# Date Created: 17 Jul 2009 +# Whom: Andy Clark <andrewclarkii@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= nuttcp +PORTVERSION= 6.1.2 +CATEGORIES= benchmarks net +MASTER_SITES= ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/ \ + ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/beta/:beta +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + ${NUTTSCPDISTFILE}:beta +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= andrewclarkii@gmail.com +COMMENT= TCP/UDP network testing tool + +USE_BZIP2= yes +MAKEFILE= /dev/null +ALL_TARGET= ${PORTNAME} +MAN8= ${PORTNAME}.8 + +NUTTSCPVERSION= 1.7 +NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION} + +OPTIONS= NUTTSCP "Install script for copying files over nuttcp" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_NUTTSCP) +USE_PERL5= yes +PLIST_SUB+= NUTTSCP="" +.else +PLIST_SUB+= NUTTSCP="@comment " +.endif + +post-extract: .SILENT + ${CP} ${DISTDIR}/${DIST_SUBDIR}/${NUTTSCPDISTFILE} ${WRKDIR}/nuttscp + +post-patch: .SILENT + ${FIND} ${WRKSRC}/ -type f -exec \ + ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} + + ${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/nuttscp + +do-install: +. if defined(WITH_NUTTSCP) + ${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${PREFIX}/bin/ + ( cd ${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp ) +. endif + + ${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 ${PORTNAME} ${PORTNAME}4 ${PORTNAME}6 + ${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file} \ + ${PREFIX}/etc/xinetd.d/ +. endfor + +.include <bsd.port.post.mk> diff --git a/benchmarks/nuttcp/distinfo b/benchmarks/nuttcp/distinfo new file mode 100644 index 000000000000..ed670d723d56 --- /dev/null +++ b/benchmarks/nuttcp/distinfo @@ -0,0 +1,6 @@ +MD5 (nuttcp-6.1.2.tar.bz2) = a16d4d6d5def02cea980e57feaf30500 +SHA256 (nuttcp-6.1.2.tar.bz2) = 054e96d9d68fe917df6f25fab15c7755bdd480f6420d7d48d9194a1a52378169 +SIZE (nuttcp-6.1.2.tar.bz2) = 77169 +MD5 (nuttscp-1.7) = 558335dfdd526015d1c5bbd3653490f7 +SHA256 (nuttscp-1.7) = 71901d572ff2b472d2a3b7e1e4804c9d875b07e1a31e994b5f33d45d19111962 +SIZE (nuttscp-1.7) = 18582 diff --git a/benchmarks/nuttcp/pkg-descr b/benchmarks/nuttcp/pkg-descr new file mode 100644 index 000000000000..15b02f142ae9 --- /dev/null +++ b/benchmarks/nuttcp/pkg-descr @@ -0,0 +1,12 @@ +nuttcp is a network performance measurement tool intended for use +by network and system managers. Its most basic usage is to determine +the raw TCP (or UDP) network layer throughput by transferring memory +buffers from a source system across an interconnecting network to +a destination system, either transferring data for a specified time +interval, or alternatively transferring a specified number of bytes. + +nuttcp is based on nttcp, but have several useful features such +as a server mode, rate limiting, multiple parallel streams, and +timer based usage. + +WWW: http://www.lcp.nrl.navy.mil/nuttcp/ diff --git a/benchmarks/nuttcp/pkg-plist b/benchmarks/nuttcp/pkg-plist new file mode 100644 index 000000000000..1ed99a6f18e1 --- /dev/null +++ b/benchmarks/nuttcp/pkg-plist @@ -0,0 +1,11 @@ +%%NUTTSCP%%bin/nuttrcp +%%NUTTSCP%%bin/nuttscp +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 |