wok-4.x view linmodem-intel-536ep/receipt @ rev 4605
libvlc*: receipts swap
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 15 16:13:18 2009 +0100 (2009-12-15) |
parents | |
children | 0863ca91f10a |
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-intel-536ep"
4 VERSION="2.56.76.0"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Intel Modem Drivers for 536EP chipset"
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 # Bypass linux source package check
31 sed -i 's/@bash config_check/#@bash config_check/' makefile
32 make KERNEL_SOURCE_PATH=$WOK/linux/linux-$KERNEL_VERSION KDIR=$WOK/linux/linux-$KERNEL_VERSION MODEM_TYPE=536 536
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
39 EXTRAVERSION=_$KERNEL_VERSION
41 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net
43 # Compress and install module
44 lzma e $WOK/$PACKAGE/intel-536-537/Intel536.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz
45 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz
46 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz
47 }
49 post_install()
50 {
51 echo "Processing post-install commands..."
52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
53 }
55 post_remove()
56 {
57 echo "Processing post-remove commands..."
58 depmod -a
59 }