diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-05-15 18:33:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 10:43:42 +0100 |
commit | df53826b5ee66bcafd7d091630b2d18477f3a672 (patch) | |
tree | 9debd1b43be2aed506cb39f07dd93ad11b172803 /meta/recipes-bsp | |
parent | 60fd9974e5c9a0576059ebded6de7b599f9574e5 (diff) | |
download | openembedded-core-df53826b5ee66bcafd7d091630b2d18477f3a672.tar.gz openembedded-core-df53826b5ee66bcafd7d091630b2d18477f3a672.tar.bz2 openembedded-core-df53826b5ee66bcafd7d091630b2d18477f3a672.zip |
lrzsz: use new update-alternatives
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb index e76f36a144..83a75e36cd 100644 --- a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb +++ b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb @@ -29,20 +29,16 @@ do_install() { install -m 0755 src/lrz src/lsz ${D}${bindir}/ } -pkg_postinst_${PN}() { - for util in rz rx rb; do - update-alternatives --install ${bindir}/$util $util lrz 100 - done - for util in sz sx sb; do - update-alternatives --install ${bindir}/$util $util lsz 100 - done -} +inherit update-alternatives -pkg_postrm_${PN}() { - for util in rz rx rb; do - update-alternatives --remove $util ${bindir}/lrz - done - for util sz sx sb; do - update-alternatives --remove $util ${bindir}/lsz - done -} +ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_${PN} = "rz rx rb sz sx sb" + +ALTERNATIVE_TARGET[rz] = "${bindir}/lrz" +ALTERNATIVE_TARGET[rx] = "${bindir}/lrz" +ALTERNATIVE_TARGET[rb] = "${bindir}/lrz" + +ALTERNATIVE_TARGET[sz] = "${bindir}/lsz" +ALTERNATIVE_TARGET[sx] = "${bindir}/lsz" +ALTERNATIVE_TARGET[sb] = "${bindir}/lsz" |