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.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc
index b339c43385..93e4da114b 100644
--- a/meta/recipes-extended/tar/tar.inc
+++ b/meta/recipes-extended/tar/tar.inc
@@ -22,10 +22,12 @@ do_install () {
22} 22}
23 23
24do_install_append_class-target() { 24do_install_append_class-target() {
25 install -d ${D}${base_bindir} 25 if [ "${base_bindir}" != "${bindir}" ]; then
26 mv ${D}${bindir}/tar ${D}${base_bindir}/tar 26 install -d ${D}${base_bindir}
27 mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar 27 mv ${D}${bindir}/tar ${D}${base_bindir}/tar
28 rmdir ${D}${bindir}/ 28 mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar
29 rmdir ${D}${bindir}/
30 fi
29} 31}
30 32
31PACKAGES =+ "${PN}-rmt" 33PACKAGES =+ "${PN}-rmt"