diff --git a/net-mgmt/tcpreplay/Makefile b/net-mgmt/tcpreplay/Makefile index 8c250d6a58d9..5794a4e8a15b 100644 --- a/net-mgmt/tcpreplay/Makefile +++ b/net-mgmt/tcpreplay/Makefile @@ -1,40 +1,35 @@ PORTNAME= tcpreplay DISTVERSION= 4.5.1 CATEGORIES= net-mgmt MASTER_SITES= https://github.com/appneta/${PORTNAME}/releases/download/v${DISTVERSION}/ -MAINTAINER= ehaupt@FreeBSD.org +MAINTAINER= mew14930xvi@inbox.lv COMMENT= Tool to replay saved packet capture files 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 USES= cpe gmake libtool pkgconfig tar:xz CPE_VENDOR= broadcom GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share # 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 TEST_TARGET= test -OPTIONS_DEFAULT= LIBPCAP_BASE -OPTIONS_SINGLE= LIBPCAP -OPTIONS_SINGLE_LIBPCAP= LIBPCAP_BASE LIBPCAP_PORTS - -LIBPCAP_BASE_DESC= Build with libpcap from the base OS -LIBPCAP_PORTS_DESC= Build with net/libpcap - -LIBPCAP_BASE_CONFIGURE_ON= --with-libpcap=/usr/lib +OPTIONS_DEFINE= LIBPCAP_PORTS +LIBPCAP_PORTS_DESC= Build with net/libpcap instead of from the base OS # needs .so version (see: 262976) LIBPCAP_PORTS_LIB_DEPENDS= libpcap.so.1:net/libpcap +LIBPCAP_PORTS_CONFIGURE_OFF= --with-libpcap=/usr/lib .include diff --git a/net-mgmt/tcpreplay/files/patch-Makefile.in b/net-mgmt/tcpreplay/files/patch-Makefile.in index 39a566da5eae..9d6e23e9e94a 100644 --- a/net-mgmt/tcpreplay/files/patch-Makefile.in +++ b/net-mgmt/tcpreplay/files/patch-Makefile.in @@ -1,11 +1,11 @@ ---- Makefile.in.orig 2022-02-05 21:30:36 UTC +--- Makefile.in.orig 2024-07-12 17:15:27 UTC +++ Makefile.in -@@ -892,7 +892,7 @@ autoopts: - +@@ -900,7 +900,7 @@ test: + test: - echo Making test in $(TEST_DIR) + echo Making test in $(TEST_DIR) - cd $(TEST_DIR) && make test + cd $(TEST_DIR) && gmake test - + dlt_names: - cat @SAVEFILE_C@ | $(top_builddir)/scripts/dlt2name.pl src/dlt_names.h + cat @SAVEFILE_C@ | $(top_builddir)/scripts/dlt2name.pl src/dlt_names.h diff --git a/net-mgmt/tcpreplay/files/patch-lib_queue.h b/net-mgmt/tcpreplay/files/patch-lib_queue.h deleted file mode 100644 index cc17718f57a1..000000000000 --- a/net-mgmt/tcpreplay/files/patch-lib_queue.h +++ /dev/null @@ -1,19 +0,0 @@ ---- lib/queue.h.orig 2024-03-24 16:55:28 UTC -+++ lib/queue.h -@@ -36,8 +36,8 @@ - * @(#)queue.h 8.5 (Berkeley) 8/20/94 - */ - --#ifndef _SYS_QUEUE_H_ --#define _SYS_QUEUE_H_ -+#ifndef _QUEUE_H_ -+#define _QUEUE_H_ - - /* - * This file defines five types of data structures: singly-linked lists, -@@ -508,4 +508,4 @@ struct { \ - (elm2)->field.cqe_prev->field.cqe_next = (elm2); \ - } while (0) - --#endif /* !_SYS_QUEUE_H_ */ -+#endif /* !_QUEUE_H_ */ diff --git a/net-mgmt/tcpreplay/files/patch-src_fragroute_mod.c b/net-mgmt/tcpreplay/files/patch-src_fragroute_mod.c new file mode 100644 index 000000000000..d4eb02fa98b1 --- /dev/null +++ b/net-mgmt/tcpreplay/files/patch-src_fragroute_mod.c @@ -0,0 +1,15 @@ +--- src/fragroute/mod.c.orig 2023-12-31 18:39:02 UTC ++++ src/fragroute/mod.c +@@ -8,11 +8,11 @@ + */ + + #include "mod.h" ++#include "lib/queue.h" + #include "defines.h" + #include "config.h" + #include "common.h" + #include "argv.h" +-#include "lib/queue.h" + #include + #include + #include diff --git a/net-mgmt/tcpreplay/files/patch-src_fragroute_pkt.h b/net-mgmt/tcpreplay/files/patch-src_fragroute_pkt.h new file mode 100644 index 000000000000..ec36392985f8 --- /dev/null +++ b/net-mgmt/tcpreplay/files/patch-src_fragroute_pkt.h @@ -0,0 +1,13 @@ +--- src/fragroute/pkt.h.orig 2023-12-31 18:39:02 UTC ++++ src/fragroute/pkt.h +@@ -8,9 +8,9 @@ + + #pragma once + ++#include "lib/queue.h" + #include "defines.h" + #include "config.h" +-#include "lib/queue.h" + #include + + #ifdef HAVE_LIBDNET