commit:     56f18af71d1116ccaee3b8b1ef63610998ff3105
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 15 15:21:54 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Feb 15 15:21:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f18af7

net-misc/iperf: Version 3.4.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-misc/iperf/Manifest         |  1 +
 net-misc/iperf/iperf-3.4.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/net-misc/iperf/Manifest b/net-misc/iperf/Manifest
index c31743a6919..19e78f20155 100644
--- a/net-misc/iperf/Manifest
+++ b/net-misc/iperf/Manifest
@@ -3,3 +3,4 @@ DIST iperf-2.0.9.tar.gz 277702 BLAKE2B 
6de23e43be0c14bce2379e699b1e25a8ac5ed80cd
 DIST iperf-3.1.3.tar.gz 549466 BLAKE2B 
645e9614ef8f4e4f7949d9aaa99631eba604754a7744d1a729408c5549beb4baf692cee99498dddd8150e1cf06adaa13213cf70510e8ab54418274cdcf145ecd
 SHA512 
67795d9d5b4fc719b3fbbc2683cbe2777412bb7212282a50a378f5bb3793c3c17e278d22816fd9d289b2606ce97624d496ba236e3686ce1a31b9f1d6e6f474e9
 DIST iperf-3.2.tar.gz 588723 BLAKE2B 
41a57e82b931da250fbac50667f7632988a51455cf4a97326e55fdcfac2e24ee1f6a28218fe5cf4f9802f643a7fef9993d2e0c2a847fc0c1436f3c2f9b65632b
 SHA512 
5c49bb832dd53956d15b0a9374b052a4e4e03c7c3b6e8c150001a7aba07b6ad5f8cd2b9ac2d9876981be0adf8b0396535ec9e021d58c8fe909a0f92743b4f855
 DIST iperf-3.3.tar.gz 592986 BLAKE2B 
808e66a7e16d492c5602653b8a784e30ca65805e700d53555091fda0856cb64a6528a96025b5457f48df73561da7b64dd2fe7c21eafda04ce1b598e4582595f7
 SHA512 
f01f317f308301cc10abc6f592ba6e5172aa41d191d41927e2aa764210b8572126061d42c517ebda4b593a828ec545b1e04175f2f564999e124ad9a462acc342
+DIST iperf-3.4.tar.gz 595206 BLAKE2B 
948b629178afadce3498f4665ee205dcb6033a1b410d00906da104de72d059e934ed74b69da11c149c88602a280a6d0b4097863ca5867cb197f90621fb619e19
 SHA512 
dacc1c02515d42276f810609eeeeb95c393222695e541917928f5373e4bc7033da93038a6ffa3898d00e39a47c6e4bdf02d08e39f429e9032f25912d723c71de

diff --git a/net-misc/iperf/iperf-3.4.ebuild b/net-misc/iperf/iperf-3.4.ebuild
new file mode 100644
index 00000000000..5943f9805db
--- /dev/null
+++ b/net-misc/iperf/iperf-3.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 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
+}

Reply via email to