Files
Armin Kuster 623f5ed922 Samhain: package update to 4.1.2
4.1.1 Changes:
 - Fix for broken libwrap support.
 - Fix for broken baseline update (-t update) on FreeBSD and maybe other non GNU/Linux systems.
 - Fix for ungraceful handling of rotated logiles if logfile content is always zero or constant.
 - Fix for timezone offset calculation on month rollover for timezones west of GMT.

4.1.2 Changes:
 - Fix for broken rpm / rpm-light makefile targets.
 - Fix for the failure to detect open UDP ports sometimes.
 - Fix for reporting file changes with the wrong policy if both inotify is
   used and the file change occurs during a configuration reload.
 - New configure options --enable-posix-acl and --enable-selinux to turn the
   soft failure (no support for checking compiled in) into a hard failure
   if required headers/libraries are missing for this feature.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-01-17 15:38:19 -08:00

53 lines
1.5 KiB
BlitzBasic

SAMHAIN_MODE="server"
INITSCRIPT_PARAMS = "defaults 14 86"
require samhain.inc
DEPENDS = "gmp"
EXTRA_OECONF += "--enable-network=${SAMHAIN_MODE} "
# supports mysql|postgresql|oracle|odbc but postgresql is the only one available
PACKAGECONFG ??= "postgresql"
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"
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
}
INSANE_SKIP_${PN} = "already-stripped"
PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
FILES_${PN} += " \
${sbindir}/* \
/run \
"
FILES_${PN}-dbg += " \
${sbindir}/.debug/* \
"
RDEPENDS_${PN} += "gmp bash perl"