You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2007-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bash
  9. PKG_VERSION:=4.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/bash
  13. PKG_MD5SUM:=81348932d5da294953e15d4814c74dd1
  14. PKG_LICENSE:=GPLv3+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/bash
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=The GNU Bourne Again SHell
  22. DEPENDS:=+libncurses
  23. URL:=http://www.gnu.org/software/bash/
  24. endef
  25. define Package/bash/description
  26. Bash is an sh-compatible command language interpreter that executes
  27. commands read from the standard input or from a file. Bash also
  28. incorporates useful features from the Korn and C shells (ksh and csh).
  29. endef
  30. define Build/Configure
  31. $(call Build/Configure/Default, \
  32. --without-bash-malloc \
  33. --bindir=/bin \
  34. )
  35. endef
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
  38. $(MAKE) -C $(PKG_BUILD_DIR) \
  39. DESTDIR="$(PKG_INSTALL_DIR)" \
  40. SHELL="/bin/bash" \
  41. all install
  42. endef
  43. define Package/bash/postinst
  44. #!/bin/sh
  45. grep bash $${IPKG_INSTROOT}/etc/shells || \
  46. echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
  47. echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
  48. endef
  49. define Package/bash/install
  50. $(INSTALL_DIR) $(1)/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
  52. ln -sf bash $(1)/bin/rbash
  53. endef
  54. $(eval $(call BuildPackage,bash))