diff options
author | itojun <itojun> | 2000-01-21 12:37:34 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-01-21 12:37:34 +0000 |
commit | 31dff612dac758d562319950c78422665f933fe2 (patch) | |
tree | 8c92643b1aaec84d1d207413cd10a9124f56c4cb /net/netperf | |
parent | 9520516c845127d922fc2ab95c92b1e9d17645e8 (diff) | |
download | pkgsrc-31dff612dac758d562319950c78422665f933fe2.tar.gz |
from latest kame kit
Diffstat (limited to 'net/netperf')
-rw-r--r-- | net/netperf/Makefile | 35 | ||||
-rw-r--r-- | net/netperf/files/md5 | 4 | ||||
-rw-r--r-- | net/netperf/patches/patch-aa | 30 | ||||
-rw-r--r-- | net/netperf/patches/patch-ab | 20 | ||||
-rw-r--r-- | net/netperf/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/netperf/pkg/DESCR | 26 | ||||
-rw-r--r-- | net/netperf/pkg/PLIST | 13 | ||||
-rwxr-xr-x | net/netperf/scripts/configure | 17 |
8 files changed, 146 insertions, 0 deletions
diff --git a/net/netperf/Makefile b/net/netperf/Makefile new file mode 100644 index 00000000000..3012bf69b17 --- /dev/null +++ b/net/netperf/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: netperf +# Version required: 2.1.3 +# Date created: 19 July 1996 +# Whom: koshy +# +# KAME Id: Makefile,v 1.3 2000/01/21 12:34:29 itojun Exp +# + +DISTNAME= netperf-2.1pl3 +PKGNAME= netperf-2.1.3 +CATEGORIES= benchmarks +MASTER_SITES= ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/ + +PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ +PATCHFILES= netperf-21pl3-20000111.diff.gz +PATCH_DIST_STRIP= -p + +MAINTAINER= sumikawa@kame.net + +MAKEFILE= makefile +MAN1= netperf.1 netserver.1 +MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} + +post-install: + strip ${PREFIX}/netperf/netperf + strip ${PREFIX}/netperf/netserver + ${MINSTALL} ${WRKSRC}/netperf.man ${PREFIX}/man/man1/netperf.1 + ${MINSTALL} ${WRKSRC}/netserver.man ${PREFIX}/man/man1/netserver.1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/netperf + ${MINSTALL} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf + gzip -9nf ${PREFIX}/share/doc/netperf/netperf.ps +.endif + +.include "../../mk/bsd.pkg.mk" diff --git a/net/netperf/files/md5 b/net/netperf/files/md5 new file mode 100644 index 00000000000..42261ca508b --- /dev/null +++ b/net/netperf/files/md5 @@ -0,0 +1,4 @@ +$NetBSD: md5,v 1.1.1.1 2000/01/21 12:37:34 itojun Exp $ + +MD5 (netperf-2.1pl3.tar.gz) = ca221caf6dc60322386158c2885fcf68 +MD5 (netperf-21pl3-20000111.diff.gz) = 58c87769f3fdc43fbce6a2ecd7254d3a diff --git a/net/netperf/patches/patch-aa b/net/netperf/patches/patch-aa new file mode 100644 index 00000000000..cb99426a79a --- /dev/null +++ b/net/netperf/patches/patch-aa @@ -0,0 +1,30 @@ +--- makefile.orig Thu Apr 10 03:02:19 1997 ++++ makefile Fri Jan 21 21:31:07 2000 +@@ -15,8 +15,8 @@ + # for the rest of the world, it is probably better to put the binaries + # in /usr/local/netperf or /opt/netperf + # +-#NETPERF_HOME = /usr/local/netperf +-NETPERF_HOME = /opt/netperf ++NETPERF_HOME = ${PREFIX}/netperf ++#NETPERF_HOME = /opt/netperf + + # The compiler on your system might be somewhere else, and/or have + # a different name. +@@ -83,7 +83,7 @@ + # -U__hpux - Use this when compiling _on_ HP-UX *for* an HP-RT system + + LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\"" +-CFLAGS = -O -D$(LOG_FILE) -DUSE_LOOPER ++CFLAGS = %CFLAGS% -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM -DDO_UNIX + + # Some platforms, and some options, require additional libraries. + # you can add to the "LIBS =" line to accomplish this. if you find +@@ -181,6 +181,7 @@ + netserver.o: netserver.c nettest_bsd.h netlib.h makefile + + install: netperf netserver ++ mkdir -p $(NETPERF_HOME) + chmod -w *.[ch] + chmod +x $(NETPERF_SCRIPTS) + cp netperf $(NETPERF_HOME) diff --git a/net/netperf/patches/patch-ab b/net/netperf/patches/patch-ab new file mode 100644 index 00000000000..8d606259bbd --- /dev/null +++ b/net/netperf/patches/patch-ab @@ -0,0 +1,20 @@ +--- makefile Fri Jan 21 21:31:07 2000 ++++ makefile Jan 21 21:30:56 2000 +@@ -83,7 +83,7 @@ + # -U__hpux - Use this when compiling _on_ HP-UX *for* an HP-RT system + + LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\"" +-CFLAGS = %CFLAGS% -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM -DDO_UNIX ++CFLAGS = %CFLAGS% -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM -DDO_UNIX -DDO_IPV6 + + # Some platforms, and some options, require additional libraries. + # you can add to the "LIBS =" line to accomplish this. if you find +@@ -101,7 +101,7 @@ + # -lm - required for ALL platforms + # -lxti - required for -DDO_XTI on HP_UX 10.X + +-LIBS= -lm ++LIBS= -lm -L/usr/local/v6/lib -linet6 + + # --------------------------------------------------------------- + # it should not be the case that anything below this line needs to diff --git a/net/netperf/pkg/COMMENT b/net/netperf/pkg/COMMENT new file mode 100644 index 00000000000..180b4759b2d --- /dev/null +++ b/net/netperf/pkg/COMMENT @@ -0,0 +1 @@ +Rick Jones' <raj@cup.hp.com> network performance benchmarking package diff --git a/net/netperf/pkg/DESCR b/net/netperf/pkg/DESCR new file mode 100644 index 00000000000..53b953a7c9d --- /dev/null +++ b/net/netperf/pkg/DESCR @@ -0,0 +1,26 @@ +Netperf is a serious networking performance evaluation tool being +distributed under GPL by HP's Information Networks Division. +Testing is done using a pair of programs: `netserver' (the server) and +`netperf' (the measurement tool). + +Netperf allows control over a large number of test `variables'. +Some of these are: + + * specification of desired confidence levels for the tests + Netperf will warn the user if these levels were not achieved. + * filling send buffers with specified data (to beat compression schemes) + * specification of send/recieve buffer alignments and data offsets + * requesting cpu utilization and service demand calculations + * specification of sizes of data to send + +Netperf can be used for measuring stream performance as well as +round-trip performance. + +This port of netperf has been configured to support: + + TCP and UDP via BSD sockets + Unix domain sockets + +WWW: http://www.netperf.org/ + +- Koshy diff --git a/net/netperf/pkg/PLIST b/net/netperf/pkg/PLIST new file mode 100644 index 00000000000..31fb37ad9ee --- /dev/null +++ b/net/netperf/pkg/PLIST @@ -0,0 +1,13 @@ +netperf/netperf +netperf/netserver +netperf/tcp_range_script +netperf/tcp_stream_script +netperf/tcp_rr_script +netperf/udp_stream_script +netperf/udp_rr_script +netperf/snapshot_script +share/doc/netperf/netperf.ps.gz +@dirrm netperf +@dirrm share/doc/netperf +man/man1/netperf.1 +man/man1/netserver.1 diff --git a/net/netperf/scripts/configure b/net/netperf/scripts/configure new file mode 100755 index 00000000000..ce86533f8cb --- /dev/null +++ b/net/netperf/scripts/configure @@ -0,0 +1,17 @@ +#!/bin/sh +# +# +# If this is FreeBSD 2.2 or later, this will work. Older FreeBSD versions +# will set CFLAGS to "". Life's a bitch. +# +CFLAGS=`make -V CFLAGS echo` || echo "*** Ignore this error" + +if [ X"$CFLAGS" = X ] ; then + CFLAGS="-O2 -fno-strength-reduce" +fi + +cd $WRKSRC +echo "Setting CFLAGS to \"$CFLAGS\"" +sed -e "s/%CFLAGS%/${CFLAGS}/" makefile | sed -e "s#/usr/local#${PREFIX}#" | sed -e "s#${PREFIX}/v6/lib#/usr/local/v6/lib#" >makefile.new +mv -f makefile makefile.orig2 +mv -f makefile.new makefile |