wok-undigest annotate linmodem-agrsm/receipt @ rev 1202
pdfgrep (update bdeps)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Aug 21 14:45:48 2016 +0100 (2016-08-21) |
parents | 83b4ca62624e |
children |
rev | line source |
---|---|
pascal@955 | 1 # SliTaz package receipt. |
pascal@955 | 2 |
pascal@955 | 3 PACKAGE="linmodem-agrsm" |
pascal@955 | 4 SOURCE="agrsm-11c11040" |
pascal@955 | 5 VERSION="2.1.80~20091225" |
pascal@955 | 6 CATEGORY="network" |
pascal@955 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@1069 | 8 LICENSE="other" |
pascal@955 | 9 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets" |
pascal@955 | 10 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040" |
pascal@955 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@955 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@955 | 13 |
pascal@955 | 14 BUILD_DEPENDS="linux linux-module-headers xz" |
pascal@955 | 15 |
pascal@955 | 16 # Rules to configure and make the package. |
pascal@955 | 17 compile_rules() |
pascal@955 | 18 { |
pascal@955 | 19 sed -i \ |
pascal@955 | 20 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \ |
pascal@955 | 21 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \ |
pascal@955 | 22 agrsoftmodem.c |
pascal@955 | 23 make KERNEL_DIR=/usr/src/linux KRELEASE=$kvers |
pascal@955 | 24 } |
pascal@955 | 25 |
pascal@955 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@955 | 27 genpkg_rules() |
pascal@955 | 28 { |
pascal@955 | 29 EXTRAVERSION=_${kvers%.*} |
pascal@955 | 30 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net |
pascal@955 | 31 |
pascal@955 | 32 # Compress and install module |
pascal@955 | 33 cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@955 | 34 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko |
pascal@955 | 35 cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@955 | 36 xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko |
pascal@955 | 37 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
pascal@955 | 38 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
pascal@955 | 39 } |
pascal@955 | 40 |
pascal@955 | 41 post_install() |
pascal@955 | 42 { |
pascal@955 | 43 echo "Processing post-install commands..." |
pascal@955 | 44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@955 | 45 } |
pascal@955 | 46 |
pascal@955 | 47 post_remove() |
pascal@955 | 48 { |
pascal@955 | 49 echo "Processing post-remove commands..." |
pascal@955 | 50 depmod -a |
pascal@955 | 51 } |
pascal@955 | 52 |