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 | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | SYSTEMD_SERVICE:${PN} = "samhain.service" |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 11 | |
| 12 | inherit ptest |
| 13 | |
| 14 | do_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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_install:append() { |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 23 | ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain |
| 24 | } |
| 25 | |
| 26 | do_install_ptest() { |
| 27 | mkdir -p ${D}${PTEST_PATH} |
| 28 | install ${S}/cutest ${D}${PTEST_PATH} |
| 29 | } |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | RPROVIDES:${PN} += "samhain" |
| 32 | RCONFLICTS:${PN} = "samhain-client samhain-server" |