wok-tiny rev 99

Add fuse, libpthread, librt, posixovl and some modules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 31 12:53:44 2015 +0100 (2015-10-31)
parents 23642b5267cd
children 48d2c4c7a227
files base-tiny/stuff/etc/gshadow base-tiny/stuff/etc/init.d/rcS base-tiny/stuff/etc/shadow fr/receipt fuse/receipt libpthread/receipt librt/receipt module-floppy/receipt module-loop/receipt module-lp/receipt module-usbkbd/receipt module-usblp/receipt module-usbmouse/receipt module-usbserial/receipt posixovl/receipt
line diff
     1.1 --- a/base-tiny/stuff/etc/gshadow	Sat Oct 31 12:49:16 2015 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -root:*::
     1.5 -daemon:!::
     1.6 -bin:!::
     1.7 -sys:!::
     1.8 -adm:!::
     1.9 -tty:!::
    1.10 -disk:!::root
    1.11 -lp:!::
    1.12 -kmem:!::
    1.13 -wheel:!::root
    1.14 -floppy:!::
    1.15 -video:!::
    1.16 -cdrom:!::
    1.17 -audio:!::
    1.18 -tape:!::
    1.19 -www:!::
    1.20 -plugdev:!::
    1.21 -dialout:!::
    1.22 -nogroup:!::
    1.23 -users:!::
     2.1 --- a/base-tiny/stuff/etc/init.d/rcS	Sat Oct 31 12:49:16 2015 +0100
     2.2 +++ b/base-tiny/stuff/etc/init.d/rcS	Sat Oct 31 12:53:44 2015 +0100
     2.3 @@ -95,8 +95,6 @@
     2.4  	case $opt in
     2.5  		cdrom=*)
     2.6  			export CDROM=${opt#cdrom=} ;;
     2.7 -		modprobe=*)
     2.8 -			export MODPROBE="yes" ;;
     2.9  		config=*)
    2.10  			export CONFIG=${opt#config=} ;;
    2.11  		*)
    2.12 @@ -139,16 +137,6 @@
    2.13  	status
    2.14  fi
    2.15  
    2.16 -# Handle kernel cmdline parameter modprobe=<module_list>
    2.17 -if [ "$MODPROBE" ]; then
    2.18 -	MODULES=$(sed -e 's/.* modprobe=\([^ ]*\).*/\1/' -e 's/,/\n/g' < /proc/cmdline)
    2.19 -	for i in $MODULES; do
    2.20 -		echo -n "Loading kernel module $i"
    2.21 -		modprobe $i
    2.22 -		status
    2.23 -	done
    2.24 -fi
    2.25 -
    2.26  # Handle kernel cmdline parameter config=<device>,<path> to source a
    2.27  # disk init script
    2.28  if [ "$CONFIG" ]; then
     3.1 --- a/base-tiny/stuff/etc/shadow	Sat Oct 31 12:49:16 2015 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,3 +0,0 @@
     3.4 -root:$1$EbR327ag$7NFmnOi7JQc5/lG0JLiU8/:13525:0:99999:7:::
     3.5 -nobody:*:13509:0:99999:7:::
     3.6 -www:*:13509:0:99999:7:::
     4.1 --- a/fr/receipt	Sat Oct 31 12:49:16 2015 +0100
     4.2 +++ b/fr/receipt	Sat Oct 31 12:53:44 2015 +0100
     4.3 @@ -12,7 +12,8 @@
     4.4  # Rules to configure and make the package.
     4.5  compile_rules()
     4.6  {
     4.7 -	mkdir -p $DESTDIR/etc
     4.8 +	mkdir -p $DESTDIR/etc $stuff
     4.9 +	cd $stuff
    4.10  	echo "Europe/Paris" > $DESTDIR/etc/TZ
    4.11  	cat > $DESTDIR/etc/locale.conf <<EOT
    4.12  LANG=fr_FR
    4.13 @@ -28,10 +29,12 @@
    4.14  	done << EOT
    4.15  kbd-busybox	/usr/share/kmap/fr-latin1.kmap
    4.16  EOT
    4.17 +	cd ..
    4.18 +	rm -rf $stuff
    4.19  }
    4.20  
    4.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.22  genpkg_rules()
    4.23  {
    4.24 -	cp -a $install/. $fs
    4.25 +	cp -a $install/. $fs/
    4.26  }
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/fuse/receipt	Sat Oct 31 12:53:44 2015 +0100
     5.3 @@ -0,0 +1,36 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="fuse"
     5.7 +VERSION="2.8.5"
     5.8 +CATEGORY="system-tools"
     5.9 +SHORT_DESC="Fuse Filsystem in user space."
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.12 +WEB_SITE="http://fuse.sourceforge.net/"
    5.13 +[ -n "$TARGET" ] || TARGET="i486"
    5.14 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
    5.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    5.16 +TAGS="filesystem"
    5.17 +
    5.18 +DEPENDS="libpthread module-fuse"
    5.19 +
    5.20 +# Rules to configure and make the package.
    5.21 +compile_rules()
    5.22 +{
    5.23 +	export LDFLAGS="-lpthread"
    5.24 +	./configure --prefix=/usr --host=$TARGET-pc-linux-gnu \
    5.25 +		--infodir=/usr/share/info --mandir=/usr/share/man \
    5.26 +		CC=uclibc-$TARGET-cc &&
    5.27 +	make &&
    5.28 +	make DESTDIR=$DESTDIR install
    5.29 +}
    5.30 +
    5.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.32 +genpkg_rules()
    5.33 +{
    5.34 +	mkdir -p $fs/usr/lib
    5.35 +	cp -a $install/dev $fs
    5.36 +	cp -a $install/sbin $fs
    5.37 +	cp -a $install/usr/bin $fs/usr
    5.38 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.39 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/libpthread/receipt	Sat Oct 31 12:53:44 2015 +0100
     6.3 @@ -0,0 +1,26 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="libpthread"
     6.7 +VERSION="0.9.31"
     6.8 +CATEGORY="base-system"
     6.9 +SHORT_DESC="Threads runtime library"
    6.10 +MAINTAINER="pascal.bellard@slitaz.org"
    6.11 +LICENSE="LGPL"
    6.12 +[ -n "$TARGET" ] || TARGET="i486"
    6.13 +DEPENDS="base-tiny"
    6.14 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
    6.15 +WEB_SITE="http://tiny.slitaz.org/"
    6.16 +
    6.17 +# Rules to configure and make the package.
    6.18 +compile_rules()
    6.19 +{
    6.20 +	mkdir -p $DESTDIR/lib
    6.21 +	cp -a /usr/share/uclibc-cross-compiler-$TARGET/lib/$PACKAGE*.so* $DESTDIR/lib
    6.22 +}
    6.23 +
    6.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.25 +genpkg_rules()
    6.26 +{
    6.27 +	cp -a $install/lib $fs/
    6.28 +	chown 0.0 $fs/lib/*
    6.29 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/librt/receipt	Sat Oct 31 12:53:44 2015 +0100
     7.3 @@ -0,0 +1,26 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="librt"
     7.7 +VERSION="0.9.31"
     7.8 +CATEGORY="base-system"
     7.9 +SHORT_DESC="Timers runtime library"
    7.10 +MAINTAINER="pascal.bellard@slitaz.org"
    7.11 +LICENSE="LGPL"
    7.12 +[ -n "$TARGET" ] || TARGET="i486"
    7.13 +DEPENDS="base-tiny"
    7.14 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
    7.15 +WEB_SITE="http://tiny.slitaz.org/"
    7.16 +
    7.17 +# Rules to configure and make the package.
    7.18 +compile_rules()
    7.19 +{
    7.20 +	mkdir -p $DESTDIR/lib
    7.21 +	cp -a /usr/share/uclibc-cross-compiler-$TARGET/lib/$PACKAGE*.so* $DESTDIR/lib
    7.22 +}
    7.23 +
    7.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.25 +genpkg_rules()
    7.26 +{
    7.27 +	cp -a $install/lib $fs/
    7.28 +	chown 0.0 $fs/lib/*
    7.29 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/module-floppy/receipt	Sat Oct 31 12:53:44 2015 +0100
     8.3 @@ -0,0 +1,31 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="module-floppy"
     8.7 +VERSION="2.6.14"
     8.8 +CATEGORY="base-system"
     8.9 +SHORT_DESC="Kernel module for the parallel printers"
    8.10 +MAINTAINER="pascal.bellard@slitaz.org"
    8.11 +LICENSE="GPL2"
    8.12 +WEB_SITE="http://tiny.slitaz.org/"
    8.13 +WANTED="linux"
    8.14 +
    8.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.16 +genpkg_rules()
    8.17 +{
    8.18 +	local path
    8.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
    8.20 +	export _pkg=$WOK/$WANTED/install
    8.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
    8.22 +	mkdir -p $fs/$path
    8.23 +	$src/slitaz/list_modules.sh drivers/block/floppy.ko | while read module; do
    8.24 +		dir=$path/$(dirname $module)
    8.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    8.26 +		cp -a $_pkg/$path/$module $fs/$dir
    8.27 +	done
    8.28 +}
    8.29 +
    8.30 +# Post install/remove commands for Tazpkg.
    8.31 +post_install()
    8.32 +{
    8.33 +	echo ${PACKAGE#*-} >> $1/modules
    8.34 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/module-loop/receipt	Sat Oct 31 12:53:44 2015 +0100
     9.3 @@ -0,0 +1,31 @@
     9.4 +# SliTaz package receipt.
     9.5 +
     9.6 +PACKAGE="module-loop"
     9.7 +VERSION="2.6.14"
     9.8 +CATEGORY="base-system"
     9.9 +SHORT_DESC="Kernel module for the loop device"
    9.10 +MAINTAINER="pascal.bellard@slitaz.org"
    9.11 +LICENSE="GPL2"
    9.12 +WEB_SITE="http://tiny.slitaz.org/"
    9.13 +WANTED="linux"
    9.14 +
    9.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    9.16 +genpkg_rules()
    9.17 +{
    9.18 +	local path
    9.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
    9.20 +	export _pkg=$WOK/$WANTED/install
    9.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
    9.22 +	mkdir -p $fs/$path $fs/dev
    9.23 +	$src/slitaz/list_modules.sh drivers/block/loop.ko | while read module; do
    9.24 +		dir=$path/$(dirname $module)
    9.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    9.26 +		cp -a $_pkg/$path/$module $fs/$dir
    9.27 +	done
    9.28 +}
    9.29 +
    9.30 +# Post install/remove commands for Tazpkg.
    9.31 +post_install()
    9.32 +{
    9.33 +	echo ${PACKAGE#*-} >> $1/modules
    9.34 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/module-lp/receipt	Sat Oct 31 12:53:44 2015 +0100
    10.3 @@ -0,0 +1,31 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="module-lp"
    10.7 +VERSION="2.6.14"
    10.8 +CATEGORY="base-system"
    10.9 +SHORT_DESC="Kernel module for the parallel printers"
   10.10 +MAINTAINER="pascal.bellard@slitaz.org"
   10.11 +LICENSE="GPL2"
   10.12 +WEB_SITE="http://tiny.slitaz.org/"
   10.13 +WANTED="linux"
   10.14 +
   10.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.16 +genpkg_rules()
   10.17 +{
   10.18 +	local path
   10.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
   10.20 +	export _pkg=$WOK/$WANTED/install
   10.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
   10.22 +	mkdir -p $fs/$path
   10.23 +	$src/slitaz/list_modules.sh drivers/char/lp.ko | while read module; do
   10.24 +		dir=$path/$(dirname $module)
   10.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
   10.26 +		cp -a $_pkg/$path/$module $fs/$dir
   10.27 +	done
   10.28 +}
   10.29 +
   10.30 +# Post install/remove commands for Tazpkg.
   10.31 +post_install()
   10.32 +{
   10.33 +	echo ${PACKAGE#*-} >> $1/modules
   10.34 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/module-usbkbd/receipt	Sat Oct 31 12:53:44 2015 +0100
    11.3 @@ -0,0 +1,31 @@
    11.4 +# SliTaz package receipt.
    11.5 +
    11.6 +PACKAGE="module-usbkbd"
    11.7 +VERSION="2.6.14"
    11.8 +CATEGORY="base-system"
    11.9 +SHORT_DESC="Kernel module for the USB keyboard"
   11.10 +MAINTAINER="pascal.bellard@slitaz.org"
   11.11 +LICENSE="GPL2"
   11.12 +WEB_SITE="http://tiny.slitaz.org/"
   11.13 +WANTED="linux"
   11.14 +
   11.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   11.16 +genpkg_rules()
   11.17 +{
   11.18 +	local path
   11.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
   11.20 +	export _pkg=$WOK/$WANTED/install
   11.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
   11.22 +	mkdir -p $fs/$path
   11.23 +	$src/slitaz/list_modules.sh drivers/usb/input/usbkbd.ko | while read module; do
   11.24 +		dir=$path/$(dirname $module)
   11.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
   11.26 +		cp -a $_pkg/$path/$module $fs/$dir
   11.27 +	done
   11.28 +}
   11.29 +
   11.30 +# Post install/remove commands for Tazpkg.
   11.31 +post_install()
   11.32 +{
   11.33 +	echo ${PACKAGE#*-} >> $1/modules
   11.34 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/module-usblp/receipt	Sat Oct 31 12:53:44 2015 +0100
    12.3 @@ -0,0 +1,31 @@
    12.4 +# SliTaz package receipt.
    12.5 +
    12.6 +PACKAGE="module-usblp"
    12.7 +VERSION="2.6.14"
    12.8 +CATEGORY="base-system"
    12.9 +SHORT_DESC="Kernel module for the USB printers"
   12.10 +MAINTAINER="pascal.bellard@slitaz.org"
   12.11 +LICENSE="GPL2"
   12.12 +WEB_SITE="http://tiny.slitaz.org/"
   12.13 +WANTED="linux"
   12.14 +
   12.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   12.16 +genpkg_rules()
   12.17 +{
   12.18 +	local path
   12.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
   12.20 +	export _pkg=$WOK/$WANTED/install
   12.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
   12.22 +	mkdir -p $fs/$path
   12.23 +	$src/slitaz/list_modules.sh drivers/usb/class/usblp.ko | while read module; do
   12.24 +		dir=$path/$(dirname $module)
   12.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
   12.26 +		cp -a $_pkg/$path/$module $fs/$dir
   12.27 +	done
   12.28 +}
   12.29 +
   12.30 +# Post install/remove commands for Tazpkg.
   12.31 +post_install()
   12.32 +{
   12.33 +	echo ${PACKAGE#*-} >> $1/modules
   12.34 +}
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/module-usbmouse/receipt	Sat Oct 31 12:53:44 2015 +0100
    13.3 @@ -0,0 +1,31 @@
    13.4 +# SliTaz package receipt.
    13.5 +
    13.6 +PACKAGE="module-usbmouse"
    13.7 +VERSION="2.6.14"
    13.8 +CATEGORY="base-system"
    13.9 +SHORT_DESC="Kernel module for the USB mouse"
   13.10 +MAINTAINER="pascal.bellard@slitaz.org"
   13.11 +LICENSE="GPL2"
   13.12 +WEB_SITE="http://tiny.slitaz.org/"
   13.13 +WANTED="linux"
   13.14 +
   13.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   13.16 +genpkg_rules()
   13.17 +{
   13.18 +	local path
   13.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
   13.20 +	export _pkg=$WOK/$WANTED/install
   13.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
   13.22 +	mkdir -p $fs/$path
   13.23 +	$src/slitaz/list_modules.sh drivers/usb/input/usbmouse.ko | while read module; do
   13.24 +		dir=$path/$(dirname $module)
   13.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
   13.26 +		cp -a $_pkg/$path/$module $fs/$dir
   13.27 +	done
   13.28 +}
   13.29 +
   13.30 +# Post install/remove commands for Tazpkg.
   13.31 +post_install()
   13.32 +{
   13.33 +	echo ${PACKAGE#*-} >> $1/modules
   13.34 +}
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/module-usbserial/receipt	Sat Oct 31 12:53:44 2015 +0100
    14.3 @@ -0,0 +1,31 @@
    14.4 +# SliTaz package receipt.
    14.5 +
    14.6 +PACKAGE="module-usbserial"
    14.7 +VERSION="2.6.14"
    14.8 +CATEGORY="base-system"
    14.9 +SHORT_DESC="Kernel module for the USB serial dongle"
   14.10 +MAINTAINER="pascal.bellard@slitaz.org"
   14.11 +LICENSE="GPL2"
   14.12 +WEB_SITE="http://tiny.slitaz.org/"
   14.13 +WANTED="linux"
   14.14 +
   14.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   14.16 +genpkg_rules()
   14.17 +{
   14.18 +	local path
   14.19 +	export src=$WOK/$WANTED/source/linux-$VERSION
   14.20 +	export _pkg=$WOK/$WANTED/install
   14.21 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
   14.22 +	mkdir -p $fs/$path
   14.23 +	$src/slitaz/list_modules.sh drivers/usb/serial/usbserial.ko | while read module; do
   14.24 +		dir=$path/$(dirname $module)
   14.25 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
   14.26 +		cp -a $_pkg/$path/$module $fs/$dir
   14.27 +	done
   14.28 +}
   14.29 +
   14.30 +# Post install/remove commands for Tazpkg.
   14.31 +post_install()
   14.32 +{
   14.33 +	echo ${PACKAGE#*-} >> $1/modules
   14.34 +}
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/posixovl/receipt	Sat Oct 31 12:53:44 2015 +0100
    15.3 @@ -0,0 +1,41 @@
    15.4 +# SliTaz package receipt.
    15.5 +
    15.6 +PACKAGE="posixovl"
    15.7 +VERSION="1.2"
    15.8 +CATEGORY="system-tools"
    15.9 +SHORT_DESC="FUSE file system that provides POSIX functionality"
   15.10 +MAINTAINER="pascal.bellard@slitaz.org"
   15.11 +LICENSE="GPL2"
   15.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
   15.13 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
   15.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
   15.15 +[ -n "$TARGET" ] || TARGET="i486"
   15.16 +TAGS="filesystem"
   15.17 +
   15.18 +DEPENDS="fuse librt libdl libpthread"
   15.19 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET pkg-config autoconf automake \
   15.20 +fuse-dev attr-dev"
   15.21 +
   15.22 +# Rules to configure and make the package.
   15.23 +compile_rules()
   15.24 +{
   15.25 +	grep -q 'else if (!S_ISREG' posixovl.c ||
   15.26 +	sed -i 's/if (!S_ISREG/if (S_ISLNK(cb->ll.mode))\n\t\tcb->sb.st_size = strlen(cb->ll.target);\n\telse &/' posixovl.c
   15.27 +	sed -i 's/cb->ll.size/0/;s/strlcpy/x&/' posixovl.c
   15.28 +	[ -d $WOK/fuse/taz ] || cook fuse
   15.29 +	ln -s $WOK/fuse/taz/*/fs/usr/lib/* /usr/share/uclibc-cross-compiler-$TARGET/lib/ 2> /dev/null
   15.30 +	ln -s /usr/include/attr /usr/share/uclibc-cross-compiler-$TARGET/include/ 2> /dev/null
   15.31 +	sh autogen.sh
   15.32 +	./configure --prefix=/usr \
   15.33 +		--host=$TARGET-pc-linux-gnu \
   15.34 +		--mandir=/usr/share/man \
   15.35 +		CC=uclibc-$TARGET-cc &&
   15.36 +	make
   15.37 +}
   15.38 +
   15.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
   15.40 +genpkg_rules()
   15.41 +{
   15.42 +	mkdir -p $fs/usr/sbin
   15.43 +	cp $src/mount.posixovl $fs/usr/sbin 
   15.44 +}