diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2017-08-14 08:56:26 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2017-08-22 18:04:38 -0700 |
commit | 81243359f234ceb478fa2b5dd0aa982bd524bcf1 (patch) | |
tree | f002891e172468eeea3f1c294c6ef5318073df2c /recipes-security/samhain/samhain-standalone_4.2.2.bb | |
parent | 6f53f67a0abe438d65a0c7bec335b93326305d9b (diff) | |
download | meta-security-master-wip2.tar.gz |
samhain: update to 4.2.2master-wip2
* update to version 4.2.2
* Add new recipe for standalone mode
* Add systemd support
* Add patches to fix several issues
* samhain-standalone: add ptest support
* samhain-server: no need to depend on samhain-server-native
* Move common things from the bb to the inc file
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/samhain/samhain-standalone_4.2.2.bb')
-rw-r--r-- | recipes-security/samhain/samhain-standalone_4.2.2.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-security/samhain/samhain-standalone_4.2.2.bb b/recipes-security/samhain/samhain-standalone_4.2.2.bb new file mode 100644 index 0000000..4fed9e9 --- /dev/null +++ b/recipes-security/samhain/samhain-standalone_4.2.2.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | require samhain.inc | ||
2 | |||
3 | SRC_URI += "file://samhain-not-run-ptest-on-host.patch \ | ||
4 | file://run-ptest \ | ||
5 | " | ||
6 | |||
7 | PROVIDES += "samhain" | ||
8 | |||
9 | SYSTEMD_SERVICE_${PN} = "samhain.service" | ||
10 | |||
11 | inherit ptest | ||
12 | |||
13 | do_compile() { | ||
14 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'yes', 'no', d)}" = "yes" ]; then | ||
15 | oe_runmake cutest | ||
16 | rm -f ${S}*.o config_xor.h internal.h | ||
17 | fi | ||
18 | oe_runmake "$@" | ||
19 | } | ||
20 | |||
21 | do_install_append() { | ||
22 | ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain | ||
23 | } | ||
24 | |||
25 | do_install_ptest() { | ||
26 | mkdir -p ${D}${PTEST_PATH} | ||
27 | install ${S}/cutest ${D}${PTEST_PATH} | ||
28 | } | ||
29 | |||
30 | RPROVIDES_${PN} += "samhain" | ||
31 | RCONFLICTS_${PN} = "samhain-client samhain-server" | ||