wok-current annotate linmodem-intel-537/receipt @ rev 12253

Add tazbug (1.0) - Ready for production and so in core
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 10 12:57:21 2012 +0200 (2012-04-10)
parents d1768332cee0
children b9368eac086f
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"
slaxemulator@8314 8 DEPENDS="linux"
slaxemulator@8314 9 BUILD_DEPENDS="linux-module-headers lzma"
jozee@4589 10 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/"
jozee@4589 11 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2"
jozee@4589 12 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL"
jozee@4589 13 TAGS=""
jozee@4589 14
jozee@4589 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
pankso@10668 23 touch done.$file
pankso@10668 24 done <<EOT
jozee@4589 25 kernel-2.6.30.patch
slaxemulator@8285 26 kernel-2.6.33.patch
slaxemulator@8285 27 kernel-2.6.37.patch
jozee@4589 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=537 537
jozee@4589 35 }
jozee@4589 36
jozee@4589 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4589 38 genpkg_rules()
jozee@4589 39 {
pankso@10668 40 EXTRAVERSION=_${kvers}
pankso@10668 41 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
jozee@4589 42
jozee@4589 43 # Compress and install module
pankso@10668 44 lzma e $src/Intel537.ko \
pankso@10668 45 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
pankso@10668 46 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
pankso@10668 47 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
jozee@4589 48 }
jozee@4589 49
jozee@4589 50 post_install()
jozee@4589 51 {
jozee@4589 52 echo "Processing post-install commands..."
jozee@4589 53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4589 54 }
jozee@4589 55
jozee@4589 56 post_remove()
jozee@4589 57 {
jozee@4589 58 echo "Processing post-remove commands..."
slaxemulator@8307 59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4589 60 }
jozee@4589 61