summaryrefslogtreecommitdiffstats
path: root/recipes-security/samhain/samhain-server_4.2.1.bb
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2017-08-14 08:56:26 +0800
committerArmin Kuster <akuster808@gmail.com>2017-08-22 18:04:38 -0700
commit81243359f234ceb478fa2b5dd0aa982bd524bcf1 (patch)
treef002891e172468eeea3f1c294c6ef5318073df2c /recipes-security/samhain/samhain-server_4.2.1.bb
parent6f53f67a0abe438d65a0c7bec335b93326305d9b (diff)
downloadmeta-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.bb54
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 @@
1SAMHAIN_MODE="server"
2INITSCRIPT_PARAMS = "defaults 14 86"
3
4require samhain.inc
5
6DEPENDS = "gmp samhain-server-native"
7
8EXTRA_OECONF += "--enable-network=${SAMHAIN_MODE} "
9
10# supports mysql|postgresql|oracle|odbc but postgresql is the only one available
11
12PACKAGECONFIG ??= "postgresql"
13PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
14PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
15PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
16
17PACKAGECONFIG[postgres] = "--with-database=postgresql --enable-xml-log, "", postgresql"
18PACKAGECONFIG[suidcheck] = "--enable-suidcheck","" , "
19PACKAGECONFIG[logwatch] = "--enable-login-watch,"" , "
20PACKAGECONFIG[mounts] = "--enable-mounts-check","" , "
21PACKAGECONFIG[userfiles] = "--enable-userfiles","" , "
22PACKAGECONFIG[ipv6] = "--enable-ipv6,"--disable-ipv6","
23PACKAGECONFIG[selinux] = "--enable-selinux, --disable-selinux, libselinux"
24PACKAGECONFIG[acl] = " --enable-posix-acl , --disable-posix-acl, acl"
25
26SRC_URI += "file://samhain-server-volatiles"
27
28TARGET_CC_ARCH += "${LDFLAGS}"
29
30EXTRA_OECONF += " \
31 --with-config-file=REQ_FROM_SERVER/etc/samhainrc \
32 --with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file \
33 "
34
35do_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
45PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
46
47FILES_${PN} += "${sbindir}/*"
48
49FILES_${PN}-dbg += " \
50 ${sbindir}/.debug/* \
51 "
52
53RDEPENDS_${PN} += "gmp bash perl"
54BBCLASSEXTEND = "native"