# HG changeset patch # User Christophe Lincoln # Date 1197980313 -3600 # Node ID 9496fd66a54ad0d28c72179165adbc37531c1195 # Parent 591f8f8aad15d09e8ee93fc52c875eeaf962b858 Add : bash, cmake, curl, curl-dev diff -r 591f8f8aad15 -r 9496fd66a54a bash/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bash/receipt Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,64 @@ +# SliTaz package receipt. + +PACKAGE="bash" +VERSION="3.2" +CATEGORY="extra" +SHORT_DESC="The GNU bourne SHell." +MAINTAINER="pankso@slitaz.org" +DEPENDS="ncurses" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/bash/" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + # Patch and then build. + cd $src + patch -p1 -i ../stuff/bash32-025.patch + ./configure --prefix=/usr --bindir=/bin \ + --enable-history --enable-alias \ + --disable-nls --without-bash-malloc \ + --disable-select --disable-help-builtin \ + --infodir=/usr/share/info --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/bin $fs + strip -s $fs/bin/bash + # Config files. + # + mkdir $fs/etc + cp stuff/example.bashrc $fs/etc/bashrc +} + +# Post install commands for Tazpkg. +# Check /bin/sh stat. +# +post_install() +{ + local root + root=$1 + echo "Processing post-install commands..." + sh=`readlink $root/bin/sh` + if [ ! "$sh" = "/bin/bash" ]; then + echo "" + echo "**** Actual SH link : $sh" + echo "" + echo -n "Do you want Bash for /bin/sh (y/N) ? : "; read anser + if [ "$anser" == "y" ]; then + echo "" + echo -n "Removin sh link to make a new one pointing on /bin/bash..." + rm $root/bin/sh && ln -s /bin/bash $root/bin/sh + status + else + echo "" + echo "Leaving /bin/sh to : $sh" + fi + fi +} diff -r 591f8f8aad15 -r 9496fd66a54a bash/stuff/bash32-025.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bash/stuff/bash32-025.patch Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,79 @@ + BASH PATCH REPORT + ================= + +Bash-Release: 3.2 +Patch-ID: bash32-025 + +Bug-Reported-by: Tom Bjorkholm +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html + +Bug-Description: + +An off-by-one error in readline's input buffering caused readline to drop +each 511th character of buffered input (e.g., when pasting a large amount +of data into a terminal window). + +Patch: + +*** ../bash-3.2-patched/lib/readline/input.c Wed Aug 16 15:15:16 2006 +--- lib/readline/input.c Tue Jul 17 09:24:21 2007 +*************** +*** 134,139 **** + + *key = ibuffer[pop_index++]; +! + if (pop_index >= ibuffer_len) + pop_index = 0; + +--- 134,142 ---- + + *key = ibuffer[pop_index++]; +! #if 0 + if (pop_index >= ibuffer_len) ++ #else ++ if (pop_index > ibuffer_len) ++ #endif + pop_index = 0; + +*************** +*** 251,255 **** + { + k = (*rl_getc_function) (rl_instream); +! rl_stuff_char (k); + if (k == NEWLINE || k == RETURN) + break; +--- 254,259 ---- + { + k = (*rl_getc_function) (rl_instream); +! if (rl_stuff_char (k) == 0) +! break; /* some problem; no more room */ + if (k == NEWLINE || k == RETURN) + break; +*************** +*** 374,378 **** +--- 378,386 ---- + } + ibuffer[push_index++] = key; ++ #if 0 + if (push_index >= ibuffer_len) ++ #else ++ if (push_index > ibuffer_len) ++ #endif + push_index = 0; + +*** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006 +--- patchlevel.h Mon Oct 16 14:22:54 2006 +*************** +*** 26,30 **** + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 24 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 ---- + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 25 + + #endif /* _PATCHLEVEL_H_ */ diff -r 591f8f8aad15 -r 9496fd66a54a bash/stuff/example.bashrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bash/stuff/example.bashrc Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,10 @@ +# /etc/bashrc: Bash system wide config file. +# + +if [ "`id -u`" -eq 0 ]; then + PS1='\u@\h:\w\# ' +else + PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ " +fi + +export PS1 diff -r 591f8f8aad15 -r 9496fd66a54a cmake/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmake/receipt Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,28 @@ +# SliTaz package receipt. + +PACKAGE="cmake" +VERSION="2.4.7" +CATEGORY="devel" +SHORT_DESC="Cross-platform Make." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.cmake.org/" +WGET_URL="http://www.cmake.org/files/v2.4/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./bootstrap --prefix=/usr --docdir=/share/doc \ + --mandir=/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/* $fs + rm -rf $fs/usr/share/man + strip -s $fs/usr/bin/* +} diff -r 591f8f8aad15 -r 9496fd66a54a curl-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curl-dev/receipt Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="curl-dev" +VERSION="7.17.1" +CATEGORY="extra" +SHORT_DESC="Tool and libs for transferring files with URL syntax." +MAINTAINER="pankso@slitaz.org" +WANTED="curl" +WEB_SITE="http://curl.haxx.se/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib + cp -a $_pkg/usr/bin/curl-config $fs/usr/bin + chmod 755 $fs/usr/bin/* + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr +} diff -r 591f8f8aad15 -r 9496fd66a54a curl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curl/receipt Tue Dec 18 13:18:33 2007 +0100 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="curl" +VERSION="7.17.1" +CATEGORY="extra" +SHORT_DESC="Tool and libs for transferring files with URL syntax." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://curl.haxx.se/" +WGET_URL="http://curl.haxx.se/download/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib + cp -a $_pkg/usr/bin/curl $fs/usr/bin + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + strip -s $fs/usr/bin/* + strip --strip-unneeded $fs/usr/lib/* +} +