aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-ids/samhain/samhain-standalone_4.3.2.bb
blob: 4fed9e9e97e5de35fb000ee0d9ecc22ed5a68ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require samhain.inc

SRC_URI += "file://samhain-not-run-ptest-on-host.patch \
            file://run-ptest \
"

PROVIDES += "samhain"

SYSTEMD_SERVICE_${PN} = "samhain.service"

inherit ptest

do_compile() {
	if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'yes', 'no', d)}" = "yes" ]; then
		oe_runmake cutest
		rm -f ${S}*.o config_xor.h internal.h
	fi
	oe_runmake "$@"
}

do_install_append() {
    ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain
}

do_install_ptest() {
	mkdir -p ${D}${PTEST_PATH}
	install ${S}/cutest ${D}${PTEST_PATH}
}

RPROVIDES_${PN} += "samhain"
RCONFLICTS_${PN} = "samhain-client samhain-server"