1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
8 DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
9 HOMEPAGE="https://github.com/esnet/iperf/"
10 SRC_URI="https://codeload.github.com/esnet/${PN}/tar.gz/${PV/_beta/b} -> ${P}.tar.gz"
14 KEYWORDS="amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
15 IUSE="sctp static-libs"
17 DEPEND="sctp? ( net-misc/lksctp-tools )"
20 S=${WORKDIR}/${P/_beta/b}
22 PATCHES=( "${FILESDIR}"/${PN}-3.0.5-flags.patch )
31 econf $(use_enable static-libs static)
36 newconfd "${FILESDIR}"/iperf.confd iperf3
37 newinitd "${FILESDIR}"/iperf3.initd iperf3