SUMMARY="Network performance benchmark including tests for TCP, UDP, and more."
DESCRIPTION="
Netperf is a benchmark that can be used to measure the performance of many \
different types of networking. It provides tests for both unidirectional \
throughput, and end-to-end latency. The environments currently measureable by \
netperf include:
 * TCP and UDP via BSD Sockets for both IPv4 and IPv6
 * DLPI
 * Unix Domain Sockets
 * SCTP for both IPv4 and IPv6
"
HOMEPAGE="http://netperf.org"
SRC_URI="ftp://ftp.netperf.org/${portName}/${portName}-${portVersion}.tar.bz2"
CHECKSUM_SHA256="cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a"
LICENSE="netperf"
COPYRIGHT="1993 Hewlett-Packard Company"
REVISION="1"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	netperf = $portVersion
	cmd:netperf
	cmd:netserver
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	"

PATCHES="netperf-2.6.0.patchset"
BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
