commit: 223383631c8342f702939b50e2a8f83b754de40b Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Sat Sep 1 12:57:59 2018 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Sat Sep 1 12:57:59 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22338363
net-misc/iperf: Add live ebuilds. Package-Manager: Portage-2.3.48, Repoman-2.3.10 net-misc/iperf/iperf-2.99999.99999.ebuild | 34 +++++++++++++++++++++++++++++++ net-misc/iperf/iperf-3.99999.99999.ebuild | 33 ++++++++++++++++++++++++++++++ net-misc/iperf/metadata.xml | 19 +++++++++-------- 3 files changed, 78 insertions(+), 8 deletions(-) diff --git a/net-misc/iperf/iperf-2.99999.99999.ebuild b/net-misc/iperf/iperf-2.99999.99999.ebuild new file mode 100644 index 00000000000..ee2ce295818 --- /dev/null +++ b/net-misc/iperf/iperf-2.99999.99999.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit git-r3 + +DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP" +HOMEPAGE="http://iperf2.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.gz" +EGIT_REPO_URI="https://git.code.sf.net/p/iperf2/code" + +LICENSE="HPND" +SLOT="2" +KEYWORDS="" +IUSE="ipv6 threads debug" + +DOCS="INSTALL README" +PATCHES=( + "${FILESDIR}"/${PN}-2.0.12-ipv6.patch +) + +src_configure() { + econf \ + $(use_enable debug debuginfo) \ + $(use_enable ipv6) \ + $(use_enable threads) +} + +src_install() { + default + dodoc doc/* + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-misc/iperf/iperf-3.99999.99999.ebuild b/net-misc/iperf/iperf-3.99999.99999.ebuild new file mode 100644 index 00000000000..605135d8e2e --- /dev/null +++ b/net-misc/iperf/iperf-3.99999.99999.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils git-r3 + +DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool" +HOMEPAGE="https://github.com/esnet/iperf/" +EGIT_REPO_URI="${HOMEPAGE}" + +LICENSE="BSD" +SLOT="3" +KEYWORDS="" +IUSE="profiling sctp static-libs" + +DEPEND="sctp? ( net-misc/lksctp-tools )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${P/_/} + +src_configure() { + use sctp || export ac_cv_header_netinet_sctp_h=no + econf \ + $(use_enable static-libs static) \ + $(use_enable profiling) +} + +src_install() { + default + newconfd "${FILESDIR}"/iperf.confd iperf3 + newinitd "${FILESDIR}"/iperf3.initd iperf3 + prune_libtool_files +} diff --git a/net-misc/iperf/metadata.xml b/net-misc/iperf/metadata.xml index c2391d465b9..f3c92356707 100644 --- a/net-misc/iperf/metadata.xml +++ b/net-misc/iperf/metadata.xml @@ -1,12 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo network monitoring and analysis project</name> - </maintainer> - <upstream> - <remote-id type="github">esnet/iperf</remote-id> - <remote-id type="sourceforge">iperf</remote-id> - </upstream> +<maintainer type="project"> +<email>[email protected]</email> +<name>Gentoo network monitoring and analysis project</name> +</maintainer> +<upstream> +<remote-id type="github">esnet/iperf</remote-id> +<remote-id type="sourceforge">iperf</remote-id> +</upstream> +<use> +<flag name='profiling'>Create a profiled iperf3 binary</flag> +</use> </pkgmetadata>
