blob: acf0c03f17c536a0b3872438f0817bc76fb0ee78 [file] [log] [blame]
Charles Boyer765c66a2022-05-03 11:01:24 -05001SUMMARY = "Phosphor OpenBMC Mori System Power Control Service"
2DESCRIPTION = "Phosphor OpenBMC Mori System Power Control Daemon"
Charles Boyer765c66a2022-05-03 11:01:24 -05003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Kyle Niemanaefbb652023-06-30 10:57:34 -05005DEPENDS:append = " systemd"
6PR = "r1"
Charles Boyer765c66a2022-05-03 11:01:24 -05007
8SRC_URI = " \
9 file://init_once.sh \
10 file://host-powerctrl.service \
Kyle Niemanaefbb652023-06-30 10:57:34 -050011"
Charles Boyer765c66a2022-05-03 11:01:24 -050012
Kyle Niemanaefbb652023-06-30 10:57:34 -050013SYSTEMD_SERVICE:${PN} = "host-powerctrl.service"
14
15inherit systemd obmc-phosphor-systemd
Charles Boyer765c66a2022-05-03 11:01:24 -050016
17do_install () {
18 install -d ${D}${libexecdir}/${PN}
19 install -m 0755 ${WORKDIR}/init_once.sh ${D}${libexecdir}/${PN}
20 install -d ${D}${systemd_unitdir}/system/
Kyle Niemanaefbb652023-06-30 10:57:34 -050021 install -m 0644 ${WORKDIR}/host-powerctrl.service \
22 ${D}${systemd_unitdir}/system
Charles Boyer765c66a2022-05-03 11:01:24 -050023}
Kyle Niemanaefbb652023-06-30 10:57:34 -050024
25RDEPENDS:${PN}:append = " libsystemd bash"