Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC Mori System Power Control Service" |
| 2 | DESCRIPTION = "Phosphor OpenBMC Mori System Power Control Daemon" |
Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Kyle Nieman | aefbb65 | 2023-06-30 10:57:34 -0500 | [diff] [blame] | 5 | DEPENDS:append = " systemd" |
| 6 | PR = "r1" |
Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 7 | |
| 8 | SRC_URI = " \ |
| 9 | file://init_once.sh \ |
| 10 | file://host-powerctrl.service \ |
Kyle Nieman | aefbb65 | 2023-06-30 10:57:34 -0500 | [diff] [blame] | 11 | " |
Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 12 | |
Kyle Nieman | aefbb65 | 2023-06-30 10:57:34 -0500 | [diff] [blame] | 13 | SYSTEMD_SERVICE:${PN} = "host-powerctrl.service" |
| 14 | |
| 15 | inherit systemd obmc-phosphor-systemd |
Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 16 | |
| 17 | do_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 Nieman | aefbb65 | 2023-06-30 10:57:34 -0500 | [diff] [blame] | 21 | install -m 0644 ${WORKDIR}/host-powerctrl.service \ |
| 22 | ${D}${systemd_unitdir}/system |
Charles Boyer | 765c66a | 2022-05-03 11:01:24 -0500 | [diff] [blame] | 23 | } |
Kyle Nieman | aefbb65 | 2023-06-30 10:57:34 -0500 | [diff] [blame] | 24 | |
| 25 | RDEPENDS:${PN}:append = " libsystemd bash" |