diff options
Diffstat (limited to 'meta/recipes-bsp/lrzsz')
-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" | ||