selinux-initsh.inc: provide source for archiver
PATCH 1/1 selinux-initsh.inc: provide source for archiver
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(-)
recipes-security/selinux/selinux-initsh.inc +5 -1
@@ -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