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 12:04:40 +0100 |
commit | af3fc709c44456385ac340e44c226cfac4733e27 (patch) | |
tree | 4f2141d993ff60e5f0083e50a0ff87f3f2c0e28c /meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | |
parent | b607fa765826becd7d3d80b2eb57dbb1ef6725e2 (diff) | |
download | poky-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/lrzsz_0.12.20.bb')
-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() { | |||
29 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ | 29 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ |
30 | } | 30 | } |
31 | 31 | ||
32 | pkg_postinst_${PN}() { | 32 | inherit 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 | ||
41 | pkg_postrm_${PN}() { | 34 | ALTERNATIVE_PRIORITY = "100" |
42 | for util in rz rx rb; do | 35 | |
43 | update-alternatives --remove $util ${bindir}/lrz | 36 | ALTERNATIVE_${PN} = "rz rx rb sz sx sb" |
44 | done | 37 | |
45 | for util sz sx sb; do | 38 | ALTERNATIVE_TARGET[rz] = "${bindir}/lrz" |
46 | update-alternatives --remove $util ${bindir}/lsz | 39 | ALTERNATIVE_TARGET[rx] = "${bindir}/lrz" |
47 | done | 40 | ALTERNATIVE_TARGET[rb] = "${bindir}/lrz" |
48 | } | 41 | |
42 | ALTERNATIVE_TARGET[sz] = "${bindir}/lsz" | ||
43 | ALTERNATIVE_TARGET[sx] = "${bindir}/lsz" | ||
44 | ALTERNATIVE_TARGET[sb] = "${bindir}/lsz" | ||