From e4d12ca8e2e865eb2af61c63de19127d9fb78792 Mon Sep 17 00:00:00 2001 From: mickey Date: Tue, 8 May 2001 03:58:14 +0000 Subject: [PATCH] tcp/udp pipe measuring tool; from sgi via freebsd port; brad@ help and ok --- net/ttcp/Makefile | 35 +++++++++++++++++++++++++++++++++++ net/ttcp/files/md5 | 9 +++++++++ net/ttcp/pkg/DESCR | 14 ++++++++++++++ net/ttcp/pkg/PLIST | 5 +++++ 4 files changed, 63 insertions(+) create mode 100644 net/ttcp/Makefile create mode 100644 net/ttcp/files/md5 create mode 100644 net/ttcp/pkg/DESCR create mode 100644 net/ttcp/pkg/PLIST diff --git a/net/ttcp/Makefile b/net/ttcp/Makefile new file mode 100644 index 00000000000..e99097ddb67 --- /dev/null +++ b/net/ttcp/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/05/08 03:58:14 mickey Exp $ + +COMMENT= "benchmarking tool for analysing TCP and UDP performance" + +PKGNAME= ttcp-1.12 +CATEGORIES= net +MASTER_SITES= ftp://ftp.sgi.com/sgi/src/ttcp/ +DISTFILES= ttcp.c ttcp.1 README +EXTRACT_ONLY= +DIST_SUBDIR= ttcp + +MAINTAINER= ports@openbsd.org + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +SEPARATE_BUILD= concurrent + +WRKDIST= ${WRKDIR} + +post-extract: + @cd ${FULLDISTDIR} && cp -f ${DISTFILES} ${WRKSRC} + +do-build: + ${CC} ${CFLAGS} -o ${WRKBUILD}/ttcp ${WRKSRC}/ttcp.c + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ttcp + ${INSTALL_PROGRAM} ${WRKBUILD}/ttcp ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/ttcp.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ttcp + +.include diff --git a/net/ttcp/files/md5 b/net/ttcp/files/md5 new file mode 100644 index 00000000000..d572c293f5a --- /dev/null +++ b/net/ttcp/files/md5 @@ -0,0 +1,9 @@ +MD5 (ttcp/README) = 6b1e5ff6247a9f284f3b58eb651b37a9 +MD5 (ttcp/ttcp.1) = 01d3a511a05dc8a0669f30c15ebaae82 +MD5 (ttcp/ttcp.c) = 3d1b75f6116cc246a4def9788ce58c26 +RMD160 (ttcp/README) = 0552eb0f8c2c545cce32a5b0b67cf8b592bd7bfb +RMD160 (ttcp/ttcp.1) = 4820c2b9c058a430030a774dcf012d41c8e6ec8c +RMD160 (ttcp/ttcp.c) = 99e8f596134eec2077989fd7205648187716e016 +SHA1 (ttcp/README) = 0de9d88ae141eb1ff7720c2962d3d99e1c39673d +SHA1 (ttcp/ttcp.1) = f5ae207c779bf3af1ac43fcd5614b734d139e1a3 +SHA1 (ttcp/ttcp.c) = 1ff5b8fd64ff3dbe1b5a66bfc9813b1a5e3063fd diff --git a/net/ttcp/pkg/DESCR b/net/ttcp/pkg/DESCR new file mode 100644 index 00000000000..a90ba3f06dd --- /dev/null +++ b/net/ttcp/pkg/DESCR @@ -0,0 +1,14 @@ +TTCP is a benchmarking tool for determining TCP and UDP performance +between 2 systems. + +The program was created at the US Army Ballistics Research Lab (BRL) +and is in the public domain. Feel free to distribute this program +but please do leave the credit notices in the source and man page intact. + +How to get TCP performance numbers: + + receiver sender + +host1% ttcp -r -s host2% ttcp -t -s host1 + +-n and -l options change the number and size of the buffers. diff --git a/net/ttcp/pkg/PLIST b/net/ttcp/pkg/PLIST new file mode 100644 index 00000000000..ba426c2c81f --- /dev/null +++ b/net/ttcp/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/05/08 03:58:14 mickey Exp $ +bin/ttcp +man/man1/ttcp.1 +share/doc/ttcp/README +@dirrm share/doc/ttcp