wok-current annotate linmodem-agrsm/receipt @ rev 11854
locale*: update WANTED
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 11:20:24 2012 +0100 (2012-02-27) |
parents | 58ded5428ea5 |
children | b9368eac086f |
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 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040" |
pascal@5468 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
jozee@4587 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pankso@10658 | 12 |
pankso@10658 | 13 BUILD_DEPENDS="linux linux-module-headers lzma" |
jozee@4587 | 14 |
jozee@4587 | 15 # Rules to configure and make the package. |
pankso@10658 | 16 compile_rules() |
pankso@10658 | 17 { |
pankso@10658 | 18 sed -i \ |
pankso@10658 | 19 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \ |
pankso@10658 | 20 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \ |
pankso@10658 | 21 agrsoftmodem.c |
pankso@10668 | 22 make KERNEL_DIR=/usr/src/linux-$kvers-slitaz KRELEASE=$kvers |
jozee@4587 | 23 } |
jozee@4587 | 24 |
jozee@4587 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4587 | 26 genpkg_rules() |
pankso@10668 | 27 { |
pankso@10668 | 28 EXTRAVERSION=_${kvers} |
pankso@10668 | 29 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net |
jozee@4587 | 30 |
jozee@4587 | 31 # Compress and install module |
pankso@10668 | 32 lzma e $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko.gz |
pankso@10668 | 33 lzma e $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko.gz |
pankso@10668 | 34 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz |
pankso@10668 | 35 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz |
jozee@4587 | 36 } |
jozee@4587 | 37 |
jozee@4587 | 38 post_install() |
jozee@4587 | 39 { |
jozee@4587 | 40 echo "Processing post-install commands..." |
jozee@4587 | 41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4587 | 42 } |
jozee@4587 | 43 |
jozee@4587 | 44 post_remove() |
jozee@4587 | 45 { |
jozee@4587 | 46 echo "Processing post-remove commands..." |
jozee@4587 | 47 depmod -a |
jozee@4587 | 48 } |
jozee@4587 | 49 |