summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-ids/samhain/samhain-client.bb3
-rw-r--r--recipes-ids/samhain/samhain-server.bb3
-rw-r--r--recipes-ids/samhain/samhain-standalone.bb3
-rw-r--r--recipes-ids/samhain/samhain.inc8
4 files changed, 9 insertions, 8 deletions
diff --git a/recipes-ids/samhain/samhain-client.bb b/recipes-ids/samhain/samhain-client.bb
index 2b99e20..0de9c34 100644
--- a/recipes-ids/samhain/samhain-client.bb
+++ b/recipes-ids/samhain/samhain-client.bb
@@ -8,5 +8,8 @@ EXTRA_OECONF += " \
8 --with-port=${SAMHAIN_PORT} \ 8 --with-port=${SAMHAIN_PORT} \
9 " 9 "
10 10
11MODE_NAME = "client"
12SAMHAIN_MODE = "client"
13
11RDEPENDS:${PN} = "acl zlib attr bash" 14RDEPENDS:${PN} = "acl zlib attr bash"
12RCONFLICTS:${PN} = "samhain-standalone" 15RCONFLICTS:${PN} = "samhain-standalone"
diff --git a/recipes-ids/samhain/samhain-server.bb b/recipes-ids/samhain/samhain-server.bb
index 51bce07..8bae2d2 100644
--- a/recipes-ids/samhain/samhain-server.bb
+++ b/recipes-ids/samhain/samhain-server.bb
@@ -8,6 +8,9 @@ SRC_URI += "file://samhain-server-volatiles \
8 file://samhain-server-volatiles.conf \ 8 file://samhain-server-volatiles.conf \
9 " 9 "
10 10
11MODE_NAME = "server"
12SAMHAIN_MODE = "server"
13
11TARGET_CC_ARCH += "${LDFLAGS}" 14TARGET_CC_ARCH += "${LDFLAGS}"
12 15
13do_install:append() { 16do_install:append() {
diff --git a/recipes-ids/samhain/samhain-standalone.bb b/recipes-ids/samhain/samhain-standalone.bb
index b832dc8..ae9ed2b 100644
--- a/recipes-ids/samhain/samhain-standalone.bb
+++ b/recipes-ids/samhain/samhain-standalone.bb
@@ -7,6 +7,9 @@ SRC_URI += "file://samhain-not-run-ptest-on-host.patch \
7 7
8PROVIDES += "samhain" 8PROVIDES += "samhain"
9 9
10MODE_NAME = "standalone"
11SAMHAIN_MODE = "no"
12
10SYSTEMD_SERVICE:${PN} = "samhain.service" 13SYSTEMD_SERVICE:${PN} = "samhain.service"
11 14
12inherit ptest 15inherit ptest
diff --git a/recipes-ids/samhain/samhain.inc b/recipes-ids/samhain/samhain.inc
index eb8592d..8967d72 100644
--- a/recipes-ids/samhain/samhain.inc
+++ b/recipes-ids/samhain/samhain.inc
@@ -40,14 +40,6 @@ SYSTEMD_PACKAGES = "${PN}"
40SYSTEMD_SERVICE:${PN} = "${INITSCRIPT_NAME}.service" 40SYSTEMD_SERVICE:${PN} = "${INITSCRIPT_NAME}.service"
41SYSTEMD_AUTO_ENABLE = "disable" 41SYSTEMD_AUTO_ENABLE = "disable"
42 42
43# mode mapping:
44# BPN MODE_NAME SAMHAIN_MODE
45# samhain-standalone standalone no
46# samhain-client client client
47# samhain-server server server
48MODE_NAME = "${@d.getVar('BPN').split('-')[1]}"
49SAMHAIN_MODE = "${@oe.utils.ifelse(d.getVar('MODE_NAME') == 'standalone', 'no', '${MODE_NAME}')}"
50
51# supports mysql|postgresql|oracle|odbc but postgresql is the only one available 43# supports mysql|postgresql|oracle|odbc but postgresql is the only one available
52 44
53PACKAGECONFIG ??= "postgresql ps \ 45PACKAGECONFIG ??= "postgresql ps \