net-analyzer/tcpreplay: update live ebuild

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/37692
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2024-07-28 11:51:13 +02:00
committed by Arthur Zamarin
parent 6af4fc3588
commit 848e926dbe

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -35,6 +35,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
QA_CONFIG_IMPL_DECL_SKIP=(
pathfind # sun/solaris only command, bug 900040
)
DOCS=( docs/{CHANGELOG,CREDIT,HACKING,TODO} )
PATCHES=(
@@ -59,16 +63,19 @@ src_prepare() {
src_configure() {
use elibc_musl && append-flags "-lfts"
# By default it uses static linking. Avoid that, bug #252940
econf \
$(use_enable debug) \
$(use_with pcapnav pcapnav-config "${BROOT}"/usr/bin/pcapnav-config) \
$(use_with tcpdump tcpdump "${ESYSROOT}"/usr/sbin/tcpdump) \
--enable-dynamic-link \
--enable-local-libopts \
--enable-shared \
--with-libdnet \
--with-testnic2=lo \
local myeconfargs=(
$(use_enable debug)
$(use_with pcapnav pcapnav-config "${BROOT}"/usr/bin/pcapnav-config)
$(use_with tcpdump tcpdump "${ESYSROOT}"/usr/sbin/tcpdump)
--enable-dynamic-link
--enable-local-libopts
--enable-shared
--with-libdnet
--with-testnic2=lo
--with-testnic=lo
)
econf "${myeconfargs[@]}"
}
src_test() {