diff options
author | Joe MacDonald <joe_macdonald@mentor.com> | 2015-01-06 23:32:38 -0500 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-01-26 08:54:08 -0500 |
commit | 645df34e8a319c8de6a7a1f282fd7cef6004639e (patch) | |
tree | 8b2b6790c2936dcb65419f49e964ecaab8537d8c /meta-networking | |
parent | e18830c2b4323487f9afa5205f13579903c7f9d4 (diff) | |
download | meta-openembedded-645df34e8a319c8de6a7a1f282fd7cef6004639e.tar.gz |
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@mentor.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf_4.5.0.bb | 8 |
1 files 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 a58de5ce4..5b42defb3 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" | |||
13 | 13 | ||
14 | inherit autotools useradd systemd pkgconfig | 14 | inherit autotools useradd systemd pkgconfig |
15 | 15 | ||
16 | SRC_URI = "http://jaist.dl.sourceforge.net/project/opensaf/releases/${BPN}-${PV}.tar.gz \ | 16 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ |
17 | file://install-samples-from-srcdir.patch" | 17 | file://install-samples-from-srcdir.patch" |
18 | 18 | ||
19 | SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c" | 19 | SRC_URI[md5sum] = "534c0a99438a62c4c8dda56cfa67300c" |
@@ -31,10 +31,12 @@ USERADD_PARAM_${PN} = "-r -g opensaf -d ${datadir}/opensaf/ -s ${sbindir}/nolog | |||
31 | SYSTEMD_SERVICE_${PN} += "opensafd.service" | 31 | SYSTEMD_SERVICE_${PN} += "opensafd.service" |
32 | SYSTEMD_AUTO_ENABLE = "disable" | 32 | SYSTEMD_AUTO_ENABLE = "disable" |
33 | 33 | ||
34 | FILES_${PN} += "/run" | 34 | FILES_${PN} += "${localstatedir}/run" |
35 | 35 | ||
36 | INSANE_SKIP_${PN} = "dev-so" | 36 | INSANE_SKIP_${PN} = "dev-so" |
37 | 37 | ||
38 | do_install_append() { | 38 | do_install_append() { |
39 | rm -rf "${D}${localstatedir}/run" | 39 | rm -fr "${D}${localstatedir}/lock" |
40 | rm -fr "${D}${localstatedir}/run" | ||
41 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
40 | } | 42 | } |