blob: 8bae2d204b43e56fc691caccab5454457abd3ac5 [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
Patrick Williamsb9af8752023-01-30 13:28:01 -060011MODE_NAME = "server"
12SAMHAIN_MODE = "server"
13
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053014TARGET_CC_ARCH += "${LDFLAGS}"
15
Patrick Williams213cb262021-08-07 19:21:33 -050016do_install:append() {
Andrew Geissler1fe918a2020-05-15 14:16:47 -050017 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 Thomaiyar14fddef2018-07-13 23:55:56 +053026
27 install -m 700 samhain-install.sh init/samhain.startLinux \
28 init/samhain.startLSB ${D}/var/lib/samhain
29}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031RDEPENDS:${PN} += "gmp bash perl"
32RCONFLICTS:${PN} = "samhain-standalone"