snort3: add patch to unambiguously show vectorscan
authorJohn Audia <[email protected]>
Thu, 4 Sep 2025 20:38:22 +0000 (16:38 -0400)
committerHannu Nyman <[email protected]>
Sat, 20 Sep 2025 03:52:48 +0000 (06:52 +0300)
When snort is run with the --version option, it advertises components'
versions in the output. Add a patch to modify the output to clearly
show vectorscan is in use.

Signed-off-by: John Audia <[email protected]>
net/snort3/Makefile
net/snort3/patches/200-cosmetic-advertise-vectorscan-not-hyperscan.patch [new file with mode: 0644]

index 292b79de8cf98d1adb85ab48a32d8ec3add44c8b..e145c2264cfa21541bec63d747f0b96a285705aa 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=snort3
 PKG_VERSION:=3.9.5.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/snort3/snort3/tar.gz/$(PKG_VERSION)?
diff --git a/net/snort3/patches/200-cosmetic-advertise-vectorscan-not-hyperscan.patch b/net/snort3/patches/200-cosmetic-advertise-vectorscan-not-hyperscan.patch
new file mode 100644 (file)
index 0000000..11803a4
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/main/process.cc
++++ b/src/main/process.cc
+@@ -704,7 +704,7 @@ int DisplayBanner()
+     LogMessage("           Copyright (C) 1998-2013 Sourcefire, Inc., et al.\n");
+     LogMessage("           Using DAQ version %s\n", daq_version_string());
+ #ifdef HAVE_HYPERSCAN
+-    LogMessage("           Using Hyperscan version %s\n", hs_version());
++    LogMessage("           Using Vectorscan version %s\n", hs_version());
+ #endif
+ #ifdef HAVE_JEMALLOC
+     const char* jv;