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 ###############################################################################
32 PKG_GROUP = 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.
46 PKG_TARBALL = $(THISAPP).tar.gz
48 # This patch modifies Bash to use /dev/urandom (settable with
49 # --with-randomdev=) for $RANDOM, instead of getpid() and gettimeofday().
50 # The test is "( echo $RANDOM; ( echo $RANDOM ); ( echo $RANDOM ) )":
51 PKG_PATCHES += $(THISAPP)-rng.patch
53 # This patch fixes various reportded issures. It is the latest posted
54 # patch from linuxfromscratch.org.
55 PKG_PATCHES += $(THISAPP)-fixes-4.patch
57 PKG_PATCHES += $(THISAPP)-paths-1.patch
58 PKG_PATCHES += $(THISAPP)-profile-1.patch
62 ###############################################################################
63 # Installation Details
64 ###############################################################################
66 $(STAGE_PREPARE): $(OBJECTS)
68 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
72 # Bash uses the RTLD_LAZY option when loading libraries. We want to use
73 # RTLD_NOW (it is defined from <dlfcn.h>:
74 cd $(DIR_APP) && sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \
75 -i builtins/enable.def
80 $(STAGE_BUILD): $(STAGE_PREPARE)
83 cd $(DIR_APP) && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/$(THISAPP)|" \
87 ac_cv_func_working_mktime=yes \
92 --without-bash-malloc \
93 --with-installed-readline
95 cd $(DIR_APP) && make #$(PARALLELISMFLAGS)
99 $(STAGE_INSTALL): $(STAGE_BUILD)
102 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
105 cp -avf $(DIR_SOURCE)/bash/{bashrc,profile,shells} $(BUILDROOT)/etc
108 -mkdir -pv $(BUILDROOT)/etc/profile.d
109 cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d