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.

72 lines
1.6 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. BASE_VERSION:=4.3
  9. PKG_NAME:=bash
  10. PKG_VERSION:=$(BASE_VERSION).24
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(BASE_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/bash
  14. PKG_MD5SUM:=81348932d5da294953e15d4814c74dd1
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BASE_VERSION)
  16. PKG_LICENSE:=GPL-3.0+
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/bash
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=The GNU Bourne Again SHell
  24. DEPENDS:=+libncurses
  25. URL:=http://www.gnu.org/software/bash/
  26. endef
  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).
  31. endef
  32. define Build/Configure
  33. $(call Build/Configure/Default, \
  34. --without-bash-malloc \
  35. --bindir=/bin \
  36. )
  37. endef
  38. define Build/Compile
  39. $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
  40. $(MAKE) -C $(PKG_BUILD_DIR) \
  41. DESTDIR="$(PKG_INSTALL_DIR)" \
  42. SHELL="/bin/bash" \
  43. all install
  44. endef
  45. define Package/bash/postinst
  46. #!/bin/sh
  47. grep bash $${IPKG_INSTROOT}/etc/shells || \
  48. echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
  49. echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
  50. endef
  51. define Package/bash/install
  52. $(INSTALL_DIR) $(1)/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
  54. ln -sf bash $(1)/bin/rbash
  55. endef
  56. $(eval $(call BuildPackage,bash))