wok-6.x view linmodem-intel-537/receipt @ rev 4779

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