2007-10-25 11:52:46 +00:00
|
|
|
DESCRIPTION = "An sh-compatible command language interpreter."
|
|
|
|
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
|
|
|
|
SECTION = "base/shell"
|
2010-06-17 04:48:16 +00:00
|
|
|
|
|
|
|
# GPLv2+ (< 4.0), GPLv3+ (>= 4.0)
|
|
|
|
LICENSE = "GPLv3+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
2011-05-04 22:21:54 +00:00
|
|
|
DEPENDS = "ncurses bison-native"
|
2007-10-25 11:52:46 +00:00
|
|
|
|
2011-05-11 09:25:41 +00:00
|
|
|
inherit autotools gettext update-alternatives
|
2007-10-25 11:52:46 +00:00
|
|
|
|
|
|
|
PARALLEL_MAKE = ""
|
|
|
|
|
|
|
|
bindir = "/bin"
|
|
|
|
sbindir = "/sbin"
|
|
|
|
|
2010-10-20 20:55:02 +00:00
|
|
|
EXTRA_OECONF = "--enable-job-control"
|
2007-10-25 11:52:46 +00:00
|
|
|
export CC_FOR_BUILD = "${BUILD_CC}"
|
|
|
|
|
2011-01-26 11:37:10 +00:00
|
|
|
ALTERNATIVE_NAME = "sh"
|
|
|
|
ALTERNATIVE_PATH = "${base_bindir}/bash"
|
|
|
|
ALTERNATIVE_LINK = "${base_bindir}/sh"
|
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
|
|
|
2011-11-02 11:41:05 +00:00
|
|
|
export AUTOHEADER = "true"
|
|
|
|
|
|
|
|
do_configure_prepend () {
|
|
|
|
if [ ! -e acinclude.m4 ]; then
|
|
|
|
cat aclocal.m4 > acinclude.m4
|
|
|
|
fi
|
2007-10-25 11:52:46 +00:00
|
|
|
}
|
|
|
|
|
2011-02-10 00:13:50 +00:00
|
|
|
pkg_postinst_${PN} () {
|
2008-03-26 09:31:03 +00:00
|
|
|
touch $D${sysconfdir}/shells
|
|
|
|
grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
|
|
|
|
grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
|
2007-10-25 11:52:46 +00:00
|
|
|
}
|