summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb')
-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"