Files
haikuports/net-analyzer/iperf/iperf-2.1.9.recipe
2023-04-27 20:56:32 +03:00

56 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="5c0771aab00ef14520013aef01675977816e23bb8f5d9fde016f90eb2f1be788"
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
}