1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

security/snort3: Update version 3.0.1-5=>3.0.2-1

Relnotes:	https://github.com/snort3/snort3/releases/tag/3.0.2-1
This commit is contained in:
Muhammad Moinur Rahman 2020-07-11 02:03:42 +00:00
parent fad196898f
commit 19cfbfafe7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541902
8 changed files with 31 additions and 66 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= snort
DISTVERSION= 3.0.1-5
DISTVERSION= 3.0.2-1
PORTEPOCH= 1
CATEGORIES= security
PKGNAMESUFFIX= 3

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1592607367
SHA256 (snort3-snort3-3.0.1-5_GH0.tar.gz) = 08c3eab30015d0a93bb6405993ad383d4b7b4fc24e802b452005cf241d898deb
SIZE (snort3-snort3-3.0.1-5_GH0.tar.gz) = 6597239
TIMESTAMP = 1594422035
SHA256 (snort3-snort3-3.0.2-1_GH0.tar.gz) = 9afce6f1ea597007a01757db95bc5929ff167d0abae6496a7f8f22aea0acd7f5
SIZE (snort3-snort3-3.0.2-1_GH0.tar.gz) = 6605146

View File

@ -0,0 +1,11 @@
--- config.cmake.h.in.orig 2020-07-10 23:41:43 UTC
+++ config.cmake.h.in
@@ -164,5 +164,8 @@
/* Define if `thread_local` keyword should be used */
#cmakedefine USE_THREAD_LOCAL 1
+/* Define to 1 if you have the GNU form of the `sighandler_t' function. */
+#cmakedefine HAVE_SIGHANDLER_T 1
+
#endif

View File

@ -1,29 +0,0 @@
--- src/file_api/file_cache.cc.orig 2020-03-25 14:13:20 UTC
+++ src/file_api/file_cache.cc
@@ -133,7 +133,7 @@ FileContext* FileCache::add(const FileHashKey& hashKey
struct timeval now;
packet_gettimeofday(&now);
- struct timeval time_to_add = { timeout, 0 };
+ struct timeval time_to_add = { static_cast<time_t>(timeout), 0 };
timeradd(&now, &time_to_add, &new_node.cache_expire_time);
new_node.file = new FileContext;
@@ -183,7 +183,7 @@ FileContext* FileCache::find(const FileHashKey& hashKe
}
struct timeval next_expire_time;
- struct timeval time_to_add = { timeout, 0 };
+ struct timeval time_to_add = { static_cast<time_t>(timeout), 0 };
timeradd(&now, &time_to_add, &next_expire_time);
// Refresh the timer on the cache.
@@ -311,7 +311,7 @@ bool FileCache::apply_verdict(Packet* p, FileContext*
if (!timerisset(&file_ctx->pending_expire_time))
{
- add_time = { lookup_timeout, 0 };
+ add_time = { static_cast<time_t>(lookup_timeout), 0 };
timeradd(&now, &add_time, &file_ctx->pending_expire_time);
if (PacketTracer::is_active())

View File

@ -0,0 +1,14 @@
--- src/helpers/process.cc.orig 2020-07-10 23:44:17 UTC
+++ src/helpers/process.cc
@@ -34,6 +34,11 @@
#include <malloc.h>
#endif
+/* sighandler_t is GNU extension */
+#ifndef HAVE_SIGHANDLER_T
+typedef void (*sighandler_t) (int);
+#endif
+
#include <csignal>
#include <iostream>

View File

@ -1,20 +0,0 @@
--- src/main/analyzer.cc.orig 2020-04-23 16:12:51 UTC
+++ src/main/analyzer.cc
@@ -96,7 +96,7 @@ class RetryQueue (public)
RetryQueue(unsigned interval_ms)
{
assert(interval_ms > 0);
- interval = { interval_ms / 1000, static_cast<suseconds_t>((interval_ms % 1000) * 1000) };
+ interval = { static_cast<time_t>(interval_ms / 1000), static_cast<suseconds_t>( (interval_ms % 1000) * 1000 )};
}
~RetryQueue()
@@ -552,7 +552,7 @@ void Analyzer::idle()
struct timeval now, increment;
unsigned int timeout = SnortConfig::get_conf()->daq_config->timeout;
packet_gettimeofday(&now);
- increment = { timeout / 1000, static_cast<suseconds_t>((timeout % 1000) * 1000) };
+ increment = { static_cast<time_t>(timeout / 1000), static_cast<suseconds_t>((timeout % 1000) * 1000) };
timeradd(&now, &increment, &now);
packet_time_update(&now);

View File

@ -1,13 +0,0 @@
--- src/network_inspectors/appid/appid_config.h.orig 2020-04-28 22:50:18 UTC
+++ src/network_inspectors/appid/appid_config.h
@@ -65,8 +65,8 @@ class AppIdConfig (public)
uint32_t first_decrypted_packet_debug = 0;
#endif
bool log_stats = false;
- unsigned long app_stats_period = 300;
- unsigned long app_stats_rollover_size = 0;
+ uint32_t app_stats_period = 300;
+ uint32_t app_stats_rollover_size = 0;
const char* app_detector_dir = nullptr;
std::string tp_appid_path = "";
std::string tp_appid_config = "";

View File

@ -103,6 +103,7 @@ include/snort/main/snort_config.h
include/snort/main/snort_debug.h
include/snort/main/snort_types.h
include/snort/main/thread.h
include/snort/main/thread_config.h
include/snort/managers/codec_manager.h
include/snort/managers/inspector_manager.h
include/snort/memory/memory_cap.h
@ -130,6 +131,7 @@ include/snort/network_inspectors/rna/rna_logger.h
include/snort/packet_io/active.h
include/snort/packet_io/sfdaq.h
include/snort/packet_io/sfdaq_instance.h
include/snort/payload_injector/payload_injector_module.h
include/snort/profiler/memory_context.h
include/snort/profiler/memory_defs.h
include/snort/profiler/memory_profiler_defs.h