summaryrefslogtreecommitdiff
path: root/net-misc/iperf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/iperf
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/iperf')
-rw-r--r--net-misc/iperf/Manifest17
-rw-r--r--net-misc/iperf/files/iperf-3.0.5-flags.patch31
-rw-r--r--net-misc/iperf/files/iperf.confd5
-rw-r--r--net-misc/iperf/files/iperf.initd-r114
-rw-r--r--net-misc/iperf/files/iperf3.initd10
-rw-r--r--net-misc/iperf/iperf-2.0.10.ebuild29
-rw-r--r--net-misc/iperf/iperf-2.0.9.ebuild29
-rw-r--r--net-misc/iperf/iperf-3.1.3.ebuild39
-rw-r--r--net-misc/iperf/iperf-3.1.7.ebuild40
-rw-r--r--net-misc/iperf/iperf-3.2.ebuild39
-rw-r--r--net-misc/iperf/metadata.xml12
11 files changed, 265 insertions, 0 deletions
diff --git a/net-misc/iperf/Manifest b/net-misc/iperf/Manifest
new file mode 100644
index 000000000000..1cbb1938dd61
--- /dev/null
+++ b/net-misc/iperf/Manifest
@@ -0,0 +1,17 @@
+AUX iperf-3.0.5-flags.patch 1323 SHA256 239b00aa090e7cfbd45f14ef0dc88a90fa24760f05cf005a17bded6df342e01f SHA512 d5e106b9b6fdc704e1e8d5c87f767a912a3e643994b51f09fee34fffcf9007b3eb91adcf3b87e04f90c994e29691dff0e400fb2f13a94e68c58183a39d833403 WHIRLPOOL 9dee2ef383d5dcc39358964be09e0d19d1a5cb0fe864067c6274dacfd994380c1bd4a5afd0789bcd4052af31c36578dc3a62c196134442b27f5b2c844ed06768
+AUX iperf.confd 200 SHA256 d05069f670dc9eba848d43429dba5002db9e8cfc71b81c6ac4f95a312eb8992b SHA512 49d79507064de54fbf1c5d11315b7c7be24a854968687ae0de7e0ee34c947495f4c98a5b629d68afcd414fd91cc759cda59c4f367c68137ff6e7bc4a214a6551 WHIRLPOOL 8632eadb8f2b70e911170597bd558ce07fbf139d5b2ccbba41a49d296dee432e30a8b45f210fdea80f4f2ae1ecff4bb6cd504bdcb73a83dbb79aa563ee56c2e5
+AUX iperf.initd-r1 437 SHA256 ab6b75299b0e185e791705504de35e818ec999e97d3a6549767cba8a55da1bca SHA512 5515ee1ca14d15fe2968e3f88e4ec1eb3860625aec27b4ae2f94667e6d3b3cb25dd76891121e658ad4346d8bfc9e1047630e586d90361ef364cb1bc8208ac4c1 WHIRLPOOL 0cf585a068e7d215873512d6365aeba08c668ac9cdc603150581692a56f2a58299b7d74387940439b7b1651560b6534386b13215e26f700d06d46e935e7cb292
+AUX iperf3.initd 287 SHA256 738d1acdc1603e497b940564b9c78f93f02d297a3ae8a9681a077800e2294271 SHA512 39718252b3ffc9e8cbc8da82308a3ba0ecd77f9bb7d5ab27dded0292e15079b8a877996e37d3ecd527ed1de6f6dd65b360180dc624fbbda8541605b657620040 WHIRLPOOL 44341bd181e3828d3cc16b7d06cd49935c0613b4f63686b6f0714f102610e21bb10a1fca6b3f0828c46cabeb9fe5ea2971a602eddb81232b5c2850d47442a683
+DIST iperf-2.0.10.tar.gz 290282 SHA256 7fe4348dcca313b74e0aa9c34a8ccd713b84a5615b8578f4aa94cedce9891ef2 SHA512 74bf49133cd123243c179e174cbaa7d2f74ca9fb47c80ca2c88b2e68ce8bca0a73709e51b3aac6bd85b8c70483b70f33e8a2424e7e0e5922397967330f7e2ecc WHIRLPOOL 4fa4e3006bc6354653fcc249cf0e4660af2ea88e463fbf731a65c5ecab44c297d36b0079dab1b38cadd1962c52d4fb1bba71f700af0ddec3296e94c79b5f5180
+DIST iperf-2.0.9.tar.gz 277702 SHA256 a5350777b191e910334d3a107b5e5219b72ffa393da4186da1e0a4552aeeded6 SHA512 ff75e51af9d368eedb1e1dc4621f7575219525f0e438f1c8fa896aa7e990a6812a9a351db9004952057d81127f52b67350820e85c9ae1d8db2e6a60c1f2534d2 WHIRLPOOL 044a189931459dca8fc35d94d5d0518533a104cf3981d33f0ab768a98ed5bec971799468146d5d980b614341afcff81d939a35e6ba9bd4c221311520d8fa1c19
+DIST iperf-3.1.3.tar.gz 549466 SHA256 e34cf60cffc80aa1322d2c3a9b81e662c2576d2b03e53ddf1079615634e6f553 SHA512 67795d9d5b4fc719b3fbbc2683cbe2777412bb7212282a50a378f5bb3793c3c17e278d22816fd9d289b2606ce97624d496ba236e3686ce1a31b9f1d6e6f474e9 WHIRLPOOL 0082f5156df751cbed49e86f794a48ff05857cd7cd4ee3bdb57f4df763a323d84f47d9e0b01e0b5932ae1e065bcf8ac706e6b96b6ac5ecee2daad6615ca4f38d
+DIST iperf-3.1.7.tar.gz 552793 SHA256 1d99e3b309aa94d8f4fe7b4e953f038396ab46c1fc809ac06fffbe21ffcb64b3 SHA512 9bcc011de99356467341bd9082d2a57d243a3543c65afc18f8027b1bc7e54c1544a750640fa5230b9610ac2241571395a1bd011812edd141607b59dd3cd08ce0 WHIRLPOOL 8b938ae6b38308c15cc22e918469433fa3fbd8bd782071e160195f5f068d4cff3a696120f07f8cb24f1f2bbe0cd111f94ffd764364a74cf678f4b3f70f3bee0d
+DIST iperf-3.2.tar.gz 588723 SHA256 cb20d3a33e07a3b45a49a358b044f4998f452ef9d1a8a5cbde476b6ab9e9b526 SHA512 5c49bb832dd53956d15b0a9374b052a4e4e03c7c3b6e8c150001a7aba07b6ad5f8cd2b9ac2d9876981be0adf8b0396535ec9e021d58c8fe909a0f92743b4f855 WHIRLPOOL b14b076bc6588407dedc6ee3d8236d11fb756e443ad851002f28d02ef86fa006275ed57ab97a8ab8657f2c8c51ac9170f92a408e7e3ff5a30d51f37408410032
+EBUILD iperf-2.0.10.ebuild 701 SHA256 f8e5e8a87cbaa29334e0f93fc57825c712a0dfa53b86400c39c94df0c2a16692 SHA512 7c2136a8ad639bbfc43929813ed43148daf6a3320ed729a2b41c464eb42f5f3eca6a5260654f21c132ac1190bfd0271fd8b5d3931f3d931ca2dbfb20750d785a WHIRLPOOL 97fd51a2c7d09319214139fb384db72e7ce9688c652231fed675405444f58c2cc6a80b011d5a3bc1aa0422078571b78e83c560e63606f95965e1bf2891fa873b
+EBUILD iperf-2.0.9.ebuild 695 SHA256 d837e32d58626610b98c31d23f5f86a735c4c9b3c23d87d55b2148fe92a0d97e SHA512 21438d1baed959f6203d23a62a0040ae2ceb289ffaa5b56a1e5d3a542d31d743041d5d6bd7c057c4bbb63086545a62bc7546996d90cde951bd2e4e116c948b7e WHIRLPOOL 283cc21cd35422add78ebdd73723fdf1beeb381523dd99b2e071e70bb61cbad1360ce91cd3bab4690d5d826a318e5f4db7a90f19fd3dae44a197d946e56d4ba1
+EBUILD iperf-3.1.3.ebuild 888 SHA256 d08f66cdffe833d094ef42f1e50e1faaaaed2e6558cb44ffe34d9a41032debdc SHA512 2dd6dfd2affb6d429c2a91f674e52390e1039c98df381e1ceb93f837b85631a27b615a7713d39c3797a8f873465c568214d717f92010f473792c17ff91683999 WHIRLPOOL 15e104622b54dd5d6339a96d2c61610d10f4f4571cf17a382b6e620431dfd31a844cd85a980f380fb1bdc6cb4cb6d81019e027f3e45b1cc705290859bc7656fd
+EBUILD iperf-3.1.7.ebuild 945 SHA256 457f9e44a764d64dc0d916b8206599edb3142a131508a6f2d3fed8a3109d5830 SHA512 5e4fc6ceda8feb42486ef6754ee185c9072b8344464b964b2f489a672ca07129f4c6d5c218fe03c633590037a45df69e82b5d76ffca9588756cc297091634281 WHIRLPOOL 7809211a2cc6b4f81ad700e4aad683e4c52c3125c6a6d32402bfe89a82353a41a3fd0e357e251a348b190455e98f2935ee3cdc3ec323fe85fae7ac51cae70ff3
+EBUILD iperf-3.2.ebuild 913 SHA256 82922329bb080bcebab3a72e0843b8c905614817c326130bec450784d897f0e9 SHA512 423c1d6feb7a0c864f165393ee8325c39ed4f6a570e2651d1db52d1f211994dddfaaac82be87e4f3fd6df6141c83ed5a7dd689ddc437c8b4c973dbd8fe1b8e1a WHIRLPOOL f8860cc94d53539175695e783263a72171d662ff658659452198997d44ee05c1c13834f456a36e801a3746c85a113d0bc055df64ff69a1d0aada2eb38389498a
+MISC ChangeLog 7066 SHA256 53bdb6751b6f5fab4decd1950326483842b67fa492c62363eae4d4069a6874d9 SHA512 35717f8f03877fed3548fae4fc1c0ea2755035bad01217265f66ac686e824eaaa462e102b33219508957457e7e10c55d629926959f9a925ea3449179d9a592ad WHIRLPOOL 8973bbf1de56c45702b3153071a0521073c42cb09bd0ff751727711a900df1f63982c4c43378714686841e2b99fa2ba71288ef1fb151dc6e78bab1bdcb13e748
+MISC ChangeLog-2015 9232 SHA256 a66a1c8b971ea90db0e055b706cd8af8778e04e0337297572baadd1b02c509ff SHA512 e04814dc84b7438914386bfc49f703993a6c447f3fbcfc3711d0c7e704c30274602028a4f07bb265181971c3bb374b26d07ca1f135d1db43c9c7c6f296754370 WHIRLPOOL a702b60e9c2a253890e5dd838050ade03b4ae212b85455e5352e3c3b8224cfce3b7a22e0430a80356a1b6641cec85a974456e3577cacca47376667f4bbcfeda7
+MISC metadata.xml 406 SHA256 83a84edbbf4f2c87428c10671bd34da8443aeef6e25beb8d08fd80aa51a8daa4 SHA512 98d8685483b308d70c56e436291e0229f53982bb78a953b13455eeddaba53ec4ad1d860fc1be4b9340cb89a06471d1caee938bc6213355179147923e0d7eaa17 WHIRLPOOL 7e5a6b27f7429419957a40fc6827255920b7d6f66f6f4d910940eb7b003900f8e25b6a8a0c9990693be4cf32a9dfa1e2229665460639bd524c9789ca0d37103b
diff --git a/net-misc/iperf/files/iperf-3.0.5-flags.patch b/net-misc/iperf/files/iperf-3.0.5-flags.patch
new file mode 100644
index 000000000000..9c11c282c339
--- /dev/null
+++ b/net-misc/iperf/files/iperf-3.0.5-flags.patch
@@ -0,0 +1,31 @@
+* Do not inject -g
+* Do not make a profiled build
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,6 +1,6 @@
+ lib_LTLIBRARIES = libiperf.la # Build and install an iperf library
+ bin_PROGRAMS = iperf3 # Build and install an iperf binary
+-noinst_PROGRAMS = t_timer t_units t_uuid iperf3_profile # Build, but don't install the test programs and a profiled version of iperf3
++noinst_PROGRAMS = t_timer t_units t_uuid # Build, but don't install the test programs and a profiled version of iperf3
+ include_HEADERS = iperf_api.h # Defines the headers that get installed with the program
+
+
+@@ -37,14 +37,13 @@
+
+ # Specify the sources and various flags for the iperf binary
+ iperf3_SOURCES = main.c
+-iperf3_CFLAGS = -g
++iperf3_CFLAGS =
+ iperf3_LDADD = libiperf.la
+-iperf3_LDFLAGS = -g
++iperf3_LDFLAGS =
+
+ # Specify the sources and various flags for the profiled iperf binary. This
+ # binary recompiles all the source files to make sure they are all profiled.
+-iperf3_profile_SOURCES = main.c \
+- $(libiperf_la_SOURCES)
++iperf3_profile_SOURCES = main.c
+
+ iperf3_profile_CFLAGS = -pg -g
+ iperf3_profile_LDADD = libiperf.la
diff --git a/net-misc/iperf/files/iperf.confd b/net-misc/iperf/files/iperf.confd
new file mode 100644
index 000000000000..7d82492a30f9
--- /dev/null
+++ b/net-misc/iperf/files/iperf.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# extra options (run iperf -h for a list of supported options)
+IPERF_OPTS="--format Mbytes"
diff --git a/net-misc/iperf/files/iperf.initd-r1 b/net-misc/iperf/files/iperf.initd-r1
new file mode 100644
index 000000000000..cd17a7b47e9e
--- /dev/null
+++ b/net-misc/iperf/files/iperf.initd-r1
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="IP bandwidth measurement server"
+command="/usr/bin/iperf"
+
+command_background="yes"
+pidfile="/run/${SVCNAME}.pid"
+command_args="-s ${IPERF_OPTS}"
+
+# note: iperf has a -D/--daemon flag but we seem to hit a bug
+# where it starts to eat all CPU after client disconnect,
+# see bug #344875
diff --git a/net-misc/iperf/files/iperf3.initd b/net-misc/iperf/files/iperf3.initd
new file mode 100644
index 000000000000..281ebf5ae2d3
--- /dev/null
+++ b/net-misc/iperf/files/iperf3.initd
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="IP bandwidth measurement server"
+command="/usr/bin/iperf3"
+
+command_background="yes"
+pidfile="/run/${SVCNAME}.pid"
+command_args="-s ${IPERF_OPTS}"
diff --git a/net-misc/iperf/iperf-2.0.10.ebuild b/net-misc/iperf/iperf-2.0.10.ebuild
new file mode 100644
index 000000000000..42c1e501eb05
--- /dev/null
+++ b/net-misc/iperf/iperf-2.0.10.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
+HOMEPAGE="http://iperf2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="2"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
+IUSE="ipv6 threads debug"
+
+DOCS="INSTALL README"
+
+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-2.0.9.ebuild b/net-misc/iperf/iperf-2.0.9.ebuild
new file mode 100644
index 000000000000..d4b7ac75be21
--- /dev/null
+++ b/net-misc/iperf/iperf-2.0.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
+HOMEPAGE="http://iperf2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="2"
+KEYWORDS="amd64 ~arm hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
+IUSE="ipv6 threads debug"
+
+DOCS="INSTALL README"
+
+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.1.3.ebuild b/net-misc/iperf/iperf-3.1.3.ebuild
new file mode 100644
index 000000000000..5e4de0d86e81
--- /dev/null
+++ b/net-misc/iperf/iperf-3.1.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 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="https://codeload.github.com/esnet/${PN}/tar.gz/${PV/_beta/b} -> ${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/_beta/b}
+
+PATCHES=( "${FILESDIR}"/${PN}-3.0.5-flags.patch )
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ newconfd "${FILESDIR}"/iperf.confd iperf3
+ newinitd "${FILESDIR}"/iperf3.initd iperf3
+ prune_libtool_files
+}
diff --git a/net-misc/iperf/iperf-3.1.7.ebuild b/net-misc/iperf/iperf-3.1.7.ebuild
new file mode 100644
index 000000000000..5e08d8feafa2
--- /dev/null
+++ b/net-misc/iperf/iperf-3.1.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 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="https://codeload.github.com/esnet/${PN}/tar.gz/${PV/_beta/b} -> ${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/_beta/b}
+
+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
+}
diff --git a/net-misc/iperf/iperf-3.2.ebuild b/net-misc/iperf/iperf-3.2.ebuild
new file mode 100644
index 000000000000..37399ff4a4d9
--- /dev/null
+++ b/net-misc/iperf/iperf-3.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 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
+}
diff --git a/net-misc/iperf/metadata.xml b/net-misc/iperf/metadata.xml
new file mode 100644
index 000000000000..c2391d465b93
--- /dev/null
+++ b/net-misc/iperf/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+</pkgmetadata>