wok-current diff linmodem-intel-537/receipt @ rev 4611
add ln to coreutils-operations
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Dec 16 19:25:37 2009 +0000 (2009-12-16) |
parents | |
children | 0863ca91f10a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linmodem-intel-537/receipt Wed Dec 16 19:25:37 2009 +0000 1.3 @@ -0,0 +1,61 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linmodem-intel-537" 1.7 +VERSION="2.60.80.0" 1.8 +CATEGORY="network" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Intel Modem Drivers for 537 chipsets" 1.11 +BUILD_DEPENDS="linux lzma" 1.12 +WEB_SITE="http://linmodems.technion.ac.il/packages/Intel/" 1.13 +TARBALL="intel-536EP-537EP_2009_07_04.tar.bz2" 1.14 +WGET_URL="$WEB_SITE/Philippe.Vouters/$TARBALL" 1.15 +TAGS="" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 + 1.19 +compile_rules() { 1.20 + 1.21 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 + [ -d $WOK/linux/taz ] || tazwok cook linux 1.23 + cd $WOK/$PACKAGE/intel-536-537 1.24 + 1.25 + while read file; do 1.26 + [ -f done.$file ] && continue 1.27 + echo "Apply $file..." 1.28 + patch -p1 < ../stuff/$PACKAGE-$file || return 1 1.29 + touch done.$file 1.30 + done <<EOT 1.31 +kernel-2.6.30.patch 1.32 +EOT 1.33 + # Bypass linux source package check 1.34 + sed -i 's/@bash config_check/#@bash config_check/' makefile 1.35 + make KERNEL_SOURCE_PATH=$WOK/linux/linux-$KERNEL_VERSION KDIR=$WOK/linux/linux-$KERNEL_VERSION MODEM_TYPE=537 537 1.36 + 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.43 + EXTRAVERSION=_$KERNEL_VERSION 1.44 + 1.45 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.46 + 1.47 + # Compress and install module 1.48 + lzma e $WOK/$PACKAGE/intel-536-537/Intel537.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.49 + chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.50 + chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/intel537.ko.gz 1.51 +} 1.52 + 1.53 +post_install() 1.54 +{ 1.55 + echo "Processing post-install commands..." 1.56 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.57 +} 1.58 + 1.59 +post_remove() 1.60 +{ 1.61 + echo "Processing post-remove commands..." 1.62 + depmod -a 1.63 +} 1.64 +