tools/ssf-mgr: added recipe for the ssf manager
BugzID: 74403 Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
8ccc700725
commit
c77ac121a8
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Default settings for system-state-framework manager
|
||||||
|
# for details run ssf-mgr --help
|
||||||
|
|
||||||
|
MARK_SYS_STATE="-m"
|
||||||
|
LOGGER_CONFIG="--loglevel=6,evtloop.5,systemState.6,initSys.6,systemUp.6"
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=SystemStateFramework Manager daemon
|
||||||
|
Requires=syslog.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
EnvironmentFile=-/etc/default/ssf-mgr.conf
|
||||||
|
ExecStart=/usr/bin/ssf-mgr $MARK_SYS_STATE -d -p /run/ssf-mgr.pid $LOGGER_CONFIG
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
SUMMARY = "NetModule system-state-framework manager"
|
||||||
|
SECTION = "base"
|
||||||
|
LICENSE = "GPLv2+"
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=6f1c528c9a0010ef398e26c661ff286e"
|
||||||
|
|
||||||
|
SRC_URI = "git://gitlab.com/netmodule/tools/ssf-mgr.git;protocol=ssh;user=git;branch=develop"
|
||||||
|
SRCREV = "${AUTOREV}"
|
||||||
|
SRC_URI_append = " \
|
||||||
|
file://ssf-mgr.conf \
|
||||||
|
file://ssf-mgr.service \
|
||||||
|
"
|
||||||
|
|
||||||
|
PV = "0.0.1+git${SRCPV}"
|
||||||
|
|
||||||
|
|
||||||
|
DEPENDS_append = " libnmapp"
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
B = "${S}/build"
|
||||||
|
|
||||||
|
SYSTEMD_SERVICE_${PN} = "ssf-mgr.service"
|
||||||
|
|
||||||
|
FILES_${PN} += " \
|
||||||
|
${bindir}/ssf-mgr \
|
||||||
|
${systemd_system_unitdir}/ssf-mgr.service \
|
||||||
|
${sysconfdir}/default/ssf-mgr.conf \
|
||||||
|
"
|
||||||
|
|
||||||
|
# build variables for the target (rest is default)
|
||||||
|
EXTRA_OEMAKE_append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'SYSROOT=${STAGING_DIR_TARGET}'"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
bbplain "Installing ${BPN} to ${bindir}..."
|
||||||
|
install -d ${D}${bindir}
|
||||||
|
install -m 555 ${B}/rls/target/${BPN} ${D}${bindir}
|
||||||
|
bbplain "Installing ${BPN} as systemd service..."
|
||||||
|
install -d ${D}${sysconfdir}/default
|
||||||
|
install -m 644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/default/
|
||||||
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
install -m 644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue