[meta-security][PATCH 08/10] suricata: install and package rules


Koen Kooi
 

This fixes the following warning during startup:

suricata[22707]: 31/7/2018 -- 13:34:40 - <Warning> - [ERRCODE: SC_ERR_NO_RULES_LOADED(43)] - 47 rule files specified, but no rule was loaded at all!

Signed-off-by: Koen Kooi <koen.kooi@...>
---
recipes-security/suricata/suricata_4.0.0.bb | 3 +++
1 file changed, 3 insertions(+)

diff --git a/recipes-security/suricata/suricata_4.0.0.bb b/recipes-security/suricata/suricata_4.0.0.bb
index 928cb07..df5621b 100644
--- a/recipes-security/suricata/suricata_4.0.0.bb
+++ b/recipes-security/suricata/suricata_4.0.0.bb
@@ -40,6 +40,9 @@ PACKAGECONFIG[python] = "--enable-python, --disable-python, python, python"
export logdir = "${localstatedir}/log"

do_install_append () {
+
+ oe_runmake install-rules DESTDIR=${D}
+
install -d ${D}${sysconfdir}/suricata
install -d ${D}${sysconfdir}/suricata ${D}${sysconfdir}/default/volatiles
install -m 644 classification.config ${D}${sysconfdir}/suricata
--
2.9.5

Join yocto@lists.yoctoproject.org to automatically receive all group messages.