wok-next annotate linmodem-agrsm/receipt @ rev 7396
linmodem-hsfmodem: fix kernel version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 26 18:52:20 2010 +0100 (2010-11-26) |
parents | fb7eaa6ddef7 |
children | 817ef09fb63f |
rev | line source |
---|---|
jozee@4587 | 1 # SliTaz package receipt. |
jozee@4587 | 2 |
jozee@4587 | 3 PACKAGE="linmodem-agrsm" |
pascal@5468 | 4 SOURCE="agrsm-11c11040" |
jozee@5342 | 5 VERSION="2.1.80~20091225" |
jozee@4587 | 6 CATEGORY="network" |
jozee@4587 | 7 MAINTAINER="jozee@slitaz.org" |
jozee@4587 | 8 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets" |
jozee@4587 | 9 BUILD_DEPENDS="linux lzma" |
jozee@4587 | 10 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040" |
pascal@5468 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
jozee@4587 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
jozee@4587 | 13 TAGS="" |
jozee@4587 | 14 |
jozee@4587 | 15 # Rules to configure and make the package. |
jozee@4587 | 16 |
jozee@4587 | 17 compile_rules() { |
jozee@4587 | 18 |
jozee@4587 | 19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4587 | 20 [ -d $WOK/linux/taz ] || tazwok cook linux |
jozee@4587 | 21 cd $src |
jozee@4587 | 22 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION KRELEASE=$KERNEL_VERSION |
jozee@4587 | 23 |
jozee@4587 | 24 } |
jozee@4587 | 25 |
jozee@4587 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4587 | 27 genpkg_rules() |
jozee@4587 | 28 { |
jozee@4587 | 29 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4587 | 30 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4587 | 31 |
jozee@4587 | 32 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net |
jozee@4587 | 33 |
jozee@4587 | 34 # Compress and install module |
jozee@4587 | 35 lzma e $src/agrmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 36 lzma e $src/agrserial.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 37 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 38 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 39 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 40 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 41 } |
jozee@4587 | 42 |
jozee@4587 | 43 post_install() |
jozee@4587 | 44 { |
jozee@4587 | 45 echo "Processing post-install commands..." |
jozee@4587 | 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4587 | 47 } |
jozee@4587 | 48 |
jozee@4587 | 49 post_remove() |
jozee@4587 | 50 { |
jozee@4587 | 51 echo "Processing post-remove commands..." |
jozee@4587 | 52 depmod -a |
jozee@4587 | 53 } |
jozee@4587 | 54 |