void-packages/srcpkgs/iperf/template

26 lines
824 B
Bash

# Template file for 'iperf'
pkgname=iperf
version=2.1.9
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-multicast --enable-threads
ac_cv_sizeof_bool=0"
short_desc="Perform network throughput tests"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="NCSA"
homepage="https://iperf.fr/"
changelog="https://sourceforge.net/p/iperf2/code/ci/master/tree/doc/RELEASE_NOTES?format=raw"
distfiles="${SOURCEFORGE_SITE}/${pkgname}2/${pkgname}-${version}.tar.gz"
checksum=5c0771aab00ef14520013aef01675977816e23bb8f5d9fde016f90eb2f1be788
if [ "$XBPS_TARGET_LIBC" = musl ]; then
# do not define struct ethhdr in <linux/if_ether.h> to avoid
# redefinition in <netinet/if_ether.h>
CFLAGS="-D__UAPI_DEF_ETHHDR=0"
CXXFLAGS="-D__UAPI_DEF_ETHHDR=0"
fi
post_install() {
vlicense COPYING LICENSE
}