pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import of package named suricata, version 8.0.1



Module Name:	pkgsrc-wip
Committed By:	kami <kisskamizeg%gmail.com@localhost>
Pushed By:	kami
Date:		Thu Sep 18 22:18:54 2025 +0200
Changeset:	7dae56cdd5a970267b1fcf5b85417eb04be2c204

Added Files:
	suricata/DESCR
	suricata/Makefile
	suricata/PLIST
	suricata/TODO
	suricata/distinfo
	suricata/patches/patch-configure
	suricata/patches/patch-src_threads.h
	suricata/patches/patch-src_util-byte.h

Log Message:
Import of package named suricata, version 8.0.1

Suricata is a high performance Network IDS, IPS
and Network Security Monitoring engine. It is
open source and owned by a community-run non-profit
foundation, the Open Information Security Foundation
(OISF). Suricata is developed by the OISF.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7dae56cdd5a970267b1fcf5b85417eb04be2c204

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 suricata/DESCR                         |  5 +++++
 suricata/Makefile                      | 38 ++++++++++++++++++++++++++++++++++
 suricata/PLIST                         |  4 ++++
 suricata/TODO                          | 14 +++++++++++++
 suricata/distinfo                      |  8 +++++++
 suricata/patches/patch-configure       | 13 ++++++++++++
 suricata/patches/patch-src_threads.h   | 26 +++++++++++++++++++++++
 suricata/patches/patch-src_util-byte.h | 13 ++++++++++++
 8 files changed, 121 insertions(+)

