2 # Copyright (C) 2007-2015 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
).42
16 PKG_SOURCE
:=$(PKG_NAME
)-$(BASE_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@GNU
/bash
18 PKG_HASH
:=afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BASE_VERSION
)
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
25 PKG_CHECK_FORMAT_SECURITY
:=0
26 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=The GNU Bourne Again SHell
34 URL
:=http
://www.gnu.org
/software
/bash
/
37 define Package
/bash
/description
38 Bash is an sh-compatible command language interpreter that executes
39 commands read from the standard input or from a file. Bash also
40 incorporates useful features from the Korn and C shells
(ksh and csh
).
44 define Build
/Configure
45 $(call Build
/Configure
/Default
, \
46 --without-bash-malloc \
53 $(MAKE
) -C
$(PKG_BUILD_DIR
)/builtins LDFLAGS_FOR_BUILD
= mkbuiltins
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Package
/bash
/postinst
62 grep bash
$${IPKG_INSTROOT}/etc
/shells || \
63 echo
"/bin/bash" >> $${IPKG_INSTROOT}/etc
/shells
64 echo
"/bin/rbash" >> $${IPKG_INSTROOT}/etc
/shells
67 define Package
/bash
/install
68 $(INSTALL_DIR
) $(1)/bin
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/bash
$(1)/bin
/
70 ln
-sf bash
$(1)/bin
/rbash
74 $(eval
$(call BuildPackage
,bash
))