2 # Copyright (C) 2007-2012 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
16 PKG_MD5SUM:=3fb927c7c33022f1c327f14a81c0d4b0
18 include $(INCLUDE_DIR)/package.mk
23 TITLE:=The GNU Bourne Again SHell
25 URL:=http://www.gnu.org/software/bash/
28 define Package/bash/description
29 Bash is an sh-compatible command language interpreter that executes
30 commands read from the standard input or from a file. Bash also
31 incorporates useful features from the Korn and C shells (ksh and csh).
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --without-bash-malloc \
44 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
51 define Package/bash/postinst
53 grep bash $${IPKG_INSTROOT}/etc/shells || \
54 echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
55 echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
58 define Package/bash/install
59 $(INSTALL_DIR) $(1)/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
61 ln -sf bash $(1)/bin/rbash
64 $(eval $(call BuildPackage,bash))