SUMMARY="Filesystem benchmarking program"
DESCRIPTION="IOzone is a filesystem benchmark tool. The benchmark generates \
and measures a variety of file operations.
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"

# NOTE: The author retains the exclusive right to publish derivative works
# based on this work, including, but not limited to, revised versions of
# this work.

HOMEPAGE="http://www.iozone.org/"
SOURCE_URI="http://www.iozone.org/src/current/iozone3_326.tar"
CHECKSUM_SHA256="bc0a40b2cc7f2e8c6dcfbbff82f1df82ad735f02c9a7db59f8364b76f43f7063"
LICENSE="iozone"
COPYRIGHT="
	1991-2001 William D. Norcott
	2010 Don Capps
	"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
 
PROVIDES="
	cmd:iozone = $portVersion
	cmd:fileop = $portVersion
	iozone = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	cmd:make
	cmd:cc
	"
BUILD_PREREQUIRES="
	haiku_devel
	"

SOURCE_DIR="iozone3_326"
PATCHES="iozone-3.326.patch"

BUILD()
{
	cd src/current/
	make haiku
}
 
INSTALL()
{
    cd src/current/
    cp iozone $binDir
    cp fileop $binDir
    
    mkdir -p $manDir/man1
    cp ../../docs/iozone.1 $manDir/man1
}
