wok-6.x view linmodem-agrsm/receipt @ rev 12629
exosip: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 12:47:50 2012 +0200 (2012-04-29) |
parents | 58ded5428ea5 |
children | b9368eac086f |
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-agrsm"
4 SOURCE="agrsm-11c11040"
5 VERSION="2.1.80~20091225"
6 CATEGORY="network"
7 MAINTAINER="jozee@slitaz.org"
8 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets"
9 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 BUILD_DEPENDS="linux linux-module-headers lzma"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 sed -i \
19 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \
20 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \
21 agrsoftmodem.c
22 make KERNEL_DIR=/usr/src/linux-$kvers-slitaz KRELEASE=$kvers
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 EXTRAVERSION=_${kvers}
29 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
31 # Compress and install module
32 lzma e $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko.gz
33 lzma e $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko.gz
34 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz
35 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz
36 }
38 post_install()
39 {
40 echo "Processing post-install commands..."
41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
42 }
44 post_remove()
45 {
46 echo "Processing post-remove commands..."
47 depmod -a
48 }