wok-6.x annotate 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 |
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 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" |
jozee@4588 | 9 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" |
jozee@4588 | 10 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" |
pankso@10668 | 11 |
pankso@10668 | 12 DEPENDS="linux" |
pankso@10668 | 13 BUILD_DEPENDS="linux-module-headers lzma" |
jozee@4588 | 14 |
jozee@4588 | 15 # Rules to configure and make the package. |
pankso@10668 | 16 compile_rules() |
pankso@10668 | 17 { |
pankso@10668 | 18 cd $src |
pankso@10668 | 19 while read file; do |
pankso@10668 | 20 [ -f done.$file ] && continue |
pankso@10668 | 21 echo "Apply $file..." |
pankso@10668 | 22 patch -p1 < $stuff/$PACKAGE-$file || return 1 |
jozee@4588 | 23 touch done.$file |
pankso@10668 | 24 done <<EOT |
jozee@4588 | 25 kernel-2.6.30.patch |
slaxemulator@8285 | 26 kernel-2.6.33.patch |
slaxemulator@8285 | 27 kernel-2.6.37.patch |
jozee@4588 | 28 EOT |
pankso@10668 | 29 grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/" |
pankso@10668 | 30 # Bypass linux source package check |
pankso@10668 | 31 sed -i 's/@bash config_check/#@bash config_check/' makefile |
pankso@10668 | 32 grep -rl 'linux/autoconf.h' * | xargs sed -i \ |
pankso@10668 | 33 's|linux/autoconf.h|generated/autoconf.h|' |
pankso@10668 | 34 make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=536 536 |
jozee@4588 | 35 } |
jozee@4588 | 36 |
jozee@4588 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4588 | 38 genpkg_rules() |
jozee@4588 | 39 { |
pankso@10668 | 40 EXTRAVERSION=_${kvers} |
pankso@10668 | 41 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net |
jozee@4588 | 42 |
jozee@4588 | 43 # Compress and install module |
pankso@10668 | 44 lzma e $src/Intel536.ko \ |
pankso@10668 | 45 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz |
pankso@10668 | 46 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz |
pankso@10668 | 47 chmod 0644 $fs/lib/modules/$kvers-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..." |
slaxemulator@8307 | 59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4588 | 60 } |
jozee@4588 | 61 |