wok-undigest annotate linmodem-agrsm/receipt @ rev 1029
miniupnpd: fix install path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 01 10:07:03 2013 +0000 (2013-08-01) |
parents | |
children | 135ad0e1fc7d |
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@955 | 8 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets" |
pascal@955 | 9 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040" |
pascal@955 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@955 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@955 | 12 |
pascal@955 | 13 BUILD_DEPENDS="linux linux-module-headers xz" |
pascal@955 | 14 |
pascal@955 | 15 # Rules to configure and make the package. |
pascal@955 | 16 compile_rules() |
pascal@955 | 17 { |
pascal@955 | 18 sed -i \ |
pascal@955 | 19 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \ |
pascal@955 | 20 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \ |
pascal@955 | 21 agrsoftmodem.c |
pascal@955 | 22 make KERNEL_DIR=/usr/src/linux KRELEASE=$kvers |
pascal@955 | 23 } |
pascal@955 | 24 |
pascal@955 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@955 | 26 genpkg_rules() |
pascal@955 | 27 { |
pascal@955 | 28 EXTRAVERSION=_${kvers%.*} |
pascal@955 | 29 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net |
pascal@955 | 30 |
pascal@955 | 31 # Compress and install module |
pascal@955 | 32 cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@955 | 33 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko |
pascal@955 | 34 cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@955 | 35 xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko |
pascal@955 | 36 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
pascal@955 | 37 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
pascal@955 | 38 } |
pascal@955 | 39 |
pascal@955 | 40 post_install() |
pascal@955 | 41 { |
pascal@955 | 42 echo "Processing post-install commands..." |
pascal@955 | 43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@955 | 44 } |
pascal@955 | 45 |
pascal@955 | 46 post_remove() |
pascal@955 | 47 { |
pascal@955 | 48 echo "Processing post-remove commands..." |
pascal@955 | 49 depmod -a |
pascal@955 | 50 } |
pascal@955 | 51 |