12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
-
-
-
-
-
-
-
- include $(TOPDIR)/rules.mk
-
- PKG_NAME:=bash
- PKG_VERSION:=4.3
- PKG_RELEASE:=1
-
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=@GNU/bash
- PKG_MD5SUM:=81348932d5da294953e15d4814c74dd1
-
- include $(INCLUDE_DIR)/package.mk
-
- define Package/bash
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=The GNU Bourne Again SHell
- DEPENDS:=+libncurses
- URL:=http://www.gnu.org/software/bash/
- endef
-
- define Package/bash/description
- Bash is an sh-compatible command language interpreter that executes
- commands read from the standard input or from a file. Bash also
- incorporates useful features from the Korn and C shells (ksh and csh).
- endef
-
-
- define Build/Configure
- $(call Build/Configure/Default, \
- --without-bash-malloc \
- --bindir=/bin \
- )
- endef
-
-
- define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- SHELL="/bin/bash" \
- all install
- endef
-
- define Package/bash/postinst
-
- grep bash $${IPKG_INSTROOT}/etc/shells || \
- echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
- echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
- endef
-
- define Package/bash/install
- $(INSTALL_DIR) $(1)/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
- ln -sf bash $(1)/bin/rbash
- endef
-
- $(eval $(call BuildPackage,bash))
|