]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pkgs/bash/bash.nm
avahi: Update to 0.6.30.
[people/amarx/ipfire-3.x.git] / pkgs / bash / bash.nm
CommitLineData
166a6c21
MT
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
a7c97434 25include $(PKGROOT)/Include
166a6c21
MT
26
27PKG_NAME = bash
e02825d1 28PKG_VER = 4.2
96efb1f9 29PKG_REL = 2
166a6c21
MT
30
31PKG_MAINTAINER =
b42a752b 32PKG_GROUPS = Base System/Tools
166a6c21
MT
33PKG_URL = http://www.gnu.org/software/bash/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = Bash is short for born again shell.
36
37define 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.
42endef
43
d5f0ac1d 44PKG_BUILD_DEPS+= autoconf automake bison ncurses-devel readline-devel
96efb1f9 45PKG_DEPS += /etc/bashrc /etc/profile
166a6c21
MT
46
47PKG_TARBALL = $(THISAPP).tar.gz
48
17c0ee8a 49define STAGE_PREPARE_CMDS
166a6c21
MT
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
166a6c21
MT
55 cd $(DIR_APP) && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/$(THISAPP)|" \
56 Makefile.in
17c0ee8a 57endef
166a6c21 58
52951781
SS
59CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
60
61CONFIGURE_OPTIONS += \
62 --bindir=/bin \
63 --without-bash-malloc \
64 --with-installed-readline
166a6c21 65
e7a5bed3
SS
66# Test hangs forever
67#define STAGE_TEST
68# cd $(DIR_APP) && make tests
69#endef
70
9f8135c7 71define STAGE_INSTALL_CMDS
e0a47bcd 72 -mkdir -pv $(BUILDROOT)/{bin,etc/profile.d,root}
166a6c21
MT
73
74 # Bash startup files
e0a47bcd
MT
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
166a6c21
MT
78
79 # /etc/profile.d
166a6c21 80 cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d
c8336c87
MT
81
82 ln -svf bash $(BUILDROOT)/bin/sh
17c0ee8a 83endef