Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
benchmarks/iozone/DESCR Normal file
View File

@@ -0,0 +1,3 @@
This test writes a X MEGABYTE sequential file in Y byte chunks, then
rewinds it and reads it back. [The size of the file should be
big enough to factor out the effect of any disk cache.]

View File

@@ -0,0 +1,91 @@
# $NetBSD: Makefile,v 1.49 2013/05/31 12:39:38 wiz Exp $
DISTNAME= iozone3_408
PKGNAME= iozone-3.408
PKGREVISION= 3
CATEGORIES= benchmarks
MASTER_SITES= http://www.iozone.org/src/current/
EXTRACT_SUFX= .tar
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.iozone.org/
COMMENT= Benchmark for file read and write speed
# No derivative works
LICENSE= iozone-license
NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/${DISTNAME}/src/current
MAKE_FILE= makefile
USE_TOOLS+= tee perl
CPPFLAGS.SunOS+= -Dsolaris
.include "../../mk/bsd.prefs.mk"
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
BUILD_TARGET= ${LOWER_OPSYS}
.elif (${OPSYS} == "SunOS")
BUILD_TARGET= Solaris
.elif (${OPSYS} == "Darwin")
BUILD_TARGET= macosx
.elif (${OPSYS} == "IRIX")
BUILD_TARGET= ${OPSYS}${ABI:M64}
.elif (${OPSYS} == "BSDOS")
BUILD_TARGET= bsdi
.elif (${OPSYS} == "AIX")
BUILD_TARGET= ${OPSYS}
.else
# XXX: generic should work, but specific target would be better
BUILD_TARGET= generic
.endif
REPLACE_PERL = iozone_visualizer.pl report.pl
SUBST_CLASSES+= crlf
SUBST_MESSAGE.crlf= Stripping EOL CR in ${REPLACE_PERL}
SUBST_STAGE.crlf= post-extract
SUBST_FILES.crlf= ${REPLACE_PERL}
SUBST_FILTER_CMD.crlf= ${TR} -d '\r'
EGDIR = share/examples/IOzone
DOCDIR = share/doc/IOzone
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR}
.include "options.mk"
IOZONE_TEST_ARGS= -Ea
.if !empty(PKG_OPTIONS:Mthreads)
IOZONE_TEST_ARGS+= -T -t4
.endif
do-install:
.for bb in fileop iozone pit_server
${INSTALL_PROGRAM} ${WRKSRC}/${bb} ${DESTDIR}${PREFIX}/bin
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/iozone_visualizer.pl \
${DESTDIR}${PREFIX}/bin/iozone_visualizer
${INSTALL_SCRIPT} ${WRKSRC}/report.pl \
${DESTDIR}${PREFIX}/bin/iozone_report
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for dd in IOzone_msword_98.pdf Iozone_ps.gz Run_rules.doc
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${dd} \
${DESTDIR}${PREFIX}/${DOCDIR}/
.endfor
.for ee in Generate_Graphs Gnuplot.txt client_list gengnuplot.sh \
gnu3d.dem gnuplot.dem gnuplotps.dem read_telemetry write_telemetry
${INSTALL_DATA} ${WRKSRC}/${ee} \
${DESTDIR}${PREFIX}/${EGDIR}/
.endfor
benchmark:
cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out
results:
${MKDIR} /tmp/benches/`domainname`
${CP} ${WRKSRC}/iozone.out /tmp/benches/`domainname`/iozone.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

19
benchmarks/iozone/PLIST Normal file
View File

@@ -0,0 +1,19 @@
@comment $NetBSD: PLIST,v 1.4 2011/12/02 15:31:44 hauke Exp $
bin/fileop
bin/iozone
bin/iozone_report
bin/iozone_visualizer
bin/pit_server
man/man1/iozone.1
share/doc/IOzone/IOzone_msword_98.pdf
share/doc/IOzone/Iozone_ps.gz
share/doc/IOzone/Run_rules.doc
share/examples/IOzone/Generate_Graphs
share/examples/IOzone/Gnuplot.txt
share/examples/IOzone/client_list
share/examples/IOzone/gengnuplot.sh
share/examples/IOzone/gnu3d.dem
share/examples/IOzone/gnuplot.dem
share/examples/IOzone/gnuplotps.dem
share/examples/IOzone/read_telemetry
share/examples/IOzone/write_telemetry

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.20 2012/06/07 15:57:20 asau Exp $
SHA1 (iozone3_408.tar) = 3dc56a251949151d12fc033f179cb6852abc71de
RMD160 (iozone3_408.tar) = c9caa3f02f0404d3b4a3a7c7fad040439bfff8f1
Size (iozone3_408.tar) = 1822720 bytes
SHA1 (patch-aa) = e209a364cdeca38c3995fbaebde3758bdd74e582
SHA1 (patch-ab) = 8af7a97fb4c8bfc39320b03b1b5c63acff5a3be7
SHA1 (patch-ac) = a7df47dca37d33e2658b27c4888294ad541fd1b2

View File

