wok-stable view linmodem-slmodem/receipt @ rev 10738
firefox: dont disable js debuger --disable-jsd
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 29 22:42:22 2011 +0200 (2011-05-29) |
parents | f52b1d48a15a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-slmodem"
4 VERSION="2.9.11-20100303"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Drivers for the Smartlink winmodems"
8 WEB_SITE="http://linmodems.technion.ac.il/packages/smartlink/"
9 SOURCE="slmodem"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 BUILD_DEPENDS="linux-module-headers lzma"
15 # Rules to configure and make the package.
17 compile_rules() {
18 ungrab=ungrab-winmodem-20090716
19 [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] ||
20 wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY
21 [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz
22 cd $ungrab
23 make KERNEL_DIR=/usr/src/linux
24 cd $src
25 for i in utsrelease.h ; do
26 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
27 done
28 sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile
29 sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c
30 make KERNEL_DIR=/usr/src/linux SUPPORT_ALSA=1 DESTDIR=$DESTDIR drivers
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 EXTRAVERSION=_${kvers}
37 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
39 # Compress and install module
40 lzma e $src/drivers/slamr.ko \
41 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/slamr.ko.gz
42 lzma e ungrab-winmodem-20090716/ungrab-winmodem.ko \
43 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz
44 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz
45 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz
46 }
48 post_install()
49 {
50 echo "Processing post-install commands..."
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }
54 post_remove()
55 {
56 echo "Processing post-remove commands..."
57 depmod -a
58 }