wok-6.x diff linmodem-intel-536ep/receipt @ rev 12847
Up: ffmpeg-dev (0.10.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 23 13:00:38 2012 +0200 (2012-05-23) |
parents | d1768332cee0 |
children | b9368eac086f |
line diff
1.1 --- a/linmodem-intel-536ep/receipt Sun May 08 09:01:58 2011 +0000 1.2 +++ b/linmodem-intel-536ep/receipt Wed May 23 13:00:38 2012 +0200 1.3 @@ -5,49 +5,46 @@ 1.4 CATEGORY="network" 1.5 MAINTAINER="jozee@slitaz.org" 1.6 SHORT_DESC="Intel Modem Drivers for 536EP chipset" 1.7 -DEPENDS="linux" 1.8 -BUILD_DEPENDS="linux-module-headers lzma" 1.9 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" 1.10 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" 1.11 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" 1.12 -TAGS="" 1.13 + 1.14 +DEPENDS="linux" 1.15 +BUILD_DEPENDS="linux-module-headers lzma" 1.16 1.17 # Rules to configure and make the package. 1.18 - 1.19 -compile_rules() { 1.20 - 1.21 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 - cd $src 1.23 - 1.24 - while read file; do 1.25 - [ -f done.$file ] && continue 1.26 - echo "Apply $file..." 1.27 - patch -p1 < $stuff/$PACKAGE-$file || return 1 1.28 +compile_rules() 1.29 +{ 1.30 + cd $src 1.31 + while read file; do 1.32 + [ -f done.$file ] && continue 1.33 + echo "Apply $file..." 1.34 + patch -p1 < $stuff/$PACKAGE-$file || return 1 1.35 touch done.$file 1.36 - done <<EOT 1.37 + done <<EOT 1.38 kernel-2.6.30.patch 1.39 kernel-2.6.33.patch 1.40 kernel-2.6.37.patch 1.41 EOT 1.42 - grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/" 1.43 - # Bypass linux source package check 1.44 - sed -i 's/@bash config_check/#@bash config_check/' makefile 1.45 - grep -rl 'linux/autoconf.h' * | xargs sed -i 's|linux/autoconf.h|generated/autoconf.h|' 1.46 - make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=536 536 1.47 + grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/" 1.48 + # Bypass linux source package check 1.49 + sed -i 's/@bash config_check/#@bash config_check/' makefile 1.50 + grep -rl 'linux/autoconf.h' * | xargs sed -i \ 1.51 + 's|linux/autoconf.h|generated/autoconf.h|' 1.52 + make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=536 536 1.53 } 1.54 1.55 # Rules to gen a SliTaz package suitable for Tazpkg. 1.56 genpkg_rules() 1.57 { 1.58 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.59 - EXTRAVERSION=_$KERNEL_VERSION 1.60 - 1.61 - mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.62 + EXTRAVERSION=_${kvers} 1.63 + mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net 1.64 1.65 # Compress and install module 1.66 - lzma e $src/Intel536.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.67 - chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.68 - chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.69 + lzma e $src/Intel536.ko \ 1.70 + $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz 1.71 + chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz 1.72 + chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz 1.73 } 1.74 1.75 post_install()