2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_VERSION
:=$(BASE_VERSION
).25
16 PKG_SOURCE
:=$(PKG_NAME
)-$(BASE_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@GNU
/bash
18 PKG_MD5SUM
:=81348932d5da294953e15d4814c74dd1
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BASE_VERSION
)
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
25 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=The GNU Bourne Again SHell
32 URL
:=http
://www.gnu.org
/software
/bash
/
35 define Package
/bash
/description
36 Bash is an sh-compatible command language interpreter that executes
37 commands read from the standard input or from a file. Bash also
38 incorporates useful features from the Korn and C shells
(ksh and csh
).
42 define Build
/Configure
43 $(call Build
/Configure
/Default
, \
44 --without-bash-malloc \
51 $(MAKE
) -C
$(PKG_BUILD_DIR
)/builtins LDFLAGS_FOR_BUILD
= mkbuiltins
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 define Package
/bash
/postinst
60 grep bash
$${IPKG_INSTROOT}/etc
/shells || \
61 echo
"/bin/bash" >> $${IPKG_INSTROOT}/etc
/shells
62 echo
"/bin/rbash" >> $${IPKG_INSTROOT}/etc
/shells
65 define Package
/bash
/install
66 $(INSTALL_DIR
) $(1)/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/bash
$(1)/bin
/
68 ln
-sf bash
$(1)/bin
/rbash
72 $(eval
$(call BuildPackage
,bash
))