2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/bash
17 include $(INCLUDE_DIR)/package.mk
22 TITLE:=The GNU Bourne Again SHell
24 URL:=http://www.gnu.org/software/bash/
27 define Package/bash/description
28 Bash is an sh-compatible command language interpreter that executes
29 commands read from the standard input or from a file. Bash also
30 incorporates useful features from the Korn and C shells (ksh and csh).
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --without-bash-malloc \
43 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
50 define Package/bash/postinst
52 grep bash $${IPKG_INSTROOT}/etc/shells || \
53 echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
54 echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
57 define Package/bash/install
58 $(INSTALL_DIR) $(1)/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
60 ln -sf bash $(1)/bin/rbash
63 $(eval $(call BuildPackage,bash))