1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = System/Tools
33 PKG_URL = http://www.gnu.org/software/bash/
35 PKG_SUMMARY = Bash is short for born again shell.
37 define PKG_DESCRIPTION
38 Bash is the shell, or command language interpreter, that will appear in \
39 the GNU operating system. Bash is an sh-compatible shell that incorporates \
40 useful features from the Korn shell (ksh) and C shell (csh). It is intended \
41 to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
44 PKG_BUILD_DEPS+= autoconf automake bison ncurses-devel readline-devel
45 PKG_DEPS += /etc/bashrc /etc/profile
47 PKG_TARBALL = $(THISAPP).tar.gz
49 define STAGE_PREPARE_CMDS
50 # Bash uses the RTLD_LAZY option when loading libraries. We want to use
51 # RTLD_NOW (it is defined from <dlfcn.h>:
52 cd $(DIR_APP) && sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \
53 -i builtins/enable.def
55 cd $(DIR_APP) && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/$(THISAPP)|" \
59 CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
61 CONFIGURE_OPTIONS += \
63 --without-bash-malloc \
64 --with-installed-readline
68 # cd $(DIR_APP) && make tests
71 define STAGE_INSTALL_CMDS
72 -mkdir -pv $(BUILDROOT)/{bin,etc/profile.d,root}
75 cp -vf $(DIR_SOURCE)/dot_bash_logout $(BUILDROOT)/root/.bash_logout
76 cp -vf $(DIR_SOURCE)/dot_bash_profile $(BUILDROOT)/root/.bash_profile
77 cp -vf $(DIR_SOURCE)/dot_bashrc $(BUILDROOT)/root/.bashrc
80 cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d
82 ln -svf bash $(BUILDROOT)/bin/sh