wok-current annotate linmodem-intel-537/receipt @ rev 6015
mono: Upgrade to 2.6.7
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Aug 14 19:06:09 2010 +0000 (2010-08-14) |
parents | 851b17343f9e |
children | cf1a6b5e6a81 |
rev | line source |
---|---|
jozee@4589 | 1 # SliTaz package receipt. |
jozee@4589 | 2 |
jozee@4589 | 3 PACKAGE="linmodem-intel-537" |
jozee@4589 | 4 VERSION="2.60.80.0" |
jozee@4589 | 5 CATEGORY="network" |
jozee@4589 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4589 | 7 SHORT_DESC="Intel Modem Drivers for 537 chipsets" |
jozee@4589 | 8 BUILD_DEPENDS="linux lzma" |
jozee@4589 | 9 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" |
jozee@4589 | 10 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" |
jozee@4589 | 11 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" |
jozee@4589 | 12 TAGS="" |
jozee@4589 | 13 |
jozee@4589 | 14 # Rules to configure and make the package. |
jozee@4589 | 15 |
jozee@4589 | 16 compile_rules() { |
jozee@4589 | 17 |
jozee@4589 | 18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4589 | 19 [ -d $WOK/linux/taz ] || tazwok cook linux |
jozee@4589 | 20 cd $WOK/$PACKAGE/intel-536-537 |
jozee@4589 | 21 |
jozee@4589 | 22 while read file; do |
jozee@4589 | 23 [ -f done.$file ] && continue |
jozee@4589 | 24 echo "Apply $file..." |
jozee@4589 | 25 patch -p1 < ../stuff/$PACKAGE-$file || return 1 |
jozee@4589 | 26 touch done.$file |
jozee@4589 | 27 done <<EOT |
jozee@4589 | 28 kernel-2.6.30.patch |
jozee@4589 | 29 EOT |
pascal@4619 | 30 grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/" |
jozee@4589 | 31 # Bypass linux source package check |
jozee@4589 | 32 sed -i 's/@bash config_check/#@bash config_check/' makefile |
pascal@5449 | 33 grep -rl 'linux/autoconf.h' * | xargs sed -i 's|linux/autoconf.h|generated/autoconf.h|' |
jozee@4589 | 34 make KERNEL_SOURCE_PATH=$WOK/linux/linux-$KERNEL_VERSION KDIR=$WOK/linux/linux-$KERNEL_VERSION MODEM_TYPE=537 537 |
jozee@4589 | 35 |
jozee@4589 | 36 } |
jozee@4589 | 37 |
jozee@4589 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4589 | 39 genpkg_rules() |
jozee@4589 | 40 { |
jozee@4589 | 41 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4589 | 42 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4589 | 43 |
jozee@4589 | 44 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net |
jozee@4589 | 45 |
jozee@4589 | 46 # Compress and install module |
jozee@4589 | 47 lzma e $WOK/$PACKAGE/intel-536-537/Intel537.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz |
jozee@4589 | 48 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz |
jozee@4589 | 49 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz |
jozee@4589 | 50 } |
jozee@4589 | 51 |
jozee@4589 | 52 post_install() |
jozee@4589 | 53 { |
jozee@4589 | 54 echo "Processing post-install commands..." |
jozee@4589 | 55 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4589 | 56 } |
jozee@4589 | 57 |
jozee@4589 | 58 post_remove() |
jozee@4589 | 59 { |
jozee@4589 | 60 echo "Processing post-remove commands..." |
jozee@4589 | 61 depmod -a |
jozee@4589 | 62 } |
jozee@4589 | 63 |