git: 9e40a7a7a30b - main - net-mgmt/tcpreplay: Remove libpcapnav from build dependencies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Jul 2025 15:24:38 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9e40a7a7a30bb70f79ab684a088cca2c7d802161
commit 9e40a7a7a30bb70f79ab684a088cca2c7d802161
Author: mew14930xvi <mew14930xvi@inbox.lv>
AuthorDate: 2025-07-10 15:20:05 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-07-10 15:24:24 +0000
net-mgmt/tcpreplay: Remove libpcapnav from build dependencies
The pcapnav is unused in this program - the binaries with or without it
doesn't differ. The ldd says isn't linked to libpcapnav.
Details: the src/common/fakepcapnav.h includes pcapnav.h if it exists
(HAVE_PCAPNAV). If it doesn't exist it fakepcapnav.h defines some
structure (they are same in libpcapnav's pcapnav.h).
The tcpreplay doesn't use libpcpnav's library. Tcpreplay (re)defines
them - the function doesn't nothing as the comment in
src/common/fakepcapnav.c says.
Remove program-transform-name option too.
PR: 286787
Approved by: mew14930xvi@inbox.lv (maintainer)
---
net-mgmt/tcpreplay/Makefile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/net-mgmt/tcpreplay/Makefile b/net-mgmt/tcpreplay/Makefile
index 5794a4e8a15b..bfe73313f623 100644
--- a/net-mgmt/tcpreplay/Makefile
+++ b/net-mgmt/tcpreplay/Makefile
@@ -10,7 +10,6 @@ WWW= https://github.com/appneta/tcpreplay
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/docs/LICENSE
-BUILD_DEPENDS= pcapnav-config:net/libpcapnav
LIB_DEPENDS= libdnet.so:net/libdnet \
libopts.so:devel/autogen
@@ -20,9 +19,7 @@ CPE_VENDOR= broadcom
GNU_CONFIGURE= yes
# libopts options are required when using autogen
CONFIGURE_ARGS= --disable-libopts-install \
- --disable-local-libopts \
- --program-transform-name='s|.*\(tcp.*\)|\1|' \
- --with-pcapnav-config=${LOCALBASE}/bin/pcapnav-config
+ --disable-local-libopts
TEST_TARGET= test