wok annotate linmodem-agrsm/receipt @ rev 9943
gpgme: fix bdeps.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed May 18 12:04:53 2011 +0200 (2011-05-18) |
parents | fbe92309d288 |
children | 58ded5428ea5 |
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 |
pascal@7427 | 22 sed -i -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \ |
pascal@7427 | 23 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' agrsoftmodem.c |
jozee@4587 | 24 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION KRELEASE=$KERNEL_VERSION |
jozee@4587 | 25 |
jozee@4587 | 26 } |
jozee@4587 | 27 |
jozee@4587 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4587 | 29 genpkg_rules() |
jozee@4587 | 30 { |
jozee@4587 | 31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4587 | 32 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4587 | 33 |
jozee@4587 | 34 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net |
jozee@4587 | 35 |
jozee@4587 | 36 # Compress and install module |
jozee@4587 | 37 lzma e $src/agrmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 38 lzma e $src/agrserial.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 39 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 40 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrmodem.ko.gz |
jozee@4587 | 41 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 42 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/agrserial.ko.gz |
jozee@4587 | 43 } |
jozee@4587 | 44 |
jozee@4587 | 45 post_install() |
jozee@4587 | 46 { |
jozee@4587 | 47 echo "Processing post-install commands..." |
jozee@4587 | 48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4587 | 49 } |
jozee@4587 | 50 |
jozee@4587 | 51 post_remove() |
jozee@4587 | 52 { |
jozee@4587 | 53 echo "Processing post-remove commands..." |
jozee@4587 | 54 depmod -a |
jozee@4587 | 55 } |
jozee@4587 | 56 |