Duke Du | dddc501 | 2019-05-29 09:19:24 +0800 | [diff] [blame] | 1 | SUMMARY = "OpenBMC Quanta Detect Fan Fail Service" |
| 2 | DESCRIPTION = "OpenBMC Quanta Detect Fan Fail Daemon." |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
Brad Bishop | 07d2b9d | 2019-09-13 13:04:22 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Duke Du | dddc501 | 2019-05-29 09:19:24 +0800 | [diff] [blame] | 6 | |
| 7 | inherit systemd |
| 8 | |
| 9 | DEPENDS += "systemd" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 10 | RDEPENDS:${PN} += "bash" |
Duke Du | dddc501 | 2019-05-29 09:19:24 +0800 | [diff] [blame] | 11 | |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 12 | FILESEXTRAPATHS:append:gsj := "${THISDIR}/files:" |
| 13 | SRC_URI:append:gsj = " file://detect-fan-fail.sh \ |
Duke Du | dddc501 | 2019-05-29 09:19:24 +0800 | [diff] [blame] | 14 | file://detect-fan-fail.service \ |
| 15 | " |
| 16 | |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 17 | do_install:append:gsj() { |
Duke Du | dddc501 | 2019-05-29 09:19:24 +0800 | [diff] [blame] | 18 | install -d ${D}${bindir} |
| 19 | install -m 0755 ${WORKDIR}/detect-fan-fail.sh ${D}${bindir}/ |
| 20 | |
| 21 | install -d ${D}${systemd_unitdir}/system/ |
| 22 | install -m 0644 ${WORKDIR}/detect-fan-fail.service ${D}${systemd_unitdir}/system |
| 23 | } |
| 24 | |
| 25 | SYSTEMD_PACKAGES = "${PN}" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} = "detect-fan-fail.service" |