Diff iperf-2.9999 with a iperf-3.13

/usr/portage/net-misc/iperf/iperf-3.13.ebuild 2023-10-09 14:52:34.656368480 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 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
inherit git-r3 toolchain-funcs
6
inherit autotools systemd
7 7

  
8
DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
9
HOMEPAGE="https://sourceforge.net/projects/iperf2/"
10
EGIT_REPO_URI="https://git.code.sf.net/p/iperf2/code"
8
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
9
HOMEPAGE="https://github.com/esnet/iperf"
10
SRC_URI="https://github.com/esnet/iperf/archive/${PV/_/}.tar.gz -> ${P}.tar.gz"
11
S="${WORKDIR}"/${P/_/}
12

  
13
LICENSE="BSD"
14
SLOT="3"
15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
16
IUSE="sctp"
17

  
18
DEPEND="
19
	>=dev-libs/cJSON-1.7.15
20
	dev-libs/openssl:=
21
	sctp? ( net-misc/lksctp-tools )
22
"
23
RDEPEND="${DEPEND}"
24
BDEPEND="virtual/pkgconfig"
25

  
26
DOCS=( README.md RELNOTES.md )
27

  
28
PATCHES=(
29
	"${FILESDIR}"/${PN}-3.10.1-drop-forced-debugging-symbols.patch
30
	"${FILESDIR}"/${PN}-3.12-Unbundle-cJSON.patch
31
)
11 32

  
12
LICENSE="HPND"
13
SLOT="2"
14
IUSE="ipv6 threads debug"
33
src_prepare() {
34
	default
15 35

  
16
DOCS=( INSTALL README )
36
	# Drop bundled cjson
37
	rm src/cjson.{c,h} || die
17 38

  
18
src_configure() {
19
	econf \
20
		$(use_enable debug debuginfo) \
21
		$(use_enable ipv6) \
22
		$(use_enable threads)
39
	eautoreconf
23 40
}
24 41

  
25
src_compile() {
26
	emake AR="$(tc-getAR)"
42
src_configure() {
43
	econf $(use_with sctp)
27 44
}
28 45

  
29 46
src_install() {
30 47
	default
31 48

  
32
	dodoc doc/*
33
	newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
34
	newconfd "${FILESDIR}"/${PN}.confd ${PN}
49
	newconfd "${FILESDIR}"/iperf.confd iperf3
50
	newinitd "${FILESDIR}"/iperf3.initd iperf3
51
	systemd_dounit contrib/iperf3.service
52

  
53
	find "${ED}" -name '*.la' -delete || die
35 54
}
Thank you!