summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-11-08 18:16:06 +0100
committerJeroen Roovers <jer@gentoo.org>2017-11-08 18:16:06 +0100
commit8dee1e0d706dc16854e3d4119e9f3ec0e30929fb (patch)
tree52483a13db75dc40dd5fe57303491a9dd0b04a3c /net-misc/iperf/iperf-3.3.ebuild
parentapp-admin/sysstat: Old. (diff)
downloadgentoo-8dee1e0d706dc16854e3d4119e9f3ec0e30929fb.tar.gz
gentoo-8dee1e0d706dc16854e3d4119e9f3ec0e30929fb.tar.bz2
gentoo-8dee1e0d706dc16854e3d4119e9f3ec0e30929fb.zip
net-misc/iperf: Version bump.
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Diffstat (limited to 'net-misc/iperf/iperf-3.3.ebuild')
-rw-r--r--net-misc/iperf/iperf-3.3.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/net-misc/iperf/iperf-3.3.ebuild b/net-misc/iperf/iperf-3.3.ebuild
new file mode 100644
index 000000000000..37399ff4a4d9
--- /dev/null
+++ b/net-misc/iperf/iperf-3.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
+HOMEPAGE="https://github.com/esnet/iperf/"
+SRC_URI="${HOMEPAGE}archive/${PV/_/}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="3"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
+IUSE="sctp static-libs"
+
+DEPEND="sctp? ( net-misc/lksctp-tools )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/_/}
+
+PATCHES=( "${FILESDIR}"/${PN}-3.0.5-flags.patch )
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ use sctp || export ac_cv_header_netinet_sctp_h=no
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ newconfd "${FILESDIR}"/iperf.confd iperf3
+ newinitd "${FILESDIR}"/iperf3.initd iperf3
+ prune_libtool_files
+}