wok-current rev 20240

Add dummynet64, lirc64, nvidia64-173xx, nvidia64-96xx, tp_smapi64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 09 16:57:32 2018 +0100 (2018-03-09)
parents 92ff04db76e7
children f2bea3663690
files broadcom-wl64/receipt dahdi-linux64/receipt dummynet/receipt dummynet64/description.txt dummynet64/receipt lirc/receipt lirc64/receipt nvidia64-173xx/receipt nvidia64-96xx/receipt tp_smapi64/description.txt tp_smapi64/receipt
line diff
     1.1 --- a/broadcom-wl64/receipt	Fri Mar 09 16:18:35 2018 +0100
     1.2 +++ b/broadcom-wl64/receipt	Fri Mar 09 16:57:32 2018 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  PROVIDE="broadcom-wl:linux64"
     1.5  
     1.6  DEPENDS="linux64"
     1.7 -BUILD_DEPENDS="linux-module-headers xz uclibc-cross-compiler-x86_64"
     1.8 +BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
     1.9  
    1.10  # Aufs enable chroot
    1.11  AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    1.12 @@ -41,10 +41,10 @@
    1.13  # Post install/remove commands for Tazpkg.
    1.14  post_install()
    1.15  {
    1.16 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.17 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    1.18  }
    1.19  
    1.20  post_remove()
    1.21  {
    1.22 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.23 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    1.24  }
     2.1 --- a/dahdi-linux64/receipt	Fri Mar 09 16:18:35 2018 +0100
     2.2 +++ b/dahdi-linux64/receipt	Fri Mar 09 16:57:32 2018 +0100
     2.3 @@ -56,10 +56,10 @@
     2.4  # Post install/remove commands for Tazpkg.
     2.5  post_install()
     2.6  {
     2.7 -	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
     2.8 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
     2.9  }
    2.10  
    2.11  post_remove()
    2.12  {
    2.13 -	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.14 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    2.15  }
     3.1 --- a/dummynet/receipt	Fri Mar 09 16:18:35 2018 +0100
     3.2 +++ b/dummynet/receipt	Fri Mar 09 16:57:32 2018 +0100
     3.3 @@ -31,7 +31,13 @@
     3.4  	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
     3.5  }
     3.6  
     3.7 +# Post install/remove commands for Tazpkg.
     3.8  post_install()
     3.9  {
    3.10 -	[ "$1" ] || depmod -a
    3.11 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    3.12  }
    3.13 +
    3.14 +post_remove()
    3.15 +{
    3.16 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    3.17 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/dummynet64/description.txt	Fri Mar 09 16:57:32 2018 +0100
     4.3 @@ -0,0 +1,6 @@
     4.4 +dummynet is a live network emulation tool, originally designed for testing 
     4.5 +networking protocols, and since then used for a variety of applications 
     4.6 +including bandwidth management. It simulates/enforces queue and bandwidth 
     4.7 +limitations, delays, packet losses, and multipath effects. It also implements 
     4.8 +various scheduling algorithms. dummynet can be used on the machine running the 
     4.9 +user's application, or on external boxes acting as routers or bridges.
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/dummynet64/receipt	Fri Mar 09 16:57:32 2018 +0100
     5.3 @@ -0,0 +1,47 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="dummynet64"
     5.7 +VERSION="20120812"
     5.8 +CATEGORY="network"
     5.9 +SHORT_DESC="Network testing/emulation tool."
    5.10 +MAINTAINER="samuel_trassare@yahoo.com"
    5.11 +LICENSE="BSD"
    5.12 +WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
    5.13 +TARBALL="$VERSION-ipfw3.tgz"
    5.14 +WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
    5.15 +PROVIDE="dummynet:linux64"
    5.16 +
    5.17 +BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64"
    5.18 +
    5.19 +# Aufs enable chroot
    5.20 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    5.21 +
    5.22 +# Rules to configure and make the package.
    5.23 +compile_rules()
    5.24 +{
    5.25 +	installed=/var/lib/tazpkg/installed
    5.26 +	kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION)
    5.27 +	sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
    5.28 +	sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
    5.29 +	make
    5.30 +}
    5.31 +
    5.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.33 +genpkg_rules()
    5.34 +{
    5.35 +	mkdir -p $fs/usr/bin \
    5.36 +		$fs/lib/modules/$kvers-slitaz/kernel/net
    5.37 +	cp -a $src/ipfw/ipfw $fs/usr/bin
    5.38 +	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
    5.39 +}
    5.40 +
    5.41 +# Post install/remove commands for Tazpkg.
    5.42 +post_install()
    5.43 +{
    5.44 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    5.45 +}
    5.46 +
    5.47 +post_remove()
    5.48 +{
    5.49 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    5.50 +}
     6.1 --- a/lirc/receipt	Fri Mar 09 16:18:35 2018 +0100
     6.2 +++ b/lirc/receipt	Fri Mar 09 16:57:32 2018 +0100
     6.3 @@ -66,3 +66,14 @@
     6.4  	cp -a $install/dev $fs
     6.5  	cp -a $install/lib $fs
     6.6  }
     6.7 +
     6.8 +# Post install/remove commands for Tazpkg.
     6.9 +post_install()
    6.10 +{
    6.11 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    6.12 +}
    6.13 +
    6.14 +post_remove()
    6.15 +{
    6.16 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    6.17 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/lirc64/receipt	Fri Mar 09 16:57:32 2018 +0100
     7.3 @@ -0,0 +1,84 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="lirc64"
     7.7 +SOURCE="lirc"
     7.8 +VERSION="0.9.0"
     7.9 +CATEGORY="utilities"
    7.10 +SHORT_DESC="Enables decoding and sending signals of many commonly used remote controls."
    7.11 +MAINTAINER="rcx@zoominternet.net"
    7.12 +LICENSE="GPL2"
    7.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    7.14 +WEB_SITE="http://www.lirc.org/"
    7.15 +WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
    7.16 +PROVIDE="lirc:linux64"
    7.17 +
    7.18 +DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau libirman \
    7.19 +portaudio alsa-lib util-linux-uuid"
    7.20 +BUILD_DEPENDS="linux64-module-headers python libusb-dev libirman-dev \
    7.21 +portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \
    7.22 +libftdi-dev jack-audio-connection-kit-dev"
    7.23 +
    7.24 +# Aufs enable chroot
    7.25 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    7.26 +
    7.27 +# Rules to configure and make the package.
    7.28 +compile_rules()
    7.29 +{
    7.30 +	cd $src
    7.31 +	
    7.32 +	sed -i '/smp_lock.h/d' drivers/lirc_atiusb/lirc_atiusb.c
    7.33 +
    7.34 +	# Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
    7.35 +	#echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
    7.36 +	#sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
    7.37 +	#sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
    7.38 +
    7.39 +	# lirc_parallel is not SMP safe
    7.40 +	echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
    7.41 +	sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
    7.42 +	sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
    7.43 +
    7.44 +	echo "Disabling build of drivers/lirc_i2c due to kernel 2.6.38+ incompatibility"
    7.45 +	sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.am
    7.46 +	sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.in
    7.47 +
    7.48 +	echo "Disabling build of drivers/lirc_wpc8769l due to kernel incompatibility"
    7.49 +	sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.am
    7.50 +	sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.in
    7.51 +
    7.52 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    7.53 +	sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
    7.54 +
    7.55 +	./configure \
    7.56 +		--prefix=/usr \
    7.57 +		--with-x \
    7.58 +		--with-driver=all \
    7.59 +		--with-kerneldir=/usr/src/linux \
    7.60 +		--with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
    7.61 +		$CONFIGURE_ARGS &&
    7.62 +	make 2>&1 | sed 's/ERROR/Error/;/lirc_dev\/Module/d' &&
    7.63 +	make DESTDIR=$DESTDIR install 2>&1 | sed '/depmod:/d'
    7.64 +}
    7.65 +
    7.66 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.67 +genpkg_rules()
    7.68 +{
    7.69 +	mkdir -p $fs/usr/lib
    7.70 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    7.71 +	cp -a $install/usr/bin $fs/usr
    7.72 +	cp -a $install/usr/sbin $fs/usr
    7.73 +
    7.74 +	cp -a $install/dev $fs
    7.75 +	cp -a $install/lib $fs
    7.76 +}
    7.77 +
    7.78 +# Post install/remove commands for Tazpkg.
    7.79 +post_install()
    7.80 +{
    7.81 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    7.82 +}
    7.83 +
    7.84 +post_remove()
    7.85 +{
    7.86 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    7.87 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/nvidia64-173xx/receipt	Fri Mar 09 16:57:32 2018 +0100
     8.3 @@ -0,0 +1,121 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="nvidia64-173xx"
     8.7 +SOURCE="nvidia-173xx"
     8.8 +VERSION="173.14.39"
     8.9 +CATEGORY="non-free"
    8.10 +MAINTAINER="jozee@slitaz.org"
    8.11 +LICENSE="other"
    8.12 +SHORT_DESC="NVIDIA drivers (non-free)"
    8.13 +WEB_SITE="http://www.nvidia.com/"
    8.14 +TARBALL="NVIDIA-Linux-x86-${VERSION}-pkg1.run"
    8.15 +WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
    8.16 +RUN_OPTS="--extract-only"
    8.17 +TAGS="driver graphic video"
    8.18 +PROVIDE="nvidia mesa"
    8.19 +
    8.20 +DEPENDS="linux64 xorg-server gtk+ cairo linux-agp xorg-libXv"
    8.21 +BUILD_DEPENDS="linux64-module-headers coreutils-file-summarize xz \
    8.22 +uclibc-cross-compiler-x86_64"
    8.23 +
    8.24 +# Aufs enable chroot
    8.25 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    8.26 +
    8.27 +# Rules to configure and make the package.
    8.28 +
    8.29 +compile_rules()
    8.30 +{
    8.31 +	cd $src/usr/src/nv/
    8.32 +	sed -i 's|uname -m|echo x86_64|' Makefile*
    8.33 +	# Only use .unblocked_ioctl since 2.6.36
    8.34 +	sed -i 's|\.ioctl|// &|' nv.c
    8.35 +	make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/'
    8.36 +	xz nvidia.ko
    8.37 +}
    8.38 +
    8.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.40 +genpkg_rules()
    8.41 +{
    8.42 +	EXTRAVERSION=_${kvers}
    8.43 +
    8.44 +	mkdir -p \
    8.45 +		$fs/usr/share \
    8.46 +		$fs/usr/lib/X11 \
    8.47 +		$fs/usr/share/licenses/$SOURCE \
    8.48 +		$fs/lib/modules/$kvers-slitaz/kernel/drivers/video \
    8.49 +		$fs/usr/share/doc/$SOURCE
    8.50 +
    8.51 +	cp $src/usr/src/nv/nvidia.ko.xz \
    8.52 +		$fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
    8.53 +	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
    8.54 +	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
    8.55 +
    8.56 +	cp -a $src/LICENSE $fs/usr/share/licenses/$SOURCE
    8.57 +	cp -a $src/usr/bin $fs/usr
    8.58 +	cp -a $src/nvidia-installer $fs/usr/bin
    8.59 +	cp -a $src/usr/lib/*.so* $fs/usr/lib/
    8.60 +	cp -a $src/usr/lib/tls $fs/usr/lib/
    8.61 +	cp -a $src/usr/X11R6/lib/libXvMCNVIDIA.so.$VERSION $fs/usr/lib
    8.62 +	cp -a $src/usr/X11R6/lib/modules $fs/usr/lib/X11/
    8.63 +	cp -a $src/usr/share/applications $fs/usr/share
    8.64 +	cp -a $src/usr/share/pixmaps $fs/usr/share
    8.65 +	cp -a $src/usr/share/doc/* $fs/usr/share/doc/$SOURCE/
    8.66 +	cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11
    8.67 +
    8.68 +	ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so
    8.69 +	ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1
    8.70 +	ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so
    8.71 +	ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1
    8.72 +	# exclude from files.list (for tazpkg's "find-depends")
    8.73 +        cd $fs/usr/lib
    8.74 +        for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
    8.75 +
    8.76 +	ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1
    8.77 +	ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so
    8.78 +	ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1
    8.79 +	ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/libnvidia-tls.so.1
    8.80 +	ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/tls/libnvidia-tls.so.1
    8.81 +	ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so.1
    8.82 +	ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so
    8.83 +	ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so.1
    8.84 +	ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so
    8.85 +	ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so
    8.86 +	ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so.1
    8.87 +	ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so
    8.88 +}
    8.89 +
    8.90 +pre_install()
    8.91 +{
    8.92 +	title "PROPRIETARY LICENSE"
    8.93 +	echo "You are installing a package with proprietary license."
    8.94 +	echo "You must accept the license."
    8.95 +	footer
    8.96 +}
    8.97 +
    8.98 +post_install()
    8.99 +{
   8.100 +	# Restore excluded from files.list (for tazpkg's "find-depends")
   8.101 +        cd $1/usr/lib
   8.102 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
   8.103 +
   8.104 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
   8.105 +
   8.106 +	# correct .desktop file file
   8.107 +	sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
   8.108 +	sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
   8.109 +
   8.110 +	title "NVIDIA LICENSE INFORMATION"
   8.111 +	echo "For installing this package, you have to accept the $SOURCE license."
   8.112 +	echo "The license is stored in /usr/share/licenses/$SOURCE "
   8.113 +	echo -n "Would you like to read the license (y/N) : "; read anser
   8.114 +	if [ "$anser" == 'y' ]; then
   8.115 +		more "$1/usr/share/licenses/$SOURCE/LICENSE"
   8.116 +		newline
   8.117 +	fi
   8.118 +	separator
   8.119 +	echo -n 'Do you accept the license (y/N) : '; read anser
   8.120 +	if [ "$anser" == 'N' ]; then
   8.121 +		echo 'You did not accept the license, Removing the pkg.'
   8.122 +		tazpkg remove "$SOURCE"
   8.123 +	fi
   8.124 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/nvidia64-96xx/receipt	Fri Mar 09 16:57:32 2018 +0100
     9.3 @@ -0,0 +1,108 @@
     9.4 +# SliTaz package receipt.
     9.5 +
     9.6 +PACKAGE="nvidia64-96xx"
     9.7 +SOURCE="nvidia-96xx"
     9.8 +VERSION="96.43.23"
     9.9 +CATEGORY="network"
    9.10 +MAINTAINER="psychomaniak@xakep.ru"
    9.11 +LICENSE="other"
    9.12 +SHORT_DESC="NVIDIA-legacy drivers (from Geforce MX200 to 7950) (non-free)"
    9.13 +WEB_SITE="http://www.nvidia.com/"
    9.14 +TARBALL="NVIDIA-Linux-x86-${VERSION}-pkg0.run"
    9.15 +WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
    9.16 +RUN_OPTS="--extract-only"
    9.17 +TAGS="drivers graphic video"
    9.18 +PROVIDE="mesa:linux64 nvidia-96xx:linux64"
    9.19 +
    9.20 +DEPENDS="linux64 xorg-server gtk+ cairo linux-agp linux-drm"
    9.21 +BUILD_DEPENDS="linux64-module-headers coreutils-file-summarize xz \
    9.22 +uclibc-cross-compiler-x86_64"
    9.23 +
    9.24 +# Aufs enable chroot
    9.25 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    9.26 +
    9.27 +# Rules to configure and make the package.
    9.28 +
    9.29 +compile_rules()
    9.30 +{
    9.31 +	cd $src/usr/src/nv/
    9.32 +	# Only use .unblocked_ioctl since 2.6.36
    9.33 +	sed -i 's|\.ioctl|// &|' nv.c
    9.34 +	make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/' &&
    9.35 +	xz nvidia.ko
    9.36 +}
    9.37 +
    9.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    9.39 +genpkg_rules()
    9.40 +{
    9.41 +	EXTRAVERSION=_${kvers}
    9.42 +
    9.43 +	mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$SOURCE
    9.44 +	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/video
    9.45 +	mkdir -p $fs/usr/share/doc/$SOURCE
    9.46 +
    9.47 +	# Compress and install module
    9.48 +	cp $src/usr/src/nv/nvidia.ko.xz \
    9.49 +	$fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
    9.50 +
    9.51 +	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
    9.52 +	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
    9.53 +
    9.54 +	cp -a $src/LICENSE $fs/usr/share/licenses/$SOURCE
    9.55 +	cp -a $src/usr/bin $fs/usr
    9.56 +	cp -a $src/nvidia-installer $fs/usr/bin
    9.57 +	cp -a $src/usr/lib/*.so* $fs/usr/lib/
    9.58 +	cp -a $src/usr/lib/tls $fs/usr/lib/
    9.59 +	cp -a $src/usr/share/pixmaps $fs/usr/share
    9.60 +	cp -a $src/usr/share/doc/* $fs/usr/share/doc/$SOURCE/
    9.61 +	cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11	
    9.62 +
    9.63 +	# Links
    9.64 +	for i in $(find $fs -iname *.so*); do
    9.65 +		ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so/})
    9.66 +		ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so.1/})
    9.67 +	done
    9.68 +	
    9.69 +	# exclude from files.list (for tazpkg's "find-depends")
    9.70 +	cd $fs/usr/lib
    9.71 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
    9.72 +}
    9.73 +
    9.74 +pre_install()
    9.75 +{
    9.76 +	title 'PROPRIETARY LICENSE'
    9.77 +	echo 'You are installing a package with proprietary license.'
    9.78 +	echo 'You must accept the license.'
    9.79 +	footer
    9.80 +}
    9.81 +
    9.82 +post_install()
    9.83 +{
    9.84 +	# Restore excluded from files.list (for tazpkg's "find-depends")
    9.85 +	cd $1/usr/lib
    9.86 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
    9.87 +
    9.88 +	newline
    9.89 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    9.90 +
    9.91 +	# correct .desktop file file
    9.92 +	sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
    9.93 +	sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
    9.94 +
    9.95 +	title 'NVIDIA LICENSE INFORMATION'
    9.96 +	echo "For installing this package, you have to accept the $SOURCE license."
    9.97 +	echo "The license is stored in /usr/share/licenses/$SOURCE "
    9.98 +	echo -n "Would you like to read the license (y/N) : "; read anser
    9.99 +	if [ "$anser" == 'y' ]; then
   9.100 +		more /usr/share/licenses/"$SOURCE"/LICENSE
   9.101 +		echo
   9.102 +	fi
   9.103 +	separator
   9.104 +	echo -n "Do you accept the license (y/N) : "; read anser
   9.105 +	if [ "$anser" == 'N' ]; then
   9.106 +		echo "You did not accept the license, Removing the pkg."
   9.107 +		tazpkg remove "$SOURCE"
   9.108 +	fi
   9.109 +}
   9.110 +
   9.111 +TAZBB_NO_INSTALL="because this is not hardware neutral"
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/tp_smapi64/description.txt	Fri Mar 09 16:57:32 2018 +0100
    10.3 @@ -0,0 +1,13 @@
    10.4 +ThinkPad laptops include a proprietary interface called SMAPI BIOS 
    10.5 +(System Management Application Program Interface) which provides some
    10.6 +hardware control functionality that is not accessible by other means.
    10.7 +
    10.8 +tp_smapi is highly recommended if you're using a ThinkPad laptop.
    10.9 +
   10.10 +Not all functions are available on all models; for detailed status, see:
   10.11 +http://thinkwiki.org/wiki/tp_smapi
   10.12 +
   10.13 +WARNING: 
   10.14 +This driver uses undocumented features and direct hardware access.
   10.15 +It thus cannot be guaranteed to work, and may cause arbitrary damage
   10.16 +(especially on models it wasn't tested on).
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/tp_smapi64/receipt	Fri Mar 09 16:57:32 2018 +0100
    11.3 @@ -0,0 +1,45 @@
    11.4 +# SliTaz package receipt.
    11.5 +
    11.6 +PACKAGE="tp_smapi64"
    11.7 +SOURCE="tp_smapi"
    11.8 +VERSION="0.41"
    11.9 +CATEGORY="base-system"
   11.10 +SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
   11.11 +MAINTAINER="domcox@slitaz.org"
   11.12 +LICENSE="GPL2"
   11.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
   11.14 +WEB_SITE="https://github.com/evgeni/tp_smapi"
   11.15 +WGET_URL="https://github.com/downloads/evgeni/$SOURCE/$TARBALL"
   11.16 +PROVIDE="tp_smapi:linux64"
   11.17 +
   11.18 +BUILD_DEPENDS="linux64-module-headers linux-source wget \
   11.19 +uclibc-cross-compiler-x86_64"
   11.20 +
   11.21 +# Aufs enable chroot
   11.22 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
   11.23 +
   11.24 +# Rules to configure and make the package.
   11.25 +compile_rules()
   11.26 +{
   11.27 +	sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile
   11.28 +	make modules HDAPS=1
   11.29 +}
   11.30 +
   11.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
   11.32 +genpkg_rules()
   11.33 +{
   11.34 +	MOD_DIR=lib/modules/$kvers-slitaz64/extra
   11.35 +	mkdir -p $fs/$MOD_DIR
   11.36 +	cp -a $src/*.ko $fs/$MOD_DIR
   11.37 +}
   11.38 +
   11.39 +# Post install/remove commands for Tazpkg.
   11.40 +post_install()
   11.41 +{
   11.42 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
   11.43 +}
   11.44 +
   11.45 +post_remove()
   11.46 +{
   11.47 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
   11.48 +}