summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash/bash.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/bash/bash.inc')
-rw-r--r--meta/recipes-extended/bash/bash.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index ff9b0ce999..3684191d03 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -11,9 +11,6 @@ inherit autotools gettext update-alternatives
11 11
12PARALLEL_MAKE = "" 12PARALLEL_MAKE = ""
13 13
14bindir = "/bin"
15sbindir = "/sbin"
16
17EXTRA_OECONF = "--enable-job-control" 14EXTRA_OECONF = "--enable-job-control"
18export CC_FOR_BUILD = "${BUILD_CC}" 15export CC_FOR_BUILD = "${BUILD_CC}"
19 16
@@ -30,6 +27,14 @@ do_configure_prepend () {
30 fi 27 fi
31} 28}
32 29
30do_install_append () {
31 # Move /usr/bin/bash to /bin/bash, if need
32 if [ "${base_bindir}" != "${bindir}" ]; then
33 mkdir -p ${D}${base_bindir}
34 mv ${D}${bindir}/bash ${D}${base_bindir}
35 fi
36}
37
33pkg_postinst_${PN} () { 38pkg_postinst_${PN} () {
34 touch $D${sysconfdir}/shells 39 touch $D${sysconfdir}/shells
35 grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells 40 grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells