Сравнение iperf-2.0.14a с iperf-2.2.1
| /usr/portage/net-misc/iperf/iperf-2.2.1.ebuild 2025-07-29 16:22:17.284467543 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 |
EAPI=7 |
|
| 4 |
EAPI=8 |
|
| 5 | 5 | |
| 6 | 6 |
inherit toolchain-funcs |
| 7 | 7 | |
| 8 | 8 |
DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP" |
| 9 | 9 |
HOMEPAGE="https://sourceforge.net/projects/iperf2/" |
| 10 |
SRC_URI="https://downloads.sourceforge.net/${PN}2/${PN}-2.0.13.tar.gz"
|
|
| 11 |
S="${WORKDIR}/${PN}-2.0.13"
|
|
| 12 | 10 | |
| 13 |
LICENSE="HPND" |
|
| 14 |
SLOT="2" |
|
| 15 |
KEYWORDS="amd64 ~arm ~hppa ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
|
| 16 |
IUSE="ipv6 threads debug" |
|
| 11 |
if [[ ${PV} == *9999* ]] ; then
|
|
| 12 |
EGIT_REPO_URI="https://git.code.sf.net/p/iperf2/code" |
|
| 13 |
inherit git-r3 |
|
| 14 |
else |
|
| 15 |
SRC_URI="https://downloads.sourceforge.net/iperf2/${P}.tar.gz"
|
|
| 17 | 16 | |
| 18 |
DOCS=( INSTALL README ) |
|
| 17 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
|
| 18 |
fi |
|
| 19 | 19 | |
| 20 |
PATCHES=( |
|
| 21 |
"${FILESDIR}"/${PN}-2.0.12-ipv6.patch
|
|
| 22 |
"${FILESDIR}"/${P}.patch
|
|
| 23 |
) |
|
| 20 |
LICENSE="HPND" |
|
| 21 |
SLOT="2" |
|
| 22 |
IUSE="debug" |
|
| 23 |
# Fails w/ connection refused to just-spawned daemon |
|
| 24 |
RESTRICT="test" |
|
| 24 | 25 | |
| 25 | 26 |
src_configure() {
|
| 26 |
econf \ |
|
| 27 |
$(use_enable debug debuginfo) \ |
|
| 28 |
$(use_enable ipv6) \ |
|
| 29 |
$(use_enable threads) |
|
| 27 |
local myeconfargs=( |
|
| 28 |
$(use_enable debug debuginfo) |
|
| 29 |
) |
|
| 30 | ||
| 31 |
econf "${myeconfargs[@]}"
|
|
| 30 | 32 |
} |
| 31 | 33 | |
| 32 | 34 |
src_compile() {
|