wok-current rev 4589
Add linmodem-intel537
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Dec 10 13:28:27 2009 +0000 (2009-12-10) |
parents | e640f3ab5830 |
children | fe3602b923a8 |
files | linmodem-intel-537/receipt linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.30.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-intel-537/receipt Thu Dec 10 13:28:27 2009 +0000 1.3 @@ -0,0 +1,61 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-intel-537" 1.7 +VERSION="2.60.80.0" 1.8 +CATEGORY="network" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Intel Modem Drivers for 537 chipsets" 1.11 +BUILD_DEPENDS="linux lzma" 1.12 +WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" 1.13 +TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" 1.14 +WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" 1.15 +TAGS="" 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 + [ -d $WOK/linux/taz ] || tazwok cook linux 1.23 + cd $WOK/$PACKAGE/intel-536-537 1.24 + 1.25 + while read file; do 1.26 + [ -f done.$file ] && continue 1.27 + echo "Apply $file..." 1.28 + patch -p1 < ../stuff/$PACKAGE-$file || return 1 1.29 + touch done.$file 1.30 + done <<EOT 1.31 +kernel-2.6.30.patch 1.32 +EOT 1.33 + # Bypass linux source package check 1.34 + sed -i 's/@bash config_check/#@bash config_check/' makefile 1.35 + make KERNEL_SOURCE_PATH=$WOK/linux/linux-$KERNEL_VERSION KDIR=$WOK/linux/linux-$KERNEL_VERSION MODEM_TYPE=537 537 1.36 + 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.43 + EXTRAVERSION=_$KERNEL_VERSION 1.44 + 1.45 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.46 + 1.47 + # Compress and install module 1.48 + lzma e $WOK/$PACKAGE/intel-536-537/Intel537.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.49 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.50 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.51 +} 1.52 + 1.53 +post_install() 1.54 +{ 1.55 + echo "Processing post-install commands..." 1.56 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.57 +} 1.58 + 1.59 +post_remove() 1.60 +{ 1.61 + echo "Processing post-remove commands..." 1.62 + depmod -a 1.63 +} 1.64 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.30.patch Thu Dec 10 13:28:27 2009 +0000 2.3 @@ -0,0 +1,20 @@ 2.4 +--- intel-536-537/coredrv/softserial.c.orig Fri Jul 3 17:58:30 2009 2.5 ++++ intel-536-537/coredrv/softserial.c Thu Nov 5 16:26:13 2009 2.6 +@@ -362,7 +362,7 @@ 2.7 + { 2.8 + if( (ptty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && 2.9 + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26) 2.10 +- (ptty->ldisc.ops->write_wakeup != NULL)) 2.11 ++ (ptty->ldisc->ops->write_wakeup != NULL)) 2.12 + #else 2.13 + (ptty->ldisc.write_wakeup != NULL)) 2.14 + #endif 2.15 +@@ -371,7 +371,7 @@ 2.16 + printk("ss_bg_eh:ldisc wakeup\n"); 2.17 + #endif 2.18 + #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26) 2.19 +- (ptty->ldisc.ops->write_wakeup)(ptty); 2.20 ++ (ptty->ldisc->ops->write_wakeup)(ptty); 2.21 + #else 2.22 + (ptty->ldisc.write_wakeup)(ptty); 2.23 + #endif