wok-4.x view linmodem-intel-536ep/receipt @ rev 11681
Up: grep to 2.10. It depends on pcre.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 18 08:15:31 2012 -0500 (2012-02-18) |
parents | d1768332cee0 |
children |
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 WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/"
9 TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2"
10 WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL"
12 DEPENDS="linux"
13 BUILD_DEPENDS="linux-module-headers lzma"
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=536 536
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/Intel536.ko \
45 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz
46 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.ko.gz
47 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/intel536.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 }