Skip to contentSkip to conversation

trousers: Start WORKDIR -> UNPACKDIR transition

PATCH New [email protected] 1 participant 1 message Jul 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trousers: Start WORKDIR -> UNPACKDIR transition

From: Wang Mingyu <[email protected]>

Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR.

---
 meta-tpm/recipes-tpm1/trousers/trousers_git.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-tpm/recipes-tpm1/trousers/trousers_git.bb +3 -3
index 192c66c..44a4ee6 100644
@@ -32,13 +32,13 @@ do_install () {
 
 do_install:append() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/trousers.init.sh ${D}${sysconfdir}/init.d/trousers
+    install -m 0755 ${UNPACKDIR}/trousers.init.sh ${D}${sysconfdir}/init.d/trousers
     install -d ${D}${sysconfdir}/udev/rules.d
-    install -m 0644 ${WORKDIR}/trousers-udev.rules ${D}${sysconfdir}/udev/rules.d/45-trousers.rules
+    install -m 0644 ${UNPACKDIR}/trousers-udev.rules ${D}${sysconfdir}/udev/rules.d/45-trousers.rules
 
     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
         install -d ${D}${systemd_unitdir}/system
-        install -m 0644 ${WORKDIR}/tcsd.service ${D}${systemd_unitdir}/system/
+        install -m 0644 ${UNPACKDIR}/tcsd.service ${D}${systemd_unitdir}/system/
         sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/tcsd.service
     fi        
 }
Signature · 1 line
2.34.1