wok-current view linmodem-agrsm/receipt @ rev 13483

up pciids (20121010)
author Samuel Trassare <samuel_trassare@yahoo.com>
date Thu Oct 11 23:09:19 2012 +0000 (2012-10-11)
parents ab6b8c6c469c
children
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 xz"
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 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 cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
33 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko
34 cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
35 xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko
36 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
37 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
38 }
40 post_install()
41 {
42 echo "Processing post-install commands..."
43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 echo "Processing post-remove commands..."
49 depmod -a
50 }