pkgsrc-WIP-changes archive

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

suricata: fix rc script to run in pcap mode and config yaml location, TODO update



Module Name:	pkgsrc-wip
Committed By:	kami <kisskamizeg%gmail.com@localhost>
Pushed By:	kami
Date:		Sat Oct 18 13:08:53 2025 +0200
Changeset:	9d37c8640e040e81c225468421f9677e7f7bd231

Modified Files:
	suricata/Makefile
	suricata/TODO
	suricata/files/suricata.sh

Log Message:
suricata: fix rc script to run in pcap mode and config yaml location, TODO update

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

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

diffstat:
 suricata/Makefile          | 3 +--
 suricata/TODO              | 8 ++------
 suricata/files/suricata.sh | 4 ++--
 3 files changed, 5 insertions(+), 10 deletions(-)

diffs:
diff --git a/suricata/Makefile b/suricata/Makefile
index 5695c0301b..a54f83400a 100644
--- a/suricata/Makefile
+++ b/suricata/Makefile
@@ -55,8 +55,7 @@ CONFIGURE_ARGS+=	--enable-profiling
 .endif
 
 #
-# 1. Generate and place some initial configuration files into etc!
-# 2. Create some runtime directories in var
+# Generate and place some initial configuration files into etc!
 #
 post-install:
 	cd ${WRKSRC} \
diff --git a/suricata/TODO b/suricata/TODO
index bf672e5325..be2a918c00 100644
--- a/suricata/TODO
+++ b/suricata/TODO
@@ -2,12 +2,10 @@
 #+title: TODO for Suricata 8 package
 
 * Makefile
-- check rust/vendor/* need
-  
+
 * Configure
 - libunwind and dev header not found
-- check not found includes, features that exists on NetBSD
-  and add support
+- check not found includes
 
 * Build / porting
   
@@ -16,7 +14,5 @@
 - run executables, fix errors
 
 * Package / Install
-- create /var subdirs
-  - log/suricata
 - run suricata-update during install or disp message
   about it
diff --git a/suricata/files/suricata.sh b/suricata/files/suricata.sh
index 5dec6c9fca..121b848ef3 100644
--- a/suricata/files/suricata.sh
+++ b/suricata/files/suricata.sh
@@ -10,14 +10,14 @@ if [ -f /etc/rc.subr ]; then
 	. /etc/rc.subr
 fi
 
-: ${suricata_conf:=@PKG_SYSCONFDIR@/suricata.yaml}
+: ${suricata_conf:=@PKG_SYSCONFDIR@/suricata/suricata.yaml}
 
 name="suricata"
 rcvar=$name
 command="@PREFIX@/sbin/${name}"
 pidfile="@VARBASE@/run/${name}.pid"
 required_files="${suricata_conf}"
-command_args="-D"
+command_args="-D --pcap"
 
 if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then
 	load_rc_config $name


Home | Main Index | Thread Index | Old Index