Hello, snort 2.9.20, which is currently in ports, is the last version of snort 2.x. It is still supported but I repeatedly got no answer for how long. For some years now there is snort 3. snort 3 has an additional dependancy on hwloc from https://www.open-mpi.org/projects/hwloc/ hwloc doesnt support OpenBSD. snort 2.9.20 in ports broke with the update to llvm 22. Attached is a diff which let snort 2 build again. I'd like to drop MAINTAINER from net/snort and the dependancy net/daq. Probably it is better to remove both ports. I'd like to thank the developers who helped me with testing and commiting updates to those ports over all the years. Thank you! Kind regards, Markus
Index: Makefile =================================================================== RCS file: /cvs/ports/net/snort/Makefile,v retrieving revision 1.124 diff -u -p -r1.124 Makefile --- Makefile 16 Jun 2026 16:15:28 -0000 1.124 +++ Makefile 15 Jul 2026 19:00:02 -0000 @@ -1,5 +1,3 @@ -BROKEN = bpf_timeval vs timeval mix-ups result in failure with llvm22 - COMMENT = highly flexible sniffer/NIDS DISTNAME = snort-2.9.20 Index: patch-src_dynamic-plugins_sf_dynamic_plugins_c =================================================================== RCS file: patch-src_dynamic-plugins_sf_dynamic_plugins_c diff -N patch-src_dynamic-plugins_sf_dynamic_plugins_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patch-src_dynamic-plugins_sf_dynamic_plugins_c 15 Jul 2026 19:00:02 -0000 @@ -0,0 +1,20 @@ +Index: src/dynamic-plugins/sf_dynamic_plugins.c +--- src/dynamic-plugins/sf_dynamic_plugins.c.orig ++++ src/dynamic-plugins/sf_dynamic_plugins.c +@@ -102,6 +102,7 @@ typedef HANDLE PluginHandle; + #include "../dynamic-output/plugins/output.h" + #include "file_api.h" + #include "packet_time.h" ++#include "pcap_pkthdr32.h" + #include "perf_indicators.h" + #include "reload.h" + #include "so_rule_mem_adjust.h" +@@ -1839,7 +1840,7 @@ time_t DynamicPktTime(void) + return packet_time(); + } + +-void DynamicGetPktTimeOfDay(struct timeval *tv) ++void DynamicGetPktTimeOfDay(struct sf_timeval32 *tv) + { + packet_gettimeofday(tv); + } Index: patch-src_packet_time_c =================================================================== RCS file: patch-src_packet_time_c diff -N patch-src_packet_time_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patch-src_packet_time_c 15 Jul 2026 19:00:02 -0000 @@ -0,0 +1,26 @@ +Index: src/packet_time.c +--- src/packet_time.c.orig ++++ src/packet_time.c +@@ -36,10 +36,11 @@ +
No comments:
Post a Comment