blob: b832dc84b993bcb2e2efa350f0d79b9634c8b140 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301require samhain.inc
2
3SRC_URI += "file://samhain-not-run-ptest-on-host.patch \
Patrick Williams92b42cb2022-09-03 06:53:57 -05004 file://0001-Don-t-expose-configure-args.patch \
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05305 file://run-ptest \
6"
7
8PROVIDES += "samhain"
9
Patrick Williams213cb262021-08-07 19:21:33 -050010SYSTEMD_SERVICE:${PN} = "samhain.service"
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053011
12inherit ptest
13
14do_compile() {
15 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'yes', 'no', d)}" = "yes" ]; then
16 oe_runmake cutest
17 rm -f ${S}*.o config_xor.h internal.h
18 fi
19 oe_runmake "$@"
20}
21
Patrick Williams213cb262021-08-07 19:21:33 -050022do_install:append() {
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053023 ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain
24}
25
26do_install_ptest() {
27 mkdir -p ${D}${PTEST_PATH}
28 install ${S}/cutest ${D}${PTEST_PATH}
29}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031RPROVIDES:${PN} += "samhain"
32RCONFLICTS:${PN} = "samhain-client samhain-server"