Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2007 19:07:23 +0800 (CST)
From:      CHAO Shin <quakelee@cn.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/112237: [NEW PORT] benchmarks/mdtest
Message-ID:  <200704291107.l3TB7NtF005729@tarsier.delphij.net>
Resent-Message-ID: <200704291110.l3TBA3aQ016546@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         112237
>Category:       ports
>Synopsis:       [NEW PORT] benchmarks/mdtest
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 29 11:10:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     CHAO Shin
>Release:        FreeBSD 7.0-current i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD portyard.sysdept.sina.com.cn 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Feb 1 19:02:06 CST 2007 root@portyard.sysdept.sina.com.cn:/usr/obj/usr/src/sys/GX270 i386

>Description:
	A filesystem metadata benchmark utility from Lawrence Livermore National Laboratory
>How-To-Repeat:
>Fix:

--- mdtest.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mdtest
#	mdtest/pkg-descr
#	mdtest/distinfo
#	mdtest/Makefile
#	mdtest/files
#	mdtest/files/patch-Makefile
#
echo c - mdtest
mkdir -p mdtest > /dev/null 2>&1
echo x - mdtest/pkg-descr
sed 's/^X//' >mdtest/pkg-descr << 'END-of-mdtest/pkg-descr'
XThe mdtest software is used for testing the metadata 
Xperformance of a file system. It is available under 
Xthe GNU General Public License (GPL).
X
XWWW:	http://www.llnl.gov/icc/lc/siop/
END-of-mdtest/pkg-descr
echo x - mdtest/distinfo
sed 's/^X//' >mdtest/distinfo << 'END-of-mdtest/distinfo'
XMD5 (mdtest-1.7.1.tar.gz) = 4ea34d1f9d0c498e47edf694a3962e9b
XSHA256 (mdtest-1.7.1.tar.gz) = 1ebe974d1c275c2abb9ab06a09506ab908718f2e6a73780956d0a89db40c3024
XSIZE (mdtest-1.7.1.tar.gz) = 11344
END-of-mdtest/distinfo
echo x - mdtest/Makefile
sed 's/^X//' >mdtest/Makefile << 'END-of-mdtest/Makefile'
X# New ports collection makefile for:	mdtest
X# Date created:		2007-4-20
X# Whom:			Chao Shin <quakelee@cn.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mdtest
XPORTVERSION=	1.7.1
XCATEGORIES=	benchmarks
XMASTER_SITES=	http://www.llnl.gov/icc/lc/siop/downloads/
X
XMAINTAINER=	quakelee@cn.FreeBSD.org
XCOMMENT=	A filesystem metadata benchmark utility
X
XPLIST_FILES=	bin/mdtest
X
XOPTIONS=	OPENMPI "Use openmpi instead of mpich2" off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPENMPI)
XBUILD_DEPENDS=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
XRUN_DEPENDS=	${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
XMPICC=		${LOCALBASE}/mpi/openmpi/bin/mpicc
X.else
XBUILD_DEPENDS=	${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
XRUN_DEPENDS=	${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
XMPICC=		${LOCALBASE}/mpich2/bin/mpicc
X.endif
X
XUSE_GMAKE=	yes
XALL_TARGET=	mdtest
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%MPICC%%|${MPICC}|' ${WRKSRC}/${MAKEFILE}
X
Xdo-install:
X	${STRIP_CMD} ${WRKSRC}/mdtest
X	${INSTALL_PROGRAM} ${WRKSRC}/mdtest ${PREFIX}/bin
X
X.include <bsd.port.post.mk>
END-of-mdtest/Makefile
echo c - mdtest/files
mkdir -p mdtest/files > /dev/null 2>&1
echo x - mdtest/files/patch-Makefile
sed 's/^X//' >mdtest/files/patch-Makefile << 'END-of-mdtest/files/patch-Makefile'
X--- Makefile.orig	Sun Apr 29 16:35:18 2007
X+++ Makefile	Sun Apr 29 16:42:07 2007
X@@ -21,6 +21,7 @@
X 
X CC.AIX = mpcc_r -bmaxdata:0x80000000
X CC.Linux = mpicc -Wall
X+CC.FreeBSD = %%MPICC%% -Wall
X 
X # Requires GNU Make
X OS=$(shell uname)
END-of-mdtest/files/patch-Makefile
exit
--- mdtest.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704291107.l3TB7NtF005729>