summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/lrzsz
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-15 18:33:46 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 12:04:40 +0100
commitaf3fc709c44456385ac340e44c226cfac4733e27 (patch)
tree4f2141d993ff60e5f0083e50a0ff87f3f2c0e28c /meta/recipes-bsp/lrzsz
parentb607fa765826becd7d3d80b2eb57dbb1ef6725e2 (diff)
downloadpoky-af3fc709c44456385ac340e44c226cfac4733e27.tar.gz
lrzsz: use new update-alternatives
(From OE-Core rev: df53826b5ee66bcafd7d091630b2d18477f3a672) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/lrzsz')
-rw-r--r--meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb28
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() {
29 install -m 0755 src/lrz src/lsz ${D}${bindir}/ 29 install -m 0755 src/lrz src/lsz ${D}${bindir}/
30} 30}
31 31
32pkg_postinst_${PN}() { 32inherit update-alternatives
33 for util in rz rx rb; do
34 update-alternatives --install ${bindir}/$util $util lrz 100
35 done
36 for util in sz sx sb; do
37 update-alternatives --install ${bindir}/$util $util lsz 100
38 done
39}
40 33
41pkg_postrm_${PN}() { 34ALTERNATIVE_PRIORITY = "100"
42 for util in rz rx rb; do 35
43 update-alternatives --remove $util ${bindir}/lrz 36ALTERNATIVE_${PN} = "rz rx rb sz sx sb"
44 done 37
45 for util sz sx sb; do 38ALTERNATIVE_TARGET[rz] = "${bindir}/lrz"
46 update-alternatives --remove $util ${bindir}/lsz 39ALTERNATIVE_TARGET[rx] = "${bindir}/lrz"
47 done 40ALTERNATIVE_TARGET[rb] = "${bindir}/lrz"
48} 41
42ALTERNATIVE_TARGET[sz] = "${bindir}/lsz"
43ALTERNATIVE_TARGET[sx] = "${bindir}/lsz"
44ALTERNATIVE_TARGET[sb] = "${bindir}/lsz"