# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem	1.0
name		bonnie
version		1.0
categories	benchmarks
maintainers	mac.com:lomion
description 	Disk I/O benchmark utility
long_description \
		Bonnie is a disk i/o benchmarker. \
		Bonnie performs a series of tests on a file of known size.\
		If the size is not specified, Bonnie uses 100 Mb but that \
		probably isn't enough for a big modern server - you need your \
		file to be a lot bigger than the available RAM
homepage	http://www.textuality.com/bonnie/
platforms	darwin
master_sites 	${homepage}
distname   	${name}
checksums	md5 f61cc061a418c3ae308ae362a1ae6490

extract		{
	system "mkdir ${workpath}/${name}"
	system "cd ${workpath}/${name} && \
	gzip -dc ${distpath}/${distfile} | tar -xf -"
}

configure	{}
build.target	bsd

destroot 	{
	file mkdir "${destroot}/${prefix}/bin"
	file mkdir "${destroot}/${prefix}/share/man/man1"
	xinstall -m 755 ${workpath}/${name}/Bonnie ${destroot}/${prefix}/bin
	xinstall -m 644 ${workpath}/${name}/bonnie.1 ${destroot}/${prefix}/share/man/man1
} 
