Also remove never used default assignment to S.
Signed-off-by: Joe Slater <[email protected]>
---
recipes-security/selinux/selinux-initsh.inc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/recipes-security/selinux/selinux-initsh.inc
b/recipes-security/selinux/selinux-initsh.inc
index bcdd449..dd733de 100644
--- a/recipes-security/selinux/selinux-initsh.inc
+++ b/recipes-security/selinux/selinux-initsh.inc
@@ -1,4 +1,3 @@
-S ?= "${WORKDIR}"
SECTION ?= "base"
# Default is for script name to be the same as the recipe name.
@@ -17,6 +16,11 @@ inherit update-rc.d systemd
SYSTEMD_SERVICE_${PN} = "${SELINUX_SCRIPT_SRC}.service"
+do_patch () {
+ # Put stuff in S for the archiver
+ cp ${WORKDIR}/*.sh ${WORKDIR}/*.service ${S}
+}
+
do_install () {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/${SELINUX_SCRIPT_SRC}.sh
${D}${sysconfdir}/init.d/${SELINUX_SCRIPT_DST}
--
1.7.9.5
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto