wok-current diff linmodem-intel-537/receipt @ rev 10754

slitaz-i18n-extra: use EXTRA_PKGS as bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 22:12:10 2011 +0200 (2011-05-30)
parents d1768332cee0
children b9368eac086f
line diff
     1.1 --- a/linmodem-intel-537/receipt	Sun May 08 09:01:58 2011 +0000
     1.2 +++ b/linmodem-intel-537/receipt	Mon May 30 22:12:10 2011 +0200
     1.3 @@ -13,42 +13,38 @@
     1.4  TAGS=""
     1.5  
     1.6  # Rules to configure and make the package.
     1.7 -
     1.8 -compile_rules() {
     1.9 -	 
    1.10 - KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.11 - cd $src
    1.12 -
    1.13 -  while read file; do
    1.14 -    	[ -f done.$file ] && continue
    1.15 -    	echo "Apply $file..."
    1.16 -    	patch -p1 < $stuff/$PACKAGE-$file || return 1
    1.17 -	touch done.$file
    1.18 -    done <<EOT
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	while read file; do
    1.23 +		[ -f done.$file ] && continue
    1.24 +		echo "Apply $file..."
    1.25 +		patch -p1 < $stuff/$PACKAGE-$file || return 1
    1.26 +		touch done.$file
    1.27 +	done <<EOT
    1.28  kernel-2.6.30.patch
    1.29  kernel-2.6.33.patch
    1.30  kernel-2.6.37.patch
    1.31  EOT
    1.32 -  grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/"
    1.33 -   # Bypass linux source package check
    1.34 -  sed -i 's/@bash config_check/#@bash config_check/' makefile
    1.35 -  grep -rl 'linux/autoconf.h' * | xargs sed -i 's|linux/autoconf.h|generated/autoconf.h|'
    1.36 -  make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=537 537
    1.37 -  
    1.38 +	grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/"
    1.39 +	# Bypass linux source package check
    1.40 +	sed -i 's/@bash config_check/#@bash config_check/' makefile
    1.41 +	grep -rl 'linux/autoconf.h' * | xargs sed -i \
    1.42 +		's|linux/autoconf.h|generated/autoconf.h|'
    1.43 +	make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=537 537
    1.44  }
    1.45  	
    1.46  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.47  genpkg_rules()
    1.48  {	
    1.49 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.50 -	EXTRAVERSION=_$KERNEL_VERSION
    1.51 -	
    1.52 -	mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net
    1.53 +	EXTRAVERSION=_${kvers}
    1.54 +	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
    1.55  	
    1.56  	# Compress and install module
    1.57 -	lzma e $src/Intel537.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz
    1.58 -	chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz
    1.59 -	chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz			
    1.60 +	lzma e $src/Intel537.ko \
    1.61 +		$fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
    1.62 +	chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
    1.63 +	chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz			
    1.64  }
    1.65  
    1.66  post_install()