aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security/samhain/samhain-server_4.2.0.bb
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2016-10-31 17:40:00 -0700
committerArmin Kuster <akuster808@gmail.com>2016-11-02 09:06:39 -0700
commit5069b211fe0871b5835b99dc5104a85723c5cf33 (patch)
tree6bb80d9c7d47c63ae3349c12ebe1b4d070cd2d27 /recipes-security/samhain/samhain-server_4.2.0.bb
parent9476dde5f94891704b1dc20b291efcac61e1bb46 (diff)
downloadmeta-security-5069b211fe0871b5835b99dc5104a85723c5cf33.tar.gz
meta-security-5069b211fe0871b5835b99dc5104a85723c5cf33.tar.bz2
meta-security-5069b211fe0871b5835b99dc5104a85723c5cf33.zip
samhain: update to 4.2.0
* Changes: - New option 'SetAuditdFlags = r|w|x|a' to (re-)define the flags supplied to auditd. - New option 'PortCheckDevice = device' for the port check module, to monitor a device regardless of the address assigned to it. - Fix for the case sensitivity of the arguments to the Severity/Class options. - Compiler warnings with gcc 6.2 and a few minor bugs have been fixed. Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/samhain/samhain-server_4.2.0.bb')
-rw-r--r--recipes-security/samhain/samhain-server_4.2.0.bb54
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-security/samhain/samhain-server_4.2.0.bb b/recipes-security/samhain/samhain-server_4.2.0.bb
new file mode 100644
index 0000000..35f8775
--- /dev/null
+++ b/recipes-security/samhain/samhain-server_4.2.0.bb
@@ -0,0 +1,54 @@
+SAMHAIN_MODE="server"
+INITSCRIPT_PARAMS = "defaults 14 86"
+
+require samhain.inc
+
+DEPENDS = "gmp samhain-server-native"
+
+EXTRA_OECONF += "--enable-network=${SAMHAIN_MODE} "
+
+# supports mysql|postgresql|oracle|odbc but postgresql is the only one available
+
+PACKAGECONFIG ??= "postgresql"
+PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
+
+PACKAGECONFIG[postgres] = "--with-database=postgresql --enable-xml-log, "", postgresql"
+PACKAGECONFIG[suidcheck] = "--enable-suidcheck","" , "
+PACKAGECONFIG[logwatch] = "--enable-login-watch,"" , "
+PACKAGECONFIG[mounts] = "--enable-mounts-check","" , "
+PACKAGECONFIG[userfiles] = "--enable-userfiles","" , "
+PACKAGECONFIG[ipv6] = "--enable-ipv6,"--disable-ipv6","
+PACKAGECONFIG[selinux] = "--enable-selinux, --disable-selinux"
+PACKAGECONFIG[acl] = " --enable-posix-acl , --disable-posix-acl"
+
+SRC_URI += "file://samhain-server-volatiles"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+EXTRA_OECONF += " \
+ --with-config-file=REQ_FROM_SERVER/etc/samhainrc \
+ --with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file \
+ "
+
+do_install_append() {
+ cd ${S}
+ install -d ${D}${sysconfdir}/default/volatiles
+ install -m 0644 ${WORKDIR}/samhain-server-volatiles \
+ ${D}${sysconfdir}/default/volatiles/samhain-server
+
+ install -m 700 samhain-install.sh init/samhain.startLinux \
+ init/samhain.startLSB ${D}/var/lib/samhain
+}
+
+PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
+
+FILES_${PN} += "${sbindir}/*"
+
+FILES_${PN}-dbg += " \
+ ${sbindir}/.debug/* \
+ "
+
+RDEPENDS_${PN} += "gmp bash perl"
+BBCLASSEXTEND = "native"