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-server_4.2.1.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-server_4.2.1.bb')
-rw-r--r-- | recipes-security/samhain/samhain-server_4.2.1.bb | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/recipes-security/samhain/samhain-server_4.2.1.bb b/recipes-security/samhain/samhain-server_4.2.1.bb deleted file mode 100644 index 7ef84db..0000000 --- a/recipes-security/samhain/samhain-server_4.2.1.bb +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | SAMHAIN_MODE="server" | ||
2 | INITSCRIPT_PARAMS = "defaults 14 86" | ||
3 | |||
4 | require samhain.inc | ||
5 | |||
6 | DEPENDS = "gmp samhain-server-native" | ||
7 | |||
8 | EXTRA_OECONF += "--enable-network=${SAMHAIN_MODE} " | ||
9 | |||
10 | # supports mysql|postgresql|oracle|odbc but postgresql is the only one available | ||
11 | |||
12 | PACKAGECONFIG ??= "postgresql" | ||
13 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" | ||
14 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" | ||
15 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}" | ||
16 | |||
17 | PACKAGECONFIG[postgres] = "--with-database=postgresql --enable-xml-log, "", postgresql" | ||
18 | PACKAGECONFIG[suidcheck] = "--enable-suidcheck","" , " | ||
19 | PACKAGECONFIG[logwatch] = "--enable-login-watch,"" , " | ||
20 | PACKAGECONFIG[mounts] = "--enable-mounts-check","" , " | ||
21 | PACKAGECONFIG[userfiles] = "--enable-userfiles","" , " | ||
22 | PACKAGECONFIG[ipv6] = "--enable-ipv6,"--disable-ipv6"," | ||
23 | PACKAGECONFIG[selinux] = "--enable-selinux, --disable-selinux, libselinux" | ||
24 | PACKAGECONFIG[acl] = " --enable-posix-acl , --disable-posix-acl, acl" | ||
25 | |||
26 | SRC_URI += "file://samhain-server-volatiles" | ||
27 | |||
28 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
29 | |||
30 | EXTRA_OECONF += " \ | ||
31 | --with-config-file=REQ_FROM_SERVER/etc/samhainrc \ | ||
32 | --with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file \ | ||
33 | " | ||
34 | |||
35 | do_install_append() { | ||
36 | cd ${S} | ||
37 | install -d ${D}${sysconfdir}/default/volatiles | ||
38 | install -m 0644 ${WORKDIR}/samhain-server-volatiles \ | ||
39 | ${D}${sysconfdir}/default/volatiles/samhain-server | ||
40 | |||
41 | install -m 700 samhain-install.sh init/samhain.startLinux \ | ||
42 | init/samhain.startLSB ${D}/var/lib/samhain | ||
43 | } | ||
44 | |||
45 | PACKAGES = "${PN} ${PN}-doc ${PN}-dbg" | ||
46 | |||
47 | FILES_${PN} += "${sbindir}/*" | ||
48 | |||
49 | FILES_${PN}-dbg += " \ | ||
50 | ${sbindir}/.debug/* \ | ||
51 | " | ||
52 | |||
53 | RDEPENDS_${PN} += "gmp bash perl" | ||
54 | BBCLASSEXTEND = "native" | ||