Skip to contentSkip to conversation

selinux-initsh.inc: provide source for archiver

PATCH New Joe Slater 1 participant 1 message Feb 24, 2017

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 selinux-initsh.inc: provide source for archiver

Also remove never used default assignment to S.

---
 recipes-security/selinux/selinux-initsh.inc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-security/selinux/selinux-initsh.inc +5 -1
index bcdd449..dd733de 100644
@@ -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}
Signature · 1 line
1.7.9.5