Без опису

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2007-2012 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. include $(INCLUDE_DIR)/package.mk
  15. define Package/bash
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=The GNU Bourne Again SHell
  19. DEPENDS:=+libncurses
  20. URL:=http://www.gnu.org/software/bash/
  21. endef
  22. define Package/bash/description
  23. Bash is an sh-compatible command language interpreter that executes
  24. commands read from the standard input or from a file. Bash also
  25. incorporates useful features from the Korn and C shells (ksh and csh).
  26. endef
  27. define Build/Configure
  28. $(call Build/Configure/Default, \
  29. --without-bash-malloc \
  30. --bindir=/bin \
  31. )
  32. endef
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
  35. $(MAKE) -C $(PKG_BUILD_DIR) \
  36. DESTDIR="$(PKG_INSTALL_DIR)" \
  37. SHELL="/bin/bash" \
  38. all install
  39. endef
  40. define Package/bash/postinst
  41. #!/bin/sh
  42. grep bash $${IPKG_INSTROOT}/etc/shells || \
  43. echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
  44. echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
  45. endef
  46. define Package/bash/install
  47. $(INSTALL_DIR) $(1)/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
  49. ln -sf bash $(1)/bin/rbash
  50. endef
  51. $(eval $(call BuildPackage,bash))