diff options
Diffstat (limited to 'net/nettest')
-rw-r--r-- | net/nettest/Makefile | 25 | ||||
-rw-r--r-- | net/nettest/distinfo | 2 | ||||
-rw-r--r-- | net/nettest/files/patch-Makefile | 38 | ||||
-rw-r--r-- | net/nettest/files/patch-nettest.c | 95 | ||||
-rw-r--r-- | net/nettest/files/patch-nettestd.c | 94 | ||||
-rw-r--r-- | net/nettest/pkg-descr | 15 | ||||
-rw-r--r-- | net/nettest/pkg-plist | 3 |
7 files changed, 0 insertions, 272 deletions
diff --git a/net/nettest/Makefile b/net/nettest/Makefile deleted file mode 100644 index 7fef1441ba98..000000000000 --- a/net/nettest/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Created by: proot@iaces.com -# $FreeBSD$ - -PORTNAME= nettest -PORTVERSION= 92.11.09 -CATEGORIES= net -MASTER_SITES= ftp://ftp.cray.com/src/nettest/ -DISTNAME= nettest.92.11.09 - -MAINTAINER= ports@FreeBSD.org -COMMENT= Performs client and server functions for timing data throughput - -BROKEN= unfetchable -DEPRECATED= Unfetchable, unmaintained -EXPIRATION_DATE= 2019-10-16 - -NO_WRKSUBDIR= yes -USES= tar:Z - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/nettest ${STAGEDIR}${PREFIX}/bin/nettest - ${INSTALL_PROGRAM} ${WRKSRC}/nettestd ${STAGEDIR}${PREFIX}/bin/nettestd - ${INSTALL_MAN} ${WRKSRC}/nettest.8 ${STAGEDIR}${PREFIX}/man/man8/nettest.8 - -.include <bsd.port.mk> diff --git a/net/nettest/distinfo b/net/nettest/distinfo deleted file mode 100644 index 21f132564283..000000000000 --- a/net/nettest/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (nettest.92.11.09.tar.Z) = 980415a97e155a40fa8dc65801f036a59edc5a235cf44ce51d305069c6850dd0 -SIZE (nettest.92.11.09.tar.Z) = 35068 diff --git a/net/nettest/files/patch-Makefile b/net/nettest/files/patch-Makefile deleted file mode 100644 index fd16c80ee55a..000000000000 --- a/net/nettest/files/patch-Makefile +++ /dev/null @@ -1,38 +0,0 @@ -*** Makefile.orig Thu Nov 5 16:03:14 1992 ---- Makefile Mon Oct 20 12:50:14 1997 -*************** -*** 3,12 **** - FILES=README Makefile nettest.h nettest.c nettestd.c nettest.8 - - all: -! @if [ -f /bin/hostname -o -f /usr/bin/hostname ]; then \ -! $(MAKE) `hostname`; \ -! elif [ -f /bin/uname ]; then \ -! $(MAKE) `uname -n`; \ - else \ - echo You must specify what machine you are on,;\ - echo e.g. \"make sun\", \"make cray2\", \"make pyramid\", \"make xmp\";\ ---- 3,10 ---- - FILES=README Makefile nettest.h nettest.c nettestd.c nettest.8 - - all: -! @if [ -f /bin/uname -o -f /usr/bin/uname ]; then \ -! $(MAKE) `uname -s`; \ - else \ - echo You must specify what machine you are on,;\ - echo e.g. \"make sun\", \"make cray2\", \"make pyramid\", \"make xmp\";\ -*************** -*** 32,37 **** ---- 30,41 ---- - INCLUDE="-I." \ - DEFINES="-DWAIT3CODE -DNO_ISO" \ - LIBS="" OPT="-O" -+ -+ FreeBSD: -+ $(MAKE) objs \ -+ INCLUDE="" \ -+ DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO" \ -+ OPT="-O" LIBS="-lcompat" - - 4.4alpha: - $(MAKE) objs \ diff --git a/net/nettest/files/patch-nettest.c b/net/nettest/files/patch-nettest.c deleted file mode 100644 index 151746bf75f5..000000000000 --- a/net/nettest/files/patch-nettest.c +++ /dev/null @@ -1,95 +0,0 @@ -*** nettest.c.orig Thu Nov 5 15:52:58 1992 ---- nettest.c Sun Sep 19 17:33:02 1999 -*************** -*** 92,98 **** ---- 92,102 ---- - int nodelay = 0; - int mesghdr = 0; - -+ #ifdef BSD44 -+ clock_t times(); -+ #else - long times(); -+ #endif - #if !defined(CRAY) && !defined(SYSV) - #define GETTIMES(a, b) ftime(&a); times(&b); - #define TIMETYPE struct timeb -*************** -*** 126,132 **** - - void do_children(), do_stream(), usage(), do_dgram(), prtimes(); - -! int read(), recv(); - - int (*rfunc)() = read; - ---- 130,137 ---- - - void do_children(), do_stream(), usage(), do_dgram(), prtimes(); - -! int read(); -! ssize_t recv(); - - int (*rfunc)() = read; - -*************** -*** 550,556 **** ---- 555,565 ---- - shutdown(s, 2); - exit(0); - } -+ #ifdef BSD44 -+ if (connect(s, (struct sockaddr *)&name, namesize) < 0) { -+ #else - if (connect(s, (char *)&name, namesize) < 0) { -+ #endif - perror("connect"); - exit(1); - } -*************** -*** 1160,1167 **** - *data = 0; - for (i = 0; i < nchunks; i++) { - ret = mesghdr ? sendmsg(s, &outmsg, 0) -! : sendto(s, data, chunksize, 0, (caddr_t)&name, -! namesize); - - if (ret < 0) { - perror(mesghdr ? "sendmsg" : "sendto"); ---- 1169,1176 ---- - *data = 0; - for (i = 0; i < nchunks; i++) { - ret = mesghdr ? sendmsg(s, &outmsg, 0) -! : sendto(s, data, chunksize, 0, -! (struct sockaddr *)&name, namesize); - - if (ret < 0) { - perror(mesghdr ? "sendmsg" : "sendto"); -*************** -*** 1397,1408 **** - register char *c; - int tos; - - #ifdef IP_TOS - struct tosent *tosp; - -! tosp = gettosbyname(name, proto); - if (tosp) { -! tos = tosp->t_tos; - } else { - #endif - for (c = name; *c; c++) { ---- 1406,1418 ---- - register char *c; - int tos; - -+ #undef IP_TOS - #ifdef IP_TOS - struct tosent *tosp; - -! tosp = (struct tosent *)gettosbyname(name, proto); - if (tosp) { -! tos = (int)tosp->t_tos; - } else { - #endif - for (c = name; *c; c++) { diff --git a/net/nettest/files/patch-nettestd.c b/net/nettest/files/patch-nettestd.c deleted file mode 100644 index a669d597b7b6..000000000000 --- a/net/nettest/files/patch-nettestd.c +++ /dev/null @@ -1,94 +0,0 @@ -*** nettestd.c.orig Thu Nov 5 15:52:58 1992 ---- nettestd.c Sun Sep 19 17:31:20 1999 -*************** -*** 107,113 **** - } name; - int namesize; - -! int read(), recv(); - int (*rfunc)() = read; - - main(argc, argv) ---- 107,114 ---- - } name; - int namesize; - -! int read(); -! ssize_t recv(); - int (*rfunc)() = read; - - main(argc, argv) -*************** -*** 271,277 **** - # endif - #endif - if (daemon) { -! if (setpgrp() < 0) - perror("setpgrp"); - if ((c = open(_PATH_TTY, O_RDWR)) >= 0) { - (void)ioctl(c, TIOCNOTTY, (char *)0); ---- 272,278 ---- - # endif - #endif - if (daemon) { -! if (setpgrp(0, getpid()) < 0) - perror("setpgrp"); - if ((c = open(_PATH_TTY, O_RDWR)) >= 0) { - (void)ioctl(c, TIOCNOTTY, (char *)0); -*************** -*** 416,422 **** - ) - error("setsockopt (IP_OPTIONS)"); - #endif -! if (bind(s, (char *)&name, namesize) < 0) { - error("bind"); - exit(1); - } ---- 417,423 ---- - ) - error("setsockopt (IP_OPTIONS)"); - #endif -! if (bind(s, (struct sockaddr *)&name, namesize) < 0) { - error("bind"); - exit(1); - } -*************** -*** 447,456 **** - #endif - listen(s, 5); - -! signal(SIGCHLD, dochild); - for (;;) { - namesize = sizeof(name); -! s2 = accept(s, (char *)&name, &namesize); - if (s2 < 0) { - extern int errno; - if (errno == EINTR) ---- 448,457 ---- - #endif - listen(s, 5); - -! signal(SIGCHLD, (void *)dochild); - for (;;) { - namesize = sizeof(name); -! s2 = accept(s, (struct sockaddr *)&name, &namesize); - if (s2 < 0) { - extern int errno; - if (errno == EINTR) -*************** -*** 723,729 **** - #endif - { - namesize = sizeof(name.d_inet); -! t = recvfrom(s, data, MAXSIZE, 0, (char *)&name.d_inet, - &namesize); - } - if (t < 0) { ---- 724,730 ---- - #endif - { - namesize = sizeof(name.d_inet); -! t = recvfrom(s, data, MAXSIZE, 0, (struct sockaddr *)&name.d_inet, - &namesize); - } - if (t < 0) { diff --git a/net/nettest/pkg-descr b/net/nettest/pkg-descr deleted file mode 100644 index 3f9b23a042b8..000000000000 --- a/net/nettest/pkg-descr +++ /dev/null @@ -1,15 +0,0 @@ -The nettest and nettestd commands invoke client and server -programs that are used for timing data throughput of vari- -ous methods of interprocess communication. For TCP and -OSI connections, the nettest program establishes a connec- -tion with the nettestd program, and then it does count -writes of size bytes, followed by count reads of size -bytes. For UDP, the nettest program performs only writes; -reads are not performed. The nettestd program, if used -with UDP connections, reads the data packets and prints a -message for each data packet it receives. The number and -size of the reads and writes may not correlate with the -number and size of the actual data packets that are trans- -ferred; it depends on the protocol that is chosen. If you -append an optional k (or K) to the size, count, or bufsize -value, the number specified is multiplied by 1024. diff --git a/net/nettest/pkg-plist b/net/nettest/pkg-plist deleted file mode 100644 index 5de932561ece..000000000000 --- a/net/nettest/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/nettest -bin/nettestd -man/man8/nettest.8.gz |