2015-11-30 21:51:01 +01:00
|
|
|
# Template file for 'iperf3'
|
|
|
|
pkgname=iperf3
|
2016-02-14 15:03:53 +01:00
|
|
|
version=3.1.2
|
2015-11-30 21:51:01 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="iperf-${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
CFLAGS="-D_GNU_SOURCE"
|
|
|
|
make_build_args="iperf3_profile_LDFLAGS= iperf3_profile_CFLAGS="
|
|
|
|
short_desc="Active measurements of the maximum achievable bandwidth on IP networks"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://software.es.net/iperf/"
|
2016-02-14 15:03:53 +01:00
|
|
|
distfiles="http://downloads.es.net/pub/iperf/iperf-${version}.tar.gz"
|
|
|
|
checksum=f9dbdb99f869c077d14bc1de78675f5e4b8d1bf78dc92381e96c3eb5b1fd7d86
|
2015-11-30 21:51:01 +01:00
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed -i '1i#include <stdint.h>' src/timer.h src/cjson.h
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
iperf3-devel_package() {
|
2016-02-14 15:03:53 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
2015-11-30 21:51:01 +01:00
|
|
|
}
|