meta-facebook: switch '/usr/libexec' to libexecdir
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6263aa9f0c24f53494ffc42d233bf2bd48f0c96a
diff --git a/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend b/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
index 9ed68ab..e9dcf33 100644
--- a/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
+++ b/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
@@ -30,8 +30,8 @@
install -m 0755 -d ${D}/var/lib/phosphor-fan-presence/sensor-monitor
- install -d ${D}/usr/libexec/phosphor-fan-sensor-monitor
- install -m 0777 ${WORKDIR}/host-poweroff ${D}/usr/libexec/phosphor-fan-sensor-monitor/
+ install -d ${D}${libexecdir}/phosphor-fan-sensor-monitor
+ install -m 0777 ${WORKDIR}/host-poweroff ${D}${libexecdir}/phosphor-fan-sensor-monitor/
}
pkg_postinst:${PN}-sensor-monitor() {
@@ -48,5 +48,5 @@
ln -s $TARGET $LINK
}
-FILES:${PN}-sensor-monitor += "/usr/libexec/phosphor-fan-sensor-monitor/host-poweroff"
+FILES:${PN}-sensor-monitor += "${libexecdir}/phosphor-fan-sensor-monitor/host-poweroff"
FILES:${PN}-sensor-monitor += "${systemd_system_unitdir}"