[oe] [PATCH 58/58] eject: use new update-alternatives and add u-a for eject

Martin Jansa martin.jansa at gmail.com
Tue Dec 4 01:59:31 UTC 2012


* eject conflicts with util-linux now

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/meta-oe/recipes-support/eject/eject_2.1.5.bb b/meta-oe/recipes-support/eject/eject_2.1.5.bb
index 3f17fe8..3f2c90d 100644
--- a/meta-oe/recipes-support/eject/eject_2.1.5.bb
+++ b/meta-oe/recipes-support/eject/eject_2.1.5.bb
@@ -12,12 +12,11 @@ SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${PN}"
 
-do_install_append() {
-  mv ${D}/${bindir}/volname ${D}/${bindir}/volname.${PN}
-}
+PR = "r1"
 
-ALTERNATIVE_NAME = "volname"
-ALTERNATIVE_LINK = "${bindir}/volname"
-ALTERNATIVE_PATH = "${bindir}/volname.${PN}"
-ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_${PN} = "volname eject"
+ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
+ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
+ALTERNATIVE_PRIORITY[volname] = "100"
+ALTERNATIVE_PRIORITY[eject] = "100"
 
-- 
1.8.0





More information about the Openembedded-devel mailing list