2007-05-27 19:02:12 +00:00
|
|
|
#
|
2012-02-19 18:33:26 +00:00
|
|
|
# Copyright (C) 2007-2012 OpenWrt.org
|
2007-05-27 19:02:12 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bash
|
2011-07-04 09:23:29 +00:00
|
|
|
PKG_VERSION:=4.2
|
2012-05-16 01:36:48 +00:00
|
|
|
PKG_RELEASE:=3
|
2007-05-27 19:02:12 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/bash
|
2011-07-04 09:23:29 +00:00
|
|
|
PKG_MD5SUM:=3fb927c7c33022f1c327f14a81c0d4b0
|
2007-05-27 19:02:12 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bash
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=The GNU Bourne Again SHell
|
2008-03-07 15:35:47 +00:00
|
|
|
DEPENDS:=+libncurses
|
2007-05-27 19:02:12 +00:00
|
|
|
URL:=http://www.gnu.org/software/bash/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
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
|
|
|
|
|
2007-05-27 19:02:12 +00:00
|
|
|
|
2008-11-19 11:17:56 +00:00
|
|
|
define Build/Configure
|
2007-05-27 19:02:12 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--without-bash-malloc \
|
2007-12-30 04:02:20 +00:00
|
|
|
--bindir=/bin \
|
2007-05-27 19:02:12 +00:00
|
|
|
)
|
|
|
|
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
|
|
|
|
|
2008-11-19 11:17:56 +00:00
|
|
|
define Package/bash/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
grep bash $${IPKG_INSTROOT}/etc/shells || \
|
|
|
|
echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
|
2010-03-27 13:55:07 +00:00
|
|
|
echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
|
2008-11-19 11:17:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-05-27 19:02:12 +00:00
|
|
|
define Package/bash/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
2010-03-27 13:55:07 +00:00
|
|
|
ln -sf bash $(1)/bin/rbash
|
2007-05-27 19:02:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bash))
|
|
|
|
|