iozone stable port information

Package: iozone
Version: 3.338
Revision: 2
Maintainer: Jack Fink
Source: http://www.iozone.org/src/current/iozone3_338.tar
SourceDirectory: iozone3_338/src/current
CompileScript: make macosx
InstallScript: <<
mkdir -p %i/bin
install -m 755 iozone %i/bin
install -m 755 fileop %i/bin

mkdir -p %i/share/man/man1
install -m 644 ../../docs/iozone.1 %i/share/man/man1

mkdir -p %i/share/doc
cp -R ../../docs %i/share/doc/%n
<<
DocFiles: Changes.txt
Homepage: http://www.iozone.org/
Description: Filesystem benchmark tool
DescDetail: <<
Iozone is useful for performing a broad filesystem analysis of a vendor's
computer platform. The benchmark tests file I/O performance for the following
operations:

Read, write, re-read, re-write, read backwards, read strided, fread, fwrite,
random read, pread, mmap, aio_read, aio_write
<<
DescPackaging: <<
Previous versions by Sylvain Cuaz.

no install rule in the makefile
<<
DescUsage: type iozone -Ra
License: Restrictive/Distributable
Source-MD5: e9731ed7e84bf7d687f746a697af103c

iozone stable port .patch

diff -ruN current/iozone.c current-patched/iozone.c
--- current/iozone.c Fri May 3 17:06:41 2002
+++ current-patched/iozone.c Tue May 14 09:37:49 2002
@@ -216,11 +216,11 @@
#define __USE_GNU
#endif
#include
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
#include
#endif

-#if defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
+#if defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
#ifndef O_SYNC
#define O_SYNC O_FSYNC
#endif
@@ -262,6 +262,10 @@
#include
#endif

+#ifdef __APPLE__
+#include
+#endif
+
#ifdef unix
#include
#include
@@ -281,7 +285,9 @@
#define VOLATILE
#endif

+#ifndef __APPLE__
#include
+#endif

#ifdef SHARED_MEM
#include
diff -ruN current/makefile current-patched/makefile
--- current/makefile Fri May 3 17:06:42 2002
+++ current-patched/makefile Tue May 14 09:35:44 2002
@@ -16,6 +16,7 @@
@echo " -> AIX (32bit) <-"
@echo " -> bsdi (32bit) <-"
@echo " -> convex (32bit) <-"
+ @echo " -> darwin (32bit) <-"
@echo " -> freebsd (32bit) <-"
@echo " -> generic (32bit) <-"
@echo " -> ghpux (32bit) <-"
@@ -265,6 +266,13 @@
cc -O -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DSHARED_MEM \
iozone_freebsd.o libbif.o -o iozone
#
+# Darwin build with no threads, no largefiles, no async I/O
+#
+
+darwin: iozone_darwin.o libbif.o
+ cc -O -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DSHARED_MEM \
+ iozone_darwin.o libbif.o -o iozone
+#
# GNU C compiler OpenBSD build with no threads, no largefiles, no async I/O
#

@@ -623,6 +631,15 @@
@echo ""
cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
-DSHARED_MEM iozone.c -o iozone_freebsd.o
+ cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
+ -DSHARED_MEM libbif.c -o libbif.o
+
+iozone_darwin.o: iozone.c libbif.c
+ @echo ""
+ @echo "Build iozone for darwin"
+ @echo ""
+ cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
+ -DSHARED_MEM iozone.c -o iozone_darwin.o
cc -c -O -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
-DSHARED_MEM libbif.c -o libbif.o

iozone _unstable_ port .patch