Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | INITSCRIPT_PARAMS = "defaults 14 86" |
| 2 | |
| 3 | require samhain.inc |
| 4 | |
| 5 | DEPENDS = "gmp" |
| 6 | |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 7 | SRC_URI += "file://samhain-server-volatiles \ |
| 8 | file://samhain-server-volatiles.conf \ |
| 9 | " |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 10 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 11 | MODE_NAME = "server" |
| 12 | SAMHAIN_MODE = "server" |
| 13 | |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 14 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | do_install:append() { |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 17 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 18 | install -d ${D}${sysconfdir}/tmpfiles.d |
| 19 | install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \ |
| 20 | ${D}${sysconfdir}/tmpfiles.d/samhain-server.conf |
| 21 | else |
| 22 | install -d ${D}${sysconfdir}/default/volatiles |
| 23 | install -m 0644 ${WORKDIR}/samhain-server-volatiles \ |
| 24 | ${D}${sysconfdir}/default/volatiles/samhain-server |
| 25 | fi |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 26 | |
| 27 | install -m 700 samhain-install.sh init/samhain.startLinux \ |
| 28 | init/samhain.startLSB ${D}/var/lib/samhain |
| 29 | } |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | RDEPENDS:${PN} += "gmp bash perl" |
| 32 | RCONFLICTS:${PN} = "samhain-standalone" |