blob: ca0e207c66bbc344451bde57eb987f8094852a3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# 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>
|