wok-current rev 14
Add : bash, cmake, curl, curl-dev
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 13:18:33 2007 +0100 (2007-12-18) |
parents | 591f8f8aad15 |
children | 83f1d01ed1ac |
files | bash/receipt bash/stuff/bash32-025.patch bash/stuff/example.bashrc cmake/receipt curl-dev/receipt curl/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bash/receipt Tue Dec 18 13:18:33 2007 +0100 1.3 @@ -0,0 +1,64 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="bash" 1.7 +VERSION="3.2" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="The GNU bourne SHell." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="ncurses" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.gnu.org/software/bash/" 1.14 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + # Patch and then build. 1.20 + cd $src 1.21 + patch -p1 -i ../stuff/bash32-025.patch 1.22 + ./configure --prefix=/usr --bindir=/bin \ 1.23 + --enable-history --enable-alias \ 1.24 + --disable-nls --without-bash-malloc \ 1.25 + --disable-select --disable-help-builtin \ 1.26 + --infodir=/usr/share/info --mandir=/usr/share/man \ 1.27 + $CONFIGURE_ARGS 1.28 + make 1.29 + make DESTDIR=$PWD/_pkg install 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +genpkg_rules() 1.34 +{ 1.35 + cp -a $_pkg/bin $fs 1.36 + strip -s $fs/bin/bash 1.37 + # Config files. 1.38 + # 1.39 + mkdir $fs/etc 1.40 + cp stuff/example.bashrc $fs/etc/bashrc 1.41 +} 1.42 + 1.43 +# Post install commands for Tazpkg. 1.44 +# Check /bin/sh stat. 1.45 +# 1.46 +post_install() 1.47 +{ 1.48 + local root 1.49 + root=$1 1.50 + echo "Processing post-install commands..." 1.51 + sh=`readlink $root/bin/sh` 1.52 + if [ ! "$sh" = "/bin/bash" ]; then 1.53 + echo "" 1.54 + echo "**** Actual SH link : $sh" 1.55 + echo "" 1.56 + echo -n "Do you want Bash for /bin/sh (y/N) ? : "; read anser 1.57 + if [ "$anser" == "y" ]; then 1.58 + echo "" 1.59 + echo -n "Removin sh link to make a new one pointing on /bin/bash..." 1.60 + rm $root/bin/sh && ln -s /bin/bash $root/bin/sh 1.61 + status 1.62 + else 1.63 + echo "" 1.64 + echo "Leaving /bin/sh to : $sh" 1.65 + fi 1.66 + fi 1.67 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/bash/stuff/bash32-025.patch Tue Dec 18 13:18:33 2007 +0100 2.3 @@ -0,0 +1,79 @@ 2.4 + BASH PATCH REPORT 2.5 + ================= 2.6 + 2.7 +Bash-Release: 3.2 2.8 +Patch-ID: bash32-025 2.9 + 2.10 +Bug-Reported-by: Tom Bjorkholm <tom.bjorkholm@ericsson.com> 2.11 +Bug-Reference-ID: <AEA1A32F001C6B4F98614B5B80D7647D01C075E9@esealmw115.eemea.ericsson.se> 2.12 +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html 2.13 + 2.14 +Bug-Description: 2.15 + 2.16 +An off-by-one error in readline's input buffering caused readline to drop 2.17 +each 511th character of buffered input (e.g., when pasting a large amount 2.18 +of data into a terminal window). 2.19 + 2.20 +Patch: 2.21 + 2.22 +*** ../bash-3.2-patched/lib/readline/input.c Wed Aug 16 15:15:16 2006 2.23 +--- lib/readline/input.c Tue Jul 17 09:24:21 2007 2.24 +*************** 2.25 +*** 134,139 **** 2.26 + 2.27 + *key = ibuffer[pop_index++]; 2.28 +! 2.29 + if (pop_index >= ibuffer_len) 2.30 + pop_index = 0; 2.31 + 2.32 +--- 134,142 ---- 2.33 + 2.34 + *key = ibuffer[pop_index++]; 2.35 +! #if 0 2.36 + if (pop_index >= ibuffer_len) 2.37 ++ #else 2.38 ++ if (pop_index > ibuffer_len) 2.39 ++ #endif 2.40 + pop_index = 0; 2.41 + 2.42 +*************** 2.43 +*** 251,255 **** 2.44 + { 2.45 + k = (*rl_getc_function) (rl_instream); 2.46 +! rl_stuff_char (k); 2.47 + if (k == NEWLINE || k == RETURN) 2.48 + break; 2.49 +--- 254,259 ---- 2.50 + { 2.51 + k = (*rl_getc_function) (rl_instream); 2.52 +! if (rl_stuff_char (k) == 0) 2.53 +! break; /* some problem; no more room */ 2.54 + if (k == NEWLINE || k == RETURN) 2.55 + break; 2.56 +*************** 2.57 +*** 374,378 **** 2.58 +--- 378,386 ---- 2.59 + } 2.60 + ibuffer[push_index++] = key; 2.61 ++ #if 0 2.62 + if (push_index >= ibuffer_len) 2.63 ++ #else 2.64 ++ if (push_index > ibuffer_len) 2.65 ++ #endif 2.66 + push_index = 0; 2.67 + 2.68 +*** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006 2.69 +--- patchlevel.h Mon Oct 16 14:22:54 2006 2.70 +*************** 2.71 +*** 26,30 **** 2.72 + looks for to find the patch level (for the sccs version string). */ 2.73 + 2.74 +! #define PATCHLEVEL 24 2.75 + 2.76 + #endif /* _PATCHLEVEL_H_ */ 2.77 +--- 26,30 ---- 2.78 + looks for to find the patch level (for the sccs version string). */ 2.79 + 2.80 +! #define PATCHLEVEL 25 2.81 + 2.82 + #endif /* _PATCHLEVEL_H_ */
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/bash/stuff/example.bashrc Tue Dec 18 13:18:33 2007 +0100 3.3 @@ -0,0 +1,10 @@ 3.4 +# /etc/bashrc: Bash system wide config file. 3.5 +# 3.6 + 3.7 +if [ "`id -u`" -eq 0 ]; then 3.8 + PS1='\u@\h:\w\# ' 3.9 +else 3.10 + PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ " 3.11 +fi 3.12 + 3.13 +export PS1
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/cmake/receipt Tue Dec 18 13:18:33 2007 +0100 4.3 @@ -0,0 +1,28 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="cmake" 4.7 +VERSION="2.4.7" 4.8 +CATEGORY="devel" 4.9 +SHORT_DESC="Cross-platform Make." 4.10 +MAINTAINER="pankso@slitaz.org" 4.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 4.12 +WEB_SITE="http://www.cmake.org/" 4.13 +WGET_URL="http://www.cmake.org/files/v2.4/$TARBALL" 4.14 + 4.15 +# Rules to configure and make the package. 4.16 +compile_rules() 4.17 +{ 4.18 + cd $src 4.19 + ./bootstrap --prefix=/usr --docdir=/share/doc \ 4.20 + --mandir=/share/man $CONFIGURE_ARGS 4.21 + make 4.22 + make DESTDIR=$PWD/_pkg install 4.23 +} 4.24 + 4.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.26 +genpkg_rules() 4.27 +{ 4.28 + cp -a $_pkg/* $fs 4.29 + rm -rf $fs/usr/share/man 4.30 + strip -s $fs/usr/bin/* 4.31 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/curl-dev/receipt Tue Dec 18 13:18:33 2007 +0100 5.3 @@ -0,0 +1,19 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="curl-dev" 5.7 +VERSION="7.17.1" 5.8 +CATEGORY="extra" 5.9 +SHORT_DESC="Tool and libs for transferring files with URL syntax." 5.10 +MAINTAINER="pankso@slitaz.org" 5.11 +WANTED="curl" 5.12 +WEB_SITE="http://curl.haxx.se/" 5.13 + 5.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.15 +genpkg_rules() 5.16 +{ 5.17 + mkdir -p $fs/usr/bin $fs/usr/lib 5.18 + cp -a $_pkg/usr/bin/curl-config $fs/usr/bin 5.19 + chmod 755 $fs/usr/bin/* 5.20 + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib 5.21 + cp -a $_pkg/usr/include $fs/usr 5.22 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/curl/receipt Tue Dec 18 13:18:33 2007 +0100 6.3 @@ -0,0 +1,31 @@ 6.4 +# SliTaz package receipt. 6.5 + 6.6 +PACKAGE="curl" 6.7 +VERSION="7.17.1" 6.8 +CATEGORY="extra" 6.9 +SHORT_DESC="Tool and libs for transferring files with URL syntax." 6.10 +MAINTAINER="pankso@slitaz.org" 6.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 6.12 +WEB_SITE="http://curl.haxx.se/" 6.13 +WGET_URL="http://curl.haxx.se/download/$TARBALL" 6.14 + 6.15 +# Rules to configure and make the package. 6.16 +compile_rules() 6.17 +{ 6.18 + cd $src 6.19 + ./configure --prefix=/usr --infodir=/usr/share/info \ 6.20 + --mandir=/usr/share/man $CONFIGURE_ARGS 6.21 + make 6.22 + make DESTDIR=$PWD/_pkg install 6.23 +} 6.24 + 6.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 6.26 +genpkg_rules() 6.27 +{ 6.28 + mkdir -p $fs/usr/bin $fs/usr/lib 6.29 + cp -a $_pkg/usr/bin/curl $fs/usr/bin 6.30 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 6.31 + strip -s $fs/usr/bin/* 6.32 + strip --strip-unneeded $fs/usr/lib/* 6.33 +} 6.34 +