1 |
commit: 223383631c8342f702939b50e2a8f83b754de40b |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 1 12:57:59 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 1 12:57:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22338363 |
7 |
|
8 |
net-misc/iperf: Add live ebuilds. |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
net-misc/iperf/iperf-2.99999.99999.ebuild | 34 +++++++++++++++++++++++++++++++ |
13 |
net-misc/iperf/iperf-3.99999.99999.ebuild | 33 ++++++++++++++++++++++++++++++ |
14 |
net-misc/iperf/metadata.xml | 19 +++++++++-------- |
15 |
3 files changed, 78 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/iperf/iperf-2.99999.99999.ebuild b/net-misc/iperf/iperf-2.99999.99999.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..ee2ce295818 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/iperf/iperf-2.99999.99999.ebuild |
22 |
@@ -0,0 +1,34 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+inherit git-r3 |
28 |
+ |
29 |
+DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP" |
30 |
+HOMEPAGE="http://iperf2.sourceforge.net/" |
31 |
+#SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.gz" |
32 |
+EGIT_REPO_URI="https://git.code.sf.net/p/iperf2/code" |
33 |
+ |
34 |
+LICENSE="HPND" |
35 |
+SLOT="2" |
36 |
+KEYWORDS="" |
37 |
+IUSE="ipv6 threads debug" |
38 |
+ |
39 |
+DOCS="INSTALL README" |
40 |
+PATCHES=( |
41 |
+ "${FILESDIR}"/${PN}-2.0.12-ipv6.patch |
42 |
+) |
43 |
+ |
44 |
+src_configure() { |
45 |
+ econf \ |
46 |
+ $(use_enable debug debuginfo) \ |
47 |
+ $(use_enable ipv6) \ |
48 |
+ $(use_enable threads) |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ default |
53 |
+ dodoc doc/* |
54 |
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
55 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
56 |
+} |
57 |
|
58 |
diff --git a/net-misc/iperf/iperf-3.99999.99999.ebuild b/net-misc/iperf/iperf-3.99999.99999.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..605135d8e2e |
61 |
--- /dev/null |
62 |
+++ b/net-misc/iperf/iperf-3.99999.99999.ebuild |
63 |
@@ -0,0 +1,33 @@ |
64 |
+# Copyright 1999-2018 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=6 |
68 |
+inherit autotools eutils git-r3 |
69 |
+ |
70 |
+DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool" |
71 |
+HOMEPAGE="https://github.com/esnet/iperf/" |
72 |
+EGIT_REPO_URI="${HOMEPAGE}" |
73 |
+ |
74 |
+LICENSE="BSD" |
75 |
+SLOT="3" |
76 |
+KEYWORDS="" |
77 |
+IUSE="profiling sctp static-libs" |
78 |
+ |
79 |
+DEPEND="sctp? ( net-misc/lksctp-tools )" |
80 |
+RDEPEND="${DEPEND}" |
81 |
+ |
82 |
+S=${WORKDIR}/${P/_/} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ use sctp || export ac_cv_header_netinet_sctp_h=no |
86 |
+ econf \ |
87 |
+ $(use_enable static-libs static) \ |
88 |
+ $(use_enable profiling) |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ default |
93 |
+ newconfd "${FILESDIR}"/iperf.confd iperf3 |
94 |
+ newinitd "${FILESDIR}"/iperf3.initd iperf3 |
95 |
+ prune_libtool_files |
96 |
+} |
97 |
|
98 |
diff --git a/net-misc/iperf/metadata.xml b/net-misc/iperf/metadata.xml |
99 |
index c2391d465b9..f3c92356707 100644 |
100 |
--- a/net-misc/iperf/metadata.xml |
101 |
+++ b/net-misc/iperf/metadata.xml |
102 |
@@ -1,12 +1,15 @@ |
103 |
<?xml version="1.0" encoding="UTF-8"?> |
104 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
105 |
<pkgmetadata> |
106 |
- <maintainer type="project"> |
107 |
- <email>netmon@g.o</email> |
108 |
- <name>Gentoo network monitoring and analysis project</name> |
109 |
- </maintainer> |
110 |
- <upstream> |
111 |
- <remote-id type="github">esnet/iperf</remote-id> |
112 |
- <remote-id type="sourceforge">iperf</remote-id> |
113 |
- </upstream> |
114 |
+<maintainer type="project"> |
115 |
+<email>netmon@g.o</email> |
116 |
+<name>Gentoo network monitoring and analysis project</name> |
117 |
+</maintainer> |
118 |
+<upstream> |
119 |
+<remote-id type="github">esnet/iperf</remote-id> |
120 |
+<remote-id type="sourceforge">iperf</remote-id> |
121 |
+</upstream> |
122 |
+<use> |
123 |
+<flag name='profiling'>Create a profiled iperf3 binary</flag> |
124 |
+</use> |
125 |
</pkgmetadata> |