wok-4.x view bash/receipt @ rev 2126
ntfs-3g: update /etc/filesystems
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 01 12:23:00 2009 +0000 (2009-02-01) |
parents | 4615573735e2 |
children | 146ee8863ef5 |
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 [ -f done.bash32-025.patch ] ||
19 busybox patch -p1 -i ../stuff/bash32-025.patch
20 touch done.bash32-025.patch
21 ./configure --prefix=/usr --bindir=/bin \
22 --enable-history --enable-alias \
23 --disable-nls --without-bash-malloc \
24 --disable-select --disable-help-builtin \
25 --infodir=/usr/share/info --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $_pkg/bin $fs
35 strip -s $fs/bin/bash
36 # Config files.
37 #
38 mkdir $fs/etc
39 cp stuff/example.bashrc $fs/etc/bashrc
40 }
42 # Post install commands for Tazpkg.
43 # Check /bin/sh stat.
44 #
45 post_install()
46 {
47 local root
48 root=$1
49 echo "Processing post-install commands..."
50 sh=`readlink $root/bin/sh`
51 if [ ! "$sh" = "/bin/bash" ]; then
52 echo ""
53 echo "**** Actual SH link : $sh"
54 echo ""
55 echo -n "Do you want Bash for /bin/sh (y/N) ? : "; read anser
56 if [ "$anser" == "y" ]; then
57 echo ""
58 echo -n "Removin sh link to make a new one pointing on /bin/bash..."
59 rm $root/bin/sh && ln -s /bin/bash $root/bin/sh
60 status
61 else
62 echo ""
63 echo "Leaving /bin/sh to : $sh"
64 fi
65 fi
66 }