1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/benchmarks/spec-sfs/Makefile
Steven Kreuzer 8d17c06c5a SPECsfs2008: the SPEC NFSv3/CIFS benchmark
SPECsfs2008 is the latest version of the Standard Performance Evaluation
Corporation benchmark suite measuring file server throughput and response time,
providing a standardized method for comparing performance across different
vendor platforms. SPECsfs2008 results summarize the server's capabilities with
respect to the number of operations that can be handled per second, as well as
the overall latency of the operations. The suite is a follow-on to the SFS97_R1
benchmark, adding a CIFS workload, an updated NFSv3 workload, support for
additional client platforms, and a new test harness and reporting/submission
framework.

The ISO for SPECsfs2008 must be purchased from SPEC's web site, before
this port can be built.

WWW: http://www.spec.org/sfs2008/

PR:		ports/185221
Submitted by:	Craig Rodrigues <rodrigc@FreeBSD.org>
2014-01-08 20:18:34 +00:00

62 lines
1.4 KiB
Makefile

# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
# $FreeBSD$
#
# Based on port originally created by Garrett Cooper <gcooper@FreeBSD.org>
#
PORTNAME= spec-sfs
PORTVERSION= 2008
CATEGORIES= benchmarks java
DISTNAME= SPECsfs2008-1.00
EXTRACT_SUFX= .iso
MAINTAINER= rodrigc@FreeBSD.org
COMMENT= SPEC NFS and CIFS filesystem benchmark suite
NO_PACKAGE= license restricts redistribution
RESTRICTED= license restricts redistribution
USES= gmake perl5
USE_PERL5= run
USE_JAVA= yes
JAVA_VERSION= 1.6+
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}
BUILD_WRKSRC= ${WRKSRC}/spec-sfs2008
DOWNLOAD_URL?= http://www.spec.org/sfs2008/
SPEC_ROOT?= ${PREFIX}/${PORTNAME}
DOCSDIR= ${SPEC_ROOT}/documents
OPTIONS= RESERVED_PORT "Use privileged ports when doing NFS testing" on
.if defined(WITH_RESERVED_PORT)
CFLAGS+= -DRESVPORT
.endif
# Substitutions for pkg-plist
PLIST_SUB+= SPEC_ROOT=${SPEC_ROOT}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTFILES}) && !defined(PACKAGE_BUILDING)
IGNORE?=You must purchase ${DISTFILES} from SPEC (${DOWNLOAD_URL}), place it in ${DISTDIR} and then run make again
.endif
pre-install:
${FIND} ${WRKDIR} -name "*\.orig" -delete
do-install:
cd ${WRKDIR}/spec-sfs2008/manager && ${JAVA} SpecInstall ${SPEC_ROOT}
${RM} -fr ${SPEC_ROOT}/binaries
${CHMOD} g+w ${SPEC_ROOT}/result
post-install:
@${ECHO_CMD}
@${CAT} ${WRKDIR}/${PKGMESSAGE:T}
@${ECHO_CMD}
.include <bsd.port.post.mk>