summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tar/tar.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r--meta/recipes-extended/tar/tar.inc18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc
index 0533b82d27..8c475dfdea 100644
--- a/meta/recipes-extended/tar/tar.inc
+++ b/meta/recipes-extended/tar/tar.inc
@@ -17,18 +17,16 @@ do_install () {
17 17
18do_install_extra () { 18do_install_extra () {
19 install -d ${D}${base_bindir} 19 install -d ${D}${base_bindir}
20 mv ${D}${bindir}/tar ${D}${base_bindir}/tar.${PN} 20 mv ${D}${bindir}/tar ${D}${base_bindir}/tar
21 rmdir ${D}${bindir}/ 21 rmdir ${D}${bindir}/
22 rmdir ${D}${sbindir}/ 22 rmdir ${D}${sbindir}/
23 mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
24} 23}
25 24
26pkg_postinst_${PN} () { 25inherit update-alternatives
27 update-alternatives --install ${base_bindir}/tar tar tar.${PN} 100
28 update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 100
29}
30 26
31pkg_prerm_${PN} () { 27ALTERNATIVE_PRIORITY = "100"
32 update-alternatives --remove tar tar.${PN} 28
33 update-alternatives --remove rmt rmt.${PN} 29ALTERNATIVE_${PN} = "tar rmt"
34} 30
31ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar"
32ALTERNATIVE_LINK_NAME[rmt] = "${libexecdir}/rmt"