1 |
commit: 2580f85a96873f0318e858d116e007ba87e6047d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 27 23:39:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 27 23:39:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2580f85a |
7 |
|
8 |
net-misc/iperf: add 3.10 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-misc/iperf/Manifest | 1 + |
13 |
net-misc/iperf/iperf-3.10.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 41 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/iperf/Manifest b/net-misc/iperf/Manifest |
17 |
index a3540cc13ac..1e825d3b16b 100644 |
18 |
--- a/net-misc/iperf/Manifest |
19 |
+++ b/net-misc/iperf/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST iperf-2.0.13.tar.gz 326148 BLAKE2B 2a40aea9e2d7fdc935b91be5e4e586bf68dd27604375d2570570145e5db1ea5837469a4989f47586986932bef33cba05ed19ed3a9ce40c0a5531581c6d3ba982 SHA512 40fcfb8f4d27887f53a743ac07396511fb2a7ac59f4b300fe36896bd0241e191945fa253705990711772ee776d5e4227ed62760fc92abebdfebcedd11c27c0ea |
22 |
+DIST iperf-3.10.tar.gz 636646 BLAKE2B a8a7e01aa02a0dfb320311812a5e0d95213c5c67990fd30e9747d0372e125e4318bb211dc97a614015b75418a70d6a62f1dfd08d7499fd78765dcff9d99a4ca0 SHA512 f9ccc0dc0dc74f708d75a6992318b615259e8fa716175ee916462ebf75a370dc06a0ab5ac2aa314bf9c6f6f56dd2a00648bba34c65da848cbde1ea196c5a6f4e |
23 |
DIST iperf-3.9.tar.gz 627100 BLAKE2B c09018dc066612c61076ed4c53dd93b4dba766fbcbc359eb402055dcaa90af63e2df2b6c67ba8a0a72a17648014240dc5b355084e69550afed4d59257a224de8 SHA512 3da0939bed576a7c14baa03c996e6f407f20bfe58c4b3a36a66e74f41bd5442c0b23ab18c8eb1f2f37fd47449af533b61b658d810c68707b2b06d28894ac2035 |
24 |
|
25 |
diff --git a/net-misc/iperf/iperf-3.10.ebuild b/net-misc/iperf/iperf-3.10.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a1502f64dcc |
28 |
--- /dev/null |
29 |
+++ b/net-misc/iperf/iperf-3.10.ebuild |
30 |
@@ -0,0 +1,40 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit systemd |
37 |
+ |
38 |
+DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool" |
39 |
+HOMEPAGE="https://github.com/esnet/iperf" |
40 |
+SRC_URI="https://github.com/esnet/iperf/archive/${PV/_/}.tar.gz -> ${P}.tar.gz" |
41 |
+S="${WORKDIR}/${P/_/}" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="3" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
46 |
+IUSE="sctp" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-libs/openssl:0= |
50 |
+ sctp? ( net-misc/lksctp-tools ) |
51 |
+" |
52 |
+RDEPEND="${DEPEND}" |
53 |
+ |
54 |
+DOCS=( README.md RELNOTES.md ) |
55 |
+ |
56 |
+src_configure() { |
57 |
+ econf \ |
58 |
+ --disable-static |
59 |
+ $(use_with sctp) |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ default |
64 |
+ |
65 |
+ newconfd "${FILESDIR}"/iperf.confd iperf3 |
66 |
+ newinitd "${FILESDIR}"/iperf3.initd iperf3 |
67 |
+ systemd_dounit contrib/iperf3.service |
68 |
+ |
69 |
+ find "${ED}" -name '*.la' -delete || die |
70 |
+} |