Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163412353
D17255.id48296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
6 KB
Referenced Files
None
Subscribers
None
D17255.id48296.diff
View Options
Index: LEGAL
===================================================================
--- LEGAL
+++ LEGAL
@@ -208,6 +208,7 @@
unifi-5*/UniFi.unix.zip net-mgmt/unifi5 Redistribution of bundled firmware images is not permitted
uplink-demo* games/linux-uplink-demo Redistribution is limited, see license
uzap.tar.gz editors/uzap This software may not be used to make a profit in any way.
+vdbench*.zip benchmarks/linux-vdbench Redistribution is not permitted
vdr-markad-* multimedia/vdr-plugin-markad Installs station logos
vice-* emulators/vice ROMs are copyrighted by Commodore Business Machines
VMware-vSphere-Perl* net/vmware-vsphere-cli May not be redistributed. Must accept license to download.
Index: benchmarks/Makefile
===================================================================
--- benchmarks/Makefile
+++ benchmarks/Makefile
@@ -37,6 +37,7 @@
SUBDIR += iperf
SUBDIR += iperf3
SUBDIR += libmicro
+ SUBDIR += linux-vdbench
SUBDIR += lmbench
SUBDIR += lzbench
SUBDIR += mdtest
Index: benchmarks/linux-vdbench/Makefile
===================================================================
--- /dev/null
+++ benchmarks/linux-vdbench/Makefile
@@ -0,0 +1,81 @@
+# $FreeBSD$
+
+PORTNAME= vdbench
+PORTVERSION= 5.04.07
+CATEGORIES= benchmarks linux java
+MASTER_SITES= #
+PKGNAMEPREFIX= linux-
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
+
+MAINTAINER= loader@FreeBSD.org
+COMMENT= Command line disk I/O benchmark utility
+
+LICENSE= OTN
+LICENSE_NAME= Oracle Technology Network
+LICENSE_TEXT= https://www.oracle.com/technetwork/licenses/vdbench-license-2027214.html
+LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell no-auto-accept
+
+USES= linux shebangfix zip
+USE_JAVA= yes
+
+EXTRACT_AFTER_ARGS= -d ${WRKSRC}
+DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+JAVA_VERSION= 1.7+
+JAVA_OS= linux
+NO_BUILD= yes
+ONLY_FOR_ARCH= i386 amd64
+RESTRICTED= Redistribution is not permitted
+SHEBANG_FILES= ${PORTNAME} linux/config.sh
+bash_CMD= ${SH}
+
+DOWNLOAD_URL= https://www.oracle.com/technetwork/server-storage/vdbench-downloads-1901681.html
+
+.include <bsd.port.pre.mk>
+
+.if !exists(${DISTDIR}/${DISTFILES})
+IGNORE=You must manually download ${DISTFILES} from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
+.endif
+
+.if ${LINUX_ARCH} == "i386"
+PLIST_SUB= LINUX_ARCH_32="" LINUX_ARCH_64="@comment "
+.endif
+
+.if ${LINUX_ARCH} == "x86_64"
+PLIST_SUB= LINUX_ARCH_32="@comment " LINUX_ARCH_64=""
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|^java=java|java=${JAVA_HOME}/bin/java|' \
+ -e 's|^dir=.*|dir=${DATADIR}|' ${WRKSRC}/vdbench
+
+ ${REINPLACE_CMD} -e 's|/proc/meminfo|/compat/proc/meminfo|' \
+ -e '/^free/d' ${WRKSRC}/linux/config.sh
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${DATADIR}/linux
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}; ${COPYTREE_SHARE} examples ${STAGEDIR}${EXAMPLESDIR})
+ for e in $$(${JOT} - 1 7); do \
+ ${INSTALL_DATA} ${WRKSRC}/example$${e} ${STAGEDIR}${EXAMPLESDIR}; \
+ done
+ for f in vdbench.pdf readme.txt; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${f} ${STAGEDIR}${DOCSDIR}; \
+ done
+ for f in vdbench.jar build_sds.txt swatcharts.txt; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${f} ${STAGEDIR}${DATADIR}; \
+ done
+.if ${LINUX_ARCH} == "i386"
+ ${INSTALL_DATA} ${WRKSRC}/linux/linux32.so ${STAGEDIR}${DATADIR}/linux
+.endif
+.if ${LINUX_ARCH} == "x86_64"
+ ${INSTALL_DATA} ${WRKSRC}/linux/linux64.so ${STAGEDIR}${DATADIR}/linux
+.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/linux/config.sh ${STAGEDIR}${DATADIR}/linux
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
+ ${LN} -sf ../${DATADIR_REL}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
+
+.include <bsd.port.post.mk>
Index: benchmarks/linux-vdbench/distinfo
===================================================================
--- /dev/null
+++ benchmarks/linux-vdbench/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1537404207
+SHA256 (vdbench50407.zip) = 51a60a9cd38df448a984a464254e059273c99679215420b64564b11fdf7c4ece
+SIZE (vdbench50407.zip) = 3073219
Index: benchmarks/linux-vdbench/pkg-descr
===================================================================
--- /dev/null
+++ benchmarks/linux-vdbench/pkg-descr
@@ -0,0 +1,5 @@
+Vdbench is a command line utility specifically created to help
+engineers and customers generate disk I/O workloads to be used
+for validating storage performance and storage data integrity.
+
+WWW: http://www.oracle.com/technetwork/server-storage/vdbench-downloads-1901681.html
Index: benchmarks/linux-vdbench/pkg-plist
===================================================================
--- /dev/null
+++ benchmarks/linux-vdbench/pkg-plist
@@ -0,0 +1,47 @@
+bin/linux-vdbench
+%%DOCSDIR%%/readme.txt
+%%DOCSDIR%%/vdbench.pdf
+%%EXAMPLESDIR%%/example1
+%%EXAMPLESDIR%%/example2
+%%EXAMPLESDIR%%/example3
+%%EXAMPLESDIR%%/example4
+%%EXAMPLESDIR%%/example5
+%%EXAMPLESDIR%%/example6
+%%EXAMPLESDIR%%/example7
+%%EXAMPLESDIR%%/examples/errorlog.html
+%%EXAMPLESDIR%%/examples/filesys/create_files
+%%EXAMPLESDIR%%/examples/filesys/delete_files
+%%EXAMPLESDIR%%/examples/filesys/multi_host
+%%EXAMPLESDIR%%/examples/filesys/random_read
+%%EXAMPLESDIR%%/examples/filesys/random_rw
+%%EXAMPLESDIR%%/examples/filesys/random_write
+%%EXAMPLESDIR%%/examples/filesys/seq_read
+%%EXAMPLESDIR%%/examples/filesys/seq_rw
+%%EXAMPLESDIR%%/examples/filesys/seq_write
+%%EXAMPLESDIR%%/examples/raw/multi_host
+%%EXAMPLESDIR%%/examples/raw/random_read
+%%EXAMPLESDIR%%/examples/raw/random_read_curve
+%%EXAMPLESDIR%%/examples/raw/random_read_xfersizes
+%%EXAMPLESDIR%%/examples/raw/random_rw
+%%EXAMPLESDIR%%/examples/raw/random_rw_curve
+%%EXAMPLESDIR%%/examples/raw/random_rw_xfersizes
+%%EXAMPLESDIR%%/examples/raw/random_write
+%%EXAMPLESDIR%%/examples/raw/random_write_curve
+%%EXAMPLESDIR%%/examples/raw/random_write_xfersizes
+%%EXAMPLESDIR%%/examples/raw/seq_read
+%%EXAMPLESDIR%%/examples/raw/seq_read_curve
+%%EXAMPLESDIR%%/examples/raw/seq_read_xfersizes
+%%EXAMPLESDIR%%/examples/raw/seq_rw
+%%EXAMPLESDIR%%/examples/raw/seq_rw_curve
+%%EXAMPLESDIR%%/examples/raw/seq_rw_xfersizes
+%%EXAMPLESDIR%%/examples/raw/seq_write
+%%EXAMPLESDIR%%/examples/raw/seq_write_curve
+%%EXAMPLESDIR%%/examples/raw/seq_write_xfersizes
+%%EXAMPLESDIR%%/examples/raw/tpcc
+%%EXAMPLESDIR%%/examples/readme.txt
+%%DATADIR%%/build_sds.txt
+%%LINUX_ARCH_32%%%%DATADIR%%/linux/linux32.so
+%%LINUX_ARCH_64%%%%DATADIR%%/linux/linux64.so
+%%DATADIR%%/swatcharts.txt
+%%DATADIR%%/vdbench
+%%DATADIR%%/vdbench.jar
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 11:57 PM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35420562
Default Alt Text
D17255.id48296.diff (6 KB)
Attached To
Mode
D17255: [NEW PORT] benchmarks/linux-vdbench: Command line disk I/O benchmark utility
Attached
Detach File
Event Timeline
Log In to Comment