[oe-commits] [meta-openembedded] 13/21: opensaf: make sure /etc/init.d/opensafd exist

git at git.openembedded.org git at git.openembedded.org
Wed Aug 17 13:56:40 UTC 2016


joe_macdonald pushed a commit to branch master
in repository meta-openembedded.

commit e86c7ef20f90813146a565e9e9f5912d9a6c7b42
Author: Dai Caiyun <daicy.fnst at cn.fujitsu.com>
AuthorDate: Thu Apr 28 13:30:08 2016 +0300

    opensaf: make sure /etc/init.d/opensafd exist
    
    when disable sysvinit and specify "systemd" in DISTRO_FEATURES,
        the recipe "inhert systemd" will delete "/etc/init.d/opensafd",but
        "/etc/init.d/opensafd" is needed to start opensafd.service.
    
    Signed-off-by: Dai Caiyun <daicy.fnst at cn.fujitsu.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
---
 meta-networking/recipes-daemons/opensaf/opensaf_5.0.0.bb | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.0.0.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.0.0.bb
index f687378..da9c105 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf_5.0.0.bb
+++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.0.0.bb
@@ -55,9 +55,19 @@ do_install_append() {
     install -m 0644 ${B}/contrib/plmc/config/*.service ${D}/${systemd_unitdir}/system
 }
 
-FILES_${PN} += "${localstatedir}/run"
+FILES_${PN} += "${localstatedir}/run ${systemd_unitdir}/system/*.service"
 FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a"
 
 INSANE_SKIP_${PN} = "dev-so"
 
 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
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list