bash: Update to 4.3.25
[feed/packages.git] / utils / bash / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 BASE_VERSION:=4.3
11
12 PKG_NAME:=bash
13 PKG_VERSION:=$(BASE_VERSION).25
14 PKG_RELEASE:=1
15
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)
20
21 PKG_LICENSE:=GPL-3.0+
22 PKG_LICENSE_FILES:=COPYING
23 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/bash
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=The GNU Bourne Again SHell
31 DEPENDS:=+libncurses
32 URL:=http://www.gnu.org/software/bash/
33 endef
34
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).
39 endef
40
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --without-bash-malloc \
45 --bindir=/bin \
46 )
47 endef
48
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 SHELL="/bin/bash" \
55 all install
56 endef
57
58 define Package/bash/postinst
59 #!/bin/sh
60 grep bash $${IPKG_INSTROOT}/etc/shells || \
61 echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
62 echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
63 endef
64
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
69 endef
70
71
72 $(eval $(call BuildPackage,bash))