void-packages/srcpkgs/iperf/template
2022-04-12 19:42:40 +02:00

26 lines
824 B
Bash

# Template file for 'iperf'
pkgname=iperf
version=2.1.7
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=1aba2e1d7aa43641ef841951ed88e16cffba898460e0c51e6b2806f3ff20e9d4
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
}