diff options
author | billf <billf@FreeBSD.org> | 1998-12-08 04:18:08 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1998-12-08 04:18:08 +0000 |
commit | 5b20524924c38825cfa8dc2ba0e4e586640e5a3c (patch) | |
tree | 0ebc72c998503b21cee556a8188f40f0a5c121a5 /net/nttcp | |
parent | 9991edf29775ae646391b38a8fe40511e2994d60 (diff) | |
download | FreeBSD-ports-5b20524924c38825cfa8dc2ba0e4e586640e5a3c.zip FreeBSD-ports-5b20524924c38825cfa8dc2ba0e4e586640e5a3c.tar.gz |
Import of nttcp
This program is an up to date version of the ttcp program.
It uses inetd (or simulates its behaviour) to start off the remote
side program which will send/receive data. Both sides measure the time
and number of bytes transfered. The local side will print the measures.
The format of the output can be specified on the commandline.
PR: ports/8546
Diffstat (limited to 'net/nttcp')
-rw-r--r-- | net/nttcp/Makefile | 32 | ||||
-rw-r--r-- | net/nttcp/distinfo | 1 | ||||
-rw-r--r-- | net/nttcp/files/Makefile | 184 | ||||
-rw-r--r-- | net/nttcp/files/patch-aa | 31 | ||||
-rw-r--r-- | net/nttcp/pkg-comment | 1 | ||||
-rw-r--r-- | net/nttcp/pkg-descr | 7 | ||||
-rw-r--r-- | net/nttcp/pkg-plist | 1 |
7 files changed, 257 insertions, 0 deletions
diff --git a/net/nttcp/Makefile b/net/nttcp/Makefile new file mode 100644 index 0000000..ddee0ec --- /dev/null +++ b/net/nttcp/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: nttcp +# Version required: 1.3 +# Date created: 11 Nov 1998 +# Whom: Bill Fumerola <billf@chc-chimes.com> +# +# $Id: $ +# + +DISTNAME= nttcp-1.4 +CATEGORIES= net benchmarks +MASTER_SITES= http://users.leo.org/~bartel/nttcp/ \ + http://www.FreeBSD.org/~billf/ + +MAINTAINER= billf@FreeBSD.org + +ALL_TARGET= nttcp +MAN1= nttcp.1 +USE_GMAKE= yes +MAKE_ENV+= CFLG="${CFLAGS}" + +post-patch: + + @${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed + @${SED} -e 's#-O2#${CFLAGS}#' \ + ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile + +do-install: + + ${INSTALL_PROGRAM} ${WRKSRC}/nttcp ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/nttcp.1 ${PREFIX}/man/man1/ + +.include <bsd.port.mk> diff --git a/net/nttcp/distinfo b/net/nttcp/distinfo new file mode 100644 index 0000000..e311ea6 --- /dev/null +++ b/net/nttcp/distinfo @@ -0,0 +1 @@ +MD5 (nttcp-1.4.tar.gz) = b97cadd2560c7e06faf890ebe7ceefc2 diff --git a/net/nttcp/files/Makefile b/net/nttcp/files/Makefile new file mode 100644 index 0000000..4b727c8 --- /dev/null +++ b/net/nttcp/files/Makefile @@ -0,0 +1,184 @@ +# This code was written and is copyrighted 1996,1998 by +# +# Elmar Bartel +# Institut fuer Informatik +# Technische Universitaet Muenchen +# bartel@informatik.tu-muenchen.de +# +# Permission to use, copy, modify and distribute this software +# and its documentation for any purpose, except making money, is +# herby granted, provided that the above copyright notice and +# this permission appears in all places, where this code is +# referenced or used literally. + +# uncomment the settings for your system and type make. +# if there is no setting available, simply try to use +# the most closest settings. +# Finally let me know what you used, to get it running. + + +## For System V4.1 (AT&T) either cc or gcc +## And for SINIX V4.1 (either mips or intel). +#ARCH= +#LIB= -lsocket -lnsl +#CC= cc +#OPT= -O +#DBG= -g +#INC= + +## For DEC (Mips)ULTRIX 4.1 +#ARCH= -Dultrix +#LIB= +#CC= gcc +#OPT= -O2 +#DBG= +#INC= + +## For HPUX 9.* with gcc +#ARCH= -Dhpux9 +#LIB= +#CC= gcc +#OPT= -O2 +#DBG= -g +#INC= + +## For HPUX 9.* with cc +#ARCH= -Ae -Dhpux9 +#LIB= +#CC= cc +#OPT= -O +#DBG= -g +#INC= + + +## For HPUX 10.* with gcc +#ARCH= -Dhpux +#LIB= +#CC= gcc +#OPT= -O2 +#DBG= -g +#INC= + +## For HPUX 10.* with cc +#ARCH= -Ae -Dhpux +#LIB= +#CC= cc +#OPT= -O +#DBG= -g +#INC= + +## For SunOS 4.1 with clcc +#ARCH=-DSunOS4 +#LIB= +#OPT= -O2 +#CC= clcc +#DBG= +#INC= + +## For SunOS 4.1 with gcc +#ARCH=-DSunOS4 +#LIB= +#OPT= -O2 +#CC= gcc +#DBG= +#INC= + +## For SunOS 5.3 with gcc +#ARCH=-DSunOS53 +#LIB= -lsocket -lnsl -lucb +#OPT= -O2 +#CC= gcc +#DBG= +#INC= + +## For SunOS 5.[456] with cc from SunSoft +#ARCH=-DSunOS54 +#LIB= -lsocket -lnsl +#OPT= -O +#CC= /usr/ccs/bin/cc +#CC= /opt/SUNWspro/bin/cc +#DBG= -g +#INC= + +## For SunOS 5.[456] with gcc +#ARCH=-DSunOS54 +#LIB= -lsocket -lnsl +#OPT= -O2 +#CC= gcc +#DBG= -Wall -g +#INC= + +## For FreeBSD +ARCH= -DFreeBSD +LIB= +OPT= -O2 +CC= cc +DBG= +INC= + +## For SGI IRIX 5.3, 6.2 (cc or gcc) +#ARCH= +#LIB= +#OPT= -O +#CC= cc +#DBG= +#INC= + +## For IBM AIX 2.3 +#ARCH= -Daix +#LIB= +#OPT= -O +#CC= cc +#DBG= +#INC= + +## For OSF/1 10.41 +#ARCH= +#LIB= +#OPT= -O -Olimit 700 +#CC= cc +#DBG= +#INC= + +## For Linux with gcc +#ARCH= +#LIB= +#OPT= -O2 +#CC= gcc +#DBG= +#INC= + +VERSION= 1.4 +prefix= /usr/local/dist/DIR/nttcp-$(VERSION) +#prefix= /usr/local +#CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\" +CFLAGS = $(ARCH) $(CFLG) -DVERSION=\"$(VERSION)\" +LFLAGS = $(DBG) + +nttcp: nttcp.o support.o + $(CC) $(LFLAGS) nttcp.o -o nttcp support.o $(LIB) + +support.o: support.c support.h + +dist: + if [ -d nttcp-$(VERSION) ]; then \ + rm -f nttcp-$(VERSION)/*; \ + else \ + mkdir nttcp-$(VERSION); \ + fi + ln nttcp.c nttcp.1 support.c support.h \ + README Makefile nttcp-$(VERSION) + tar cvf - nttcp-$(VERSION) | gzip > /tmp/nttcp-$(VERSION).tar.gz; \ + zip -lgr /tmp/nttcp`echo $(VERSION)|tr -d .`.zip nttcp-$(VERSION) + +install: nttcp + -mkdir -p $(prefix)/bin + -mkdir -p $(prefix)/man/man1 + cp nttcp $(prefix)/bin + cp nttcp.1 $(prefix)/man/man1 + +clean: + rm -f *.o + +clobber: clean + rm -rf core nttcp nttcp-$(VERSION) diff --git a/net/nttcp/files/patch-aa b/net/nttcp/files/patch-aa new file mode 100644 index 0000000..0f90880 --- /dev/null +++ b/net/nttcp/files/patch-aa @@ -0,0 +1,31 @@ +--- Makefile.old Wed Oct 7 15:12:25 1998 ++++ Makefile Mon Dec 7 23:03:15 1998 +@@ -109,12 +109,12 @@ + #INC= + + ## For FreeBSD +-#ARCH= -DFreeBSD +-#LIB= +-#OPT= -O2 +-#CC= cc +-#DBG= +-#INC= ++ARCH= -DFreeBSD ++LIB= ++OPT= -O2 ++CC= cc ++DBG= ++INC= + + ## For SGI IRIX 5.3, 6.2 (cc or gcc) + #ARCH= +@@ -151,7 +151,8 @@ + VERSION= 1.4 + prefix= /usr/local/dist/DIR/nttcp-$(VERSION) + #prefix= /usr/local +-CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\" ++#CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\" ++CFLAGS = $(ARCH) $(CFLG) -DVERSION=\"$(VERSION)\" + LFLAGS = $(DBG) + + nttcp: nttcp.o support.o diff --git a/net/nttcp/pkg-comment b/net/nttcp/pkg-comment new file mode 100644 index 0000000..f96ddb7 --- /dev/null +++ b/net/nttcp/pkg-comment @@ -0,0 +1 @@ +a client/server program for testing network performance diff --git a/net/nttcp/pkg-descr b/net/nttcp/pkg-descr new file mode 100644 index 0000000..8f01871 --- /dev/null +++ b/net/nttcp/pkg-descr @@ -0,0 +1,7 @@ +This program is a much more convient version of the ttcp program. +It uses inetd (or simulates its behaviour) to start off the remote +side program which will send/receive data. Both sides measure the time +and number of bytes transfered. The local side will print the measures. +The format of the output can be specified on the commandline. + +Bill Fumerola <billf@chc-chimes.com> diff --git a/net/nttcp/pkg-plist b/net/nttcp/pkg-plist new file mode 100644 index 0000000..e64420d --- /dev/null +++ b/net/nttcp/pkg-plist @@ -0,0 +1 @@ +bin/nttcp |