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