summaryrefslogtreecommitdiff
path: root/benchmarks/bytebench
diff options
context:
space:
mode:
authorgarbled <garbled>1998-08-30 17:35:57 +0000
committergarbled <garbled>1998-08-30 17:35:57 +0000
commit1632b1548f1484a470dc260283d5355da483bd40 (patch)
tree16fd366fd14915614d5b16628161279c2f925281 /benchmarks/bytebench
parent9b80fff84cf988df07920b5d0db7482aeb3cf2fa (diff)
downloadpkgsrc-1632b1548f1484a470dc260283d5355da483bd40.tar.gz
Add new pkg for bytebench-3.6
BYTE Magazine's Public Domain benchmark for UNIX
Diffstat (limited to 'benchmarks/bytebench')
-rw-r--r--benchmarks/bytebench/Makefile21
-rw-r--r--benchmarks/bytebench/files/md53
-rw-r--r--benchmarks/bytebench/patches/patch-aa87
-rw-r--r--benchmarks/bytebench/pkg/COMMENT1
-rw-r--r--benchmarks/bytebench/pkg/DESCR5
-rw-r--r--benchmarks/bytebench/pkg/PLIST38
6 files changed, 155 insertions, 0 deletions
diff --git a/benchmarks/bytebench/Makefile b/benchmarks/bytebench/Makefile
new file mode 100644
index 00000000000..249633e23b8
--- /dev/null
+++ b/benchmarks/bytebench/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 1998/08/30 17:35:57 garbled Exp $
+
+DISTNAME= byte
+PKGNAME= bytebench-3.6
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://ftp.cdrom.com/pub/unix-c/benchmarks/
+
+MAINTAINER= root@garbled.net
+
+post-patch:
+ ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' <${WRKSRC}/Run>${WRKSRC}/run-byte
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/pgms/* ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/share/bytebench
+ ${MKDIR} ${PREFIX}/share/doc/bytebench
+ ${INSTALL_DATA} ${WRKSRC}/testdir/* ${PREFIX}/share/bytebench
+ ${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/bytebench
+ ${INSTALL_SCRIPT} ${WRKSRC}/run-byte ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/bytebench/files/md5 b/benchmarks/bytebench/files/md5
new file mode 100644
index 00000000000..67829f9f8d5
--- /dev/null
+++ b/benchmarks/bytebench/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/30 17:35:57 garbled Exp $
+
+MD5 (byte.tar.gz) = 225f33a4e97e0a4e58e7d935a1f59968
diff --git a/benchmarks/bytebench/patches/patch-aa b/benchmarks/bytebench/patches/patch-aa
new file mode 100644
index 00000000000..fbb5214ace7
--- /dev/null
+++ b/benchmarks/bytebench/patches/patch-aa
@@ -0,0 +1,87 @@
+$NetBSD: patch-aa,v 1.1 1998/08/30 17:35:57 garbled Exp $
+--- Run.orig Sat May 13 12:32:15 1995
++++ Run Sat Aug 29 10:39:35 1998
+@@ -1,6 +1,6 @@
+ #! /bin/sh
+ #################### set your defaults here ##############
+-FLAVOR="" # flavor of UNIX: if not determined by script: SysV or BSD
++FLAVOR="NetBSD" # flavor of UNIX: if not determined by script: SysV or BSD
+ FULL_SUITE="dhry2 dhry2reg arithoh register short int long float double syscall pipe context1 spawn execl fstime C shell dc hanoi"
+ ###############################################################################
+ # The BYTE UNIX Benchmarks - Release 3
+@@ -50,7 +50,7 @@
+ if [ -z "$FLAVOR" ]
+ then
+ # determine flavor of UNIX from number of lines generated by /bin/tim
+- Fcount=`/bin/time date 2>&1 | wc -l | sed 's/ //g'`
++ Fcount=`/usr/bin/time date 2>&1 | wc -l | sed 's/ //g'`
+ case "$Fcount"
+ in
+ 2) FLAVOR="BSD";;
+@@ -66,45 +66,39 @@
+ else UNAME="hostname"
+ fi
+ export FLAVOR
+-# check that the required files are in the proper places
+-if make check
+- then :
+- else make all
+-fi
+-#
+ #
+ # establish full paths to directories
+ PWD=`pwd`
+-HOMEDIR=${HOMEDIR-.}
++HOMEDIR=XXXPREFIXXXX
+ cd $HOMEDIR
+ HOMEDIR=`pwd`
+ cd $PWD
+
+-BINDIR=${BINDIR-${HOMEDIR}/pgms}
++BINDIR=${BINDIR-${HOMEDIR}/bin}
+ cd $BINDIR
+ BINDIR=`pwd`
+ cd $PWD
+ # let's extend the path to this directory
+ PATH="${PATH}:${BINDIR}"
+
+-SCRPDIR=${SCRPDIR-${HOMEDIR}/pgms}
++SCRPDIR=${SCRPDIR-${HOMEDIR}/bin}
+ cd $SCRPDIR
+ SCRPDIR=`pwd`
+ cd $PWD
+
+-TMPDIR=${HOMEDIR}/tmp
++TMPDIR=${RESULTDIR-${HOMEDIR}/share/byte-bench}
+ cd $TMPDIR
+ TMPDIR=`pwd`
+ cd $PWD
+
+-RESULTDIR=${RESULTDIR-${HOMEDIR}/results}
++RESULTDIR=${RESULTDIR-${HOMEDIR}/share/byte-bench}
+ cd $RESULTDIR
+ RESULTDIR=`pwd`
+ cd $PWD
+
+ TIMEACCUM=${TIMEACCUM-${RESULTDIR}/times}
+
+-TESTDIR=${TESTDIR-${HOMEDIR}/testdir}
++TESTDIR=${TESTDIR-${HOMEDIR}/share/byte-bench}
+ cd $TESTDIR
+ TESTDIR=`pwd`
+ cd $PWD
+@@ -417,11 +411,11 @@
+ ############ THE BENCH IS TIMED ##############
+ if test "$stdin" = ""
+ then # without redirected stdin
+- /bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout
++ /usr/bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout
+ else # with redirected stdin
+- /bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout
++ /usr/bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout
+ fi
+- /bin/time $benchcmd
++ /usr/bin/time $benchcmd
+ ###############################################
+ cd $pwd # move back home
+ status=$? # save the result code
diff --git a/benchmarks/bytebench/pkg/COMMENT b/benchmarks/bytebench/pkg/COMMENT
new file mode 100644
index 00000000000..a8df940dea2
--- /dev/null
+++ b/benchmarks/bytebench/pkg/COMMENT
@@ -0,0 +1 @@
+BYTE Magazine's Public Domain benchmark for UNIX
diff --git a/benchmarks/bytebench/pkg/DESCR b/benchmarks/bytebench/pkg/DESCR
new file mode 100644
index 00000000000..226b8113473
--- /dev/null
+++ b/benchmarks/bytebench/pkg/DESCR
@@ -0,0 +1,5 @@
+BYTE's UNIX benchmarking suite is small enough to port easily to any UNIX
+system, yet diverse and flexible enough to be useful for a wide spectrum of
+benchmarking requirements. Besides, they're in the public domain, so they can
+be obtained for little, if any, cost. What better reason do you need to use
+them?
diff --git a/benchmarks/bytebench/pkg/PLIST b/benchmarks/bytebench/pkg/PLIST
new file mode 100644
index 00000000000..2b8524f5503
--- /dev/null
+++ b/benchmarks/bytebench/pkg/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/30 17:35:58 garbled Exp $
+bin/int
+bin/arithoh
+bin/byte.logo
+bin/cleanup.sh
+bin/context1
+bin/dhry2
+bin/dhry2reg
+bin/double
+bin/execl
+bin/float
+bin/fs.awk
+bin/fstime
+bin/hanoi
+bin/index.awk
+bin/index.base
+bin/index.sh
+bin/long
+bin/looper
+bin/loopm.awk
+bin/loops.awk
+bin/multi.sh
+bin/pipe
+bin/register
+bin/report.awk
+bin/report.sh
+bin/short
+bin/spawn
+bin/syscall
+bin/tst.sh
+bin/run-byte
+share/doc/bytebench/bench.doc
+share/doc/bytebench/bench3.doc
+share/bytebench/cctest.c
+share/bytebench/dc.dat
+share/bytebench/sort.src
+@dirrm share/doc/bytebench
+@unexec rm -rf %D/share/bytebench