aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/dbs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/dbs')
-rw-r--r--benchmarks/dbs/Makefile34
-rw-r--r--benchmarks/dbs/distinfo1
-rw-r--r--benchmarks/dbs/files/patch-aa33
-rw-r--r--benchmarks/dbs/files/patch-ab22
-rw-r--r--benchmarks/dbs/files/patch-ac21
-rw-r--r--benchmarks/dbs/files/patch-ad22
-rw-r--r--benchmarks/dbs/files/patch-ae35
-rw-r--r--benchmarks/dbs/files/patch-af12
-rw-r--r--benchmarks/dbs/pkg-comment1
-rw-r--r--benchmarks/dbs/pkg-descr11
-rw-r--r--benchmarks/dbs/pkg-plist11
11 files changed, 203 insertions, 0 deletions
diff --git a/benchmarks/dbs/Makefile b/benchmarks/dbs/Makefile
new file mode 100644
index 000000000000..1d5458a3b956
--- /dev/null
+++ b/benchmarks/dbs/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: dbs
+# Version required: 1.1.5
+# Date created: 1 August 1998
+# Whom: jkoshy
+#
+# $Id$
+#
+
+DISTNAME= dbs-1.1.5
+CATEGORIES= benchmarks
+MASTER_SITES= http://shika.aist-nara.ac.jp/member/yukio-m/dbs/software1.1.5/
+
+MAINTAINER= jkoshy@freebsd.org
+
+DOCDIR= ${PREFIX}/share/doc/dbs/
+DOCS= dbs.man dbs.man.jis dbs_paper.ps Copyright
+EXDIR= ${PREFIX}/share/examples/dbs/
+EXS= TCP2.cmd TCPvsMPEG.cmd
+
+do-build:
+ cd ${WRKSRC}/src; ${MAKE} dir
+ cd ${WRKSRC}/obj/${OPSYS}; ${MAKE} ${ALL_TARGET} PREFIX=${PREFIX}
+
+do-install:
+ cd ${WRKSRC}/obj/${OPSYS}; ${MAKE} ${INSTALL_TARGET} PREFIX=${PREFIX}
+ strip ${PREFIX}/bin/dbsc ${PREFIX}/bin/dbsd
+ ${MKDIR} ${EXDIR}
+ cd ${WRKSRC}/sample; ${CP} -p ${EXS} ${EXDIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCDIR}
+ cd ${WRKSRC}/doc; ${CP} -p ${DOCS} ${DOCDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/benchmarks/dbs/distinfo b/benchmarks/dbs/distinfo
new file mode 100644
index 000000000000..d73f5cb19740
--- /dev/null
+++ b/benchmarks/dbs/distinfo
@@ -0,0 +1 @@
+MD5 (dbs-1.1.5.tar.gz) = 9939acd3450393e03127b6885cfb646d
diff --git a/benchmarks/dbs/files/patch-aa b/benchmarks/dbs/files/patch-aa
new file mode 100644
index 000000000000..4ba0a4562e46
--- /dev/null
+++ b/benchmarks/dbs/files/patch-aa
@@ -0,0 +1,33 @@
+--- src/Makefile-- Sat Aug 1 19:13:01 1998
++++ src/Makefile Sat Aug 1 19:44:49 1998
+@@ -27,10 +27,10 @@
+ # make install
+ #
+
+-BIN =/usr/local/etc
++BIN = ${PREFIX}/bin
+
+ #CC =gcc
+-CFLAGS =-O
++CFLAGS =-O -DHAVE_SYS_PARAM_H
+
+ #CFLAGS =-g # debug
+ #CFLAGS =-g -DDEBUGMODE
+@@ -51,7 +51,7 @@
+ obj::
+ (cd ../obj/$(UNAME); make)
+
+-UNAME = `uname|tr -d '/'``uname -r|tr -d '/'`
++UNAME = `uname|tr -d '/'`
+ dir::
+ -@ mkdir ../obj
+ -@ mkdir ../obj/$(UNAME)
+@@ -74,7 +74,7 @@
+ etags *.c *.h
+
+ install::
+- cp -p dbsc dbsd ../script/dbs_view $(BIN)
++ cp -p dbsc dbsd ../../script/dbs_view $(BIN)
+
+ dbsc: dbsc.o scan.o dbs.o
+ $(CC) $(BSTATIC) dbsc.o scan.o dbs.o -o $@ -lm $(LDFLAGS)
diff --git a/benchmarks/dbs/files/patch-ab b/benchmarks/dbs/files/patch-ab
new file mode 100644
index 000000000000..f3f9b60fdb4d
--- /dev/null
+++ b/benchmarks/dbs/files/patch-ab
@@ -0,0 +1,22 @@
+--- src/dbsc.c-- Mon Jun 8 00:23:35 1998
++++ src/dbsc.c Sat Aug 1 19:29:49 1998
+@@ -51,6 +51,10 @@
+
+ #define DBSC
+
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -69,7 +73,7 @@
+ #include <arpa/inet.h>
+ #include <errno.h>
+
+-#if !defined(bsdi)
++#if (!defined(BSD) || (BSD < 199306))
+ #include <malloc.h>
+ #endif
+
diff --git a/benchmarks/dbs/files/patch-ac b/benchmarks/dbs/files/patch-ac
new file mode 100644
index 000000000000..85458d45b1ec
--- /dev/null
+++ b/benchmarks/dbs/files/patch-ac
@@ -0,0 +1,21 @@
+--- src/dbsd.c-- Mon Jun 8 00:23:26 1998
++++ src/dbsd.c Sat Aug 1 19:29:15 1998
+@@ -51,6 +51,9 @@
+
+ #define DBSD
+
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -80,7 +83,7 @@
+ #include <sys/fcntl.h>
+ #endif
+
+-#if !defined(bsdi)
++#if (!defined(BSD) || (BSD < 199306))
+ #include <malloc.h>
+ #endif
+
diff --git a/benchmarks/dbs/files/patch-ad b/benchmarks/dbs/files/patch-ad
new file mode 100644
index 000000000000..5939f8477776
--- /dev/null
+++ b/benchmarks/dbs/files/patch-ad
@@ -0,0 +1,22 @@
+--- src/scan.c-- Fri Jul 11 00:54:12 1997
++++ src/scan.c Sat Aug 1 19:33:34 1998
+@@ -49,6 +49,9 @@
+ * $Author: yukio-m $
+ *****************************************************************/
+
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
+ #include<stdio.h>
+ #include<stdlib.h>
+
+@@ -58,7 +61,8 @@
+ #include <string.h>
+ #endif
+
+-#if !defined(bsdi)
++#if (!defined(BSD) || (BSD < 199306))
++#error BSD
+ #include <malloc.h>
+ #endif
+
diff --git a/benchmarks/dbs/files/patch-ae b/benchmarks/dbs/files/patch-ae
new file mode 100644
index 000000000000..8adccc9b1dd4
--- /dev/null
+++ b/benchmarks/dbs/files/patch-ae
@@ -0,0 +1,35 @@
+--- src/sendrecv.c-- Mon Oct 13 03:27:19 1997
++++ src/sendrecv.c Sat Aug 1 19:37:02 1998
+@@ -70,12 +70,12 @@
+ #define INIT_RECORD() (rdp = rd->d, rd->n=0)
+ #define INIT_RECORD2() (rdp2 = rd2->d, rd2->n=0)
+
+-#define RECORD(NO,SIZE) (gettimeofday(&(rdp->tv), &tzp),\
++#define RECORD(NO,SIZE) (gettimeofday(&(rdp->tv), (struct timezone *)&tzp),\
+ rdp->packet_no = (NO),\
+ rdp->packet_size = (SIZE),\
+ rdp++, rd->n++)
+
+-#define RECORD2(NO,SIZE) (gettimeofday(&(rdp2->tv), &tzp),\
++#define RECORD2(NO,SIZE) (gettimeofday(&(rdp2->tv), (struct timezone *)&tzp),\
+ rdp2->packet_no = (NO),\
+ rdp2->packet_size = (SIZE),\
+ rdp2++, rd2->n++)
+@@ -87,7 +87,7 @@
+ _TP1.tv_usec %= 1000000;\
+ }
+
+-#define GETTIMEOFDAY(_TPP) gettimeofday(&tp, &tzp);\
++#define GETTIMEOFDAY(_TPP) gettimeofday(&tp, (struct timezone *)&tzp);\
+ tp.tv_sec = _TPP.tv_sec - tp.tv_sec;\
+ tp.tv_usec = _TPP.tv_usec - tp.tv_usec;\
+ if (tp.tv_usec < 0) {\
+@@ -108,7 +108,7 @@
+ USLEEP(tp);
+
+ /* before 0.00001s */
+-#define WAIT_BEFORE(_TPP) gettimeofday(&tp, &tzp);\
++#define WAIT_BEFORE(_TPP) gettimeofday(&tp, (struct timezone *) &tzp);\
+ tp.tv_sec = _TPP.tv_sec - tp.tv_sec;\
+ tp.tv_usec = _TPP.tv_usec - tp.tv_usec - 1000;\
+ if (tp.tv_usec < 0) {\
diff --git a/benchmarks/dbs/files/patch-af b/benchmarks/dbs/files/patch-af
new file mode 100644
index 000000000000..ce6f82b61fef
--- /dev/null
+++ b/benchmarks/dbs/files/patch-af
@@ -0,0 +1,12 @@
+--- script/dbs_view-- Fri Jul 11 00:53:57 1997
++++ script/dbs_view Sat Aug 1 20:44:46 1998
+@@ -1,7 +1,7 @@
+-#!/usr/local/bin/perl
+-#!/usr/local/bin/perl -d
+ #!/usr/bin/perl
+ #!/usr/bin/perl -d
++#!/usr/local/bin/perl
++#!/usr/local/bin/perl -d
+
+ ######################################################################
+ # DBS: Distributed Benchmark System
diff --git a/benchmarks/dbs/pkg-comment b/benchmarks/dbs/pkg-comment
new file mode 100644
index 000000000000..73d2bccb6d2e
--- /dev/null
+++ b/benchmarks/dbs/pkg-comment
@@ -0,0 +1 @@
+A distributed network benchmarking system.
diff --git a/benchmarks/dbs/pkg-descr b/benchmarks/dbs/pkg-descr
new file mode 100644
index 000000000000..615a3583c48d
--- /dev/null
+++ b/benchmarks/dbs/pkg-descr
@@ -0,0 +1,11 @@
+DBS is a useful tool chest for evaluating TCP implementations, specifically
+flow control, retransmission control and congestion avoidance.
+
+-It can treat multiple TCP connections spanning multiple hosts
+ simultaneously, and
+-It has the capability of measuring the changes of application
+ level throughput at every data transmission.
+
+URL: http://shika.aist-nara.ac.jp/member/yukio-m/dbs
+
+- Koshy
diff --git a/benchmarks/dbs/pkg-plist b/benchmarks/dbs/pkg-plist
new file mode 100644
index 000000000000..b4bc0cac106f
--- /dev/null
+++ b/benchmarks/dbs/pkg-plist
@@ -0,0 +1,11 @@
+bin/dbs_view
+bin/dbsc
+bin/dbsd
+share/doc/dbs/Copyright
+share/doc/dbs/dbs.man
+share/doc/dbs/dbs.man.jis
+share/doc/dbs/dbs_paper.ps
+share/examples/dbs/TCP2.cmd
+share/examples/dbs/TCPvsMPEG.cmd
+@dirrm share/doc/dbs
+@dirrm share/examples/dbs