meta-starlingx/recipes-core/stx-metal/mtce-control.inc
2020-05-18 13:07:27 -07:00

34 lines
716 B
PHP

PACKAGES += " mtce-control"
RDEPENDS_mtce-control += " bash"
do_configure_prepend () {
:
}
do_compile_prepend () {
:
}
do_install_prepend () {
cd ${S}/mtce-control/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
}
pkg_postinst_ontarget_mtce-control_prepend () {
/bin/systemctl enable lighttpd.service
/bin/systemctl enable qemu_clean.service
/bin/systemctl enable hbsAgent.service
}
FILES_mtce-control = " \
${datadir}/licenses/mtce-control-1.0/LICENSE \
${systemd_system_unitdir}/hbsAgent.service \
${sysconfdir}/pmon.d/hbsAgent.conf \
${sysconfdir}/init.d/hbsAgent \
${sysconfdir}/init.d/goenabledControl \
"