mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
opensaf: fix QA Issue
Move the do_sysvinit_install contents to do_install_append. Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
68a75186f8
commit
010e7ae6aa
@@ -53,6 +53,11 @@ do_install_append() {
|
|||||||
install -m 0644 ${B}/osaf/services/infrastructure/nid/config/opensafd.service \
|
install -m 0644 ${B}/osaf/services/infrastructure/nid/config/opensafd.service \
|
||||||
${D}${systemd_unitdir}/system
|
${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${B}/contrib/plmc/config/*.service ${D}/${systemd_unitdir}/system
|
install -m 0644 ${B}/contrib/plmc/config/*.service ${D}/${systemd_unitdir}/system
|
||||||
|
|
||||||
|
if [ ! -d "${D}${sysconfdir}/init.d" ]; then
|
||||||
|
install -d ${D}${sysconfdir}/init.d
|
||||||
|
install -m 0755 ${B}/osaf/services/infrastructure/nid/scripts/opensafd ${D}${sysconfdir}/init.d/
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${localstatedir}/run ${systemd_unitdir}/system/*.service"
|
FILES_${PN} += "${localstatedir}/run ${systemd_unitdir}/system/*.service"
|
||||||
@@ -62,12 +67,3 @@ INSANE_SKIP_${PN} = "dev-so"
|
|||||||
|
|
||||||
RDEPENDS_${PN} += "bash python"
|
RDEPENDS_${PN} += "bash python"
|
||||||
|
|
||||||
do_sysvinit_install() {
|
|
||||||
if [ ! -d "${D}${sysconfdir}/init.d" ]; then
|
|
||||||
install -d ${D}${sysconfdir}/init.d
|
|
||||||
install -m 0755 ${B}/osaf/services/infrastructure/nid/scripts/opensafd ${D}${sysconfdir}/init.d/
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
addtask sysvinit_install after do_install before do_package
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user