wok-6.x annotate linmodem-agrsm/receipt @ rev 13516
Add vpnc-cert
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 19 10:04:18 2012 +0200 (2012-10-19) |
parents | ab6b8c6c469c |
children |
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 |
pascal@13278 | 13 BUILD_DEPENDS="linux linux-module-headers xz" |
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 |
pascal@12860 | 22 make KERNEL_DIR=/usr/src/linux 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 { |
pascal@12859 | 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 |
pascal@13278 | 32 cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@13280 | 33 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko |
pascal@13278 | 34 cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ |
pascal@13280 | 35 xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko |
pascal@13278 | 36 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
pascal@13278 | 37 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz |
jozee@4587 | 38 } |
jozee@4587 | 39 |
jozee@4587 | 40 post_install() |
jozee@4587 | 41 { |
jozee@4587 | 42 echo "Processing post-install commands..." |
jozee@4587 | 43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4587 | 44 } |
jozee@4587 | 45 |
jozee@4587 | 46 post_remove() |
jozee@4587 | 47 { |
jozee@4587 | 48 echo "Processing post-remove commands..." |
jozee@4587 | 49 depmod -a |
jozee@4587 | 50 } |
jozee@4587 | 51 |