net-misc/iperf: Add live ebuilds.
authorJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 12:57:59 +0000 (14:57 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 12:57:59 +0000 (14:57 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-misc/iperf/iperf-2.99999.99999.ebuild [new file with mode: 0644]
net-misc/iperf/iperf-3.99999.99999.ebuild [new file with mode: 0644]
net-misc/iperf/metadata.xml

diff --git a/net-misc/iperf/iperf-2.99999.99999.ebuild b/net-misc/iperf/iperf-2.99999.99999.ebuild
new file mode 100644 (file)
index 0000000..ee2ce29
--- /dev/null
@@ -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 (file)
index 0000000..605135d
--- /dev/null
@@ -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
+}
index c2391d465b93462e9be37db588d5c96f0db20770..f3c92356707be2a9544e942c316547957b89ea3d 100644 (file)
@@ -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>netmon@gentoo.org</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>netmon@gentoo.org</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>