wok view linmodem-intel-537/receipt @ rev 11507
kino: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 22 22:51:14 2011 +0100 (2011-12-22) |
parents | d1768332cee0 |
children | b9368eac086f |
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 DEPENDS="linux"
9 BUILD_DEPENDS="linux-module-headers lzma"
10 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/"
11 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2"
12 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL"
13 TAGS=""
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 while read file; do
20 [ -f done.$file ] && continue
21 echo "Apply $file..."
22 patch -p1 < $stuff/$PACKAGE-$file || return 1
23 touch done.$file
24 done <<EOT
25 kernel-2.6.30.patch
26 kernel-2.6.33.patch
27 kernel-2.6.37.patch
28 EOT
29 grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $kvers/"
30 # Bypass linux source package check
31 sed -i 's/@bash config_check/#@bash config_check/' makefile
32 grep -rl 'linux/autoconf.h' * | xargs sed -i \
33 's|linux/autoconf.h|generated/autoconf.h|'
34 make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=537 537
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 EXTRAVERSION=_${kvers}
41 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
43 # Compress and install module
44 lzma e $src/Intel537.ko \
45 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
46 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
47 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel537.ko.gz
48 }
50 post_install()
51 {
52 echo "Processing post-install commands..."
53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
54 }
56 post_remove()
57 {
58 echo "Processing post-remove commands..."
59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
60 }