wok-current rev 14197

move to undigest: mesa-dri-* linmodem-*
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 13 09:55:51 2013 +0100 (2013-03-13)
parents 4e8a13288f6b
children 859bec4c396b
files linmodem-agrsm/receipt linmodem-intel-536ep/receipt linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.30.patch linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.33.patch linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.37.patch linmodem-intel-537/receipt linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.30.patch linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.33.patch linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.37.patch linmodem-slmodem/receipt mesa-dri-mach64/receipt mesa-dri-mga/receipt mesa-dri-r128/receipt mesa-dri-savage/receipt mesa-dri-sis/receipt mesa-dri-tdfx/receipt mesa-dri-unichrome/receipt
line diff
     1.1 --- a/linmodem-agrsm/receipt	Wed Mar 13 09:50:50 2013 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,51 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="linmodem-agrsm"
     1.7 -SOURCE="agrsm-11c11040"
     1.8 -VERSION="2.1.80~20091225"
     1.9 -CATEGORY="network"
    1.10 -MAINTAINER="jozee@slitaz.org"
    1.11 -SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets"
    1.12 -WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040"
    1.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.14 -WGET_URL="$WEB_SITE/$TARBALL"
    1.15 -
    1.16 -BUILD_DEPENDS="linux linux-module-headers xz"
    1.17 -
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 -	sed -i \
    1.22 -		-e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \
    1.23 -		-e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \
    1.24 -		agrsoftmodem.c
    1.25 -	make KERNEL_DIR=/usr/src/linux KRELEASE=$kvers
    1.26 -}
    1.27 -	
    1.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 -genpkg_rules()
    1.30 -{
    1.31 -	EXTRAVERSION=_${kvers%.*}
    1.32 -	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
    1.33 -	
    1.34 -	# Compress and install module
    1.35 -	cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
    1.36 -	xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko
    1.37 -	cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
    1.38 -	xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko
    1.39 -	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
    1.40 -	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz			
    1.41 -}
    1.42 -
    1.43 -post_install()
    1.44 -{
    1.45 -	echo "Processing post-install commands..."
    1.46 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.47 -}
    1.48 -
    1.49 -post_remove()
    1.50 -{
    1.51 -	echo "Processing post-remove commands..."
    1.52 -	depmod -a
    1.53 -}
    1.54 -
     2.1 --- a/linmodem-intel-536ep/receipt	Wed Mar 13 09:50:50 2013 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,61 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="linmodem-intel-536ep"
     2.7 -VERSION="2.56.76.0"
     2.8 -CATEGORY="network"
     2.9 -MAINTAINER="jozee@slitaz.org"
    2.10 -SHORT_DESC="Intel Modem Drivers for 536EP chipset"
    2.11 -WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/"
    2.12 -TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2"
    2.13 -WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL"
    2.14 -
    2.15 -DEPENDS="linux"
    2.16 -BUILD_DEPENDS="linux-module-headers xz"
    2.17 -
    2.18 -# Rules to configure and make the package.
    2.19 -compile_rules()
    2.20 -{
    2.21 -	cd $src	
    2.22 -	while read file; do
    2.23 -		[ -f done.$file ] && continue
    2.24 -		echo "Apply $file..."
    2.25 -		patch -p1 < $stuff/$PACKAGE-$file || return 1
    2.26 -	touch done.$file
    2.27 -	done <<EOT
    2.28 -kernel-2.6.30.patch
    2.29 -kernel-2.6.33.patch
    2.30 -kernel-2.6.37.patch
    2.31 -EOT
    2.32 -	grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/"
    2.33 -	# Bypass linux source package check
    2.34 -	sed -i 's/@bash config_check/#@bash config_check/' makefile
    2.35 -	grep -rl 'linux/autoconf.h' * | xargs sed -i \
    2.36 -		's|linux/autoconf.h|generated/autoconf.h|'
    2.37 -	make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=536 536
    2.38 -}
    2.39 -	
    2.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.41 -genpkg_rules()
    2.42 -{	
    2.43 -	EXTRAVERSION=_${kvers%.*}
    2.44 -	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
    2.45 -	
    2.46 -	# Compress and install module
    2.47 -	cp $src/Intel536.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
    2.48 -	xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko
    2.49 -	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.xz
    2.50 -	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.xz		
    2.51 -}
    2.52 -
    2.53 -post_install()
    2.54 -{
    2.55 -	echo "Processing post-install commands..."
    2.56 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.57 -}
    2.58 -
    2.59 -post_remove()
    2.60 -{
    2.61 -	echo "Processing post-remove commands..."
    2.62 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.63 -}
    2.64 -
     3.1 --- a/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.30.patch	Wed Mar 13 09:50:50 2013 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,20 +0,0 @@
     3.4 ---- intel-536-537/coredrv/softserial.c.orig	Fri Jul  3 17:58:30 2009
     3.5 -+++ intel-536-537/coredrv/softserial.c	Thu Nov  5 16:26:13 2009
     3.6 -@@ -362,7 +362,7 @@
     3.7 -    {
     3.8 -       if( (ptty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
     3.9 - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
    3.10 --          (ptty->ldisc.ops->write_wakeup != NULL))
    3.11 -+          (ptty->ldisc->ops->write_wakeup != NULL))
    3.12 - #else
    3.13 -           (ptty->ldisc.write_wakeup != NULL))
    3.14 - #endif
    3.15 -@@ -371,7 +371,7 @@
    3.16 - 	 printk("ss_bg_eh:ldisc wakeup\n");
    3.17 - #endif
    3.18 - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
    3.19 --         (ptty->ldisc.ops->write_wakeup)(ptty);
    3.20 -+        (ptty->ldisc->ops->write_wakeup)(ptty);
    3.21 - #else
    3.22 -          (ptty->ldisc.write_wakeup)(ptty);
    3.23 - #endif
     4.1 --- a/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.33.patch	Wed Mar 13 09:50:50 2013 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,40 +0,0 @@
     4.4 ---- intel-536-537/config_check~	2010-02-27 16:18:10.000000000 +0100
     4.5 -+++ intel-536-537/config_check	2010-02-27 16:18:10.000000000 +0100
     4.6 -@@ -36,7 +36,7 @@
     4.7 - echo "   Current running kernel is: $KERNVER"
     4.8 - 
     4.9 - 
    4.10 --if [ -a /lib/modules/$KERNVER/build/include/linux/autoconf.h ]; then
    4.11 -+if [ -a /lib/modules/$KERNVER/build/include/generated/autoconf.h ]; then
    4.12 -    echo "   /lib/modules...   autoconf.h exists"
    4.13 - else
    4.14 -    echo "   /lib/modules...   autoconf.h does not exist"
    4.15 -@@ -44,7 +44,7 @@
    4.16 -    exit 1
    4.17 - fi
    4.18 - 
    4.19 --if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/linux/autoconf.h`" \
    4.20 -+if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/generated/autoconf.h`" \
    4.21 -     == "" ]; then
    4.22 -    echo "   autoconf.h matches running kernel"
    4.23 - else
    4.24 -@@ -61,7 +61,7 @@
    4.25 -    echo  configurations to create a functional driver for this kernel.
    4.26 -    echo  call \"make config_sync\" and this script will
    4.27 -    echo  copy the file /boot/vmlinuz.autoconf.h to 
    4.28 --   echo  /lib/modules/$KERNVER/build/include/linux/autoconf.h
    4.29 -+   echo  /lib/modules/$KERNVER/build/include/generated/autoconf.h
    4.30 -    echo  and backup the original autoconf.h as autoconf.bak
    4.31 -    echo  The same will be done for version.h
    4.32 -    echo  Then repeat the build and installation procedure over again.
    4.33 ---- intel-536-537/coredrv/hamdefs.h~	2010-02-27 16:20:58.000000000 +0100
    4.34 -+++ intel-536-537/coredrv/hamdefs.h	2010-02-27 16:20:58.000000000 +0100
    4.35 -@@ -51,7 +51,7 @@
    4.36 -    #define EXPORT_SYMTAB
    4.37 -    #include<linux/version.h>
    4.38 - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
    4.39 --   #include<linux/autoconf.h>
    4.40 -+   #include<generated/autoconf.h>
    4.41 - #else
    4.42 -    #include<linux/config.h>
    4.43 - #endif
     5.1 --- a/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.37.patch	Wed Mar 13 09:50:50 2013 +0100
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,49 +0,0 @@
     5.4 ---- intel-536-537/coredrv/locks.c~	2011-01-26 12:12:00.856675530 +0000
     5.5 -+++ intel-536-537/coredrv/locks.c	2011-01-26 12:12:00.873342198 +0000
     5.6 -@@ -141,15 +141,15 @@
     5.7 - #endif
     5.8 - } 
     5.9 - 
    5.10 --DECLARE_MUTEX(sem0);
    5.11 --DECLARE_MUTEX(sem1);
    5.12 --DECLARE_MUTEX(sem2);
    5.13 --DECLARE_MUTEX(sem3);
    5.14 --DECLARE_MUTEX(sem4);
    5.15 --DECLARE_MUTEX(sem5);
    5.16 --DECLARE_MUTEX(sem6);
    5.17 --DECLARE_MUTEX(sem7);
    5.18 --DECLARE_MUTEX(sem8);
    5.19 -+DEFINE_SEMAPHORE(sem0);
    5.20 -+DEFINE_SEMAPHORE(sem1);
    5.21 -+DEFINE_SEMAPHORE(sem2);
    5.22 -+DEFINE_SEMAPHORE(sem3);
    5.23 -+DEFINE_SEMAPHORE(sem4);
    5.24 -+DEFINE_SEMAPHORE(sem5);
    5.25 -+DEFINE_SEMAPHORE(sem6);
    5.26 -+DEFINE_SEMAPHORE(sem7);
    5.27 -+DEFINE_SEMAPHORE(sem8);
    5.28 - 
    5.29 - asmlinkage void linux_RSAGetExclusive(int Resource, unsigned char *Indicator) 
    5.30 - {
    5.31 ---- intel-536-537/coredrv/softserial_io.c~	2011-01-26 12:16:55.753342197 +0000
    5.32 -+++ intel-536-537/coredrv/softserial_io.c	2011-01-26 12:16:55.763342199 +0000
    5.33 -@@ -65,7 +65,7 @@
    5.34 - }
    5.35 - 
    5.36 - //=============================================================================
    5.37 --static DECLARE_MUTEX(softserial_write_sem);
    5.38 -+static DEFINE_SEMAPHORE(softserial_write_sem);
    5.39 - int softserial_write(struct tty_struct* ptty,
    5.40 -                       //int from_user_space,
    5.41 -                       const unsigned char* input_buffer,
    5.42 ---- intel-536-537/coredrv/coredrv.c~	2011-01-26 12:15:54.713342038 +0000
    5.43 -+++ intel-536-537/coredrv/coredrv.c	2011-01-26 12:15:54.726675572 +0000
    5.44 -@@ -765,7 +765,7 @@
    5.45 - extern void do_schedule(void);
    5.46 - #endif
    5.47 - 
    5.48 --   DECLARE_MUTEX(exec_reg_sem);
    5.49 -+   DEFINE_SEMAPHORE(exec_reg_sem);
    5.50 -    DECLARE_WAIT_QUEUE_HEAD(persistWriteQ);
    5.51 -    DECLARE_WAIT_QUEUE_HEAD(persistReadQ);
    5.52 -    DECLARE_WAIT_QUEUE_HEAD(persistShutdownQ);
     6.1 --- a/linmodem-intel-537/receipt	Wed Mar 13 09:50:50 2013 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,61 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="linmodem-intel-537"
     6.7 -VERSION="2.60.80.0"
     6.8 -CATEGORY="network"
     6.9 -MAINTAINER="jozee@slitaz.org"
    6.10 -SHORT_DESC="Intel Modem Drivers for 537 chipsets"
    6.11 -DEPENDS="linux"
    6.12 -BUILD_DEPENDS="linux-module-headers xz"
    6.13 -WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/"
    6.14 -TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2"
    6.15 -WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL"
    6.16 -TAGS=""
    6.17 -
    6.18 -# Rules to configure and make the package.
    6.19 -compile_rules()
    6.20 -{
    6.21 -	cd $src
    6.22 -	while read file; do
    6.23 -		[ -f done.$file ] && continue
    6.24 -		echo "Apply $file..."
    6.25 -		patch -p1 < $stuff/$PACKAGE-$file || return 1
    6.26 -		touch done.$file
    6.27 -	done <<EOT
    6.28 -kernel-2.6.30.patch
    6.29 -kernel-2.6.33.patch
    6.30 -kernel-2.6.37.patch
    6.31 -EOT
    6.32 -	grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/"
    6.33 -	# Bypass linux source package check
    6.34 -	sed -i 's/@bash config_check/#@bash config_check/' makefile
    6.35 -	grep -rl 'linux/autoconf.h' * | xargs sed -i \
    6.36 -		's|linux/autoconf.h|generated/autoconf.h|'
    6.37 -	make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=537 537
    6.38 -}
    6.39 -	
    6.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.41 -genpkg_rules()
    6.42 -{	
    6.43 -	EXTRAVERSION=_${kvers%.*}
    6.44 -	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
    6.45 -	
    6.46 -	# Compress and install module
    6.47 -	cp $src/Intel537.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
    6.48 -	xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko
    6.49 -	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.xz
    6.50 -	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.xz			
    6.51 -}
    6.52 -
    6.53 -post_install()
    6.54 -{
    6.55 -	echo "Processing post-install commands..."
    6.56 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    6.57 -}
    6.58 -
    6.59 -post_remove()
    6.60 -{
    6.61 -	echo "Processing post-remove commands..."
    6.62 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    6.63 -}
    6.64 -
     7.1 --- a/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.30.patch	Wed Mar 13 09:50:50 2013 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,20 +0,0 @@
     7.4 ---- intel-536-537/coredrv/softserial.c.orig	Fri Jul  3 17:58:30 2009
     7.5 -+++ intel-536-537/coredrv/softserial.c	Thu Nov  5 16:26:13 2009
     7.6 -@@ -362,7 +362,7 @@
     7.7 -    {
     7.8 -       if( (ptty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&
     7.9 - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
    7.10 --          (ptty->ldisc.ops->write_wakeup != NULL))
    7.11 -+          (ptty->ldisc->ops->write_wakeup != NULL))
    7.12 - #else
    7.13 -           (ptty->ldisc.write_wakeup != NULL))
    7.14 - #endif
    7.15 -@@ -371,7 +371,7 @@
    7.16 - 	 printk("ss_bg_eh:ldisc wakeup\n");
    7.17 - #endif
    7.18 - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
    7.19 --         (ptty->ldisc.ops->write_wakeup)(ptty);
    7.20 -+        (ptty->ldisc->ops->write_wakeup)(ptty);
    7.21 - #else
    7.22 -          (ptty->ldisc.write_wakeup)(ptty);
    7.23 - #endif
     8.1 --- a/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.33.patch	Wed Mar 13 09:50:50 2013 +0100
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,40 +0,0 @@
     8.4 ---- intel-536-537/config_check~	2010-02-27 16:18:10.000000000 +0100
     8.5 -+++ intel-536-537/config_check	2010-02-27 16:18:10.000000000 +0100
     8.6 -@@ -36,7 +36,7 @@
     8.7 - echo "   Current running kernel is: $KERNVER"
     8.8 - 
     8.9 - 
    8.10 --if [ -a /lib/modules/$KERNVER/build/include/linux/autoconf.h ]; then
    8.11 -+if [ -a /lib/modules/$KERNVER/build/include/generated/autoconf.h ]; then
    8.12 -    echo "   /lib/modules...   autoconf.h exists"
    8.13 - else
    8.14 -    echo "   /lib/modules...   autoconf.h does not exist"
    8.15 -@@ -44,7 +44,7 @@
    8.16 -    exit 1
    8.17 - fi
    8.18 - 
    8.19 --if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/linux/autoconf.h`" \
    8.20 -+if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/generated/autoconf.h`" \
    8.21 -     == "" ]; then
    8.22 -    echo "   autoconf.h matches running kernel"
    8.23 - else
    8.24 -@@ -61,7 +61,7 @@
    8.25 -    echo  configurations to create a functional driver for this kernel.
    8.26 -    echo  call \"make config_sync\" and this script will
    8.27 -    echo  copy the file /boot/vmlinuz.autoconf.h to 
    8.28 --   echo  /lib/modules/$KERNVER/build/include/linux/autoconf.h
    8.29 -+   echo  /lib/modules/$KERNVER/build/include/generated/autoconf.h
    8.30 -    echo  and backup the original autoconf.h as autoconf.bak
    8.31 -    echo  The same will be done for version.h
    8.32 -    echo  Then repeat the build and installation procedure over again.
    8.33 ---- intel-536-537/coredrv/hamdefs.h~	2010-02-27 16:20:58.000000000 +0100
    8.34 -+++ intel-536-537/coredrv/hamdefs.h	2010-02-27 16:20:58.000000000 +0100
    8.35 -@@ -51,7 +51,7 @@
    8.36 -    #define EXPORT_SYMTAB
    8.37 -    #include<linux/version.h>
    8.38 - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
    8.39 --   #include<linux/autoconf.h>
    8.40 -+   #include<generated/autoconf.h>
    8.41 - #else
    8.42 -    #include<linux/config.h>
    8.43 - #endif
     9.1 --- a/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.37.patch	Wed Mar 13 09:50:50 2013 +0100
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,49 +0,0 @@
     9.4 ---- intel-536-537/coredrv/locks.c~	2011-01-26 12:12:00.856675530 +0000
     9.5 -+++ intel-536-537/coredrv/locks.c	2011-01-26 12:12:00.873342198 +0000
     9.6 -@@ -141,15 +141,15 @@
     9.7 - #endif
     9.8 - } 
     9.9 - 
    9.10 --DECLARE_MUTEX(sem0);
    9.11 --DECLARE_MUTEX(sem1);
    9.12 --DECLARE_MUTEX(sem2);
    9.13 --DECLARE_MUTEX(sem3);
    9.14 --DECLARE_MUTEX(sem4);
    9.15 --DECLARE_MUTEX(sem5);
    9.16 --DECLARE_MUTEX(sem6);
    9.17 --DECLARE_MUTEX(sem7);
    9.18 --DECLARE_MUTEX(sem8);
    9.19 -+DEFINE_SEMAPHORE(sem0);
    9.20 -+DEFINE_SEMAPHORE(sem1);
    9.21 -+DEFINE_SEMAPHORE(sem2);
    9.22 -+DEFINE_SEMAPHORE(sem3);
    9.23 -+DEFINE_SEMAPHORE(sem4);
    9.24 -+DEFINE_SEMAPHORE(sem5);
    9.25 -+DEFINE_SEMAPHORE(sem6);
    9.26 -+DEFINE_SEMAPHORE(sem7);
    9.27 -+DEFINE_SEMAPHORE(sem8);
    9.28 - 
    9.29 - asmlinkage void linux_RSAGetExclusive(int Resource, unsigned char *Indicator) 
    9.30 - {
    9.31 ---- intel-536-537/coredrv/softserial_io.c~	2011-01-26 12:16:55.753342197 +0000
    9.32 -+++ intel-536-537/coredrv/softserial_io.c	2011-01-26 12:16:55.763342199 +0000
    9.33 -@@ -65,7 +65,7 @@
    9.34 - }
    9.35 - 
    9.36 - //=============================================================================
    9.37 --static DECLARE_MUTEX(softserial_write_sem);
    9.38 -+static DEFINE_SEMAPHORE(softserial_write_sem);
    9.39 - int softserial_write(struct tty_struct* ptty,
    9.40 -                       //int from_user_space,
    9.41 -                       const unsigned char* input_buffer,
    9.42 ---- intel-536-537/coredrv/coredrv.c~	2011-01-26 12:15:54.713342038 +0000
    9.43 -+++ intel-536-537/coredrv/coredrv.c	2011-01-26 12:15:54.726675572 +0000
    9.44 -@@ -765,7 +765,7 @@
    9.45 - extern void do_schedule(void);
    9.46 - #endif
    9.47 - 
    9.48 --   DECLARE_MUTEX(exec_reg_sem);
    9.49 -+   DEFINE_SEMAPHORE(exec_reg_sem);
    9.50 -    DECLARE_WAIT_QUEUE_HEAD(persistWriteQ);
    9.51 -    DECLARE_WAIT_QUEUE_HEAD(persistReadQ);
    9.52 -    DECLARE_WAIT_QUEUE_HEAD(persistShutdownQ);
    10.1 --- a/linmodem-slmodem/receipt	Wed Mar 13 09:50:50 2013 +0100
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,62 +0,0 @@
    10.4 -# SliTaz package receipt.
    10.5 -
    10.6 -PACKAGE="linmodem-slmodem"
    10.7 -VERSION="2.9.11-20100303"
    10.8 -CATEGORY="network"
    10.9 -MAINTAINER="jozee@slitaz.org"
   10.10 -SHORT_DESC="Drivers for the Smartlink winmodems"
   10.11 -WEB_SITE="http://linmodems.technion.ac.il/packages/smartlink/"
   10.12 -SOURCE="slmodem"
   10.13 -TARBALL="$SOURCE-$VERSION.tar.gz"
   10.14 -WGET_URL="$WEB_SITE/$TARBALL"
   10.15 -
   10.16 -BUILD_DEPENDS="linux-module-headers xz"
   10.17 -
   10.18 -# Rules to configure and make the package.
   10.19 -
   10.20 -compile_rules() {
   10.21 -	ungrab=ungrab-winmodem-20090716
   10.22 -	[ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] ||
   10.23 -		wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY
   10.24 -	[ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz
   10.25 -	cd $ungrab
   10.26 -	make KERNEL_DIR=/usr/src/linux
   10.27 -	cd $src
   10.28 -	for i in utsrelease.h ; do
   10.29 -		grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
   10.30 -	done
   10.31 -	sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile
   10.32 -	sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c
   10.33 -	sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/' \
   10.34 -		-e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/' drivers/st7554.c
   10.35 -	make KERNEL_DIR=/usr/src/linux SUPPORT_ALSA=1 DESTDIR=$DESTDIR drivers
   10.36 -}
   10.37 -	
   10.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
   10.39 -genpkg_rules()
   10.40 -{	
   10.41 -	EXTRAVERSION=_${kvers%.*}
   10.42 -	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
   10.43 -	
   10.44 -	# Compress and install module
   10.45 -	cp $src/drivers/slamr.ko \
   10.46 -		$fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
   10.47 -	xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/slamr.ko
   10.48 -	cp ungrab-winmodem-20090716/ungrab-winmodem.ko \
   10.49 -		$fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
   10.50 -	xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ungrab-winmodem.ko
   10.51 -	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
   10.52 -	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz	
   10.53 -}
   10.54 -
   10.55 -post_install()
   10.56 -{
   10.57 -	echo "Processing post-install commands..."
   10.58 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   10.59 -}
   10.60 -
   10.61 -post_remove()
   10.62 -{
   10.63 -	echo "Processing post-remove commands..."
   10.64 -	depmod -a
   10.65 -}
    11.1 --- a/mesa-dri-mach64/receipt	Wed Mar 13 09:50:50 2013 +0100
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,17 +0,0 @@
    11.4 -# SliTaz package receipt.
    11.5 -
    11.6 -PACKAGE="mesa-dri-mach64"
    11.7 -VERSION="9.0.1"
    11.8 -CATEGORY="x-window"
    11.9 -SHORT_DESC="Mesa DRI drivers for ATI Mach64."
   11.10 -MAINTAINER="pascal.bellard@slitaz.org"
   11.11 -WEB_SITE="http://www.mesa3d.org/"
   11.12 -DEPENDS="mesa mesa-dri libdrm-mach64"
   11.13 -WANTED="mesa"
   11.14 -
   11.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   11.16 -genpkg_rules()
   11.17 -{
   11.18 -	mkdir -p $fs/usr/lib/dri
   11.19 -	cp $install/usr/lib/dri/mach64_dri.so $fs/usr/lib/dri
   11.20 -}
    12.1 --- a/mesa-dri-mga/receipt	Wed Mar 13 09:50:50 2013 +0100
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,17 +0,0 @@
    12.4 -# SliTaz package receipt.
    12.5 -
    12.6 -PACKAGE="mesa-dri-mga"
    12.7 -VERSION="9.0.1"
    12.8 -CATEGORY="x-window"
    12.9 -SHORT_DESC="Mesa DRI drivers for Matrox."
   12.10 -MAINTAINER="pascal.bellard@slitaz.org"
   12.11 -WEB_SITE="http://www.mesa3d.org/"
   12.12 -DEPENDS="mesa mesa-dri"
   12.13 -WANTED="mesa"
   12.14 -
   12.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   12.16 -genpkg_rules()
   12.17 -{
   12.18 -	mkdir -p $fs/usr/lib/dri
   12.19 -	cp $install/usr/lib/dri/mga_dri.so $fs/usr/lib/dri
   12.20 -}
    13.1 --- a/mesa-dri-r128/receipt	Wed Mar 13 09:50:50 2013 +0100
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,17 +0,0 @@
    13.4 -# SliTaz package receipt.
    13.5 -
    13.6 -PACKAGE="mesa-dri-r128"
    13.7 -VERSION="9.0.1"
    13.8 -CATEGORY="x-window"
    13.9 -SHORT_DESC="Mesa DRI drivers for ATI Rage128."
   13.10 -MAINTAINER="gokhlayeh@slitaz.org"
   13.11 -WEB_SITE="http://www.mesa3d.org/"
   13.12 -DEPENDS="mesa mesa-dri"
   13.13 -WANTED="mesa"
   13.14 -
   13.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   13.16 -genpkg_rules()
   13.17 -{
   13.18 -	mkdir -p $fs/usr/lib/dri
   13.19 -	cp $install/usr/lib/dri/r128_dri.so $fs/usr/lib/dri
   13.20 -}
    14.1 --- a/mesa-dri-savage/receipt	Wed Mar 13 09:50:50 2013 +0100
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,17 +0,0 @@
    14.4 -# SliTaz package receipt.
    14.5 -
    14.6 -PACKAGE="mesa-dri-savage"
    14.7 -VERSION="9.0.1"
    14.8 -CATEGORY="x-window"
    14.9 -SHORT_DESC="Mesa DRI drivers for S3 Sraphics/VIA Savage."
   14.10 -MAINTAINER="pascal.bellard@slitaz.org"
   14.11 -WEB_SITE="http://www.mesa3d.org/"
   14.12 -DEPENDS="mesa mesa-dri"
   14.13 -WANTED="mesa"
   14.14 -
   14.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   14.16 -genpkg_rules()
   14.17 -{
   14.18 -	mkdir -p $fs/usr/lib/dri
   14.19 -	cp $install/usr/lib/dri/savage_dri.so $fs/usr/lib/dri
   14.20 -}
    15.1 --- a/mesa-dri-sis/receipt	Wed Mar 13 09:50:50 2013 +0100
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,17 +0,0 @@
    15.4 -# SliTaz package receipt.
    15.5 -
    15.6 -PACKAGE="mesa-dri-sis"
    15.7 -VERSION="9.0.1"
    15.8 -CATEGORY="x-window"
    15.9 -SHORT_DESC="Mesa DRI drivers for SiS."
   15.10 -MAINTAINER="pascal.bellard@slitaz.org"
   15.11 -WEB_SITE="http://www.mesa3d.org/"
   15.12 -DEPENDS="mesa mesa-dri"
   15.13 -WANTED="mesa"
   15.14 -
   15.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   15.16 -genpkg_rules()
   15.17 -{
   15.18 -	mkdir -p $fs/usr/lib/dri
   15.19 -	cp $install/usr/lib/dri/sis_dri.so $fs/usr/lib/dri
   15.20 -}
    16.1 --- a/mesa-dri-tdfx/receipt	Wed Mar 13 09:50:50 2013 +0100
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,17 +0,0 @@
    16.4 -# SliTaz package receipt.
    16.5 -
    16.6 -PACKAGE="mesa-dri-tdfx"
    16.7 -VERSION="9.0.1"
    16.8 -CATEGORY="x-window"
    16.9 -SHORT_DESC="Mesa DRI drivers for 3dfx."
   16.10 -MAINTAINER="pascal.bellard@slitaz.org"
   16.11 -WEB_SITE="http://www.mesa3d.org/"
   16.12 -DEPENDS="mesa mesa-dri"
   16.13 -WANTED="mesa"
   16.14 -
   16.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   16.16 -genpkg_rules()
   16.17 -{
   16.18 -	mkdir -p $fs/usr/lib/dri
   16.19 -	cp $install/usr/lib/dri/tdfx_dri.so $fs/usr/lib/dri
   16.20 -}
    17.1 --- a/mesa-dri-unichrome/receipt	Wed Mar 13 09:50:50 2013 +0100
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,17 +0,0 @@
    17.4 -# SliTaz package receipt.
    17.5 -
    17.6 -PACKAGE="mesa-dri-unichrome"
    17.7 -VERSION="9.0.1"
    17.8 -CATEGORY="x-window"
    17.9 -SHORT_DESC="Mesa DRI drivers for S3 Graphics/VIA Unichrome."
   17.10 -MAINTAINER="pascal.bellard@slitaz.org"
   17.11 -WEB_SITE="http://www.mesa3d.org/"
   17.12 -DEPENDS="mesa mesa-dri"
   17.13 -WANTED="mesa"
   17.14 -
   17.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
   17.16 -genpkg_rules()
   17.17 -{
   17.18 -	mkdir -p $fs/usr/lib/dri
   17.19 -	cp $install/usr/lib/dri/unichrome_dri.so $fs/usr/lib/dri
   17.20 -}