mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
* WORKDIR -> UNPACKDIR transition * Switch away from S = WORKDIR Signed-off-by: Changqing Li <changqing.li@windriver.com> [Fixed up the smack changes due to prior patch] Signed-off-by: Armin Kuster <akuster808@gmail.com>
33 lines
941 B
BlitzBasic
33 lines
941 B
BlitzBasic
INITSCRIPT_PARAMS = "defaults 14 86"
|
|
|
|
require samhain.inc
|
|
|
|
DEPENDS = "gmp"
|
|
|
|
SRC_URI += "file://samhain-server-volatiles \
|
|
file://samhain-server-volatiles.conf \
|
|
"
|
|
|
|
MODE_NAME = "server"
|
|
SAMHAIN_MODE = "server"
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
|
|
do_install:append() {
|
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
|
install -d ${D}${sysconfdir}/tmpfiles.d
|
|
install -m 0644 ${UNPACKDIR}/samhain-server-volatiles.conf \
|
|
${D}${sysconfdir}/tmpfiles.d/samhain-server.conf
|
|
else
|
|
install -d ${D}${sysconfdir}/default/volatiles
|
|
install -m 0644 ${UNPACKDIR}/samhain-server-volatiles \
|
|
${D}${sysconfdir}/default/volatiles/samhain-server
|
|
fi
|
|
|
|
install -m 700 samhain-install.sh init/samhain.startLinux \
|
|
init/samhain.startLSB ${D}/var/lib/samhain
|
|
}
|
|
|
|
RDEPENDS:${PN} += "gmp bash perl"
|
|
RCONFLICTS:${PN} = "samhain-standalone"
|