@@ -0,0 +1,21 @@
# $NetBSD: options.mk,v 1.1 2008/08/29 06:14:22 bjs Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.iozone
PKG_SUPPORTED_OPTIONS= threads
CHECK_BUILTIN.pthread:= yes
. include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:= no
.if !empty(USE_BUILTIN.pthread:M[Yy][Ee][Ss])
PKG_SUGGESTED_OPTIONS= threads
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mthreads)
BUILDLINK_TRANSFORM+= opt:-DNO_THREADS:-DTHREADS
PTHREAD_AUTO_VARS= yes
PTHREAD_OPTS+= require
.endif

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-aa,v 1.9 2011/12/02 15:31:44 hauke Exp $
--- makefile.orig 2011-05-06 15:39:00.000000000 +0000
+++ makefile
@@ -81,6 +81,7 @@ all:
@echo " -> UWIN (32bit) <-"
@echo " -> Windows (95/98/NT) (32bit) <-"
@echo ""
+ @false
clean:
rm -f *.o iozone fileop pit_server
@@ -792,6 +793,12 @@ fileop_bsdi.o: fileop.c
@echo ""
$(CC) -c -O $(CFLAGS) fileop.c -o fileop_bsdi.o
+fileop_dragonfly.o: fileop.c
+ @echo ""
+ @echo "Building fileop for DragonFly"
+ @echo ""
+ $(CC) -c -O $(CFLAGS) fileop.c -o fileop_dragonfly.o
+
fileop_freebsd.o: fileop.c
@echo ""
@echo "Building fileop for FreeBSD"

View File

@@ -0,0 +1,85 @@
$NetBSD: patch-ab,v 1.11 2012/06/07 15:57:20 asau Exp $
--- iozone.c.orig 2012-05-10 05:14:12.000000000 +0000
+++ iozone.c
@@ -70,7 +70,7 @@
#include <windows.h>
#include <errno.h>
#else
-#if defined(linux) || defined(solaris) || defined(macosx) || defined(__AIX__) || defined(FreeBSD) || defined(_HPUX_SOURCE) || defined(__OpenBSD__) || defined(__DragonFly__)
+#if defined(linux) || defined(solaris) || defined(macosx) || defined(__AIX__) || defined(__FreeBSD__) || defined(_HPUX_SOURCE) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <errno.h>
#else
extern int errno; /* imported for errors */
@@ -288,7 +288,7 @@ THISVERSION,
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__DragonFly__)
#include <malloc.h>
#endif
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__)
#include <stdlib.h>
#include <string.h>
#endif
@@ -299,7 +299,7 @@ THISVERSION,
#endif
#endif
-#if defined (__FreeBSD__) || defined(__DSragonFly__)
+#if defined (__FreeBSD__) || defined(__DragonFly__)
#ifndef O_RSYNC
#define O_RSYNC O_FSYNC
#endif
@@ -444,6 +444,9 @@ struct piovec piov[PVECMAX];
struct iovec piov[PVECMAX];
#define piov_base iov_base
#define piov_len iov_len
+#if defined (__DragonFly__)
+#define DFLY_VECTOR_OFFSET
+#endif
#endif
#endif
@@ -7363,7 +7366,11 @@ long long *data2;
if(odsync)
file_flags |= O_DSYNC;
#endif
-#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined (__DragonFly__)
+ if(read_sync)
+ file_flags |= O_SYNC;
+#endif
+#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__)
if(read_sync)
file_flags |=O_RSYNC|O_SYNC;
#endif
@@ -10585,7 +10592,11 @@ long long *data1, *data2;
open_flags |=O_DIRECTIO;
#endif
#endif
-#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined (__DragonFly__)
+ if(read_sync)
+ open_flags |= O_SYNC;
+#endif
+#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__)
if(read_sync)
open_flags |=O_RSYNC|O_SYNC;
#endif
@@ -10941,7 +10952,7 @@ long long *data1,*data2;
purgeit(piov[xx].piov_base,reclen);
}
if(pwritev(fd, piov,numvecs
-#ifndef PER_VECTOR_OFFSET
+#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
, list_off[0]
#endif
) != (reclen*numvecs))
@@ -11268,7 +11279,7 @@ long long *data1,*data2;
purgeit(piov[xx].piov_base,reclen);
}
if(preadv(fd, piov, numvecs
-#ifndef PER_VECTOR_OFFSET
+#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
, list_off[0]
#endif
) != (numvecs * reclen))

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-ac,v 1.1 2008/08/25 19:35:30 bjs Exp $
--- libbif.c.orig 2008-07-17 11:07:10.000000000 -0400
+++ libbif.c
@@ -20,11 +20,11 @@
#include <sys/fcntl.h>
#endif
-#if defined(OSV5) || defined(linux) || defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
+#if defined(OSV5) || defined(linux) || defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__)
#include <string.h>
#endif
-#if defined(linux) || defined(__DragonFly__) || defined(macosx)
+#if defined(linux) || defined(__DragonFly__) || defined(macosx) || defined(__NetBSD__)
#include <unistd.h>
#include <stdlib.h>
#endif