54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
SUMMARY="Network bandwidth testing tool"
|
|
DESCRIPTION="iperf2 is the legacy network bandwidth testing tool that support \
|
|
active measurement of bandwidth for protocols such as TCP and UDP and a \
|
|
variety of their parameters"
|
|
HOMEPAGE="https://sourceforge.net/projects/iperf2"
|
|
COPYRIGHT="1999-2007 Board of Trustees of University of Illinois"
|
|
LICENSE="UIUC"
|
|
REVISION="1"
|
|
SOURCE_URI="https://downloads.sourceforge.net/iperf2/iperf-${portVersion}.tar.gz"
|
|
CHECKSUM_SHA256="062b392e87b8e227aca74fef0a99b04fe0382d4518957041b508a56885b4d4f9"
|
|
SOURCE_DIR="iperf-$portVersion"
|
|
|
|
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
|
|
PATCHES="iperf-$portVersion.gcc2.patchset"
|
|
fi
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
iperf = $portVersion
|
|
cmd:iperf = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:g++
|
|
cmd:gcc
|
|
cmd:grep
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
chmod +x ./configure
|
|
echo "Running configue"
|
|
CPPFLAGS="-D_BSD_SOURCE" LDFLAGS="-lbsd -lnetwork" runConfigure ./configure
|
|
|
|
echo "Building iperf"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
echo "Installing iperf"
|
|
make install
|
|
}
|