[oe-commits] Joe MacDonald : opensaf: update SRC_URI and install actions

git at git.openembedded.org git at git.openembedded.org
Tue Jan 20 15:12:20 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: 1d49e61434dac4d3aaa5c2a83cecb20d840f9057
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=1d49e61434dac4d3aaa5c2a83cecb20d840f9057

Author: Joe MacDonald <joe_macdonald at mentor.com>
Date:   Tue Jan  6 23:32:38 2015 -0500

opensaf: update SRC_URI and install actions

The default configuration for OpenSAF creates /run and /var/lock during
install time.  Tweak the recipe to use ${localstatedir} as other recipes
do, and clean up at the end of do_install.

Swap the hard-coded SRC_URI with ${SOURCEFORGE_MIRROR} while we're at it.

Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb b/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb
index a58de5c..5b42def 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb
+++ b/meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb
@@ -13,7 +13,7 @@ HOMEPAGE = "http://www.opensaf.org"
 
 inherit autotools useradd systemd pkgconfig
 
-SRC_URI = "http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar.gz \
+SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \
            file://install-samples-from-srcdir.patch"
 
 SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c"
@@ -31,10 +31,12 @@ USERADD_PARAM_${PN} =  "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nolog
 SYSTEMD_SERVICE_${PN} += "opensafd.service"
 SYSTEMD_AUTO_ENABLE = "disable"
 
-FILES_${PN} += "/run"
+FILES_${PN} += "${localstatedir}/run"
 
 INSANE_SKIP_${PN} = "dev-so"
 
 do_install_append() {
-    rm -rf "${D}${localstatedir}/run"
+    rm -fr "${D}${localstatedir}/lock"
+    rm -fr "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 }



More information about the Openembedded-commits mailing list