diffs:
diff --git a/suricata/DESCR b/suricata/DESCR
new file mode 100644
index 0000000000..0d1c01281d
--- /dev/null
+++ b/suricata/DESCR
@@ -0,0 +1,5 @@
+Suricata is a high performance Network IDS, IPS
+and Network Security Monitoring engine. It is
+open source and owned by a community-run non-profit
+foundation, the Open Information Security Foundation
+(OISF). Suricata is developed by the OISF.
diff --git a/suricata/Makefile b/suricata/Makefile
new file mode 100644
index 0000000000..6725c457c2
--- /dev/null
+++ b/suricata/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+# Local variables:
+# coding: unix
+# End:
+DISTNAME=		suricata-8.0.1
+PKGREVISION=		1
+CATEGORIES=		net security
+MASTER_SITES=		https://www.openinfosecfoundation.org/download/
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://suricata.io/
+COMMENT=		Fast open source network analysis and threat detection software
+LICENSE=		gnu-gpl-v2
+
+USE_LIBTOOL=		yes
+GNU_CONFIGURE=		yes
+USE_TOOLS+=		pkg-config
+
+#PKGCONFIG_OVERRIDE+=	rust/vendor/libz-sys/src/zlib-ng/zlib.pc.in
+#PKGCONFIG_OVERRIDE+=	rust/vendor/libz-sys/src/zlib/zlib.pc.in
+
+USE_LANGUAGES=		c c++
+
+.include "../../mk/bsd.prefs.mk"
+
+#.include "options.mk"
+
+.include "../../devel/pcre2/buildlink3.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+
+# not found by configure for some reason:
+.include "../../lang/libunwind/buildlink3.mk"
+
+.include "../../archivers/lz4/buildlink3.mk"
+.include "../../lang/rust/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/suricata/PLIST b/suricata/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/suricata/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/suricata/TODO b/suricata/TODO
new file mode 100644
index 0000000000..39eda7eca0
--- /dev/null
+++ b/suricata/TODO
@@ -0,0 +1,14 @@
+-*- mode: org -*-
+#+title: TODO for Suricata 8 package
+
+* Makefile
+- pkgconfig overrides for rust/vendor/libz-sys not enabled yet
+  - probably needs patches
+
+* configure
+- libunwind and dev header not found
+- check not found includes, features that exists on NetBSD
+  and add support
+  
+* Compile
+- Lots of compile errors :/
diff --git a/suricata/distinfo b/suricata/distinfo
new file mode 100644
index 0000000000..287868fe80
--- /dev/null
+++ b/suricata/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (suricata-8.0.1.tar.gz) = 4ce02db2eb8950cc1154c135abb0a39787fedb3ecfc25b0c3c4fd7eb2c617e7a
+SHA512 (suricata-8.0.1.tar.gz) = e87c2049b783c9d4c6b688b84e67330fb4600911a2ae22228990efad970a2d41edc1f28fa2faba0f5a6c4ff4a5bd5106c3ce9b9381efd312ab345ddae01c1ee0
+Size (suricata-8.0.1.tar.gz) = 44098838 bytes
+SHA1 (patch-configure) = 379edddcef392fecd2d1f3cb2a66b2223a0fca33
+SHA1 (patch-src_threads.h) = bd3764e1ac575d2b2c7b6b88ea2dbd93c3c5a4cb
+SHA1 (patch-src_util-byte.h) = 2f4dd27b60eccc55a684d513765346bdbd120552
diff --git a/suricata/patches/patch-configure b/suricata/patches/patch-configure
new file mode 100644
index 0000000000..0217ff0d3a
--- /dev/null
+++ b/suricata/patches/patch-configure
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- configure.orig	2025-09-16 20:02:53.828343662 +0000
++++ configure
+@@ -13966,7 +13966,7 @@ printf "%s\n" "$as_me: WARNING: unsuppor
+             ;;
+     esac
+ 
+-     if test "x$compiler" == "xclang"; then
++     if test "x$compiler" = "xclang"; then
+   HAVE_CLANG_TRUE=
+   HAVE_CLANG_FALSE='#'
+ else
diff --git a/suricata/patches/patch-src_threads.h b/suricata/patches/patch-src_threads.h
new file mode 100644
index 0000000000..901778c981
--- /dev/null
+++ b/suricata/patches/patch-src_threads.h
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- src/threads.h.orig	2025-09-16 02:07:13.000000000 +0000
++++ src/threads.h
+@@ -231,6 +231,11 @@ enum {
+     unsigned long _scgetthread_tid = (unsigned long)GetCurrentThreadId(); \
+ 	_scgetthread_tid; \
+ })
++#elif __NetBSD__
++#define SCGetThreadIdLong(...) ({    \
++    pthread_t tpid = pthread_self();	\
++    tpid; \
++})
+ #elif OS_WIN32
+ #define SCGetThreadIdLong(...) ({ \
+     unsigned long _scgetthread_tid = (unsigned long)GetCurrentThreadId(); \
+@@ -280,6 +285,9 @@ extern thread_local char t_thread_name[T
+ #elif defined __OpenBSD__ /* OpenBSD */
+ /** \todo Add implementation for OpenBSD */
+ #define SCSetThreadName(n) ({ strlcpy(t_thread_name, n, sizeof(t_thread_name)); })
++#elif defined __NetBSD__ /* NetBSD */
++/** \todo Add implementation for NetBSD */
++#define SCSetThreadName(n) ({ strlcpy(t_thread_name, n, sizeof(t_thread_name)); })
+ #elif defined OS_WIN32 /* Windows */
+ /** \todo Add implementation for Windows */
+ #define SCSetThreadName(n) ({ strlcpy(t_thread_name, n, sizeof(t_thread_name)); })
diff --git a/suricata/patches/patch-src_util-byte.h b/suricata/patches/patch-src_util-byte.h
new file mode 100644
index 0000000000..9242c253d4
--- /dev/null
+++ b/suricata/patches/patch-src_util-byte.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/util-byte.h.orig	2025-09-16 21:20:00.500853436 +0000
++++ src/util-byte.h
+@@ -30,7 +30,7 @@
+ #define BYTE_LITTLE_ENDIAN   1
+ 
+ /** Wrappers for OS dependent byte swapping functions */
+-#ifdef OS_FREEBSD
++#if defined(OS_FREEBSD) || defined(__NetBSD__)
+ #include <sys/endian.h>
+ #define SCByteSwap16(x) bswap16(x)
+ #define SCByteSwap32(x) bswap32(x)


Home | Main Index | Thread Index | Old Index