[yocto] [meta-selinux][PATCH 1/1] selinux-initsh.inc: provide source for archiver

Joe Slater jslater at windriver.com
Fri Feb 24 14:43:57 PST 2017


Also remove never used default assignment to S.

Signed-off-by: Joe Slater <jslater at windriver.com>
---
 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




More information about the yocto mailing list