wok view linmodem-intel-536ep/receipt @ rev 7817

busybox/init: add subroot= parameter
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 25 15:12:42 2010 +0100 (2010-12-25)
parents 205574a5eed9
children ad6487ac4314
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 linux-module-headers 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 cd $WOK/$PACKAGE/intel-536-537
21 while read file; do
22 [ -f done.$file ] && continue
23 echo "Apply $file..."
24 patch -p1 < ../stuff/$PACKAGE-$file || return 1
25 touch done.$file
26 done <<EOT
27 kernel-2.6.30.patch
28 EOT
29 grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/"
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 's|linux/autoconf.h|generated/autoconf.h|'
33 make KERNEL_SOURCE_PATH=/usr/src/linux KDIR=/usr/src/linux MODEM_TYPE=536 536
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
40 EXTRAVERSION=_$KERNEL_VERSION
42 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net
44 # Compress and install module
45 lzma e $WOK/$PACKAGE/intel-536-537/Intel536.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz
46 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel536.ko.gz
47 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-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 depmod -a
60 }