wok diff linmodem-intel-536ep/receipt @ rev 4588
Add linmodem-intel536ep
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Dec 10 13:28:03 2009 +0000 (2009-12-10) |
parents | |
children | 0863ca91f10a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-intel-536ep/receipt Thu Dec 10 13:28:03 2009 +0000 1.3 @@ -0,0 +1,60 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-intel-536ep" 1.7 +VERSION="2.56.76.0" 1.8 +CATEGORY="network" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Intel Modem Drivers for 536EP chipset" 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=536 536 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.42 + EXTRAVERSION=_$KERNEL_VERSION 1.43 + 1.44 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.45 + 1.46 + # Compress and install module 1.47 + lzma e $WOK/$PACKAGE/intel-536-537/Intel536.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.48 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.49 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz 1.50 +} 1.51 + 1.52 +post_install() 1.53 +{ 1.54 + echo "Processing post-install commands..." 1.55 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.56 +} 1.57 + 1.58 +post_remove() 1.59 +{ 1.60 + echo "Processing post-remove commands..." 1.61 + depmod -a 1.62 +} 1.63 +