wok-next rev 19561

Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 16 01:16:56 2016 +0200 (2016-12-16)
parents 792674d97726
children b225b15d2dc5
files bash/description.txt bash/receipt bash/stuff/etc/bashrc bash/stuff/example.bashrc binutils/receipt bzip2-apps/description.txt bzip2-apps/receipt bzip2-dev/receipt bzip2/description.txt bzip2/receipt bzip2/stuff/bzip2-1.0.6-fix_install.patch bzip2/stuff/bzip2-1.0.6-install_docs-1.patch bzlib/description.txt bzlib/receipt coreutils-character/receipt coreutils-command/receipt coreutils-conditions/receipt coreutils-context-system/receipt coreutils-context-user/receipt coreutils-context-working/receipt coreutils-directory/receipt coreutils-disk/receipt coreutils-file-attributes/receipt coreutils-file-format/receipt coreutils-file-output-full/receipt coreutils-file-output-part/receipt coreutils-file-sort/receipt coreutils-file-special/receipt coreutils-file-summarize/receipt coreutils-line/receipt coreutils-multicall/receipt coreutils-numeric/receipt coreutils-operations/receipt coreutils-path/receipt coreutils-print/receipt coreutils-redirection/receipt coreutils/receipt coreutils/stuff/coreutils-fix-po.patch diffutils/description.txt diffutils/receipt file/receipt findutils/description.txt findutils/receipt gawk/description.txt gawk/receipt gcc-lib-base/receipt gcc/receipt gettext/receipt gfortran/receipt glibc-base/receipt glibc-dev/receipt glibc-locale/receipt glibc/receipt glibc/stuff/glibc-2.24-fhs-1.patch libform/receipt libgfortran/receipt libgomp/receipt libmagic-dev/receipt libmagic/receipt libmenu/receipt libobjc/receipt libpanel/description.txt libpanel/receipt linux-api-headers/receipt ncurses-dev/receipt ncurses-extra/receipt ncurses-libform/receipt ncurses-libmenu/receipt ncurses-libpanel/description.txt ncurses-libpanel/receipt ncurses-man/receipt ncurses/description.txt ncurses/receipt ncursesw-dev/receipt ncursesw-extra/receipt ncursesw/receipt python-magic/receipt readline-dev/receipt readline/receipt slitaz-toolchain/receipt
line diff
     1.1 --- a/bash/description.txt	Wed Dec 14 21:23:06 2016 +0100
     1.2 +++ b/bash/description.txt	Fri Dec 16 01:16:56 2016 +0200
     1.3 @@ -1,6 +1,7 @@
     1.4  Bash is a shell, or command language interpreter, for the GNU operating system.
     1.5 -Bash is an sh-compatible shell that incorporates useful features from the Korn 
     1.6 -shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX 
     1.7 -P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements 
     1.8 -over sh for both programming and interactive use. In addition, most sh scripts 
     1.9 +
    1.10 +Bash is an sh-compatible shell that incorporates useful features from the Korn
    1.11 +shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX
    1.12 +P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements
    1.13 +over sh for both programming and interactive use. In addition, most sh scripts
    1.14  can be run by Bash without modification.
     2.1 --- a/bash/receipt	Wed Dec 14 21:23:06 2016 +0100
     2.2 +++ b/bash/receipt	Fri Dec 16 01:16:56 2016 +0200
     2.3 @@ -1,34 +1,34 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="bash"
     2.7 -VERSION="4.3.42"
     2.8 +VERSION="4.3.48"
     2.9  BASEVERSION="${VERSION%.*}"
    2.10 -CATEGORY="system-tools"
    2.11 -SHORT_DESC="The GNU bourne SHell."
    2.12 +CATEGORY="shells"
    2.13 +SHORT_DESC="The GNU bourne shell"
    2.14  MAINTAINER="pankso@slitaz.org"
    2.15  LICENSE="GPL3"
    2.16 +WEB_SITE="https://www.gnu.org/software/bash/"
    2.17 +TAGS="shell"
    2.18 +
    2.19  TARBALL="$PACKAGE-$BASEVERSION.tar.gz"
    2.20 -WEB_SITE="http://www.gnu.org/software/bash/"
    2.21  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    2.22 +
    2.23  BASHCHECKURL="https://raw.githubusercontent.com/hannob/bashcheck/master/bashcheck"
    2.24  BASHCHECK="$(basename $BASHCHECKURL)"
    2.25  BASHPATCHES="$(for i in $(seq 1 ${VERSION##*.}); do printf "bash${BASEVERSION/./}-%03d " $i; done)"
    2.26  EXTRA_SOURCE_FILES="$BASHCHECK $BASHPATCHES"
    2.27 -TAGS="shell"
    2.28  
    2.29 -DEPENDS="libtinfo" # readline
    2.30 -BUILD_DEPENDS="readline bison wget texinfo"
    2.31 -#configure: WARNING: installed readline library is too old to be linked with bash
    2.32 -#configure: WARNING: using private bash version
    2.33 +DEPENDS="readline libtinfo"
    2.34 +BUILD_DEPENDS="readline texinfo gettext patch"
    2.35  
    2.36  patch_bash()
    2.37  {
    2.38 -	for i in $BASHPATCHES ; do
    2.39 -		[ -s "$SOURCES_REPOSITORY/$i" ] || 
    2.40 +	for i in $BASHPATCHES; do
    2.41 +		[ -s "$SOURCES_REPOSITORY/$i" ] ||
    2.42  			wget -O "$SOURCES_REPOSITORY/$i" \
    2.43  			http://ftp.gnu.org/gnu/bash/bash-$BASEVERSION-patches/$i
    2.44 -		echo "Apply $i ..."
    2.45 -		patch -p0 < $SOURCES_REPOSITORY/$i
    2.46 +		echo "Apply $i patch..."
    2.47 +		patch -p0 -i $SOURCES_REPOSITORY/$i | awk '{print "  * " $0;}'
    2.48  	done
    2.49  }
    2.50  
    2.51 @@ -45,10 +45,9 @@
    2.52  compile_rules()
    2.53  {
    2.54  	# Patch and then build.
    2.55 -	cd $src
    2.56  	patch_bash
    2.57  	# Skip tests that can not run while cross-compiling.
    2.58 -	cat > config.cache << "EOF"
    2.59 +	cat > config.cache <<EOF
    2.60  ac_cv_func_mmap_fixed_mapped=yes
    2.61  ac_cv_func_strcoll_works=yes
    2.62  ac_cv_func_working_mktime=yes
    2.63 @@ -66,27 +65,32 @@
    2.64  		$CONFIGURE_ARGS \
    2.65  		--cache-file=config.cache \
    2.66  		--bindir=/bin \
    2.67 -		--enable-history --enable-alias  \
    2.68 -		--disable-nls --without-bash-malloc \
    2.69 +		--enable-history \
    2.70 +		--enable-alias  \
    2.71 +		--disable-nls \
    2.72 +		--without-bash-malloc \
    2.73  		--disable-help-builtin \
    2.74  		--with-installed-readline &&
    2.75  	make &&
    2.76  	# Bash doesn't care about DESTDIR in environnment variable.
    2.77  	make DESTDIR=$DESTDIR install
    2.78 -	[ -s "$SOURCES_REPOSITORY/$BASHCHECK" ] || 
    2.79 -		wget --no-check-certificate -O "$SOURCES_REPOSITORY/$BASHCHECK" $BASHCHECKURL
    2.80 -	$DESTDIR/bin/bash $SOURCES_REPOSITORY/$BASHCHECK $DESTDIR/bin/bash | tee bashcheck.log
    2.81 +
    2.82 +	# Check bash against vulnerabilities
    2.83 +	[ -s "$SOURCES_REPOSITORY/$BASHCHECK" ] ||
    2.84 +		wget -O "$SOURCES_REPOSITORY/$BASHCHECK" $BASHCHECKURL
    2.85 +	echo
    2.86 +	$DESTDIR/bin/bash $SOURCES_REPOSITORY/$BASHCHECK $DESTDIR/bin/bash | \
    2.87 +	tee bashcheck.log
    2.88 +	echo
    2.89  	grep Vulnerable bashcheck.log && echo "ERROR: Vulnerable"
    2.90  }
    2.91  
    2.92  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.93  genpkg_rules()
    2.94  {
    2.95 -	cp -a $install/bin $fs
    2.96 -	# Config files.
    2.97 -	#
    2.98 -	mkdir $fs/etc
    2.99 -	cp $stuff/example.bashrc $fs/etc/bashrc
   2.100 +	cook_copy_folders bin
   2.101 +	# Config files
   2.102 +	cp -a $stuff/etc $fs
   2.103  }
   2.104  
   2.105  
   2.106 @@ -97,12 +101,12 @@
   2.107  	# Exit function in non-interactive mode (when user can't answer question)
   2.108  	! tty -s && return
   2.109  
   2.110 -	echo -n 'Do you want to set Bash to default (y/N) ? : '
   2.111 +	echo -n 'Do you want to set /bin/bash to default (y/N) ? : '
   2.112  	read -t 30 answer
   2.113  	[ "$answer" != 'y' ] && return
   2.114  
   2.115  	echo
   2.116 -	echo 'Setting bash as default shell for all users'
   2.117 +	echo 'Setting /bin/bash as default shell for all users'
   2.118  	sed -i 's|:/bin/[ckz]*sh$|:/bin/bash|' "$1/etc/passwd"
   2.119  
   2.120  	echo 'Creating ~/.bashrc file for all users'
   2.121 @@ -117,7 +121,7 @@
   2.122  pre_remove()
   2.123  {
   2.124  	echo
   2.125 -	echo 'Setting sh as default shell for all users'
   2.126 +	echo 'Setting /bin/sh as default shell for all users'
   2.127  	sed -i 's|:/bin/bash$|:/bin/sh|' "$1/etc/passwd"
   2.128  	[ -f "$1/etc/skel/.bashrc" ] && rm "$1/etc/skel/.bashrc"
   2.129  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/bash/stuff/etc/bashrc	Fri Dec 16 01:16:56 2016 +0200
     3.3 @@ -0,0 +1,18 @@
     3.4 +# /etc/bashrc: Bash system wide config file.
     3.5 +#
     3.6 +
     3.7 +if [ "`id -u`" -eq 0 ]; then
     3.8 +	# Simple prompt
     3.9 +	#PS1='\u@\h:\w # '
    3.10 +	
    3.11 +	# Colored prompt
    3.12 +	PS1="\[\e[31;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] # "
    3.13 +else
    3.14 +	# Simple prompt
    3.15 +	#PS1='\u@\h:\w $ '
    3.16 +	
    3.17 +	# Colored prompt
    3.18 +	PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ "
    3.19 +fi
    3.20 +
    3.21 +export PS1
     4.1 --- a/bash/stuff/example.bashrc	Wed Dec 14 21:23:06 2016 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,18 +0,0 @@
     4.4 -# /etc/bashrc: Bash system wide config file.
     4.5 -#
     4.6 -
     4.7 -if [ "`id -u`" -eq 0 ]; then
     4.8 -	# Simple prompt
     4.9 -	#PS1='\u@\h:\w # '
    4.10 -	
    4.11 -	# Colored prompt
    4.12 -	PS1="\[\e[31;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] # "
    4.13 -else
    4.14 -	# Simple prompt
    4.15 -	#PS1='\u@\h:\w $ '
    4.16 -	
    4.17 -	# Colored prompt
    4.18 -	PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ "
    4.19 -fi
    4.20 -
    4.21 -export PS1
     5.1 --- a/binutils/receipt	Wed Dec 14 21:23:06 2016 +0100
     5.2 +++ b/binutils/receipt	Fri Dec 16 01:16:56 2016 +0200
     5.3 @@ -1,21 +1,21 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="binutils"
     5.7 -VERSION="2.25"
     5.8 +VERSION="2.27"
     5.9  CATEGORY="development"
    5.10  SHORT_DESC="GNU assembler, linker and binary utilities."
    5.11  MAINTAINER="pankso@slitaz.org"
    5.12 -LICENSE="GPL2"
    5.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    5.14 +LICENSE="GPL2 LGPL2 GPL3 LGPL3"
    5.15  WEB_SITE="http://www.gnu.org/software/binutils/"
    5.16 -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    5.17 -#WGET_URL="http://www.kernel.org/pub/linux/devel/binutils/$TARBALL"
    5.18 -PROVIDE="libbfd"
    5.19  TAGS="assembler linker"
    5.20  HOST_ARCH="i486 arm"
    5.21  
    5.22 -DEPENDS="glibc zlib"
    5.23 -BUILD_DEPENDS="glibc-dev zlib-dev texinfo"
    5.24 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    5.25 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    5.26 +
    5.27 +PROVIDE="libbfd"
    5.28 +DEPENDS="glibc zlib flex"
    5.29 +BUILD_DEPENDS="glibc-dev zlib-dev texinfo bison flex gettext-tools"
    5.30  
    5.31  # Handle cross compilation.
    5.32  case "$ARCH" in
    5.33 @@ -28,46 +28,40 @@
    5.34  	case "$ARCH" in
    5.35  		i?86) ARCH_ARGS="--disable-werror" ;;
    5.36  	esac
    5.37 -	mkdir -p ../binutils-build && cd ../binutils-build
    5.38 +
    5.39 +	mkdir build; cd build
    5.40 +
    5.41  	$src/configure \
    5.42 -		--program-prefix=$TOOLPREFIX \
    5.43  		--enable-shared \
    5.44  		--disable-initfini-array \
    5.45  		--with-bugurl="http://bugs.slitaz.org/" \
    5.46  		$CONFIGURE_ARGS $ARCH_ARGS &&
    5.47  	make tooldir=/usr &&
    5.48 -	make tooldir=/usr install &&
    5.49 -	# This is the default binutils, so create symlinks to the target platform
    5.50 -	# binutil binaries. Delete duplicate binaries to save space.
    5.51 -	for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}") ; do
    5.52 -		path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
    5.53 -		if [ -e $path ] ; then
    5.54 -			rm -f $path
    5.55 -		fi
    5.56 -		ln -s $binutil $path
    5.57 +	make tooldir=/usr install
    5.58 +
    5.59 +	# Create prefixed version of the tools.
    5.60 +	cd $install/usr/bin
    5.61 +	for i in $(ls); do
    5.62 +		mv $i $TOOLPREFIX$i
    5.63 +		[ $i == 'strings' ] && continue # skip: Busybox intercept
    5.64 +		ln -s $TOOLPREFIX$i $i
    5.65  	done
    5.66 +	rm ld.bfd ${TOOLPREFIX}ld.bfd
    5.67 +	ln -s ld ld.bfd
    5.68 +	ln -s ${TOOLPREFIX}ld ${TOOLPREFIX}ld.bfd
    5.69 +
    5.70 +	# Remove prefix from manpages name
    5.71 +	for i in $(find $install/usr/share/man/man1 -type f); do
    5.72 +		mv $i ${i/$TOOLPREFIX/}
    5.73 +	done
    5.74 +
    5.75 +#	# Install libiberty (-liberty flag): dependency described in *.la files
    5.76 +#	install -o root -g root -m 644 $src/include/libiberty.h $install/usr/include
    5.77  }
    5.78  
    5.79  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.80  genpkg_rules()
    5.81  {
    5.82 -	mkdir -p $fs/usr/lib
    5.83 -	cp -a $install/usr/bin $fs/usr
    5.84 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.85 -	cp -a $install/usr/lib/*.a $fs/usr/lib
    5.86 -	cp -a $install/usr/include $fs/usr
    5.87 -
    5.88 -	# libiberty.h
    5.89 -	cp -a $src/include/libiberty.h $fs/usr/include
    5.90 -
    5.91 -	# Remove 'strings' (Busybox).
    5.92 -	#rm $fs/usr/lib/libiberty.a
    5.93 -	rm $fs/usr/bin/strings $fs/usr/bin/*-strings
    5.94 -
    5.95 -	# Remove build directory (cookutils and tazwok path).
    5.96 -	rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
    5.97 -	rm -rf $WOK/$PACKAGE/$PACKAGE-build
    5.98 -
    5.99 -	chown -R root:root $fs/usr/include/libiberty.h
   5.100 -	chmod 644 $fs/usr/include/libiberty.h
   5.101 +	cook_copy_folders bin lib include
   5.102 +	find $fs -name '*.la' -delete
   5.103  }
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/bzip2-apps/description.txt	Fri Dec 16 01:16:56 2016 +0200
     6.3 @@ -0,0 +1,10 @@
     6.4 +This package contains:
     6.5 +
     6.6 +  * `bzcmp` - Runs cmp on bzipped files
     6.7 +  * `bzdiff` - Runs diff on bzipped files
     6.8 +  * `bzegrep` - Runs egrep on bzipped files
     6.9 +  * `bzfgrep` - Runs fgrep on bzipped files
    6.10 +  * `bzgrep` - Runs grep on bzipped files
    6.11 +  * `bzip2recover` - Tries to recover data from damaged bzipped files
    6.12 +  * `bzless` - Runs less on bzipped files
    6.13 +  * `bzmore` - Runs more on bzipped files
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/bzip2-apps/receipt	Fri Dec 16 01:16:56 2016 +0200
     7.3 @@ -0,0 +1,21 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="bzip2-apps"
     7.7 +VERSION="1.0.6"
     7.8 +CATEGORY="utilities"
     7.9 +SHORT_DESC="High-quality data compressor (apps)"
    7.10 +MAINTAINER="al.bobylev@gmail.com"
    7.11 +LICENSE="BSD"
    7.12 +WEB_SITE="http://www.bzip.org/"
    7.13 +TAGS="compression archive"
    7.14 +HOST_ARCH="i486 arm"
    7.15 +
    7.16 +WANTED="bzip2"
    7.17 +DEPENDS="bzlib"
    7.18 +
    7.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.20 +genpkg_rules()
    7.21 +{
    7.22 +	cook_copy_folders bin
    7.23 +	cook_split_rm bzip2
    7.24 +}
     8.1 --- a/bzip2-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
     8.2 +++ b/bzip2-dev/receipt	Fri Dec 16 01:16:56 2016 +0200
     8.3 @@ -8,15 +8,12 @@
     8.4  LICENSE="BSD"
     8.5  WEB_SITE="http://www.bzip.org/"
     8.6  HOST_ARCH="i486 arm"
     8.7 +
     8.8  WANTED="bzip2"
     8.9 -
    8.10  DEPENDS="bzip2"
    8.11  
    8.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.13  genpkg_rules()
    8.14  {
    8.15 -	mkdir -p $fs/usr/include $fs/usr/lib
    8.16 -	cp $src/*.h $fs/usr/include
    8.17 -	cp -a $src/*.*a $fs/usr/lib
    8.18 +	cook_copy_files *.h *.a
    8.19  }
    8.20 -
     9.1 --- a/bzip2/description.txt	Wed Dec 14 21:23:06 2016 +0100
     9.2 +++ b/bzip2/description.txt	Fri Dec 16 01:16:56 2016 +0200
     9.3 @@ -1,4 +1,13 @@
     9.4 -bzip2 is a freely available, patent free, high-quality data compressor. It 
     9.5 -typically compresses files to within 10% to 15% of the best available techniques
     9.6 -(the PPM family of statistical compressors), whilst being around twice as fast 
     9.7 -at compression and six times faster at decompression.
     9.8 +bzip2 is a freely available, patent free, high-quality data compressor. It
     9.9 +typically compresses files to within 10% to 15% of the best available
    9.10 +techniques (the PPM family of statistical compressors), whilst being around
    9.11 +twice as fast at compression and six times faster at decompression.
    9.12 +
    9.13 +This package contains:
    9.14 +
    9.15 +  * `bzip2` - Compresses files using the Burrows-Wheeler block sorting text
    9.16 +    compression algorithm with Huffman coding; the compression rate is better
    9.17 +    than that achieved by more conventional compressors using "Lempel-Ziv"
    9.18 +    algorithms, like gzip
    9.19 +  * `bunzip2` - Decompresses bzipped files
    9.20 +  * `bzcat` - Decompresses to standard output
    10.1 --- a/bzip2/receipt	Wed Dec 14 21:23:06 2016 +0100
    10.2 +++ b/bzip2/receipt	Fri Dec 16 01:16:56 2016 +0200
    10.3 @@ -6,22 +6,22 @@
    10.4  SHORT_DESC="High-quality data compressor."
    10.5  MAINTAINER="pankso@slitaz.org"
    10.6  LICENSE="BSD"
    10.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    10.8  WEB_SITE="http://www.bzip.org/"
    10.9 -WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
   10.10  TAGS="compression archive"
   10.11  HOST_ARCH="i486 arm"
   10.12  
   10.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   10.14 +WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
   10.15 +
   10.16  DEPENDS="bzlib"
   10.17 -BUILD_DEPENDS=""
   10.18 +SPLIT="bzlib bzip2-apps"
   10.19  
   10.20  # Rules to configure and make the package.
   10.21  compile_rules()
   10.22  {
   10.23 -	# Disable the tests since they won't work on a multi-architecture build
   10.24 -	cp Makefile Makefile.orig
   10.25 -	sed -e "/^all:/s/ test//" Makefile.orig > Makefile
   10.26 -	
   10.27 +	patch -p1 -i $stuff/bzip2-1.0.6-install_docs-1.patch
   10.28 +	patch -p1 -i $stuff/bzip2-1.0.6-fix_install.patch
   10.29 +
   10.30  	# No configure script, we must used CC, AR and RANLIB set by cook.
   10.31  	case "$ARCH" in
   10.32  		arm*)
   10.33 @@ -32,7 +32,7 @@
   10.34  			make clean && make ;;
   10.35  	esac
   10.36  
   10.37 -	cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
   10.38 +	make install
   10.39  }
   10.40  
   10.41  # Just to be sure when cross-compiling.
   10.42 @@ -44,12 +44,7 @@
   10.43  # Rules to gen a SliTaz package suitable for Tazpkg.
   10.44  genpkg_rules()
   10.45  {
   10.46 -	mkdir -p $fs/usr/bin
   10.47 -	cp -a $src/bzip2-shared $fs/usr/bin/bzip2
   10.48 -	# Da bunzip2, bzcat and lib symlink.
   10.49 -	cd $fs/usr/bin
   10.50 -	ln -s bzip2 bunzip2
   10.51 -	ln -s bzip2 bzcat
   10.52 +	cook_copy_files bzip2 bunzip2 bzcat
   10.53  }
   10.54  
   10.55  # Restore Busybox symlinks upon removal
   10.56 @@ -57,5 +52,4 @@
   10.57  {
   10.58  	ln -s /bin/busybox /usr/bin/bunzip2
   10.59  	ln -s /bin/busybox /usr/bin/bzcat
   10.60 -	#ln -s /bin/busybox /usr/bin/bzip2
   10.61  }
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/bzip2/stuff/bzip2-1.0.6-fix_install.patch	Fri Dec 16 01:16:56 2016 +0200
    11.3 @@ -0,0 +1,138 @@
    11.4 +--- a/Makefile
    11.5 ++++ b/Makefile
    11.6 +@@ -24,7 +24,7 @@
    11.7 + CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
    11.8 + 
    11.9 + # Where you want it installed when you do 'make install'
   11.10 +-PREFIX=/usr/local
   11.11 ++PREFIX=/usr
   11.12 + DOCDIR=share/doc/$(DISTNAME)
   11.13 + 
   11.14 + OBJS= blocksort.o  \
   11.15 +@@ -35,7 +35,7 @@
   11.16 +       decompress.o \
   11.17 +       bzlib.o
   11.18 + 
   11.19 +-all: libbz2.a bzip2 bzip2recover test
   11.20 ++all: libbz2.a bzip2 bzip2recover
   11.21 + 
   11.22 + bzip2: libbz2.a bzip2.o
   11.23 + 	$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
   11.24 +@@ -70,52 +70,71 @@
   11.25 + 	@cat words3
   11.26 + 
   11.27 + install: bzip2 bzip2recover
   11.28 +-	if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
   11.29 +-	if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
   11.30 +-	if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
   11.31 +-	if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
   11.32 +-	if ( test ! -d $(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(PREFIX)/$(DOCDIR); fi
   11.33 +-	if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
   11.34 +-	cp -f bzip2 $(PREFIX)/bin/bzip2
   11.35 +-	cp -f bzip2 $(PREFIX)/bin/bunzip2
   11.36 +-	cp -f bzip2 $(PREFIX)/bin/bzcat
   11.37 +-	cp -f bzip2recover $(PREFIX)/bin/bzip2recover
   11.38 +-	chmod a+x $(PREFIX)/bin/bzip2
   11.39 +-	chmod a+x $(PREFIX)/bin/bunzip2
   11.40 +-	chmod a+x $(PREFIX)/bin/bzcat
   11.41 +-	chmod a+x $(PREFIX)/bin/bzip2recover
   11.42 +-	cp -f bzip2.1 $(PREFIX)/man/man1
   11.43 +-	chmod a+r $(PREFIX)/man/man1/bzip2.1
   11.44 +-	cp -f bzlib.h $(PREFIX)/include
   11.45 +-	chmod a+r $(PREFIX)/include/bzlib.h
   11.46 +-	cp -f libbz2.a $(PREFIX)/lib
   11.47 +-	chmod a+r $(PREFIX)/lib/libbz2.a
   11.48 +-	cp -f bzgrep $(PREFIX)/bin/bzgrep
   11.49 +-	ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
   11.50 +-	ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
   11.51 +-	chmod a+x $(PREFIX)/bin/bzgrep
   11.52 +-	cp -f bzmore $(PREFIX)/bin/bzmore
   11.53 +-	ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
   11.54 +-	chmod a+x $(PREFIX)/bin/bzmore
   11.55 +-	cp -f bzdiff $(PREFIX)/bin/bzdiff
   11.56 +-	ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
   11.57 +-	chmod a+x $(PREFIX)/bin/bzdiff
   11.58 +-	cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
   11.59 +-	chmod a+r $(PREFIX)/man/man1/bzgrep.1
   11.60 +-	chmod a+r $(PREFIX)/man/man1/bzmore.1
   11.61 +-	chmod a+r $(PREFIX)/man/man1/bzdiff.1
   11.62 +-	echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
   11.63 +-	echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
   11.64 +-	echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
   11.65 +-	echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
   11.66 +-	cp -f manual.html $(PREFIX)/$(DOCDIR)
   11.67 +-	cp -f manual.pdf $(PREFIX)/$(DOCDIR)
   11.68 +-	cp -f manual.ps $(PREFIX)/$(DOCDIR)
   11.69 +-	cp -f bzip2.txt $(PREFIX)/$(DOCDIR)
   11.70 +-	chmod a+r $(PREFIX)/$(DOCDIR)/manual.html
   11.71 +-	chmod a+r $(PREFIX)/$(DOCDIR)/manual.pdf
   11.72 +-	chmod a+r $(PREFIX)/$(DOCDIR)/manual.ps
   11.73 +-	chmod a+r $(PREFIX)/$(DOCDIR)/bzip2.txt
   11.74 ++	if ( test ! -d $(DESTDIR)$(PREFIX)/bin ) ; then mkdir -p $(DESTDIR)$(PREFIX)/bin ; fi
   11.75 ++	if ( test ! -d $(DESTDIR)$(PREFIX)/lib ) ; then mkdir -p $(DESTDIR)$(PREFIX)/lib ; fi
   11.76 ++	if ( test ! -d $(DESTDIR)/bin ) ; then mkdir -p $(DESTDIR)/bin ; fi
   11.77 ++	if ( test ! -d $(DESTDIR)/lib ) ; then mkdir -p $(DESTDIR)/lib ; fi
   11.78 ++	if ( test ! -d $(DESTDIR)$(PREFIX)/share/man/man1 ) ; then mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 ; fi
   11.79 ++	if ( test ! -d $(DESTDIR)$(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(DESTDIR)$(PREFIX)/$(DOCDIR); fi
   11.80 ++	if ( test ! -d $(DESTDIR)$(PREFIX)/include ) ; then mkdir -p $(DESTDIR)$(PREFIX)/include ; fi
   11.81 ++
   11.82 ++# shared bzip2
   11.83 ++	cp -a bzip2-shared $(DESTDIR)/bin/bzip2
   11.84 ++	chmod a+x $(DESTDIR)/bin/bzip2
   11.85 ++# shared library
   11.86 ++	cp -a libbz2.so* $(DESTDIR)/lib
   11.87 ++	ln -s ../../lib/libbz2.so.1.0 $(DESTDIR)$(PREFIX)/lib/libbz2.so
   11.88 ++# bunzip2
   11.89 ++	ln -s ../../bin/bzip2 $(DESTDIR)$(PREFIX)/bin/bunzip2
   11.90 ++# bzcat
   11.91 ++	ln -s ../../bin/bzip2 $(DESTDIR)$(PREFIX)/bin/bzcat
   11.92 ++# bzdiff
   11.93 ++	cp -f bzdiff $(DESTDIR)$(PREFIX)/bin/bzdiff
   11.94 ++	chmod a+x $(DESTDIR)$(PREFIX)/bin/bzdiff
   11.95 ++# bzcmp
   11.96 ++	ln -s bzdiff $(DESTDIR)$(PREFIX)/bin/bzcmp
   11.97 ++# bzgrep
   11.98 ++	cp -f bzgrep $(DESTDIR)$(PREFIX)/bin/bzgrep
   11.99 ++	chmod a+x $(DESTDIR)$(PREFIX)/bin/bzgrep
  11.100 ++# bzegrep
  11.101 ++	ln -s bzgrep $(DESTDIR)$(PREFIX)/bin/bzegrep
  11.102 ++# bzfgrep
  11.103 ++	ln -s bzgrep $(DESTDIR)$(PREFIX)/bin/bzfgrep
  11.104 ++# bzip2recover
  11.105 ++	cp -f bzip2recover $(DESTDIR)$(PREFIX)/bin/bzip2recover
  11.106 ++	chmod a+x $(DESTDIR)$(PREFIX)/bin/bzip2recover
  11.107 ++# bzmore
  11.108 ++	cp -f bzmore $(DESTDIR)$(PREFIX)/bin/bzmore
  11.109 ++	chmod a+x $(DESTDIR)$(PREFIX)/bin/bzmore
  11.110 ++# bzless
  11.111 ++	ln -s bzmore $(DESTDIR)$(PREFIX)/bin/bzless
  11.112 ++# headers
  11.113 ++	cp -f bzlib.h bzlib_private.h $(DESTDIR)$(PREFIX)/include
  11.114 ++	chmod a+r $(DESTDIR)$(PREFIX)/include/bzlib.h
  11.115 ++	chmod a+r $(DESTDIR)$(PREFIX)/include/bzlib_private.h
  11.116 ++# static library
  11.117 ++	cp -f libbz2.a $(DESTDIR)$(PREFIX)/lib
  11.118 ++	chmod a+r $(DESTDIR)$(PREFIX)/lib/libbz2.a
  11.119 ++# man pages
  11.120 ++	cp -f bzip2.1 $(DESTDIR)$(PREFIX)/share/man/man1
  11.121 ++	chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/bzip2.1
  11.122 ++	cp -f bzgrep.1 bzmore.1 bzdiff.1 $(DESTDIR)$(PREFIX)/share/man/man1
  11.123 ++	chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/bzgrep.1
  11.124 ++	chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/bzmore.1
  11.125 ++	chmod a+r $(DESTDIR)$(PREFIX)/share/man/man1/bzdiff.1
  11.126 ++	echo ".so man1/bzgrep.1" > $(DESTDIR)$(PREFIX)/share/man/man1/bzegrep.1
  11.127 ++	echo ".so man1/bzgrep.1" > $(DESTDIR)$(PREFIX)/share/man/man1/bzfgrep.1
  11.128 ++	echo ".so man1/bzmore.1" > $(DESTDIR)$(PREFIX)/share/man/man1/bzless.1
  11.129 ++	echo ".so man1/bzdiff.1" > $(DESTDIR)$(PREFIX)/share/man/man1/bzcmp.1
  11.130 ++# docs
  11.131 ++	cp -f manual.html $(DESTDIR)$(PREFIX)/$(DOCDIR)
  11.132 ++	cp -f manual.pdf $(DESTDIR)$(PREFIX)/$(DOCDIR)
  11.133 ++	cp -f manual.ps $(DESTDIR)$(PREFIX)/$(DOCDIR)
  11.134 ++	cp -f bzip2.txt $(DESTDIR)$(PREFIX)/$(DOCDIR)
  11.135 ++	chmod a+r $(DESTDIR)$(PREFIX)/$(DOCDIR)/manual.html
  11.136 ++	chmod a+r $(DESTDIR)$(PREFIX)/$(DOCDIR)/manual.pdf
  11.137 ++	chmod a+r $(DESTDIR)$(PREFIX)/$(DOCDIR)/manual.ps
  11.138 ++	chmod a+r $(DESTDIR)$(PREFIX)/$(DOCDIR)/bzip2.txt
  11.139 + 
  11.140 + clean: 
  11.141 + 	rm -f *.o libbz2.a bzip2 bzip2recover \
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/bzip2/stuff/bzip2-1.0.6-install_docs-1.patch	Fri Dec 16 01:16:56 2016 +0200
    12.3 @@ -0,0 +1,42 @@
    12.4 +Submitted By:            Matthew Burgess <matthew@linuxfromscratch.org>
    12.5 +Date:                    2007-01-31
    12.6 +Initial Package Version: 1.0.4
    12.7 +Upstream Status:         Not submitted
    12.8 +Origin:                  Randy McMurchy & Steve Crosby
    12.9 +Description:             Installs pre-formatted documentation
   12.10 +
   12.11 +diff -Naur bzip2-1.0.4.orig/Makefile bzip2-1.0.4/Makefile
   12.12 +--- bzip2-1.0.4.orig/Makefile	2007-01-03 03:49:21.000000000 +0000
   12.13 ++++ bzip2-1.0.4/Makefile	2007-01-26 20:00:01.000000000 +0000
   12.14 +@@ -25,7 +25,7 @@
   12.15 + 
   12.16 + # Where you want it installed when you do 'make install'
   12.17 + PREFIX=/usr/local
   12.18 +-
   12.19 ++DOCDIR=share/doc/$(DISTNAME)
   12.20 + 
   12.21 + OBJS= blocksort.o  \
   12.22 +       huffman.o    \
   12.23 +@@ -74,6 +74,7 @@
   12.24 + 	if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
   12.25 + 	if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
   12.26 + 	if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
   12.27 ++	if ( test ! -d $(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(PREFIX)/$(DOCDIR); fi
   12.28 + 	if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
   12.29 + 	cp -f bzip2 $(PREFIX)/bin/bzip2
   12.30 + 	cp -f bzip2 $(PREFIX)/bin/bunzip2
   12.31 +@@ -107,6 +108,14 @@
   12.32 + 	echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
   12.33 + 	echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
   12.34 + 	echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
   12.35 ++	cp -f manual.html $(PREFIX)/$(DOCDIR)
   12.36 ++	cp -f manual.pdf $(PREFIX)/$(DOCDIR)
   12.37 ++	cp -f manual.ps $(PREFIX)/$(DOCDIR)
   12.38 ++	cp -f bzip2.txt $(PREFIX)/$(DOCDIR)
   12.39 ++	chmod a+r $(PREFIX)/$(DOCDIR)/manual.html
   12.40 ++	chmod a+r $(PREFIX)/$(DOCDIR)/manual.pdf
   12.41 ++	chmod a+r $(PREFIX)/$(DOCDIR)/manual.ps
   12.42 ++	chmod a+r $(PREFIX)/$(DOCDIR)/bzip2.txt
   12.43 + 
   12.44 + clean: 
   12.45 + 	rm -f *.o libbz2.a bzip2 bzip2recover \
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/bzlib/description.txt	Fri Dec 16 01:16:56 2016 +0200
    13.3 @@ -0,0 +1,4 @@
    13.4 +This package contains:
    13.5 +
    13.6 +  * `libbz2.so` - The library implementing lossless, block-sorting data
    13.7 +    compression, using the Burrows-Wheeler algorithm
    14.1 --- a/bzlib/receipt	Wed Dec 14 21:23:06 2016 +0100
    14.2 +++ b/bzlib/receipt	Fri Dec 16 01:16:56 2016 +0200
    14.3 @@ -2,20 +2,18 @@
    14.4  
    14.5  PACKAGE="bzlib"
    14.6  VERSION="1.0.6"
    14.7 -CATEGORY="utilities"
    14.8 -SHORT_DESC="High-quality data compressor libraries."
    14.9 +CATEGORY="libs"
   14.10 +SHORT_DESC="High-quality data compressor (library)"
   14.11  MAINTAINER="pascal.bellard@slitaz.org"
   14.12  LICENSE="BSD"
   14.13  WEB_SITE="http://www.bzip.org/"
   14.14 -WANTED="bzip2"
   14.15  HOST_ARCH="i486 arm"
   14.16  
   14.17 +WANTED="bzip2"
   14.18  DEPENDS="glibc-base"
   14.19  
   14.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   14.21  genpkg_rules()
   14.22  {
   14.23 -	mkdir -p $fs/usr/lib
   14.24 -	cp -a $src/libbz2.so* $fs/usr/lib
   14.25 -	ln -s libbz2.so.$VERSION $fs/usr/lib/libbz2.so
   14.26 +	cook_copy_files *.so*
   14.27  }
    15.1 --- a/coreutils-character/receipt	Wed Dec 14 21:23:06 2016 +0100
    15.2 +++ b/coreutils-character/receipt	Fri Dec 16 01:16:56 2016 +0200
    15.3 @@ -14,18 +14,7 @@
    15.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    15.5  genpkg_rules()
    15.6  {
    15.7 -	mandir="$fs/usr/share/man/man1"
    15.8 -	mkdir -p $mandir
    15.9 -
   15.10 -	while read i; do
   15.11 -		mkdir -p $fs$(dirname $i)
   15.12 -		cp -a $install$i $fs$i
   15.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   15.14 -	done <<EOT
   15.15 -/usr/bin/expand
   15.16 -/usr/bin/tr
   15.17 -/usr/bin/unexpand
   15.18 -EOT
   15.19 +	cook_copy_files expand tr unexpand
   15.20  }
   15.21  
   15.22  post_remove()
    16.1 --- a/coreutils-command/receipt	Wed Dec 14 21:23:06 2016 +0100
    16.2 +++ b/coreutils-command/receipt	Fri Dec 16 01:16:56 2016 +0200
    16.3 @@ -14,35 +14,16 @@
    16.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    16.5  genpkg_rules()
    16.6  {
    16.7 -	mandir="$fs/usr/share/man/man1"
    16.8 -	mkdir -p $mandir ${mandir/1/8}
    16.9 -
   16.10 -	while read i; do
   16.11 -		mkdir -p $fs$(dirname $i)
   16.12 -		cp -a $install$i $fs$i
   16.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   16.14 -	done <<EOT
   16.15 -/usr/bin/env
   16.16 -/usr/bin/kill
   16.17 -/usr/bin/nice
   16.18 -/usr/bin/nohup
   16.19 -/usr/bin/sleep
   16.20 -/usr/bin/stdbuf
   16.21 -/usr/bin/timeout
   16.22 -/usr/libexec/coreutils/libstdbuf.so
   16.23 -/usr/sbin/chroot
   16.24 -EOT
   16.25 -
   16.26 -	mv $mandir/chroot.* ${mandir/1/8}
   16.27 +	cook_copy_files env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot
   16.28  }
   16.29  
   16.30  post_install()
   16.31  {
   16.32  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   16.33  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   16.34 -	rm "$1/bin/kill"     # /usr/bin/kill
   16.35 -	rm "$1/bin/nice"     # /usr/bin/nice
   16.36 -	rm "$1/bin/sleep"    # /usr/bin/sleep
   16.37 +	rm "$1/bin/kill"     # for /usr/bin/kill
   16.38 +	rm "$1/bin/nice"     # for /usr/bin/nice
   16.39 +	rm "$1/bin/sleep"    # for /usr/bin/sleep
   16.40  }
   16.41  
   16.42  post_remove()
    17.1 --- a/coreutils-conditions/receipt	Wed Dec 14 21:23:06 2016 +0100
    17.2 +++ b/coreutils-conditions/receipt	Fri Dec 16 01:16:56 2016 +0200
    17.3 @@ -14,20 +14,7 @@
    17.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    17.5  genpkg_rules()
    17.6  {
    17.7 -	mandir="$fs/usr/share/man/man1"
    17.8 -	mkdir -p $mandir
    17.9 -
   17.10 -	while read i; do
   17.11 -		mkdir -p $fs$(dirname $i)
   17.12 -		cp -a $install$i $fs$i
   17.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   17.14 -	done <<EOT
   17.15 -/bin/false
   17.16 -/bin/true
   17.17 -/usr/bin/[
   17.18 -/usr/bin/expr
   17.19 -/usr/bin/test
   17.20 -EOT
   17.21 +	cook_copy_files false true [ expr test
   17.22  }
   17.23  
   17.24  post_remove()
    18.1 --- a/coreutils-context-system/receipt	Wed Dec 14 21:23:06 2016 +0100
    18.2 +++ b/coreutils-context-system/receipt	Fri Dec 16 01:16:56 2016 +0200
    18.3 @@ -14,22 +14,7 @@
    18.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    18.5  genpkg_rules()
    18.6  {
    18.7 -	mandir="$fs/usr/share/man/man1"
    18.8 -	mkdir -p $mandir
    18.9 -
   18.10 -	while read i; do
   18.11 -		mkdir -p $fs$(dirname $i)
   18.12 -		cp -a $install$i $fs$i
   18.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   18.14 -	done <<EOT
   18.15 -/bin/date
   18.16 -/bin/uname
   18.17 -/usr/bin/chcon
   18.18 -/usr/bin/hostid
   18.19 -/usr/bin/nproc
   18.20 -/usr/bin/runcon
   18.21 -/usr/bin/uptime
   18.22 -EOT
   18.23 +	cook_copy_files date uname chcon hostid nproc runcon uptime
   18.24  }
   18.25  
   18.26  post_remove()
    19.1 --- a/coreutils-context-user/receipt	Wed Dec 14 21:23:06 2016 +0100
    19.2 +++ b/coreutils-context-user/receipt	Fri Dec 16 01:16:56 2016 +0200
    19.3 @@ -14,22 +14,7 @@
    19.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    19.5  genpkg_rules()
    19.6  {
    19.7 -	mandir="$fs/usr/share/man/man1"
    19.8 -	mkdir -p $mandir
    19.9 -
   19.10 -	while read i; do
   19.11 -		mkdir -p $fs$(dirname $i)
   19.12 -		cp -a $install$i $fs$i
   19.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   19.14 -	done <<EOT
   19.15 -/usr/bin/groups
   19.16 -/usr/bin/id
   19.17 -/usr/bin/logname
   19.18 -/usr/bin/pinky
   19.19 -/usr/bin/users
   19.20 -/usr/bin/who
   19.21 -/usr/bin/whoami
   19.22 -EOT
   19.23 +	cook_copy_files groups id logname pinky users who whoami
   19.24  }
   19.25  
   19.26  post_remove()
    20.1 --- a/coreutils-context-working/receipt	Wed Dec 14 21:23:06 2016 +0100
    20.2 +++ b/coreutils-context-working/receipt	Fri Dec 16 01:16:56 2016 +0200
    20.3 @@ -14,26 +14,14 @@
    20.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    20.5  genpkg_rules()
    20.6  {
    20.7 -	mandir="$fs/usr/share/man/man1"
    20.8 -	mkdir -p $mandir
    20.9 -
   20.10 -	while read i; do
   20.11 -		mkdir -p $fs$(dirname $i)
   20.12 -		cp -a $install$i $fs$i
   20.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   20.14 -	done <<EOT
   20.15 -/bin/pwd
   20.16 -/bin/stty
   20.17 -/usr/bin/printenv
   20.18 -/usr/bin/tty
   20.19 -EOT
   20.20 +	cook_copy_files pwd stty printenv tty
   20.21  }
   20.22  
   20.23  post_install()
   20.24  {
   20.25  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   20.26  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   20.27 -	rm "$1/bin/printenv" # /usr/bin/printenv
   20.28 +	rm "$1/bin/printenv" # for /usr/bin/printenv
   20.29  }
   20.30  
   20.31  post_remove()
    21.1 --- a/coreutils-directory/receipt	Wed Dec 14 21:23:06 2016 +0100
    21.2 +++ b/coreutils-directory/receipt	Fri Dec 16 01:16:56 2016 +0200
    21.3 @@ -14,19 +14,7 @@
    21.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    21.5  genpkg_rules()
    21.6  {
    21.7 -	mandir="$fs/usr/share/man/man1"
    21.8 -	mkdir -p $mandir
    21.9 -
   21.10 -	while read i; do
   21.11 -		mkdir -p $fs$(dirname $i)
   21.12 -		cp -a $install$i $fs$i
   21.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   21.14 -	done <<EOT
   21.15 -/bin/ls
   21.16 -/usr/bin/dir
   21.17 -/usr/bin/dircolors
   21.18 -/usr/bin/vdir
   21.19 -EOT
   21.20 +	cook_copy_files ls dir dircolors vdir
   21.21  }
   21.22  
   21.23  post_remove()
    22.1 --- a/coreutils-disk/receipt	Wed Dec 14 21:23:06 2016 +0100
    22.2 +++ b/coreutils-disk/receipt	Fri Dec 16 01:16:56 2016 +0200
    22.3 @@ -14,27 +14,14 @@
    22.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    22.5  genpkg_rules()
    22.6  {
    22.7 -	mandir="$fs/usr/share/man/man1"
    22.8 -	mkdir -p $mandir
    22.9 -
   22.10 -	while read i; do
   22.11 -		mkdir -p $fs$(dirname $i)
   22.12 -		cp -a $install$i $fs$i
   22.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   22.14 -	done <<EOT
   22.15 -/bin/df
   22.16 -/bin/sync
   22.17 -/usr/bin/du
   22.18 -/usr/bin/stat
   22.19 -/usr/bin/truncate
   22.20 -EOT
   22.21 +	cook_copy_files df sync du stat truncate
   22.22  }
   22.23  
   22.24  post_install()
   22.25  {
   22.26  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   22.27  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   22.28 -	rm "$1/bin/stat"     # /usr/bin/stat
   22.29 +	rm "$1/bin/stat"     # for /usr/bin/stat
   22.30  }
   22.31  
   22.32  post_remove()
    23.1 --- a/coreutils-file-attributes/receipt	Wed Dec 14 21:23:06 2016 +0100
    23.2 +++ b/coreutils-file-attributes/receipt	Fri Dec 16 01:16:56 2016 +0200
    23.3 @@ -14,26 +14,14 @@
    23.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    23.5  genpkg_rules()
    23.6  {
    23.7 -	mandir="$fs/usr/share/man/man1"
    23.8 -	mkdir -p $mandir
    23.9 -
   23.10 -	while read i; do
   23.11 -		mkdir -p $fs$(dirname $i)
   23.12 -		cp -a $install$i $fs$i
   23.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   23.14 -	done <<EOT
   23.15 -/bin/chgrp
   23.16 -/bin/chmod
   23.17 -/bin/chown
   23.18 -/usr/bin/touch
   23.19 -EOT
   23.20 +	cook_copy_files chgrp chmod chown touch
   23.21  }
   23.22  
   23.23  post_install()
   23.24  {
   23.25  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   23.26  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   23.27 -	rm "$1/bin/touch"    # /usr/bin/touch
   23.28 +	rm "$1/bin/touch"    # for /usr/bin/touch
   23.29  }
   23.30  
   23.31  post_remove()
    24.1 --- a/coreutils-file-format/receipt	Wed Dec 14 21:23:06 2016 +0100
    24.2 +++ b/coreutils-file-format/receipt	Fri Dec 16 01:16:56 2016 +0200
    24.3 @@ -14,18 +14,7 @@
    24.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    24.5  genpkg_rules()
    24.6  {
    24.7 -	mandir="$fs/usr/share/man/man1"
    24.8 -	mkdir -p $mandir
    24.9 -
   24.10 -	while read i; do
   24.11 -		mkdir -p $fs$(dirname $i)
   24.12 -		cp -a $install$i $fs$i
   24.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   24.14 -	done <<EOT
   24.15 -/usr/bin/fmt
   24.16 -/usr/bin/fold
   24.17 -/usr/bin/pr
   24.18 -EOT
   24.19 +	cook_copy_files fmt fold pr
   24.20  }
   24.21  
   24.22  post_remove()
    25.1 --- a/coreutils-file-output-full/receipt	Wed Dec 14 21:23:06 2016 +0100
    25.2 +++ b/coreutils-file-output-full/receipt	Fri Dec 16 01:16:56 2016 +0200
    25.3 @@ -14,28 +14,14 @@
    25.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    25.5  genpkg_rules()
    25.6  {
    25.7 -	mandir="$fs/usr/share/man/man1"
    25.8 -	mkdir -p $mandir
    25.9 -
   25.10 -	while read i; do
   25.11 -		mkdir -p $fs$(dirname $i)
   25.12 -		cp -a $install$i $fs$i
   25.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   25.14 -	done <<EOT
   25.15 -/bin/cat
   25.16 -/usr/bin/base32
   25.17 -/usr/bin/base64
   25.18 -/usr/bin/nl
   25.19 -/usr/bin/od
   25.20 -/usr/bin/tac
   25.21 -EOT
   25.22 +	cook_copy_files cat base32 base64 nl od tac
   25.23  }
   25.24  
   25.25  post_install()
   25.26  {
   25.27  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   25.28  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   25.29 -	rm "$1/bin/base64"   # /usr/bin/base64
   25.30 +	rm "$1/bin/base64"   # for /usr/bin/base64
   25.31  }
   25.32  
   25.33  post_remove()
    26.1 --- a/coreutils-file-output-part/receipt	Wed Dec 14 21:23:06 2016 +0100
    26.2 +++ b/coreutils-file-output-part/receipt	Fri Dec 16 01:16:56 2016 +0200
    26.3 @@ -14,19 +14,7 @@
    26.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    26.5  genpkg_rules()
    26.6  {
    26.7 -	mandir="$fs/usr/share/man/man1"
    26.8 -	mkdir -p $mandir
    26.9 -
   26.10 -	while read i; do
   26.11 -		mkdir -p $fs$(dirname $i)
   26.12 -		cp -a $install$i $fs$i
   26.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   26.14 -	done <<EOT
   26.15 -/usr/bin/csplit
   26.16 -/usr/bin/head
   26.17 -/usr/bin/split
   26.18 -/usr/bin/tail
   26.19 -EOT
   26.20 +	cook_copy_files csplit head split tail
   26.21  }
   26.22  
   26.23  post_remove()
    27.1 --- a/coreutils-file-sort/receipt	Wed Dec 14 21:23:06 2016 +0100
    27.2 +++ b/coreutils-file-sort/receipt	Fri Dec 16 01:16:56 2016 +0200
    27.3 @@ -14,21 +14,7 @@
    27.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    27.5  genpkg_rules()
    27.6  {
    27.7 -	mandir="$fs/usr/share/man/man1"
    27.8 -	mkdir -p $mandir
    27.9 -
   27.10 -	while read i; do
   27.11 -		mkdir -p $fs$(dirname $i)
   27.12 -		cp -a $install$i $fs$i
   27.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   27.14 -	done <<EOT
   27.15 -/usr/bin/comm
   27.16 -/usr/bin/ptx
   27.17 -/usr/bin/shuf
   27.18 -/usr/bin/sort
   27.19 -/usr/bin/tsort
   27.20 -/usr/bin/uniq
   27.21 -EOT
   27.22 +	cook_copy_files comm ptx shuf sort tsort uniq
   27.23  }
   27.24  
   27.25  post_remove()
    28.1 --- a/coreutils-file-special/receipt	Wed Dec 14 21:23:06 2016 +0100
    28.2 +++ b/coreutils-file-special/receipt	Fri Dec 16 01:16:56 2016 +0200
    28.3 @@ -14,32 +14,15 @@
    28.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    28.5  genpkg_rules()
    28.6  {
    28.7 -	mandir="$fs/usr/share/man/man1"
    28.8 -	mkdir -p $mandir
    28.9 -
   28.10 -	while read i; do
   28.11 -		mkdir -p $fs$(dirname $i)
   28.12 -		cp -a $install$i $fs$i
   28.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   28.14 -	done <<EOT
   28.15 -/bin/ln
   28.16 -/bin/mkdir
   28.17 -/bin/mknod
   28.18 -/bin/rmdir
   28.19 -/usr/bin/link
   28.20 -/usr/bin/mkfifo
   28.21 -/usr/bin/mktemp
   28.22 -/usr/bin/readlink
   28.23 -/usr/bin/realpath
   28.24 -/usr/bin/unlink
   28.25 -EOT
   28.26 +	cook_copy_files ln mkdir mknod rmdir link mkfifo mktemp readlink realpath \
   28.27 +		unlink
   28.28  }
   28.29  
   28.30  post_install()
   28.31  {
   28.32  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   28.33  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   28.34 -	rm "$1/bin/mktemp"   # /usr/bin/mktemp
   28.35 +	rm "$1/bin/mktemp"   # for /usr/bin/mktemp
   28.36  }
   28.37  
   28.38  post_remove()
    29.1 --- a/coreutils-file-summarize/receipt	Wed Dec 14 21:23:06 2016 +0100
    29.2 +++ b/coreutils-file-summarize/receipt	Fri Dec 16 01:16:56 2016 +0200
    29.3 @@ -14,24 +14,8 @@
    29.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    29.5  genpkg_rules()
    29.6  {
    29.7 -	mandir="$fs/usr/share/man/man1"
    29.8 -	mkdir -p $mandir
    29.9 -
   29.10 -	while read i; do
   29.11 -		mkdir -p $fs$(dirname $i)
   29.12 -		cp -a $install$i $fs$i
   29.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   29.14 -	done <<EOT
   29.15 -/usr/bin/cksum
   29.16 -/usr/bin/md5sum
   29.17 -/usr/bin/sha1sum
   29.18 -/usr/bin/sha224sum
   29.19 -/usr/bin/sha256sum
   29.20 -/usr/bin/sha384sum
   29.21 -/usr/bin/sha512sum
   29.22 -/usr/bin/sum
   29.23 -/usr/bin/wc
   29.24 -EOT
   29.25 +	cook_copy_files cksum md5sum sha1sum sha224sum sha256sum sha384sum \
   29.26 +		sha512sum sum wc
   29.27  }
   29.28  
   29.29  post_remove()
    30.1 --- a/coreutils-line/receipt	Wed Dec 14 21:23:06 2016 +0100
    30.2 +++ b/coreutils-line/receipt	Fri Dec 16 01:16:56 2016 +0200
    30.3 @@ -14,18 +14,7 @@
    30.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    30.5  genpkg_rules()
    30.6  {
    30.7 -	mandir="$fs/usr/share/man/man1"
    30.8 -	mkdir -p $mandir
    30.9 -
   30.10 -	while read i; do
   30.11 -		mkdir -p $fs$(dirname $i)
   30.12 -		cp -a $install$i $fs$i
   30.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   30.14 -	done <<EOT
   30.15 -/usr/bin/cut
   30.16 -/usr/bin/join
   30.17 -/usr/bin/paste
   30.18 -EOT
   30.19 +	cook_copy_files cut join paste
   30.20  }
   30.21  
   30.22  post_remove()
    31.1 --- a/coreutils-multicall/receipt	Wed Dec 14 21:23:06 2016 +0100
    31.2 +++ b/coreutils-multicall/receipt	Fri Dec 16 01:16:56 2016 +0200
    31.3 @@ -12,7 +12,7 @@
    31.4  
    31.5  SIBLINGS="coreutils"
    31.6  DEPENDS="glibc-base acl attr libcap gmp"
    31.7 -BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
    31.8 +BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch"
    31.9  
   31.10  # Rules to configure and make the package.
   31.11  compile_rules()
   31.12 @@ -21,6 +21,10 @@
   31.13  	patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
   31.14  	# SliTaz: show extended info touching CPU via uname
   31.15  	patch  -p1 -i $WOK/coreutils/stuff/uname.u
   31.16 +	# SliTaz: fix translations, especially deprecated symbol '\v'
   31.17 +	patch  -p1 -i $WOK/coreutils/stuff/coreutils-fix-po.patch
   31.18 +	msgfmt po/nb.po -o po/nb.gmo
   31.19 +	msgfmt po/sl.po -o po/sl.gmo
   31.20  
   31.21  	autoreconf -fi
   31.22  
   31.23 @@ -42,29 +46,26 @@
   31.24  	mv  $install/usr/share/man/man1/chroot.1 \
   31.25  		$install/usr/share/man/man8/chroot.8
   31.26  	sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
   31.27 -
   31.28 -	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
   31.29  }
   31.30  
   31.31  # Rules to gen a SliTaz package suitable for Tazpkg.
   31.32  genpkg_rules()
   31.33  {
   31.34 -	cp -a $install/* $fs
   31.35 -	rm -r $fs/usr/share/info $fs/usr/share/locale
   31.36 +	cook_copy_folders bin sbin libexec
   31.37  }
   31.38  
   31.39  post_install()
   31.40  {
   31.41  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
   31.42  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
   31.43 -	rm "$1/bin/base64"   # /usr/bin/base64
   31.44 -	rm "$1/bin/kill"     # /usr/bin/kill
   31.45 -	rm "$1/bin/mktemp"   # /usr/bin/mktemp
   31.46 -	rm "$1/bin/nice"     # /usr/bin/nice
   31.47 -	rm "$1/bin/printenv" # /usr/bin/printenv
   31.48 -	rm "$1/bin/sleep"    # /usr/bin/sleep
   31.49 -	rm "$1/bin/stat"     # /usr/bin/stat
   31.50 -	rm "$1/bin/touch"    # /usr/bin/touch
   31.51 +	rm "$1/bin/base64"   # for /usr/bin/base64
   31.52 +	rm "$1/bin/kill"     # for /usr/bin/kill
   31.53 +	rm "$1/bin/mktemp"   # for /usr/bin/mktemp
   31.54 +	rm "$1/bin/nice"     # for /usr/bin/nice
   31.55 +	rm "$1/bin/printenv" # for /usr/bin/printenv
   31.56 +	rm "$1/bin/sleep"    # for /usr/bin/sleep
   31.57 +	rm "$1/bin/stat"     # for /usr/bin/stat
   31.58 +	rm "$1/bin/touch"    # for /usr/bin/touch
   31.59  }
   31.60  
   31.61  post_remove()
    32.1 --- a/coreutils-numeric/receipt	Wed Dec 14 21:23:06 2016 +0100
    32.2 +++ b/coreutils-numeric/receipt	Fri Dec 16 01:16:56 2016 +0200
    32.3 @@ -14,17 +14,7 @@
    32.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    32.5  genpkg_rules()
    32.6  {
    32.7 -	mandir="$fs/usr/share/man/man1"
    32.8 -	mkdir -p $mandir
    32.9 -
   32.10 -	while read i; do
   32.11 -		mkdir -p $fs$(dirname $i)
   32.12 -		cp -a $install$i $fs$i
   32.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   32.14 -	done <<EOT
   32.15 -/usr/bin/factor
   32.16 -/usr/bin/seq
   32.17 -EOT
   32.18 +	cook_copy_files factor seq
   32.19  }
   32.20  
   32.21  post_remove()
    33.1 --- a/coreutils-operations/receipt	Wed Dec 14 21:23:06 2016 +0100
    33.2 +++ b/coreutils-operations/receipt	Fri Dec 16 01:16:56 2016 +0200
    33.3 @@ -14,20 +14,7 @@
    33.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    33.5  genpkg_rules()
    33.6  {
    33.7 -	mandir="$fs/usr/share/man/man1"
    33.8 -	mkdir -p $mandir
    33.9 -
   33.10 -	while read i; do
   33.11 -		mkdir -p $fs$(dirname $i)
   33.12 -		cp -a $install$i $fs$i
   33.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   33.14 -	done <<EOT
   33.15 -/bin/cp
   33.16 -/bin/dd
   33.17 -/bin/mv
   33.18 -/usr/bin/install
   33.19 -/usr/bin/shred
   33.20 -EOT
   33.21 +	cook_copy_files cp dd mv install shred
   33.22  }
   33.23  
   33.24  post_remove()
    34.1 --- a/coreutils-path/receipt	Wed Dec 14 21:23:06 2016 +0100
    34.2 +++ b/coreutils-path/receipt	Fri Dec 16 01:16:56 2016 +0200
    34.3 @@ -14,18 +14,7 @@
    34.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    34.5  genpkg_rules()
    34.6  {
    34.7 -	mandir="$fs/usr/share/man/man1"
    34.8 -	mkdir -p $mandir
    34.9 -
   34.10 -	while read i; do
   34.11 -		mkdir -p $fs$(dirname $i)
   34.12 -		cp -a $install$i $fs$i
   34.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   34.14 -	done <<EOT
   34.15 -/usr/bin/basename
   34.16 -/usr/bin/dirname
   34.17 -/usr/bin/pathchk
   34.18 -EOT
   34.19 +	cook_copy_files basename dirname pathchk
   34.20  }
   34.21  
   34.22  post_remove()
    35.1 --- a/coreutils-print/receipt	Wed Dec 14 21:23:06 2016 +0100
    35.2 +++ b/coreutils-print/receipt	Fri Dec 16 01:16:56 2016 +0200
    35.3 @@ -14,19 +14,7 @@
    35.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    35.5  genpkg_rules()
    35.6  {
    35.7 -	mandir="$fs/usr/share/man/man1"
    35.8 -	mkdir -p $mandir
    35.9 -
   35.10 -	while read i; do
   35.11 -		mkdir -p $fs$(dirname $i)
   35.12 -		cp -a $install$i $fs$i
   35.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   35.14 -	done <<EOT
   35.15 -/bin/echo
   35.16 -/usr/bin/numfmt
   35.17 -/usr/bin/printf
   35.18 -/usr/bin/yes
   35.19 -EOT
   35.20 +	cook_copy_files echo numfmt printf yes
   35.21  }
   35.22  
   35.23  post_remove()
    36.1 --- a/coreutils-redirection/receipt	Wed Dec 14 21:23:06 2016 +0100
    36.2 +++ b/coreutils-redirection/receipt	Fri Dec 16 01:16:56 2016 +0200
    36.3 @@ -14,16 +14,7 @@
    36.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    36.5  genpkg_rules()
    36.6  {
    36.7 -	mandir="$fs/usr/share/man/man1"
    36.8 -	mkdir -p $mandir
    36.9 -
   36.10 -	while read i; do
   36.11 -		mkdir -p $fs$(dirname $i)
   36.12 -		cp -a $install$i $fs$i
   36.13 -		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
   36.14 -	done <<EOT
   36.15 -/usr/bin/tee
   36.16 -EOT
   36.17 +	cook_copy_files tee
   36.18  }
   36.19  
   36.20  post_remove()
    37.1 --- a/coreutils/receipt	Wed Dec 14 21:23:06 2016 +0100
    37.2 +++ b/coreutils/receipt	Fri Dec 16 01:16:56 2016 +0200
    37.3 @@ -2,11 +2,12 @@
    37.4  
    37.5  PACKAGE="coreutils"
    37.6  VERSION="8.25"
    37.7 -CATEGORY="system-tools"
    37.8 +CATEGORY="meta"
    37.9  SHORT_DESC="Utilities for using and setting the basic system."
   37.10  MAINTAINER="pankso@slitaz.org"
   37.11  LICENSE="GPL3"
   37.12  WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
   37.13 +
   37.14  TARBALL="$PACKAGE-$VERSION.tar.xz"
   37.15  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   37.16  
   37.17 @@ -18,8 +19,8 @@
   37.18  coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\
   37.19  numeric coreutils-operations coreutils-path coreutils-print coreutils-\
   37.20  redirection"
   37.21 -DEPENDS="glibc-base acl attr gmp"
   37.22 -BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
   37.23 +DEPENDS="glibc-base acl attr gmp $SPLIT"
   37.24 +BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch"
   37.25  
   37.26  # Rules to configure and make the package.
   37.27  compile_rules()
   37.28 @@ -28,6 +29,10 @@
   37.29  	patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch
   37.30  	# SliTaz: show extended info touching CPU via uname
   37.31  	patch  -p1 -i $stuff/uname.u
   37.32 +	# SliTaz: fix translations, especially deprecated symbol '\v'
   37.33 +	patch  -p1 -i $stuff/coreutils-fix-po.patch
   37.34 +	msgfmt po/nb.po -o po/nb.gmo
   37.35 +	msgfmt po/sl.po -o po/sl.gmo
   37.36  
   37.37  	autoreconf -fi
   37.38  
   37.39 @@ -47,38 +52,4 @@
   37.40  	mv  $install/usr/share/man/man1/chroot.1 \
   37.41  		$install/usr/share/man/man8/chroot.8
   37.42  	sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
   37.43 -
   37.44 -	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
   37.45  }
   37.46 -
   37.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
   37.48 -genpkg_rules()
   37.49 -{
   37.50 -	# A set of binaries looks intriguing, isn't it?
   37.51 -	# For what is this package with exactly these binaries?
   37.52 -
   37.53 -	mkdir -p $fs/usr/bin $fs/bin
   37.54 -
   37.55 -	cd $install/usr/bin
   37.56 -	cp -a base64 csplit factor fmt join od paste ptx shred shuf split users \
   37.57 -		groups $fs/usr/bin
   37.58 -
   37.59 -	cp -a $install/bin/cp $fs/bin
   37.60 -}
   37.61 -
   37.62 -post_install()
   37.63 -{
   37.64 -	# Remove Busybox applet in order to not clash with
   37.65 -	# /usr/bin/base64 from this package.
   37.66 -	rm "$1/bin/base64"
   37.67 -}
   37.68 -
   37.69 -post_remove()
   37.70 -{
   37.71 -	ln -s      busybox "$1/bin/base64"
   37.72 -	ln -s      busybox "$1/bin/cp"
   37.73 -	ln -s /bin/busybox "$1/usr/bin/groups"
   37.74 -	ln -s /bin/busybox "$1/usr/bin/od"
   37.75 -	ln -s /bin/busybox "$1/usr/bin/split"
   37.76 -	ln -s /bin/busybox "$1/usr/bin/users"
   37.77 -}
    38.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.2 +++ b/coreutils/stuff/coreutils-fix-po.patch	Fri Dec 16 01:16:56 2016 +0200
    38.3 @@ -0,0 +1,84 @@
    38.4 +--- a/po/nb.po
    38.5 ++++ b/po/nb.po
    38.6 +@@ -2721,7 +2721,7 @@
    38.7 + "A line OFFSET is a required '+' or '-' followed by a positive integer.\n"
    38.8 + msgstr ""
    38.9 + "\n"
   38.10 +-"\vMØNSTER må utformes slik:\n"
   38.11 ++"MØNSTER må utformes slik:\n"
   38.12 + "  INTEGER            kopier frem til - men ikke inkludert - angitt "
   38.13 + "linjenummer\n"
   38.14 + "  /REGEXP/[OFFSET]   kopier frem til - men ikke inkludert - en samsvarende "
   38.15 +@@ -7132,7 +7132,7 @@
   38.16 + "Multiple fields/ranges can be separated with commas\n"
   38.17 + msgstr ""
   38.18 + "\n"
   38.19 +-"\vFELT støtter feltrekkevidder i cut(1)-stil:\n"
   38.20 ++"FELT støtter feltrekkevidder i cut(1)-stil:\n"
   38.21 + "  N    N'te byte, tegn eller felt, talt fra 1\n"
   38.22 + "  N-   fra N'te byte, tegn eller felt, til slutten av linja\n"
   38.23 + "  N-M  fra N'te til M'te (inklusive) byte, tegn eller felt\n"
   38.24 +--- a/po/sl.po
   38.25 ++++ b/po/sl.po
   38.26 +@@ -2641,7 +2641,7 @@
   38.27 + #: src/csplit.c:1299
   38.28 + #, c-format
   38.29 + msgid "invalid conversion specifier in suffix: \\%.3o"
   38.30 +-msgstr "neveljavno določilo pretvorbe v priponi: \\\\%.3o"
   38.31 ++msgstr "neveljavno določilo pretvorbe v priponi: \\%.3o"
   38.32 + 
   38.33 + #: src/csplit.c:1304
   38.34 + #, c-format
   38.35 +@@ -6711,7 +6711,7 @@
   38.36 + "ločitvena\n"
   38.37 + "znaka za ločevanje logičnih strani; če je drugi znak izpuščen, se "
   38.38 + "privzame :.\n"
   38.39 +-"Uporabite \\\\\\\\ za \\\\. SLOG je nekaj od naštetega:\n"
   38.40 ++"Uporabite \\\\ za \\. SLOG je nekaj od naštetega:\n"
   38.41 + 
   38.42 + #: src/nl.c:211
   38.43 + msgid ""
   38.44 +@@ -7951,8 +7951,8 @@
   38.45 + msgstr ""
   38.46 + "  -h, --header=ZGLAVJE\n"
   38.47 + "                    uporabimo navedeno osredinjeno ZGLAVJE namesto imena\n"
   38.48 +-"                    datoteke; -h \\\"\\\" izpiše prazno vrstica; ne "
   38.49 +-"uporabljajte -h\\\"\\\"\n"
   38.50 ++"                    datoteke; -h \"\" izpiše prazno vrstica; ne "
   38.51 ++"uporabljajte -h\"\"\n"
   38.52 + "  -i[ZNAK[ŠIRINA]], --output-tabs[=ZNAK[ŠIRINA]]\n"
   38.53 + "                    presledke skrčimo v ZNAK (privzeto TAB) do ŠIRINE\n"
   38.54 + "                    tabulatorja (privzeto 8)\n"
   38.55 +@@ -12078,15 +12078,15 @@
   38.56 + "MNOŽICE določajo nizi znakov. Večinoma predstavljajo sebe, posebej pa se\n"
   38.57 + "tolmačijo naslednja zaporedja:\n"
   38.58 + "\n"
   38.59 +-"  \\\\NNN            znak z osmiško kodo NNN (dolžina 1, 2 ali 3 osmiške "
   38.60 ++"  \\NNN            znak z osmiško kodo NNN (dolžina 1, 2 ali 3 osmiške "
   38.61 + "števke)\n"
   38.62 +-"  \\\\\\\\             obratna poševnica\n"
   38.63 +-"  \\\\a              zvonček\n"
   38.64 +-"  \\\\b              pomik za en znak v levo\n"
   38.65 +-"  \\\\f              skok na novo stran\n"
   38.66 +-"  \\\\n              skok v novo vrstico\n"
   38.67 +-"  \\\\r              pomik na levi rob\n"
   38.68 +-"  \\\\t              vodoravni tabulator\n"
   38.69 ++"  \\\\             obratna poševnica\n"
   38.70 ++"  \\a              zvonček\n"
   38.71 ++"  \\b              pomik za en znak v levo\n"
   38.72 ++"  \\f              skok na novo stran\n"
   38.73 ++"  \\n              skok v novo vrstico\n"
   38.74 ++"  \\r              pomik na levi rob\n"
   38.75 ++"  \\t              vodoravni tabulator\n"
   38.76 + 
   38.77 + #: src/tr.c:317
   38.78 + msgid ""
   38.79 +@@ -12100,7 +12100,7 @@
   38.80 + "  [:cntrl:]       all control characters\n"
   38.81 + "  [:digit:]       all digits\n"
   38.82 + msgstr ""
   38.83 +-"  \\\\v              navpični tabulator\n"
   38.84 ++"  \\v              navpični tabulator\n"
   38.85 + "  ZNAK1-ZNAK2     naraščajoče zaporedje znakov od ZNAKA1 do ZNAKA2\n"
   38.86 + "  [ZNAK1-ZNAK2]   isto kot ZNAK1-ZNAK2, če to uporabljata obe množici\n"
   38.87 + "  [ZNAK*]         v MNOŽICI 2; toliko ponovitev ZNAKA kot v MNOŽICI 1\n"
    39.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.2 +++ b/diffutils/description.txt	Fri Dec 16 01:16:56 2016 +0200
    39.3 @@ -0,0 +1,11 @@
    39.4 +The Diffutils package contains programs that show the differences between files
    39.5 +or directories.
    39.6 +
    39.7 +The package contains:
    39.8 +
    39.9 +  * `cmp` - Compares two files and reports whether or in which bytes they
   39.10 +    differ
   39.11 +  * `diff` - Compares two files or directories and reports which lines in the
   39.12 +    files differ
   39.13 +  * `diff3` - Compares three files line by line
   39.14 +  * `sdiff` - Merges two files and interactively outputs the results
    40.1 --- a/diffutils/receipt	Wed Dec 14 21:23:06 2016 +0100
    40.2 +++ b/diffutils/receipt	Fri Dec 16 01:16:56 2016 +0200
    40.3 @@ -1,39 +1,29 @@
    40.4  # SliTaz package receipt.
    40.5  
    40.6  PACKAGE="diffutils"
    40.7 -VERSION="3.3"
    40.8 +VERSION="3.5"
    40.9  CATEGORY="development"
   40.10  SHORT_DESC="Show differences between two files."
   40.11  MAINTAINER="pascal.bellard@slitaz.org"
   40.12  LICENSE="GPL3"
   40.13 +WEB_SITE="https://www.gnu.org/software/diffutils/"
   40.14 +
   40.15  TARBALL="$PACKAGE-$VERSION.tar.xz"
   40.16 -WEB_SITE="http://www.gnu.org/software/diffutils/"
   40.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   40.18  
   40.19  # Rules to configure and make the package.
   40.20  compile_rules()
   40.21  {
   40.22 -	cd $src
   40.23 -	sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in
   40.24 -	./configure --prefix=/usr $CONFIGURE_ARGS &&
   40.25 -	make &&
   40.26 -	make DESTDIR=$DESTDIR install
   40.27 +	./configure $CONFIGURE_ARGS && make && make install
   40.28  }
   40.29  
   40.30  # Rules to gen a SliTaz package suitable for Tazpkg.
   40.31  genpkg_rules()
   40.32  {
   40.33 -	mkdir -p $fs/usr
   40.34 -	cp -a $install/usr/bin $fs/usr
   40.35 +	cook_copy_folders bin
   40.36  }
   40.37  
   40.38  # Overlap busybox
   40.39 -pre_install()
   40.40 -{
   40.41 -	rm -f "$1/usr/bin/diff"
   40.42 -	rm -f "$1/usr/bin/cmp"
   40.43 -}
   40.44 -
   40.45  post_remove()
   40.46  {
   40.47  	ln -s /bin/busybox "$1/usr/bin/diff"
    41.1 --- a/file/receipt	Wed Dec 14 21:23:06 2016 +0100
    41.2 +++ b/file/receipt	Fri Dec 16 01:16:56 2016 +0200
    41.3 @@ -1,20 +1,20 @@
    41.4  # SliTaz package receipt.
    41.5  
    41.6  PACKAGE="file"
    41.7 -VERSION="5.24"
    41.8 +VERSION="5.28"
    41.9  CATEGORY="system-tools"
   41.10  SHORT_DESC="Determines file type using 'magic' numbers"
   41.11  MAINTAINER="erjo@slitaz.org"
   41.12  LICENSE="BSD"
   41.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   41.14  WEB_SITE="http://www.darwinsys.com/file/"
   41.15 -WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
   41.16  HOST_ARCH="i486 arm"
   41.17  
   41.18 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   41.19 +WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
   41.20 +
   41.21  DEPENDS="zlib libmagic"
   41.22 -BUILD_DEPENDS="zlib-dev python"
   41.23 -
   41.24 -# Please, update too: libmagic, libmagic-dev, python-magic.
   41.25 +BUILD_DEPENDS="zlib-dev python setuptools"
   41.26 +SPLIT="libmagic libmagic-dev python-magic"
   41.27  
   41.28  # Handle cross compilation. python is installed in a ARM cook env.
   41.29  case "$ARCH" in
   41.30 @@ -24,11 +24,9 @@
   41.31  # Rules to configure and make the package.
   41.32  compile_rules()
   41.33  {
   41.34 -	./configure \
   41.35 -		--datarootdir=/usr/share \
   41.36 -		$CONFIGURE_ARGS &&
   41.37 -	make &&	make install &&
   41.38 -	cd python &&
   41.39 +	./configure $CONFIGURE_ARGS && make && make install
   41.40 +
   41.41 +	cd python
   41.42  	python setup.py build &&
   41.43  	python setup.py install --root=$DESTDIR
   41.44  }
   41.45 @@ -36,9 +34,7 @@
   41.46  # Rules to gen a SliTaz package suitable for Tazpkg.
   41.47  genpkg_rules()
   41.48  {
   41.49 -	mkdir -p $fs/usr/share
   41.50 -	cp -a $install/usr/bin $fs/usr
   41.51 -	cp -a $install/usr/share/misc $fs/usr/share
   41.52 +	cook_copy_files file magic.mgc
   41.53  }
   41.54  
   41.55  # Be sure it as cross compile.
    42.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    42.2 +++ b/findutils/description.txt	Fri Dec 16 01:16:56 2016 +0200
    42.3 @@ -0,0 +1,15 @@
    42.4 +The Findutils package contains programs to find files. These programs are
    42.5 +provided to recursively search through a directory tree and to create,
    42.6 +maintain, and search a database (often faster than the recursive find, but
    42.7 +unreliable if the database has not been recently updated).
    42.8 +
    42.9 +The package contains:
   42.10 +
   42.11 +  * `find` - Searches given directory trees for files matching the specified
   42.12 +    criteria
   42.13 +  * `locate` - Searches through a database of file names and reports the names
   42.14 +    that contain a given string or match a given pattern
   42.15 +  * `updatedb` - Updates the locate database; it scans the entire file system
   42.16 +    (including other file systems that are currently mounted, unless told not
   42.17 +    to) and puts every file name it finds into the database
   42.18 +  * `xargs` - Can be used to apply a given command to a list of files
    43.1 --- a/findutils/receipt	Wed Dec 14 21:23:06 2016 +0100
    43.2 +++ b/findutils/receipt	Fri Dec 16 01:16:56 2016 +0200
    43.3 @@ -1,13 +1,14 @@
    43.4  # SliTaz package receipt.
    43.5  
    43.6  PACKAGE="findutils"
    43.7 -VERSION="4.4.2"
    43.8 +VERSION="4.6.0"
    43.9  CATEGORY="utilities"
   43.10  SHORT_DESC="GNU utilities and tools to find/locate."
   43.11  MAINTAINER="pankso@slitaz.org"
   43.12  LICENSE="GPL3"
   43.13 +WEB_SITE="https://www.gnu.org/software/findutils/"
   43.14 +
   43.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
   43.16 -WEB_SITE="http://www.gnu.org/software/findutils/"
   43.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   43.18  
   43.19  DEPENDS="glibc-base slitaz-base-files"
   43.20 @@ -15,33 +16,20 @@
   43.21  # Rules to configure and make the package.
   43.22  compile_rules()
   43.23  {
   43.24 -	cd $src
   43.25  	./configure \
   43.26 -		--prefix=/usr \
   43.27 -		--libexecdir=/usr/lib/findutils \
   43.28 -		--localstatedir=/var \
   43.29 -		--infodir=/usr/share/info \
   43.30 -		--mandir=/usr/share/man \
   43.31 +		--localstatedir=/var/lib/locate \
   43.32  		$CONFIGURE_ARGS &&
   43.33  	make &&
   43.34 -	make DESTDIR=$DESTDIR install
   43.35 +	make install
   43.36  }
   43.37  
   43.38  # Rules to gen a SliTaz package suitable for Tazpkg.
   43.39  genpkg_rules()
   43.40  {
   43.41 -	mkdir -p $fs/usr/bin
   43.42 -	cp -a $install/usr/bin $fs/usr
   43.43 -	cp -a $install/usr/lib $fs/usr
   43.44 +	cook_copy_folders bin libexec
   43.45  }
   43.46  
   43.47 -# Remove Busybox symlink before installing
   43.48 -pre_install()
   43.49 -{
   43.50 -	rm -f "$1/usr/bin/find"
   43.51 -	rm -f "$1/usr/bin/xargs"
   43.52 -}
   43.53 -
   43.54 +# Restore Busybox symlinks after removing the package
   43.55  post_remove()
   43.56  {
   43.57  	ln -s /bin/busybox /usr/bin/find
    44.1 --- a/gawk/description.txt	Wed Dec 14 21:23:06 2016 +0100
    44.2 +++ b/gawk/description.txt	Fri Dec 16 01:16:56 2016 +0200
    44.3 @@ -1,6 +1,14 @@
    44.4 -If you are like many computer users, you would frequently like to make changes 
    44.5 -in various text files wherever certain patterns appear, or extract data from 
    44.6 +If you are like many computer users, you would frequently like to make changes
    44.7 +in various text files wherever certain patterns appear, or extract data from
    44.8  parts of certain lines while discarding the rest. To write a program to do this
    44.9 -in a language such as C or Pascal is a time-consuming inconvenience that may 
   44.10 -take many lines of code. The job is easy with awk, especially the GNU 
   44.11 -implementation: gawk. 
   44.12 +in a language such as C or Pascal is a time-consuming inconvenience that may
   44.13 +take many lines of code. The job is easy with awk, especially the GNU
   44.14 +implementation: gawk.
   44.15 +
   44.16 +The package contains:
   44.17 +
   44.18 +  * `awk` - A link to gawk
   44.19 +  * `gawk` - A program for manipulating text files; it is the GNU
   44.20 +    implementation of awk
   44.21 +  * `gawk-4.1.3` - A hard link to gawk
   44.22 +  * `igawk` - Gives gawk the ability to include files
    45.1 --- a/gawk/receipt	Wed Dec 14 21:23:06 2016 +0100
    45.2 +++ b/gawk/receipt	Fri Dec 16 01:16:56 2016 +0200
    45.3 @@ -1,18 +1,19 @@
    45.4  # SliTaz package receipt.
    45.5  
    45.6  PACKAGE="gawk"
    45.7 -VERSION="4.0.1"
    45.8 +VERSION="4.1.3"
    45.9  CATEGORY="development"
   45.10  SHORT_DESC="GNU awk to handle simple data-reformatting."
   45.11  MAINTAINER="pankso@slitaz.org"
   45.12  LICENSE="GPL3"
   45.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   45.14  WEB_SITE="http://www.gnu.org/software/gawk/"
   45.15 -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   45.16  HOST_ARCH="i486 arm"
   45.17  
   45.18 -DEPENDS=""
   45.19 -BUILD_DEPENDS=""
   45.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   45.21 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   45.22 +
   45.23 +DEPENDS="readline"
   45.24 +BUILD_DEPENDS="readline-dev gettext"
   45.25  
   45.26  # Rules to compile & install the temporary toolchain.
   45.27  cook_tmp_toolchain()
   45.28 @@ -24,20 +25,13 @@
   45.29  # Rules to configure and make the package.
   45.30  compile_rules()
   45.31  {
   45.32 -	cd $src
   45.33 -	./configure --libexecdir=/usr/lib \
   45.34 -		$CONFIGURE_ARGS &&
   45.35 -	make &&	make install
   45.36 +	./configure $CONFIGURE_ARGS && make && make install
   45.37  }
   45.38  
   45.39  # Rules to gen a SliTaz package suitable for Tazpkg.
   45.40  genpkg_rules()
   45.41  {
   45.42 -	mkdir -p $fs/usr/share/locale
   45.43 -	cp -a $install/usr/bin $fs/usr
   45.44 -	
   45.45 -	cp -a $install/usr/share/awk $fs/usr/share
   45.46 -	cp -a $install/usr/share/locale/fr $fs/usr/share/locale
   45.47 +	cook_copy_folders bin lib awk
   45.48  }
   45.49  
   45.50  # Pre and post install commands for Tazpkg.
    46.1 --- a/gcc-lib-base/receipt	Wed Dec 14 21:23:06 2016 +0100
    46.2 +++ b/gcc-lib-base/receipt	Fri Dec 16 01:16:56 2016 +0200
    46.3 @@ -1,14 +1,15 @@
    46.4  # SliTaz package receipt.
    46.5  
    46.6  PACKAGE="gcc-lib-base"
    46.7 -VERSION="4.6.3"
    46.8 +VERSION="6.2.0"
    46.9  CATEGORY="development"
   46.10  SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
   46.11  WEB_SITE="http://gcc.gnu.org/"
   46.12  MAINTAINER="pankso@slitaz.org"
   46.13  LICENSE="GPL2"
   46.14 +HOST_ARCH="i486 arm"
   46.15 +
   46.16  WANTED="gcc"
   46.17 -HOST_ARCH="i486 arm"
   46.18  
   46.19  # Handle multiarch compilation.
   46.20  case "$ARCH" in
    47.1 --- a/gcc/receipt	Wed Dec 14 21:23:06 2016 +0100
    47.2 +++ b/gcc/receipt	Fri Dec 16 01:16:56 2016 +0200
    47.3 @@ -1,13 +1,13 @@
    47.4  # SliTaz package receipt.
    47.5  
    47.6  PACKAGE="gcc"
    47.7 -VERSION="4.6.3"
    47.8 +VERSION="6.2.0"
    47.9  CATEGORY="development"
   47.10  SHORT_DESC="The GNU Compiler Collection."
   47.11  MAINTAINER="pankso@slitaz.org"
   47.12  LICENSE="GPL2"
   47.13 +WEB_SITE="http://gcc.gnu.org/"
   47.14  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   47.15 -WEB_SITE="http://gcc.gnu.org/"
   47.16  WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
   47.17  TAGS="compiler C"
   47.18  #HOST_ARCH="i486 arm"
   47.19 @@ -16,7 +16,7 @@
   47.20  # for cookutils that are not used by tazwok/cook-toolchain since it installs
   47.21  # and uses its own copy.
   47.22  DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
   47.23 -BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev"
   47.24 +BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev zlib-dev"
   47.25  
   47.26  # Handle cross compilation (native i486/ARM gcc)
   47.27  case "$ARCH" in
    48.1 --- a/gettext/receipt	Wed Dec 14 21:23:06 2016 +0100
    48.2 +++ b/gettext/receipt	Fri Dec 16 01:16:56 2016 +0200
    48.3 @@ -1,20 +1,22 @@
    48.4  # SliTaz package receipt.
    48.5  
    48.6  PACKAGE="gettext"
    48.7 -VERSION="0.19.4"
    48.8 +VERSION="0.19.8.1"
    48.9  CATEGORY="development"
   48.10  SHORT_DESC="Utilities for the GNU Translation Project."
   48.11  MAINTAINER="pankso@slitaz.org"
   48.12  LICENSE="GPL3"
   48.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   48.14 -WEB_SITE="http://www.gnu.org/software/gettext/"
   48.15 +WEB_SITE="https://www.gnu.org/software/gettext/"
   48.16 +HOST_ARCH="i486 arm"
   48.17 +
   48.18 +TARBALL="$PACKAGE-$VERSION.tar.xz"
   48.19  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   48.20 -HOST_ARCH="i486 arm"
   48.21  
   48.22  # Why deps on glib-dev ??? And glib build depends on gettext anyway...
   48.23  DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4 \
   48.24  ncurses gettext-tools"
   48.25 -BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev"
   48.26 +#BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev"
   48.27 +BUILD_DEPENDS="libcroco-dev libxml2-dev glib-dev acl-dev"
   48.28  
   48.29  # Handle cross compilation. Glibc-locale are installed in cross chroot.
   48.30  case "$ARCH" in
    49.1 --- a/gfortran/receipt	Wed Dec 14 21:23:06 2016 +0100
    49.2 +++ b/gfortran/receipt	Fri Dec 16 01:16:56 2016 +0200
    49.3 @@ -1,15 +1,16 @@
    49.4  # SliTaz package receipt.
    49.5  
    49.6  PACKAGE="gfortran"
    49.7 -VERSION="4.6.3"
    49.8 +VERSION="6.2.0"
    49.9  CATEGORY="development"
   49.10  SHORT_DESC="GCC fortran extension."
   49.11  WEB_SITE="http://gcc.gnu.org/"
   49.12  MAINTAINER="pascal.bellard@slitaz.org"
   49.13  LICENSE="GPL2"
   49.14 +TAGS="compiler fortran"
   49.15 +
   49.16  DEPENDS="gcc libgfortran"
   49.17  WANTED="gcc"
   49.18 -TAGS="compiler fortran"
   49.19  
   49.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   49.21  genpkg_rules()
    50.1 --- a/glibc-base/receipt	Wed Dec 14 21:23:06 2016 +0100
    50.2 +++ b/glibc-base/receipt	Fri Dec 16 01:16:56 2016 +0200
    50.3 @@ -1,14 +1,15 @@
    50.4  # SliTaz package receipt.
    50.5  
    50.6  PACKAGE="glibc-base"
    50.7 -VERSION="2.14.1"
    50.8 +VERSION="2.24"
    50.9  CATEGORY="base-system"
   50.10  SHORT_DESC="GNU libc minimal libraries and UTF-8 support for SliTaz."
   50.11  WEB_SITE="http://www.gnu.org/software/libc/"
   50.12  MAINTAINER="pankso@slitaz.org"
   50.13  LICENSE="GPL2"
   50.14 +HOST_ARCH="i486 arm x86_64"
   50.15 +
   50.16  WANTED="glibc"
   50.17 -HOST_ARCH="i486 arm x86_64"
   50.18  
   50.19  # Locales include by default, other locales are in: locale-** and glibc-locale
   50.20  DEFAULT_LOCALE="en_US en_GB"
   50.21 @@ -34,22 +35,21 @@
   50.22  get_locales()
   50.23  {
   50.24  	local path=$1
   50.25 -	for i in $DEFAULT_LOCALE
   50.26 -	do
   50.27 +	for i in $DEFAULT_LOCALE; do
   50.28  		cp $install/$path/i18n/locales/$i $fs/usr/share/i18n/locales
   50.29  	done
   50.30  }
   50.31  
   50.32  genpkg_rules()
   50.33  {
   50.34 -	# Mkdir's.
   50.35 -	for dir in $(cat $stuff/mkdir.list)
   50.36 -	do
   50.37 -		mkdir -p ${fs}$dir
   50.38 -	done
   50.39 -
   50.40  	case "$ARCH" in
   50.41  		arm*)
   50.42 +			# Mkdir's.
   50.43 +			for dir in $(cat $stuff/mkdir.list)
   50.44 +			do
   50.45 +				mkdir -p ${fs}$dir
   50.46 +			done
   50.47 +
   50.48  			# Eglibc is cross compiled by cross to have a toolchain so we can
   50.49  			# use these files instead of recooking it. ARM use Eglibc
   50.50  			echo "Using cross compiled Eglibc..."
   50.51 @@ -77,6 +77,12 @@
   50.52  			touch $fs/etc/ld.so.cache
   50.53  			get_locales "usr/share" ;;
   50.54  		x86_64)
   50.55 +			# Mkdir's.
   50.56 +			for dir in $(cat $stuff/mkdir.list)
   50.57 +			do
   50.58 +				mkdir -p ${fs}$dir
   50.59 +			done
   50.60 +
   50.61  			# EXPERIMENTAL: Glibc is cross compiled by cross to have a
   50.62  			# toolchain so we can use these files instead of recooking it.
   50.63  			echo "Using cross compiled Glibc..."
   50.64 @@ -105,13 +111,41 @@
   50.65  			sed -i s"|/usr/cross/$ARCH||"g $fs/lib/libc.so
   50.66  			sed -i s"|/usr/cross/$ARCH||"g $fs/lib/libpthread.so ;;
   50.67  		*)
   50.68 -			# Copy all files specified in stuff/files.list. We get the files
   50.69 -			# from glibc package.
   50.70 -			for file in $(cat $stuff/wanted-files.list)
   50.71 -			do
   50.72 -				cp -a ${install}$file ${fs}$file
   50.73 -			done
   50.74 -			get_locales "usr/share"
   50.75 +			cook_copy_files \
   50.76 +				ld-*.so*            ld.so*            \
   50.77 +				libanl-*.so*        libanl.so*        \
   50.78 +				libc-*.so*          libc.so*          \
   50.79 +				libcrypt-*.so*      libcrypt.so*      \
   50.80 +				libdl-*.so*         libdl.so*         \
   50.81 +				libm-*.so*          libm.so*          \
   50.82 +				libnsl-*.so*        libnsl.so*        \
   50.83 +				libnss_compat-*.so* libnss_compat.so* \
   50.84 +				libnss_dns-*.so*    libnss_dns.so*    \
   50.85 +				libnss_files-*.so*  libnss_files.so*  \
   50.86 +				libpthread-*.so*    libpthread.so*    \
   50.87 +				libresolv-*.so*     libresolv.so*     \
   50.88 +				librt-*.so*         librt.so*         \
   50.89 +				libthread_db-*.so*  libthread_db.so*  \
   50.90 +				libutil-*.so*       libutil.so*       \
   50.91 +				\
   50.92 +				UNICODE.so gconv-modules ANSI_X3.110.so ISO8859-1.so \
   50.93 +				ISO8859-15.so UTF-16.so CP1252.so IBM437.so IBM850.so \
   50.94 +				\
   50.95 +				i18n iso14651_t1 iso14651_t1_common translit_neutral \
   50.96 +				translit_combining translit_circle translit_cjk_compat \
   50.97 +				translit_compat translit_font translit_fraction translit_narrow \
   50.98 +				translit_small translit_wide \
   50.99 +				\
  50.100 +				locale localedef locale.alias UTF-8.gz UTC rpc \
  50.101 +				$DEFAULT_LOCALE
  50.102 +
  50.103 +#			# Copy all files specified in stuff/files.list. We get the files
  50.104 +#			# from glibc package.
  50.105 +#			for file in $(cat $stuff/wanted-files.list)
  50.106 +#			do
  50.107 +#				cp -a ${install}$file ${fs}$file
  50.108 +#			done
  50.109 +#			get_locales "usr/share"
  50.110  	esac
  50.111  }
  50.112  
    51.1 --- a/glibc-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
    51.2 +++ b/glibc-dev/receipt	Fri Dec 16 01:16:56 2016 +0200
    51.3 @@ -1,14 +1,14 @@
    51.4  # SliTaz package receipt.
    51.5  
    51.6  PACKAGE="glibc-dev"
    51.7 -VERSION="2.14.1"
    51.8 +VERSION="2.24"
    51.9  CATEGORY="development"
   51.10  SHORT_DESC="The GNU C libraries devel files (Part of SliTaz toolchain)."
   51.11  MAINTAINER="pankso@slitaz.org"
   51.12  LICENSE="GPL2"
   51.13 -WANTED="glibc"
   51.14  WEB_SITE="http://www.gnu.org/software/libc/"
   51.15  
   51.16 +WANTED="glibc"
   51.17  DEPENDS="glibc-base"
   51.18  
   51.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   51.20 @@ -17,26 +17,22 @@
   51.21  #
   51.22  genpkg_rules()
   51.23  {
   51.24 -    # Mass copy and then remove all files specified in stuff/base-files.list.
   51.25 -    # We get the files from glibc-base. Locale files are in: glibc-locale.
   51.26 -    cp -a $install/* $fs
   51.27 -    
   51.28 -    # Rm base files.
   51.29 -    echo -n "Removing all base files..."
   51.30 -    for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list`
   51.31 -    do
   51.32 -    	rm -f ${fs}$file
   51.33 -    done
   51.34 -    rm -rf $fs/etc
   51.35 -    rm -rf $fs/usr/share
   51.36 -    status
   51.37 -    
   51.38 -    # Rm locale.
   51.39 -    echo -n "Removing all locale files..."
   51.40 -    for file in `cat $WOK/glibc-locale/taz/glibc-locale-$VERSION/files.list`
   51.41 -    do
   51.42 -    	rm -f ${fs}$file
   51.43 -    done
   51.44 -    rm -rf $fs/usr/lib/gconv
   51.45 -    status
   51.46 +	# Mass copy and then remove all files specified in stuff/base-files.list.
   51.47 +	# We get the files from glibc-base. Locale files are in: glibc-locale.
   51.48 +	cp -a $install/* $fs
   51.49 +
   51.50 +	action "Removing all glibc-base files..."
   51.51 +	for file in $(cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list); do
   51.52 +		rm -f ${fs}$file
   51.53 +	done
   51.54 +	rm -rf $fs/etc
   51.55 +	rm -rf $fs/usr/share
   51.56 +	status
   51.57 +
   51.58 +	action "Removing all glibc-locale files..."
   51.59 +	for file in $(cat $WOK/glibc-locale/taz/glibc-locale-$VERSION/files.list); do
   51.60 +		rm -f ${fs}$file
   51.61 +	done
   51.62 +	rm -rf $fs/usr/lib/gconv
   51.63 +	status
   51.64  }
    52.1 --- a/glibc-locale/receipt	Wed Dec 14 21:23:06 2016 +0100
    52.2 +++ b/glibc-locale/receipt	Fri Dec 16 01:16:56 2016 +0200
    52.3 @@ -1,45 +1,36 @@
    52.4  # SliTaz package receipt.
    52.5  
    52.6  PACKAGE="glibc-locale"
    52.7 -VERSION="2.14.1"
    52.8 +VERSION="2.24"
    52.9  CATEGORY="system-tools"
   52.10  SHORT_DESC="The GNU C libraries locale files and utilities (see also locale-*)."
   52.11  MAINTAINER="pankso@slitaz.org"
   52.12  LICENSE="GPL2"
   52.13  WEB_SITE="http://www.gnu.org/software/libc/"
   52.14  
   52.15 +WANTED="glibc"
   52.16  DEPENDS="glibc-base"
   52.17 -WANTED="glibc"
   52.18 -
   52.19 -LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW"
   52.20 +BUILD_DEPENDS="slitaz-i18n"
   52.21  
   52.22  # Rules to gen a SliTaz package suitable for Tazpkg.
   52.23  genpkg_rules()
   52.24  {
   52.25 -	mkdir -p $fs/usr/share $fs/usr/lib $fs/usr/bin
   52.26 -
   52.27 -	cp -a $install/usr/lib/gconv $fs/usr/lib
   52.28 -	cp -a $install/usr/share/locale $fs/usr/share
   52.29 -	cp -a $install/usr/share/i18n $fs/usr/share
   52.30 -	cp -a $install/usr/share/zoneinfo $fs/usr/share
   52.31 -
   52.32 -	# Utilities and tools
   52.33 -	cp -a $install/usr/bin/iconv $fs/usr/bin
   52.34 -	cp -a $install/usr/bin/tzselect $fs/usr/bin
   52.35 +	cook_copy_folders gconv locale i18n
   52.36 +	cook_copy_files iconv tzselect
   52.37  
   52.38  	# Rm base files.
   52.39 -	echo -n "* Removing all base files..."
   52.40 -	for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list`
   52.41 -	do
   52.42 +	action "* Removing all base files..."
   52.43 +	for file in $(cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list); do
   52.44  		rm -f ${fs}$file
   52.45  	done
   52.46  	status
   52.47  
   52.48  	# Rm files provided by locale-pack.
   52.49 -	for i in $LOCALE_PACK
   52.50 -	do
   52.51 -		echo -n "* Removing locale: $i"
   52.52 +	. $WOK/slitaz-i18n/stuff/locale-pack.conf
   52.53 +	echo -n "* Removing locale: "
   52.54 +	for i in $LOCALE_PACK; do
   52.55 +		echo -n "$i "
   52.56  		rm -rf $fs/usr/share/locale/$i
   52.57 -		status
   52.58  	done
   52.59 +	status
   52.60  }
    53.1 --- a/glibc/receipt	Wed Dec 14 21:23:06 2016 +0100
    53.2 +++ b/glibc/receipt	Fri Dec 16 01:16:56 2016 +0200
    53.3 @@ -1,17 +1,19 @@
    53.4  # SliTaz package receipt.
    53.5  
    53.6  PACKAGE="glibc"
    53.7 -VERSION="2.14.1"
    53.8 +VERSION="2.24"
    53.9  CATEGORY="meta"
   53.10  SHORT_DESC="The GNU C libraries. This package is used to compile the libc."
   53.11  MAINTAINER="pankso@slitaz.org"
   53.12  LICENSE="GPL2"
   53.13 +WEB_SITE="http://www.gnu.org/software/libc/"
   53.14 +
   53.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
   53.16 -WEB_SITE="http://www.gnu.org/software/libc/"
   53.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   53.18  
   53.19  DEPENDS="glibc-base glibc-locale glibc-dev"
   53.20 -BUILD_DEPENDS="linux-api-headers autoconf bash advancecomp"
   53.21 +BUILD_DEPENDS="linux-api-headers autoconf bash advancecomp  \
   53.22 +gawk gettext-tools bison"
   53.23  
   53.24  # Genpkg order for tazwok.
   53.25  COOK_OPT="genpkg=glibc-base:glib-locale:glibc-dev"
   53.26 @@ -19,19 +21,14 @@
   53.27  # Rules to compile & install the temporary toolchain.
   53.28  cook_tmp_toolchain()
   53.29  {
   53.30 -	cd $src
   53.31 -	
   53.32 -	# Glibc Bug Fixes Patch from LFS
   53.33 -	patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch
   53.34 -	# Glibc Bug Sort Relocatable Objects Patch
   53.35 -	patch -Np1 -i $stuff/glibc-2.14.1-sort-1.patch
   53.36 -	# Fix a bug that prevents Glibc from building with GCC-4.6.2
   53.37 -	patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch
   53.38 -	# GHOST
   53.39 -	patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch
   53.40 -
   53.41 -	# Build in a separate directory.
   53.42 -	mkdir ../glibc-build && cd ../glibc-build
   53.43 +#	# Glibc Bug Fixes Patch from LFS
   53.44 +#	patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch
   53.45 +#	# Glibc Bug Sort Relocatable Objects Patch
   53.46 +#	patch -Np1 -i $stuff/glibc-2.14.1-sort-1.patch
   53.47 +#	# Fix a bug that prevents Glibc from building with GCC-4.6.2
   53.48 +#	patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch
   53.49 +#	# GHOST
   53.50 +#	patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch
   53.51  
   53.52  	# glibc no longer support i386, so use -march=i486 for better compatibility.
   53.53  	# If i686 ???
   53.54 @@ -43,14 +40,22 @@
   53.55  			echo "CFLAGS += -O2 -march=$ARCH -mtune=$ARCH" > configparms ;;
   53.56  	esac
   53.57  
   53.58 -	{ $src/configure \
   53.59 -		--host=$HOST_SYSTEM \
   53.60 -		--build=$($src/scripts/config.guess) \
   53.61 -		--disable-profile --enable-add-ons \
   53.62 -		--enable-kernel=2.6.30 --with-headers=/tools/include \
   53.63 -		libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes &&
   53.64 -	make -j1 &&
   53.65 -	make install
   53.66 +	{
   53.67 +		# Build in a separate directory.
   53.68 +		mkdir glibc-build
   53.69 +		cd    glibc-build
   53.70 +
   53.71 +		../configure \
   53.72 +			--host=$HOST_SYSTEM \
   53.73 +			--build=$($src/scripts/config.guess) \
   53.74 +			--disable-profile \
   53.75 +			--enable-add-ons \
   53.76 +			--enable-kernel=2.6.32 \
   53.77 +			--with-headers=/tools/include \
   53.78 +			libc_cv_forced_unwind=yes \
   53.79 +			libc_cv_c_cleanup=yes &&
   53.80 +		make -j1 &&
   53.81 +		make install
   53.82  	} || return 1
   53.83  
   53.84  	# Link compiler to this new glibc.
   53.85 @@ -64,49 +69,50 @@
   53.86  # Rules to configure and make the package.
   53.87  compile_rules()
   53.88  {
   53.89 -	# SliTaz is a Busybox based OS, why we so small and fast. Using gawk by
   53.90 -	# default to build package will not ensure package work with Busybox awk
   53.91 -	# and so should NOT be use to cook.
   53.92 -	if [ -x /usr/bin/cook ]; then
   53.93 -		[ -d "/var/lib/tazpkg/installed/gawk" ] || tazpkg get-install gawk
   53.94 -	fi
   53.95 +#	# SliTaz is a Busybox based OS, why we so small and fast. Using gawk by
   53.96 +#	# default to build package will not ensure package work with Busybox awk
   53.97 +#	# and so should NOT be use to cook.
   53.98 +#	if [ -x /usr/bin/cook ]; then
   53.99 +#		[ -d "/var/lib/tazpkg/installed/gawk" ] || tazpkg get-install gawk
  53.100 +#	fi
  53.101  
  53.102 -	# Make 4.x support...
  53.103 -	sed -i 's/3\.79/4.* | &/' configure*
  53.104 -	# Fixes and patches from LFS, Redhat
  53.105 -	sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl
  53.106 -	sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
  53.107 +#	# Make 4.x support...
  53.108 +#	sed -i 's/3\.79/4.* | &/' configure*
  53.109 +#	# Fixes and patches from LFS, Redhat
  53.110 +#	sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl
  53.111 +#	sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
  53.112  
  53.113 -	# Glibc misc Bug Fixes
  53.114 -	patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch
  53.115 -	
  53.116 -	# Glibc Bug Sort Relocatable Objects Patch
  53.117 -	#patch -Np1 -i $stuff/glibc-2.14.1-sort-1.patch
  53.118 -	
  53.119 -	# Fix a bug that prevents Glibc from building with GCC-4.6.2
  53.120 -	patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch
  53.121 -	
  53.122 -	# Revert commit causing issues with crappy DNS servers
  53.123 -	patch -Np1 -i $stuff/glibc-2.14-revert-4768ae77.patch
  53.124 -	
  53.125 -	# re-export RPC interface until libtirpc is ready as a replacement
  53.126 -	# http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=acee4873 (only fedora branch...)
  53.127 -	patch -Np1 -i $stuff/glibc-2.14-reexport-rpc-interface.patch
  53.128 -	# http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=bdd816a3 (only fedora branch...)
  53.129 -	patch -Np1 -i $stuff/glibc-2.14-reinstall-nis-rpc-headers.patch
  53.130 -	# GHOST
  53.131 -	patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch
  53.132 +#	# Glibc misc Bug Fixes
  53.133 +#	patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch
  53.134  
  53.135 -	# Fix a stack imbalance that occurs under some conditions:
  53.136 -	sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
  53.137 -		nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S \
  53.138 -		nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  53.139 +#	# Glibc Bug Sort Relocatable Objects Patch
  53.140 +#	#patch -Np1 -i $stuff/glibc-2.14.1-sort-1.patch
  53.141 +
  53.142 +#	# Fix a bug that prevents Glibc from building with GCC-4.6.2
  53.143 +#	patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch
  53.144 +
  53.145 +#	# Revert commit causing issues with crappy DNS servers
  53.146 +#	patch -Np1 -i $stuff/glibc-2.14-revert-4768ae77.patch
  53.147 +
  53.148 +#	# re-export RPC interface until libtirpc is ready as a replacement
  53.149 +#	# http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=acee4873 (only fedora branch...)
  53.150 +#	patch -Np1 -i $stuff/glibc-2.14-reexport-rpc-interface.patch
  53.151 +#	# http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=bdd816a3 (only fedora branch...)
  53.152 +#	patch -Np1 -i $stuff/glibc-2.14-reinstall-nis-rpc-headers.patch
  53.153 +#	# GHOST
  53.154 +#	patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch
  53.155 +
  53.156 +#	# Fix a stack imbalance that occurs under some conditions:
  53.157 +#	sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
  53.158 +#		nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S \
  53.159 +#		nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  53.160  
  53.161  	# Glibc needs ld.so.conf in the install destdir.
  53.162  	mkdir -p $WOK/$PACKAGE/install/etc
  53.163 -	touch $WOK/$PACKAGE/install/etc/ld.so.conf
  53.164 -	mkdir ../glibc-build && cd ../glibc-build
  53.165 -	
  53.166 +	touch    $WOK/$PACKAGE/install/etc/ld.so.conf
  53.167 +
  53.168 +#	mkdir ../glibc-build && cd ../glibc-build
  53.169 +
  53.170  	# Read the INSTALL file in glibc. Also Glibc dont build with -Os flag.
  53.171  	# --enale-kernel use latest SliTaz Kernel version. From Glibc INSTALL:
  53.172  	# "The higher the VERSION number is, the less compatibility code is
  53.173 @@ -118,16 +124,24 @@
  53.174  		*)
  53.175  			echo "CFLAGS += -O2 -march=$ARCH -mtune=$ARCH" > configparms ;;
  53.176  	esac
  53.177 -	{ $src/configure \
  53.178 -		--disable-profile \
  53.179 -		--enable-add-ons \
  53.180 -		--enable-kernel=2.6.30 \
  53.181 -		--libexecdir=/usr/lib/glibc \
  53.182 -		--build=$HOST_SYSTEM \
  53.183 -		--host=$HOST_SYSTEM \
  53.184 -		--target=$BUILD_SYSTEM &&
  53.185 -	make -j1 && make install_root=$DESTDIR install
  53.186 +
  53.187 +	# Glibc FHS Patch - LFS 7.10
  53.188 +	patch -p1 -i $stuff/glibc-2.24-fhs-1.patch
  53.189 +
  53.190 +	{
  53.191 +		mkdir build
  53.192 +		cd    build
  53.193 +		$src/configure \
  53.194 +			--disable-profile \
  53.195 +			--enable-add-ons \
  53.196 +			--enable-kernel=2.6.32 \
  53.197 +			--libexecdir=/usr/lib/glibc \
  53.198 +			--build=$HOST_SYSTEM \
  53.199 +			--host=$HOST_SYSTEM \
  53.200 +			--target=$BUILD_SYSTEM &&
  53.201 +		make -j1 && make install_root=$DESTDIR install
  53.202  	} || return 1
  53.203 +
  53.204  	for i in $DESTDIR/usr/share/i18n/charmaps/*.gz ; do
  53.205  		advdef -z4 $i
  53.206  	done
  53.207 @@ -150,10 +164,10 @@
  53.208  	LOCALE=""
  53.209  	mkdir -p $fs/var
  53.210  
  53.211 -	# Remove build directory.
  53.212 -	rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
  53.213 -	rm -rf $WOK/$PACKAGE/$PACKAGE-build
  53.214 +#	# Remove build directory.
  53.215 +#	rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
  53.216 +#	rm -rf $WOK/$PACKAGE/$PACKAGE-build
  53.217  
  53.218  	# check install
  53.219 -	ls $install/lib/
  53.220 +	ls $install/lib/ | tr '\n' ' ' | fold -s
  53.221  }
    54.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    54.2 +++ b/glibc/stuff/glibc-2.24-fhs-1.patch	Fri Dec 16 01:16:56 2016 +0200
    54.3 @@ -0,0 +1,72 @@
    54.4 +Submitted By:            Armin K. <krejzi at email dot com>
    54.5 +Date:                    2013-02-11
    54.6 +Initial Package Version: 2.17
    54.7 +Upstream Status:         Not Applicable
    54.8 +Origin:                  Self
    54.9 +Description:             This patch removes references to /var/db directory which is not part
   54.10 +                         of FHS and replaces them with more suitable directories in /var
   54.11 +                         hierarchy - /var/cache/nscd for nscd and /var/lib/nss_db for nss_db.
   54.12 +
   54.13 +--- a/Makeconfig	2012-12-25 04:02:13.000000000 +0100
   54.14 ++++ b/Makeconfig	2013-02-11 01:32:32.500667439 +0100
   54.15 +@@ -250,7 +250,7 @@
   54.16 + 
   54.17 + # Directory for the database files and Makefile for nss_db.
   54.18 + ifndef vardbdir
   54.19 +-vardbdir = $(localstatedir)/db
   54.20 ++vardbdir = $(localstatedir)/lib/nss_db
   54.21 + endif
   54.22 + inst_vardbdir = $(install_root)$(vardbdir)
   54.23 + 
   54.24 +--- a/nscd/nscd.h	2012-12-25 04:02:13.000000000 +0100
   54.25 ++++ b/nscd/nscd.h	2013-02-11 01:32:32.500667439 +0100
   54.26 +@@ -112,11 +112,11 @@
   54.27 + 
   54.28 + 
   54.29 + /* Paths of the file for the persistent storage.  */
   54.30 +-#define _PATH_NSCD_PASSWD_DB	"/var/db/nscd/passwd"
   54.31 +-#define _PATH_NSCD_GROUP_DB	"/var/db/nscd/group"
   54.32 +-#define _PATH_NSCD_HOSTS_DB	"/var/db/nscd/hosts"
   54.33 +-#define _PATH_NSCD_SERVICES_DB	"/var/db/nscd/services"
   54.34 +-#define _PATH_NSCD_NETGROUP_DB	"/var/db/nscd/netgroup"
   54.35 ++#define _PATH_NSCD_PASSWD_DB	"/var/cache/nscd/passwd"
   54.36 ++#define _PATH_NSCD_GROUP_DB	"/var/cache/nscd/group"
   54.37 ++#define _PATH_NSCD_HOSTS_DB	"/var/cache/nscd/hosts"
   54.38 ++#define _PATH_NSCD_SERVICES_DB	"/var/cache/nscd/services"
   54.39 ++#define _PATH_NSCD_NETGROUP_DB	"/var/cache/nscd/netgroup"
   54.40 + 
   54.41 + /* Path used when not using persistent storage.  */
   54.42 + #define _PATH_NSCD_XYZ_DB_TMP	"/var/run/nscd/dbXXXXXX"
   54.43 +--- a/nss/db-Makefile	2012-12-25 04:02:13.000000000 +0100
   54.44 ++++ b/nss/db-Makefile	2013-02-11 01:32:32.500667439 +0100
   54.45 +@@ -22,7 +22,7 @@
   54.46 + 		       /etc/rpc /etc/services /etc/shadow /etc/gshadow \
   54.47 + 		       /etc/netgroup)
   54.48 + 
   54.49 +-VAR_DB = /var/db
   54.50 ++VAR_DB = /var/lib/nss_db
   54.51 + 
   54.52 + AWK = awk
   54.53 + MAKEDB = makedb --quiet
   54.54 +--- a/sysdeps/generic/paths.h	2012-12-25 04:02:13.000000000 +0100
   54.55 ++++ b/sysdeps/generic/paths.h	2013-02-11 01:32:32.500667439 +0100
   54.56 +@@ -68,7 +68,7 @@
   54.57 + /* Provide trailing slash, since mostly used for building pathnames. */
   54.58 + #define	_PATH_DEV	"/dev/"
   54.59 + #define	_PATH_TMP	"/tmp/"
   54.60 +-#define	_PATH_VARDB	"/var/db/"
   54.61 ++#define	_PATH_VARDB	"/var/lib/nss_db/"
   54.62 + #define	_PATH_VARRUN	"/var/run/"
   54.63 + #define	_PATH_VARTMP	"/var/tmp/"
   54.64 + 
   54.65 +--- a/sysdeps/unix/sysv/linux/paths.h	2012-12-25 04:02:13.000000000 +0100
   54.66 ++++ b/sysdeps/unix/sysv/linux/paths.h	2013-02-11 01:32:32.504000831 +0100
   54.67 +@@ -68,7 +68,7 @@
   54.68 + /* Provide trailing slash, since mostly used for building pathnames. */
   54.69 + #define	_PATH_DEV	"/dev/"
   54.70 + #define	_PATH_TMP	"/tmp/"
   54.71 +-#define	_PATH_VARDB	"/var/db/"
   54.72 ++#define	_PATH_VARDB	"/var/lib/nss_db/"
   54.73 + #define	_PATH_VARRUN	"/var/run/"
   54.74 + #define	_PATH_VARTMP	"/var/tmp/"
   54.75 + 
    55.1 --- a/libform/receipt	Wed Dec 14 21:23:06 2016 +0100
    55.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    55.3 @@ -1,20 +0,0 @@
    55.4 -# SliTaz package receipt.
    55.5 -
    55.6 -PACKAGE="libform"
    55.7 -VERSION="5.9"
    55.8 -CATEGORY="development"
    55.9 -SHORT_DESC="Curses extension for programming forms"
   55.10 -MAINTAINER="al.bobylev@gmail.com"
   55.11 -LICENSE="MIT"
   55.12 -WEB_SITE="http://invisible-island.net/ncurses/"
   55.13 -HOST_ARCH="i486 arm"
   55.14 -
   55.15 -DEPENDS="ncurses libtinfo"
   55.16 -WANTED="ncurses"
   55.17 -
   55.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   55.19 -genpkg_rules()
   55.20 -{
   55.21 -	mkdir -p $fs/lib
   55.22 -	cp -a $install/lib/libform.so* $fs/lib
   55.23 -}
    56.1 --- a/libgfortran/receipt	Wed Dec 14 21:23:06 2016 +0100
    56.2 +++ b/libgfortran/receipt	Fri Dec 16 01:16:56 2016 +0200
    56.3 @@ -1,12 +1,13 @@
    56.4  # SliTaz package receipt.
    56.5  
    56.6  PACKAGE="libgfortran"
    56.7 -VERSION="4.6.3"
    56.8 +VERSION="6.2.0"
    56.9  CATEGORY="misc"
   56.10  SHORT_DESC="GCC fortran runtime."
   56.11  WEB_SITE="http://gcc.gnu.org/"
   56.12  MAINTAINER="pascal.bellard@slitaz.org"
   56.13  LICENSE="GPL2"
   56.14 +
   56.15  WANTED="gcc"
   56.16  
   56.17  # Rules to gen a SliTaz package suitable for Tazpkg.
    57.1 --- a/libgomp/receipt	Wed Dec 14 21:23:06 2016 +0100
    57.2 +++ b/libgomp/receipt	Fri Dec 16 01:16:56 2016 +0200
    57.3 @@ -1,17 +1,18 @@
    57.4  # SliTaz package receipt.
    57.5  
    57.6  PACKAGE="libgomp"
    57.7 -VERSION="4.6.3"
    57.8 +VERSION="6.2.0"
    57.9  CATEGORY="development"
   57.10  SHORT_DESC="API specification for parallel programming."
   57.11  MAINTAINER="pascal.bellard@slitaz.org"
   57.12  LICENSE="GPL2"
   57.13  WEB_SITE="http://gcc.gnu.org/"
   57.14 +
   57.15  WANTED="gcc"
   57.16  
   57.17  # Rules to gen a SliTaz package suitable for Tazpkg.
   57.18  genpkg_rules()
   57.19  {
   57.20 -    mkdir -p  $fs/usr/lib
   57.21 -    cp -a $install/usr/lib/libgomp.so* $fs/usr/lib
   57.22 +	mkdir -p  $fs/usr/lib
   57.23 +	cp -a $install/usr/lib/libgomp.so* $fs/usr/lib
   57.24  }
    58.1 --- a/libmagic-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
    58.2 +++ b/libmagic-dev/receipt	Fri Dec 16 01:16:56 2016 +0200
    58.3 @@ -1,22 +1,19 @@
    58.4  # SliTaz package receipt.
    58.5  
    58.6  PACKAGE="libmagic-dev"
    58.7 -VERSION="5.24"
    58.8 +VERSION="5.28"
    58.9  CATEGORY="development"
   58.10  SHORT_DESC="File type determination library using 'magic' numbers (development)"
   58.11  MAINTAINER="erjo@slitaz.org"
   58.12  LICENSE="BSD"
   58.13  WEB_SITE="http://www.darwinsys.com/file/"
   58.14 -WANTED="file"
   58.15  HOST_ARCH="i486 arm"
   58.16  
   58.17 +WANTED="file"
   58.18  DEPENDS="libmagic"
   58.19  
   58.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   58.21  genpkg_rules()
   58.22  {
   58.23 -	mkdir -p $fs/usr/lib
   58.24 -	cp -a $install/usr/lib/*.la $fs/usr/lib
   58.25 -	cp -a $install/usr/include $fs/usr
   58.26 +	cook_copy_files *.h *.la
   58.27  }
   58.28 -
    59.1 --- a/libmagic/receipt	Wed Dec 14 21:23:06 2016 +0100
    59.2 +++ b/libmagic/receipt	Fri Dec 16 01:16:56 2016 +0200
    59.3 @@ -1,20 +1,19 @@
    59.4  # SliTaz package receipt.
    59.5  
    59.6  PACKAGE="libmagic"
    59.7 -VERSION="5.24"
    59.8 +VERSION="5.28"
    59.9  CATEGORY="system-tools"
   59.10  SHORT_DESC="File type determination library using 'magic' numbers"
   59.11  MAINTAINER="erjo@slitaz.org"
   59.12  LICENSE="BSD"
   59.13  WEB_SITE="http://www.darwinsys.com/file/"
   59.14 -WANTED="file"
   59.15  HOST_ARCH="i486 arm"
   59.16  
   59.17 +WANTED="file"
   59.18  DEPENDS="zlib"
   59.19  
   59.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   59.21  genpkg_rules()
   59.22  {
   59.23 -	mkdir -p $fs/usr/lib
   59.24 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
   59.25 +	cook_copy_files *.so*
   59.26  }
    60.1 --- a/libmenu/receipt	Wed Dec 14 21:23:06 2016 +0100
    60.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    60.3 @@ -1,20 +0,0 @@
    60.4 -# SliTaz package receipt.
    60.5 -
    60.6 -PACKAGE="libmenu"
    60.7 -VERSION="5.9"
    60.8 -CATEGORY="development"
    60.9 -SHORT_DESC="Curses extension for programming menus"
   60.10 -MAINTAINER="al.bobylev@gmail.com"
   60.11 -LICENSE="MIT"
   60.12 -WEB_SITE="http://invisible-island.net/ncurses/"
   60.13 -HOST_ARCH="i486 arm"
   60.14 -
   60.15 -DEPENDS="ncurses libtinfo"
   60.16 -WANTED="ncurses"
   60.17 -
   60.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   60.19 -genpkg_rules()
   60.20 -{
   60.21 -	mkdir -p $fs/lib
   60.22 -	cp -a $install/lib/libmenu.so* $fs/lib
   60.23 -}
    61.1 --- a/libobjc/receipt	Wed Dec 14 21:23:06 2016 +0100
    61.2 +++ b/libobjc/receipt	Fri Dec 16 01:16:56 2016 +0200
    61.3 @@ -1,12 +1,13 @@
    61.4  # SliTaz package receipt.
    61.5  
    61.6  PACKAGE="libobjc"
    61.7 -VERSION="4.6.3"
    61.8 +VERSION="6.2.0"
    61.9  CATEGORY="development"
   61.10  SHORT_DESC="API for gcc object"
   61.11  MAINTAINER="slaxemulator@gmail.com"
   61.12  LICENSE="GPL2"
   61.13  WEB_SITE="http://gcc.gnu.org/"
   61.14 +
   61.15  DEPENDS="gcc-lib-base"
   61.16  WANTED="gcc"
   61.17  
   61.18 @@ -16,4 +17,3 @@
   61.19  	mkdir -p $fs/usr/lib
   61.20  	cp -a $install/usr/lib/libobjc.so* $fs/usr/lib
   61.21  }
   61.22 -
    62.1 --- a/libpanel/description.txt	Wed Dec 14 21:23:06 2016 +0100
    62.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    62.3 @@ -1,8 +0,0 @@
    62.4 -libpanel - panel stack extension for curses
    62.5 -
    62.6 -Panels are **curses** windows with the added feature of depth. Panel functions
    62.7 -allow the use of stacked windows and ensure the proper portions of each window
    62.8 -and the curses **stdscr** window are hidden or displayed when panels are added,
    62.9 -moved, modified or removed. The set of currently visible panels is the stack of
   62.10 -panels. The **stdscr** window is beneath all panels, and is not considered part
   62.11 -of the stack.
    63.1 --- a/libpanel/receipt	Wed Dec 14 21:23:06 2016 +0100
    63.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    63.3 @@ -1,20 +0,0 @@
    63.4 -# SliTaz package receipt.
    63.5 -
    63.6 -PACKAGE="libpanel"
    63.7 -VERSION="5.9"
    63.8 -CATEGORY="development"
    63.9 -SHORT_DESC="Panel stack extension for curses"
   63.10 -MAINTAINER="al.bobylev@gmail.com"
   63.11 -LICENSE="MIT"
   63.12 -WEB_SITE="http://invisible-island.net/ncurses/"
   63.13 -HOST_ARCH="i486 arm"
   63.14 -
   63.15 -DEPENDS="ncurses libtinfo"
   63.16 -WANTED="ncurses"
   63.17 -
   63.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   63.19 -genpkg_rules()
   63.20 -{
   63.21 -	mkdir -p $fs/lib
   63.22 -	cp -a $install/lib/libpanel.so* $fs/lib
   63.23 -}
    64.1 --- a/linux-api-headers/receipt	Wed Dec 14 21:23:06 2016 +0100
    64.2 +++ b/linux-api-headers/receipt	Fri Dec 16 01:16:56 2016 +0200
    64.3 @@ -1,23 +1,24 @@
    64.4  # SliTaz package receipt.
    64.5  
    64.6  PACKAGE="linux-api-headers"
    64.7 -VERSION="3.2.71"
    64.8 -KBASEVER="${VERSION:0:3}"
    64.9 +VERSION="4.7.2"
   64.10 +#KBASEVER="${VERSION:0:3}"
   64.11  CATEGORY="development"
   64.12  SHORT_DESC="Kernel headers sanitized for use in userspace."
   64.13  MAINTAINER="devel@slitaz.org"
   64.14  LICENSE="GPL2"
   64.15  SOURCE="linux"
   64.16 -TARBALL="$SOURCE-$KBASEVER.tar.xz"
   64.17 -WEB_SITE="http://www.kernel.org/"
   64.18 -WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
   64.19 +WEB_SITE="https://www.kernel.org/"
   64.20 +
   64.21 +TARBALL="$SOURCE-$VERSION.tar.xz"
   64.22 +WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
   64.23 +
   64.24  PROVIDE="linux-headers linux64-api-headers linux64-headers"
   64.25 +BUILD_DEPENDS="bash libtinfo"
   64.26  
   64.27 -BUILD_DEPENDS="bash wget"
   64.28 -
   64.29 -[ "$KBASEVER" != "$VERSION" ] && 
   64.30 -PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
   64.31 -EXTRA_SOURCE_FILES="$(basename $PATCH)"
   64.32 +#[ "$KBASEVER" != "$VERSION" ] &&
   64.33 +#PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
   64.34 +#EXTRA_SOURCE_FILES="$(basename $PATCH)"
   64.35  
   64.36  # Rules to compile & install the temporary toolchain.
   64.37  cook_tmp_toolchain()
   64.38 @@ -32,14 +33,14 @@
   64.39  # Rules to configure and make the package.
   64.40  compile_rules()
   64.41  {
   64.42 -	cd $src
   64.43 -	
   64.44 -	if [ "$KBASEVER" != "$VERSION" ]; then
   64.45 -		[ -s $SRC/$(basename $PATCH) ] ||
   64.46 -		wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
   64.47 -		xzcat $SRC/$(basename $PATCH) | patch -Np1
   64.48 -		touch done.patch-$VERSION
   64.49 -	fi
   64.50 +#	cd $src
   64.51 +#	
   64.52 +#	if [ "$KBASEVER" != "$VERSION" ]; then
   64.53 +#		[ -s $SRC/$(basename $PATCH) ] ||
   64.54 +#		wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
   64.55 +#		xzcat $SRC/$(basename $PATCH) | patch -Np1
   64.56 +#		touch done.patch-$VERSION
   64.57 +#	fi
   64.58  
   64.59  	make mrproper &&
   64.60  	make headers_check &&
    65.1 --- a/ncurses-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
    65.2 +++ b/ncurses-dev/receipt	Fri Dec 16 01:16:56 2016 +0200
    65.3 @@ -1,24 +1,19 @@
    65.4  # SliTaz package receipt.
    65.5  
    65.6  PACKAGE="ncurses-dev"
    65.7 -VERSION="5.9"
    65.8 +VERSION="6.0"
    65.9  CATEGORY="development"
   65.10 -SHORT_DESC="Devel files for the ncurses library."
   65.11 +SHORT_DESC="Library of functions to manage display on terminals (development files)"
   65.12  MAINTAINER="pankso@slitaz.org"
   65.13  LICENSE="MIT"
   65.14 -WANTED="ncurses"
   65.15 -WEB_SITE="http://invisible-island.net/ncurses/"
   65.16 +WEB_SITE="https://www.gnu.org/software/ncurses/"
   65.17  HOST_ARCH="i486 arm"
   65.18  
   65.19 -DEPENDS="ncursesw-dev ncurses libtinfo"
   65.20 +WANTED="ncurses"
   65.21 +DEPENDS="ncurses ncurses-extra ncurses-libform ncurses-libmenu ncurses-libpanel"
   65.22  
   65.23  # Rules to gen a SliTaz package suitable for Tazpkg.
   65.24  genpkg_rules()
   65.25  {
   65.26 -	mkdir -p $fs/lib $fs/usr/bin $fs/usr/lib
   65.27 -	cp -a $install/lib/*.a $fs/lib
   65.28 -	# Use include file from ncursesw-dev
   65.29 -	#cp -a $install/usr/include $fs/usr
   65.30 -	cp $install/usr/bin/ncurses5-config $fs/usr/bin
   65.31 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   65.32 +	cook_copy_files ncursesw6-config *.h *.a *.pc
   65.33  }
    66.1 --- a/ncurses-extra/receipt	Wed Dec 14 21:23:06 2016 +0100
    66.2 +++ b/ncurses-extra/receipt	Fri Dec 16 01:16:56 2016 +0200
    66.3 @@ -1,30 +1,23 @@
    66.4  # SliTaz package receipt.
    66.5  
    66.6  PACKAGE="ncurses-extra"
    66.7 -VERSION="5.9"
    66.8 +VERSION="6.0"
    66.9  CATEGORY="base-system"
   66.10  SHORT_DESC="Extra files for the ncurses library."
   66.11  MAINTAINER="pascal.bellard@slitaz.org"
   66.12  LICENSE="MIT"
   66.13 +WEB_SITE="http://invisible-island.net/ncurses/"
   66.14 +HOST_ARCH="i486 arm"
   66.15 +
   66.16  WANTED="ncurses"
   66.17 -WEB_SITE="http://invisible-island.net/ncurses/"
   66.18 -
   66.19  DEPENDS="ncurses"
   66.20 +BUILD_DEPENDS="ncurses-dev"
   66.21  
   66.22  # Rules to gen a SliTaz package suitable for Tazpkg.
   66.23  genpkg_rules()
   66.24  {
   66.25 -	mkdir -p $fs/usr/share
   66.26 -	# Binaries are provided by ncursesw-extra, we use UTF-8 by default.
   66.27 -	#cp -a $install/usr/bin $fs/usr
   66.28 -	#chmod 755 $fs/usr/bin/*
   66.29 -	cp -a $install/usr/share/terminfo $fs/usr/share
   66.30 -	# Remove already provided by other packages
   66.31 -	#rm -f $fs/usr/bin/ncurses5-config
   66.32 -	[ -d $WOK/ncurses-common/taz ] || tazwok genpkg ncurses-common
   66.33 -	for i in $(cd $fs ; find -type f); do
   66.34 -		[ -f $WOK/ncurses-common/taz/ncurses-common-$VERSION/fs/$i ] || continue
   66.35 -		rm -f $fs/$i
   66.36 -		rmdir $(dirname $fs/$i) 2> /dev/null
   66.37 -	done
   66.38 +	cook_copy_folders bin terminfo
   66.39 +
   66.40 +	# Split ncurses package
   66.41 +	cook_split_rm ncurses ncurses-dev
   66.42  }
    67.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    67.2 +++ b/ncurses-libform/receipt	Fri Dec 16 01:16:56 2016 +0200
    67.3 @@ -0,0 +1,19 @@
    67.4 +# SliTaz package receipt.
    67.5 +
    67.6 +PACKAGE="ncurses-libform"
    67.7 +VERSION="6.0"
    67.8 +CATEGORY="libs"
    67.9 +SHORT_DESC="Curses extension for programming forms"
   67.10 +MAINTAINER="al.bobylev@gmail.com"
   67.11 +LICENSE="MIT"
   67.12 +WEB_SITE="https://www.gnu.org/software/ncurses/"
   67.13 +HOST_ARCH="i486 arm"
   67.14 +
   67.15 +DEPENDS="ncurses libtinfo"
   67.16 +WANTED="ncurses"
   67.17 +
   67.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
   67.19 +genpkg_rules()
   67.20 +{
   67.21 +	cook_copy_files libformw.so*
   67.22 +}
    68.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    68.2 +++ b/ncurses-libmenu/receipt	Fri Dec 16 01:16:56 2016 +0200
    68.3 @@ -0,0 +1,19 @@
    68.4 +# SliTaz package receipt.
    68.5 +
    68.6 +PACKAGE="ncurses-libmenu"
    68.7 +VERSION="6.0"
    68.8 +CATEGORY="libs"
    68.9 +SHORT_DESC="Curses extension for programming menus"
   68.10 +MAINTAINER="al.bobylev@gmail.com"
   68.11 +LICENSE="MIT"
   68.12 +WEB_SITE="https://www.gnu.org/software/ncurses/"
   68.13 +HOST_ARCH="i486 arm"
   68.14 +
   68.15 +DEPENDS="ncurses libtinfo"
   68.16 +WANTED="ncurses"
   68.17 +
   68.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
   68.19 +genpkg_rules()
   68.20 +{
   68.21 +	cook_copy_files libmenuw.so*
   68.22 +}
    69.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    69.2 +++ b/ncurses-libpanel/description.txt	Fri Dec 16 01:16:56 2016 +0200
    69.3 @@ -0,0 +1,8 @@
    69.4 +libpanel - panel stack extension for curses
    69.5 +
    69.6 +Panels are **curses** windows with the added feature of depth. Panel functions
    69.7 +allow the use of stacked windows and ensure the proper portions of each window
    69.8 +and the curses **stdscr** window are hidden or displayed when panels are added,
    69.9 +moved, modified or removed. The set of currently visible panels is the stack of
   69.10 +panels. The **stdscr** window is beneath all panels, and is not considered part
   69.11 +of the stack.
    70.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    70.2 +++ b/ncurses-libpanel/receipt	Fri Dec 16 01:16:56 2016 +0200
    70.3 @@ -0,0 +1,19 @@
    70.4 +# SliTaz package receipt.
    70.5 +
    70.6 +PACKAGE="ncurses-libpanel"
    70.7 +VERSION="6.0"
    70.8 +CATEGORY="libs"
    70.9 +SHORT_DESC="Panel stack extension for curses"
   70.10 +MAINTAINER="al.bobylev@gmail.com"
   70.11 +LICENSE="MIT"
   70.12 +WEB_SITE="https://www.gnu.org/software/ncurses/"
   70.13 +HOST_ARCH="i486 arm"
   70.14 +
   70.15 +DEPENDS="ncurses libtinfo"
   70.16 +WANTED="ncurses"
   70.17 +
   70.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
   70.19 +genpkg_rules()
   70.20 +{
   70.21 +	cook_copy_files libpanelw.so*
   70.22 +}
    71.1 --- a/ncurses-man/receipt	Wed Dec 14 21:23:06 2016 +0100
    71.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    71.3 @@ -1,17 +0,0 @@
    71.4 -# SliTaz package receipt.
    71.5 -
    71.6 -PACKAGE="ncurses-man"
    71.7 -VERSION="5.9"
    71.8 -CATEGORY="development"
    71.9 -SHORT_DESC="Manual pages for the ncurses library."
   71.10 -MAINTAINER="pascal.bellard@slitaz.org"
   71.11 -LICENSE="MIT"
   71.12 -WANTED="ncurses"
   71.13 -WEB_SITE="http://invisible-island.net/ncurses/"
   71.14 -
   71.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   71.16 -genpkg_rules()
   71.17 -{
   71.18 -	mkdir -p $fs/usr/share
   71.19 -	cp -a $install/usr/share/man $fs/usr/share
   71.20 -}
    72.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    72.2 +++ b/ncurses/description.txt	Fri Dec 16 01:16:56 2016 +0200
    72.3 @@ -0,0 +1,9 @@
    72.4 +The ncurses library routines are a terminal-independent method of updating
    72.5 +character screens with reasonable optimization.
    72.6 +
    72.7 +This package contains:
    72.8 +
    72.9 +  * `tset` (and `reset`) - terminal initialization utility
   72.10 +  * `clear` - clears the terminal's screen
   72.11 +  * `libncursesw.so` - shared library for terminal handling
   72.12 +  * tabset and terminfo for common terminals
    73.1 --- a/ncurses/receipt	Wed Dec 14 21:23:06 2016 +0100
    73.2 +++ b/ncurses/receipt	Fri Dec 16 01:16:56 2016 +0200
    73.3 @@ -1,48 +1,47 @@
    73.4  # SliTaz package receipt.
    73.5  
    73.6  PACKAGE="ncurses"
    73.7 -VERSION="5.9"
    73.8 +VERSION="6.0"
    73.9  CATEGORY="base-system"
   73.10  SHORT_DESC="Library of functions to manage display on terminals."
   73.11  MAINTAINER="pankso@slitaz.org"
   73.12 +LICENSE="MIT"
   73.13 +WEB_SITE="https://www.gnu.org/software/ncurses/"
   73.14 +
   73.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
   73.16 -LICENSE="MIT"
   73.17 -WEB_SITE="http://invisible-island.net/ncurses/"
   73.18 -WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
   73.19 +WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL"
   73.20  HOST_ARCH="i486 arm"
   73.21  
   73.22 -DEPENDS="ncurses-common libtinfo libtic"
   73.23 -BUILD_DEPENDS=""
   73.24 -SPLIT="ncurses-common ncurses-extra ncurses-dev ncurses-man libform libmenu \
   73.25 -libpanel libtic libtinfo"
   73.26 +DEPENDS=""
   73.27 +BUILD_DEPENDS="flex"
   73.28 +SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra"
   73.29 +
   73.30 +case "$ARCH" in
   73.31 +	arm) BUILD_DEPENDS="" ;;
   73.32 +esac
   73.33  
   73.34  # Rules to configure and make the package.
   73.35  compile_rules()
   73.36  {
   73.37 -	# Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
   73.38 -	# when cross compiling we can't use the freshly cooked binary. See cook log:
   73.39 -	#
   73.40 -	#** Building terminfo database, please wait...
   73.41 -	#Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
   73.42 -	#
   73.43 -	if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
   73.44 -		echo "Installing: ncursesw-extra"
   73.45 -		tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
   73.46 -	fi
   73.47 -	cd $src
   73.48 -	mkdir -p $DESTDIR/usr/lib/terminfo
   73.49 -	sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
   73.50 -		include/Makefile.in
   73.51 +#	# Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
   73.52 +#	# when cross compiling we can't use the freshly cooked binary. See cook log:
   73.53 +#	#
   73.54 +#	#** Building terminfo database, please wait...
   73.55 +#	#Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
   73.56 +#	#
   73.57 +#	if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
   73.58 +#		echo "Installing: ncursesw-extra"
   73.59 +#		tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
   73.60 +#	fi
   73.61 +
   73.62  	./configure \
   73.63 -		--libdir=/lib \
   73.64 -		--sysconfdir=/etc \
   73.65  		--with-shared \
   73.66  		--without-debug \
   73.67  		--without-ada \
   73.68 +		--enable-widec \
   73.69  		--with-build-cc="gcc -D_GNU_SOURCE" \
   73.70 -		--with-termlib \
   73.71 -		--with-ticlib \
   73.72  		--enable-pc-files \
   73.73 +		--with-pkg-config-libdir=/usr/lib/pkgconfig \
   73.74  		$CONFIGURE_ARGS &&
   73.75  	make && make install
   73.76  }
   73.77 @@ -50,6 +49,20 @@
   73.78  # Rules to gen a SliTaz package suitable for Tazpkg.
   73.79  genpkg_rules()
   73.80  {
   73.81 -    mkdir -p $fs/lib
   73.82 -    cp -a $install/lib/libncurses.so* $fs/lib
   73.83 +	# binaries and library
   73.84 +	cook_copy_files clear tset reset libncursesw.so*
   73.85 +
   73.86 +	# tabset
   73.87 +	cook_copy_folders tabset
   73.88 +
   73.89 +	# terminfo
   73.90 +	cook_copy_files ansi linux rxvt vt100 vt102* xterm xterm-256color \
   73.91 +		xterm-color xterm-new xterm-vt220
   73.92  }
   73.93 +
   73.94 +post_remove()
   73.95 +{
   73.96 +	# restore Busybox applet links
   73.97 +	ln -s /bin/busybox $root/usr/bin/clear
   73.98 +	ln -s /bin/busybox $root/usr/bin/reset
   73.99 +}
    74.1 --- a/ncursesw-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
    74.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    74.3 @@ -1,25 +0,0 @@
    74.4 -# SliTaz package receipt.
    74.5 -
    74.6 -PACKAGE="ncursesw-dev"
    74.7 -VERSION="5.9"
    74.8 -CATEGORY="development"
    74.9 -SHORT_DESC="Devel files for the ncursesw library."
   74.10 -MAINTAINER="pankso@slitaz.org"
   74.11 -LICENSE="MIT"
   74.12 -WANTED="ncursesw"
   74.13 -WEB_SITE="http://invisible-island.net/ncurses/"
   74.14 -HOST_ARCH="i486 arm"
   74.15 -
   74.16 -DEPENDS="ncursesw"
   74.17 -
   74.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
   74.19 -genpkg_rules()
   74.20 -{
   74.21 -	mkdir -p $fs/lib $fs/usr/bin $fs/usr/lib
   74.22 -	cp -a $install/lib/*.a $fs/lib
   74.23 -	# Include files are from the same source than ncuses-dev and work
   74.24 -	# nicely for both.
   74.25 -	cp -a $install/usr/include $fs/usr
   74.26 -	cp $install/usr/bin/ncursesw5-config $fs/usr/bin
   74.27 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   74.28 -}
    75.1 --- a/ncursesw-extra/receipt	Wed Dec 14 21:23:06 2016 +0100
    75.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    75.3 @@ -1,25 +0,0 @@
    75.4 -# SliTaz package receipt.
    75.5 -
    75.6 -PACKAGE="ncursesw-extra"
    75.7 -VERSION="5.9"
    75.8 -CATEGORY="base-system"
    75.9 -SHORT_DESC="Extra files for the ncursesw library."
   75.10 -MAINTAINER="pascal.bellard@slitaz.org"
   75.11 -LICENSE="MIT"
   75.12 -WANTED="ncursesw"
   75.13 -DEPENDS="ncursesw ncurses-extra"
   75.14 -WEB_SITE="http://invisible-island.net/ncurses/"
   75.15 -HOST_ARCH="i486 arm"
   75.16 -
   75.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
   75.18 -genpkg_rules()
   75.19 -{
   75.20 -	mkdir -p $fs/usr
   75.21 -	cp -a $install/usr/bin $fs/usr
   75.22 -	chmod 755 $fs/usr/bin/*
   75.23 -	# Remove tools already provided by other packages
   75.24 -	rm -f $fs/usr/bin/ncursesw5-config
   75.25 -	rm -f $fs/usr/bin/clear
   75.26 -	rm -f $fs/usr/bin/tset
   75.27 -	rm -f $fs/usr/bin/reset
   75.28 -}
    76.1 --- a/ncursesw/receipt	Wed Dec 14 21:23:06 2016 +0100
    76.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    76.3 @@ -1,77 +0,0 @@
    76.4 -# SliTaz package receipt.
    76.5 -
    76.6 -PACKAGE="ncursesw"
    76.7 -VERSION="5.9"
    76.8 -SOURCE="ncurses"
    76.9 -CATEGORY="base-system"
   76.10 -SHORT_DESC="Library of functions to manage display on terminals."
   76.11 -MAINTAINER="pankso@slitaz.org"
   76.12 -LICENSE="MIT"
   76.13 -TARBALL="$SOURCE-$VERSION.tar.gz"
   76.14 -WEB_SITE="http://invisible-island.net/ncurses/"
   76.15 -WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
   76.16 -HOST_ARCH="i486 arm"
   76.17 -
   76.18 -DEPENDS="ncurses-common"
   76.19 -BUILD_DEPENDS="gcc"
   76.20 -
   76.21 -case "$ARCH" in
   76.22 -	arm) BUILD_DEPENDS="" ;;
   76.23 -esac
   76.24 -
   76.25 -# Rules to configure and make the package.
   76.26 -compile_rules()
   76.27 -{
   76.28 -	# Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
   76.29 -	# when cross compiling we can't use the freshly cooked binary. See cook log:
   76.30 -	#
   76.31 -	#** Building terminfo database, please wait...
   76.32 -	#Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
   76.33 -	#
   76.34 -	if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
   76.35 -		echo "Installing: ncursesw-extra"
   76.36 -		tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
   76.37 -	fi
   76.38 -	cd $src
   76.39 -	mkdir -p $DESTDIR/usr/lib/terminfo
   76.40 -	sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
   76.41 -		include/Makefile.in
   76.42 -	./configure \
   76.43 -		--libdir=/lib \
   76.44 -		--sysconfdir=/etc \
   76.45 -		--with-shared \
   76.46 -		--without-debug \
   76.47 -		--without-ada \
   76.48 -		--enable-widec \
   76.49 -		--with-build-cc="gcc -D_GNU_SOURCE" \
   76.50 -		--enable-pc-files \
   76.51 -		$CONFIGURE_ARGS &&
   76.52 -	make && make install
   76.53 -}
   76.54 -
   76.55 -# Rules to gen a SliTaz package suitable for Tazpkg.
   76.56 -genpkg_rules()
   76.57 -{
   76.58 -	mkdir -p $fs/lib $fs/usr/bin
   76.59 -
   76.60 -	# Libs.
   76.61 -	cp -a $install/lib/libncursesw.so* $fs/lib
   76.62 -
   76.63 -	# Base progs.
   76.64 -	cp $install/usr/bin/clear $fs/usr/bin
   76.65 -	cp $install/usr/bin/tset $fs/usr/bin
   76.66 -	cp $install/usr/bin/reset $fs/usr/bin
   76.67 -}
   76.68 -
   76.69 -# Overlap busybox
   76.70 -pre_install()
   76.71 -{
   76.72 -	rm -f $root/usr/bin/clear
   76.73 -	rm -f $root/usr/bin/reset
   76.74 -}
   76.75 -
   76.76 -post_remove()
   76.77 -{
   76.78 -	ln -s /bin/busybox $root/usr/bin/clear
   76.79 -	ln -s /bin/busybox $root/usr/bin/reset
   76.80 -}
    77.1 --- a/python-magic/receipt	Wed Dec 14 21:23:06 2016 +0100
    77.2 +++ b/python-magic/receipt	Fri Dec 16 01:16:56 2016 +0200
    77.3 @@ -1,20 +1,18 @@
    77.4  # SliTaz package receipt.
    77.5  
    77.6  PACKAGE="python-magic"
    77.7 -VERSION="5.24"
    77.8 +VERSION="5.28"
    77.9  CATEGORY="development"
   77.10  SHORT_DESC="File type determination library using 'magic' numbers (Python bindings)"
   77.11  MAINTAINER="pascal.bellard@slitaz.org"
   77.12  LICENSE="BSD"
   77.13  WEB_SITE="http://www.darwinsys.com/file/"
   77.14 +
   77.15  WANTED="file"
   77.16 -
   77.17  DEPENDS="file python"
   77.18  
   77.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   77.20  genpkg_rules()
   77.21  {
   77.22 -	mkdir -p $fs/usr/lib
   77.23 -	cp -a $install/usr/lib/python* $fs/usr/lib
   77.24 +	cook_copy_folders python*
   77.25  }
   77.26 -
    78.1 --- a/readline-dev/receipt	Wed Dec 14 21:23:06 2016 +0100
    78.2 +++ b/readline-dev/receipt	Fri Dec 16 01:16:56 2016 +0200
    78.3 @@ -3,18 +3,16 @@
    78.4  PACKAGE="readline-dev"
    78.5  VERSION="6.3"
    78.6  CATEGORY="development"
    78.7 -SHORT_DESC="GNU readline devel files."
    78.8 +SHORT_DESC="The GNU Readline Library (development files)"
    78.9  MAINTAINER="pankso@slitaz.org"
   78.10  LICENSE="GPL3"
   78.11 -WANTED="readline"
   78.12  WEB_SITE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
   78.13  HOST_ARCH="i486 arm"
   78.14  
   78.15 +WANTED="readline"
   78.16 +
   78.17  # Rules to gen a SliTaz package suitable for Tazpkg.
   78.18  genpkg_rules()
   78.19  {
   78.20 -	mkdir -p $fs/usr/lib
   78.21 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
   78.22 -	cp -a $install/usr/include $fs/usr
   78.23 +	cook_copy_files *.h *.a
   78.24  }
   78.25 -
    79.1 --- a/readline/receipt	Wed Dec 14 21:23:06 2016 +0100
    79.2 +++ b/readline/receipt	Fri Dec 16 01:16:56 2016 +0200
    79.3 @@ -6,13 +6,14 @@
    79.4  SHORT_DESC="GNU readline."
    79.5  MAINTAINER="pankso@slitaz.org"
    79.6  LICENSE="GPL3"
    79.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    79.8  WEB_SITE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
    79.9 -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   79.10  HOST_ARCH="i486 arm"
   79.11  
   79.12 -DEPENDS=""
   79.13 -BUILD_DEPENDS="ncursesw-dev"
   79.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   79.15 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
   79.16 +
   79.17 +DEPENDS="ncurses"
   79.18 +BUILD_DEPENDS="ncurses-dev flex"
   79.19  
   79.20  # Rules to configure and make the package.
   79.21  compile_rules()
   79.22 @@ -20,17 +21,20 @@
   79.23  	case "$ARCH" in
   79.24  		arm*) export bash_cv_wcwidth_broken=true ;;
   79.25  	esac
   79.26 -	cd $src
   79.27 +
   79.28  	patch -Np1 -i $stuff/readline-6.3-upstream_fixes-3.patch
   79.29  	sed -i '/(MV)/d' Makefile*
   79.30 -	./configure $CONFIGURE_ARGS &&
   79.31 -	make && make DESTDIR=$DESTDIR install
   79.32 +
   79.33 +	./configure \
   79.34 +		--enable-multibyte \
   79.35 +		--with-curses \
   79.36 +		$CONFIGURE_ARGS &&
   79.37 +	make SHLIB_LIBS=-lncursesw &&
   79.38 +	make DESTDIR=$install install
   79.39  }
   79.40  
   79.41  # Rules to gen a SliTaz package suitable for Tazpkg.
   79.42  genpkg_rules()
   79.43  {
   79.44 -	mkdir -p $fs/usr/lib
   79.45 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
   79.46 +	cook_copy_files *.so*
   79.47  }
   79.48 -
    80.1 --- a/slitaz-toolchain/receipt	Wed Dec 14 21:23:06 2016 +0100
    80.2 +++ b/slitaz-toolchain/receipt	Fri Dec 16 01:16:56 2016 +0200
    80.3 @@ -1,7 +1,7 @@
    80.4  # SliTaz package receipt.
    80.5  
    80.6  PACKAGE="slitaz-toolchain"
    80.7 -VERSION="5.0"
    80.8 +VERSION="6.0"
    80.9  CATEGORY="meta"
   80.10  SHORT_DESC="SliTaz meta package to rebuild or install current toolchain."
   80.11  MAINTAINER="pankso@slitaz.org"
   80.12 @@ -76,17 +76,17 @@
   80.13  	gcc -v 2>> $tmplog
   80.14  
   80.15  	# All packages cooked got ther own log so we dont keep them.
   80.16 -	separator >> $tmplog && echo "" >> $tmplog
   80.17 -	mv -f $tmplog $LOGS/$PACKAGE.log 
   80.18 +	separator >> $tmplog; echo "" >> $tmplog
   80.19 +	mv -f $tmplog $LOGS/$PACKAGE.log
   80.20  }
   80.21  
   80.22  # Rules to gen a SliTaz package suitable for Tazpkg.
   80.23  genpkg_rules()
   80.24  {
   80.25  	binutils=$(grep ^VERSION $WOK/binutils/receipt | cut -d '"' -f 2)
   80.26 -	linux=$(grep ^VERSION $WOK/linux/receipt | cut -d '"' -f 2)
   80.27 -	gcc=$(grep ^VERSION $WOK/gcc/receipt | cut -d '"' -f 2)
   80.28 -	glibc=$(grep ^VERSION $WOK/glibc/receipt | cut -d '"' -f 2)
   80.29 +	   linux=$(grep ^VERSION $WOK/linux-api-headers/receipt | cut -d '"' -f 2)
   80.30 +	     gcc=$(grep ^VERSION $WOK/gcc/receipt      | cut -d '"' -f 2)
   80.31 +	   glibc=$(grep ^VERSION $WOK/glibc/receipt    | cut -d '"' -f 2)
   80.32  	
   80.33  	mkdir -p $fs/usr/share/doc/slitaz
   80.34  	cat > $fs/usr/share/doc/slitaz/toolchain.txt << EOT
   80.35 @@ -100,10 +100,10 @@
   80.36  
   80.37  Packages:
   80.38  
   80.39 -    * Binutils $binutils
   80.40 -    * Linux API headers $linux
   80.41 -    * GCC $gcc
   80.42 -    * Glibc $glibc
   80.43 +  * Binutils $binutils
   80.44 +  * Linux API headers $linux
   80.45 +  * GCC $gcc
   80.46 +  * Glibc $glibc
   80.47  
   80.48  Toolchain documentation: http://doc.slitaz.org/en:cookbook:toolchain
   80.49