wok-next diff ndiswrapper-driver/receipt @ rev 16602

Remove python-piface* (work only with python3) but add libmcp23s17 + libpifacedigital C library and utility
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 07 17:38:57 2014 +0200 (2014-05-07)
parents 293a7bce6d7f
children 6fab3264ba87
line diff
     1.1 --- a/ndiswrapper-driver/receipt	Sat Nov 30 19:25:54 2013 +0000
     1.2 +++ b/ndiswrapper-driver/receipt	Wed May 07 17:38:57 2014 +0200
     1.3 @@ -18,38 +18,30 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	
     1.8 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
     1.9 -	cd $src
    1.10 -	make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
    1.11 +	make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
    1.12  	xz driver/ndiswrapper.ko
    1.13  }
    1.14  
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17  {
    1.18 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.19 -	EXTRAVERSION=_${KERNEL_VERSION%.*}
    1.20 -	
    1.21 -	mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.22 +	EXTRAVERSION=_${kvers}
    1.23 +	mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/${kvers}-slitaz/kernel/misc
    1.24  	
    1.25  	# Install utilities	
    1.26 -	install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
    1.27 -
    1.28 -	cp $src/driver/ndiswrapper.ko.xz \
    1.29 -		$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
    1.30 -	chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
    1.31 -	chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
    1.32 +	install -o root -m 0755 $src/utils/loadndisdriver $fs/sbin/
    1.33 +	install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
    1.34 +		$fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
    1.35  }
    1.36  
    1.37  post_install()
    1.38  {
    1.39  	echo "Processing post-install commands..."
    1.40 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.41 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.42  }
    1.43  
    1.44  post_remove()
    1.45  {
    1.46  	echo "Processing post-remove commands..."
    1.47 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.48 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.49  }