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.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
new file mode 100644
index 0000000000..42e89180d1
--- /dev/null
+++ b/meta/recipes-extended/bash/bash.inc
@@ -0,0 +1,29 @@
1DESCRIPTION = "An sh-compatible command language interpreter."
2HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
3SECTION = "base/shell"
4
5# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
6LICENSE = "GPLv3+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
8DEPENDS = "ncurses"
9
10inherit autotools gettext
11
12PARALLEL_MAKE = ""
13
14bindir = "/bin"
15sbindir = "/sbin"
16
17EXTRA_OECONF = "--with-ncurses"
18export CC_FOR_BUILD = "${BUILD_CC}"
19
20do_configure () {
21 gnu-configize
22 oe_runconf
23}
24
25pkg_postinst () {
26 touch $D${sysconfdir}/shells
27 grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
28 grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
29}