Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | require samhain.inc |
| 2 | |
| 3 | SRC_URI += "file://samhain-not-run-ptest-on-host.patch \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 4 | file://0001-Don-t-expose-configure-args.patch \ |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 5 | file://run-ptest \ |
| 6 | " |
| 7 | |
| 8 | PROVIDES += "samhain" |
| 9 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 10 | MODE_NAME = "standalone" |
| 11 | SAMHAIN_MODE = "no" |
| 12 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 13 | SYSTEMD_SERVICE:${PN} = "samhain.service" |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 14 | |
| 15 | inherit ptest |
| 16 | |
| 17 | do_compile() { |
| 18 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'yes', 'no', d)}" = "yes" ]; then |
| 19 | oe_runmake cutest |
| 20 | rm -f ${S}*.o config_xor.h internal.h |
| 21 | fi |
| 22 | oe_runmake "$@" |
| 23 | } |
| 24 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | do_install:append() { |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 26 | ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain |
| 27 | } |
| 28 | |
| 29 | do_install_ptest() { |
| 30 | mkdir -p ${D}${PTEST_PATH} |
| 31 | install ${S}/cutest ${D}${PTEST_PATH} |
| 32 | } |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | RPROVIDES:${PN} += "samhain" |
| 35 | RCONFLICTS:${PN} = "samhain-client samhain-server" |