wok-next view bash/receipt @ rev 1469

lxpanel: apply patch once
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 11:57:29 2008 +0000 (2008-10-04)
parents 24effb018b81
children 65d3dfc87776
line source
1 # SliTaz package receipt.
3 PACKAGE="bash"
4 VERSION="3.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="The GNU bourne SHell."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="ncurses"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/bash/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 # Patch and then build.
17 cd $src
18 busybox patch -p1 -i ../stuff/bash32-025.patch
19 ./configure --prefix=/usr --bindir=/bin \
20 --enable-history --enable-alias \
21 --disable-nls --without-bash-malloc \
22 --disable-select --disable-help-builtin \
23 --infodir=/usr/share/info --mandir=/usr/share/man \
24 $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $_pkg/bin $fs
33 strip -s $fs/bin/bash
34 # Config files.
35 #
36 mkdir $fs/etc
37 cp stuff/example.bashrc $fs/etc/bashrc
38 }
40 # Post install commands for Tazpkg.
41 # Check /bin/sh stat.
42 #
43 post_install()
44 {
45 local root
46 root=$1
47 echo "Processing post-install commands..."
48 sh=`readlink $root/bin/sh`
49 if [ ! "$sh" = "/bin/bash" ]; then
50 echo ""
51 echo "**** Actual SH link : $sh"
52 echo ""
53 echo -n "Do you want Bash for /bin/sh (y/N) ? : "; read anser
54 if [ "$anser" == "y" ]; then
55 echo ""
56 echo -n "Removin sh link to make a new one pointing on /bin/bash..."
57 rm $root/bin/sh && ln -s /bin/bash $root/bin/sh
58 status
59 else
60 echo ""
61 echo "Leaving /bin/sh to : $sh"
62 fi
63 fi
64 }