blob: e7a3aa623f6d061c4fd3532bb8d1c89bb425ee1c [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301INITSCRIPT_PARAMS = "defaults 14 86"
2
3require samhain.inc
4
5DEPENDS = "gmp"
6
Andrew Geissler1fe918a2020-05-15 14:16:47 -05007SRC_URI += "file://samhain-server-volatiles \
8 file://samhain-server-volatiles.conf \
9 "
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053010
11TARGET_CC_ARCH += "${LDFLAGS}"
12
13do_install_append() {
Andrew Geissler1fe918a2020-05-15 14:16:47 -050014 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 Thomaiyar14fddef2018-07-13 23:55:56 +053023
24 install -m 700 samhain-install.sh init/samhain.startLinux \
25 init/samhain.startLSB ${D}/var/lib/samhain
26}
27
28RDEPENDS_${PN} += "gmp bash perl"
Brad Bishop15ae2502019-06-18 21:44:24 -040029RCONFLICTS_${PN} = "samhain-standalone"