]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/bash/bash.nm
PKG_GROUP -> PKG_GROUPS on all packages.
[people/ms/ipfire-3.x.git] / pkgs / bash / bash.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = bash
28 PKG_VER = 4.2
29 PKG_REL = 2
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = System/Tools
33 PKG_URL = http://www.gnu.org/software/bash/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = Bash is short for born again shell.
36
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.
42 endef
43
44 PKG_BUILD_DEPS+= autoconf automake bison ncurses-devel readline-devel
45 PKG_DEPS += /etc/bashrc /etc/profile
46
47 PKG_TARBALL = $(THISAPP).tar.gz
48
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
54
55 cd $(DIR_APP) && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/$(THISAPP)|" \
56 Makefile.in
57 endef
58
59 CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
60
61 CONFIGURE_OPTIONS += \
62 --bindir=/bin \
63 --without-bash-malloc \
64 --with-installed-readline
65
66 # Test hangs forever
67 #define STAGE_TEST
68 # cd $(DIR_APP) && make tests
69 #endef
70
71 define STAGE_INSTALL_CMDS
72 -mkdir -pv $(BUILDROOT)/{bin,etc/profile.d,root}
73
74 # Bash startup files
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
78
79 # /etc/profile.d
80 cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d
81
82 ln -svf bash $(BUILDROOT)/bin/sh
83 endef