From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/bash/bash.inc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes/bash/bash.inc (limited to 'recipes/bash/bash.inc') diff --git a/recipes/bash/bash.inc b/recipes/bash/bash.inc new file mode 100644 index 0000000000..4eba6895ba --- /dev/null +++ b/recipes/bash/bash.inc @@ -0,0 +1,35 @@ +DESCRIPTION = "An sh-compatible command language interpreter." +HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" +DEPENDS = "ncurses" +SECTION = "base/shell" +LICENSE = "GPL" + +inherit autotools gettext + +PARALLEL_MAKE = "" + +SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz" +S = "${WORKDIR}/bash-${PV}" + +bindir = "/bin" +sbindir = "/sbin" + +EXTRA_OECONF = "--with-ncurses" + +do_configure () { + gnu-configize + oe_runconf +} + +do_compile_prepend() { + cd builtins + touch mkbuiltins.o + ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} -I${S}/include -I${S} -o mkbuiltins mkbuiltins.c + cd ${S} +} + +pkg_postinst () { + 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 +} -- cgit v1.2.3