# $Id: Portfile,v 1.1 2004/02/07 14:14:11 pguyot Exp $

PortSystem	1.0
name		bonnie
version		1.0
categories	benchmarks
maintainers	lomion@mac.com
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, Bonnnie 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
} 
