diff options
Diffstat (limited to 'meta/recipes-extended/tar/tar.inc')
-rw-r--r-- | meta/recipes-extended/tar/tar.inc | 18 |
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 | ||
18 | do_install_extra () { | 18 | do_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 | ||
26 | pkg_postinst_${PN} () { | 25 | inherit 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 | ||
31 | pkg_prerm_${PN} () { | 27 | ALTERNATIVE_PRIORITY = "100" |
32 | update-alternatives --remove tar tar.${PN} | 28 | |
33 | update-alternatives --remove rmt rmt.${PN} | 29 | ALTERNATIVE_${PN} = "tar rmt" |
34 | } | 30 | |
31 | ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" | ||
32 | ALTERNATIVE_LINK_NAME[rmt] = "${libexecdir}/rmt" | ||