aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-30 07:10:52 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-30 07:10:52 +0000
commit8f060f3ca451055bdda8841a39b5e9e04d76a273 (patch)
tree1117d8bc2bc4daa61e14d647097dda8cd3f08a85 /benchmarks
parent17b108023a66815d6c9c432809f122851633c300 (diff)
downloadports-8f060f3ca451055bdda8841a39b5e9e04d76a273.tar.gz
ports-8f060f3ca451055bdda8841a39b5e9e04d76a273.zip
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Makefile1
-rw-r--r--benchmarks/mdtest/Makefile42
-rw-r--r--benchmarks/mdtest/distinfo3
-rw-r--r--benchmarks/mdtest/files/patch-Makefile10
-rw-r--r--benchmarks/mdtest/pkg-descr4
5 files changed, 60 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index b72ac1ca0795..7ea1cb2ccd47 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -24,6 +24,7 @@
SUBDIR += iperf
SUBDIR += libmicro
SUBDIR += lmbench
+ SUBDIR += mdtest
SUBDIR += nbench
SUBDIR += netio
SUBDIR += netperf
diff --git a/benchmarks/mdtest/Makefile b/benchmarks/mdtest/Makefile
new file mode 100644
index 000000000000..f2e1c4a5b13c
--- /dev/null
+++ b/benchmarks/mdtest/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: mdtest
+# Date created: 2007-4-20
+# Whom: Chao Shin <quakelee@cn.freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mdtest
+PORTVERSION= 1.7.1
+CATEGORIES= benchmarks
+MASTER_SITES= http://www.llnl.gov/icc/lc/siop/downloads/
+
+MAINTAINER= quakelee@cn.FreeBSD.org
+COMMENT= A filesystem metadata benchmark utility
+
+PLIST_FILES= bin/mdtest
+
+OPTIONS= OPENMPI "Use openmpi instead of mpich2" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_OPENMPI)
+BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
+MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
+RUN_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
+MPICC= ${LOCALBASE}/mpich2/bin/mpicc
+.endif
+
+USE_GMAKE= yes
+ALL_TARGET= mdtest
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%MPICC%%|${MPICC}|' ${WRKSRC}/${MAKEFILE}
+
+do-install:
+ ${STRIP_CMD} ${WRKSRC}/mdtest
+ ${INSTALL_PROGRAM} ${WRKSRC}/mdtest ${PREFIX}/bin
+
+.include <bsd.port.post.mk>
diff --git a/benchmarks/mdtest/distinfo b/benchmarks/mdtest/distinfo
new file mode 100644
index 000000000000..108cefdf04c9
--- /dev/null
+++ b/benchmarks/mdtest/distinfo
@@ -0,0 +1,3 @@
+MD5 (mdtest-1.7.1.tar.gz) = 4ea34d1f9d0c498e47edf694a3962e9b
+SHA256 (mdtest-1.7.1.tar.gz) = 1ebe974d1c275c2abb9ab06a09506ab908718f2e6a73780956d0a89db40c3024
+SIZE (mdtest-1.7.1.tar.gz) = 11344
diff --git a/benchmarks/mdtest/files/patch-Makefile b/benchmarks/mdtest/files/patch-Makefile
new file mode 100644
index 000000000000..0609ddecb018
--- /dev/null
+++ b/benchmarks/mdtest/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig Sun Apr 29 16:35:18 2007
++++ Makefile Sun Apr 29 16:42:07 2007
+@@ -21,6 +21,7 @@
+
+ CC.AIX = mpcc_r -bmaxdata:0x80000000
+ CC.Linux = mpicc -Wall
++CC.FreeBSD = %%MPICC%% -Wall
+
+ # Requires GNU Make
+ OS=$(shell uname)
diff --git a/benchmarks/mdtest/pkg-descr b/benchmarks/mdtest/pkg-descr
new file mode 100644
index 000000000000..3ba0939f5e1a
--- /dev/null
+++ b/benchmarks/mdtest/pkg-descr
@@ -0,0 +1,4 @@
+The mdtest software is used for testing the metadata
+performance of a file system.
+
+WWW: http://www.llnl.gov/icc/lc/siop/