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 | |
| 11 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 12 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 13 | do_install:append() { |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 14 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 15 | install -d ${D}${sysconfdir}/tmpfiles.d |
| 16 | install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \ |
| 17 | ${D}${sysconfdir}/tmpfiles.d/samhain-server.conf |
| 18 | else |
| 19 | install -d ${D}${sysconfdir}/default/volatiles |
| 20 | install -m 0644 ${WORKDIR}/samhain-server-volatiles \ |
| 21 | ${D}${sysconfdir}/default/volatiles/samhain-server |
| 22 | fi |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 23 | |
| 24 | install -m 700 samhain-install.sh init/samhain.startLinux \ |
| 25 | init/samhain.startLSB ${D}/var/lib/samhain |
| 26 | } |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | RDEPENDS:${PN} += "gmp bash perl" |
| 29 | RCONFLICTS:${PN} = "samhain-standalone" |