blob: 51bce07cd139dbdf84ee05e91037a61b85cc4b84 [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
Patrick Williams213cb262021-08-07 19:21:33 -050013do_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
Patrick Williams213cb262021-08-07 19:21:33 -050028RDEPENDS:${PN} += "gmp bash perl"
29RCONFLICTS:${PN} = "samhain-standalone"