wok-4.x diff linmodem-slmodem/receipt @ rev 10674
fastthread: Fixed category.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 27 05:05:23 2011 +0000 (2011-05-27) |
parents | f52b1d48a15a |
children |
line diff
1.1 --- a/linmodem-slmodem/receipt Sun Nov 28 13:05:10 2010 +0100 1.2 +++ b/linmodem-slmodem/receipt Fri May 27 05:05:23 2011 +0000 1.3 @@ -5,51 +5,44 @@ 1.4 CATEGORY="network" 1.5 MAINTAINER="jozee@slitaz.org" 1.6 SHORT_DESC="Drivers for the Smartlink winmodems" 1.7 -BUILD_DEPENDS="linux lzma" 1.8 WEB_SITE="http://linmodems.technion.ac.il/packages/smartlink/" 1.9 SOURCE="slmodem" 1.10 TARBALL="$SOURCE-$VERSION.tar.gz" 1.11 WGET_URL="$WEB_SITE/$TARBALL" 1.12 -TAGS="" 1.13 + 1.14 +BUILD_DEPENDS="linux-module-headers lzma" 1.15 1.16 # Rules to configure and make the package. 1.17 1.18 compile_rules() { 1.19 - 1.20 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.21 - [ -d $WOK/linux/taz ] || tazwok cook linux 1.22 - 1.23 - ungrab=ungrab-winmodem-20090716 1.24 - [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] || 1.25 - wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY 1.26 - [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz 1.27 - cd $ungrab 1.28 - make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION 1.29 - cd $src 1.30 - for i in utsrelease.h ; do 1.31 - grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" 1.32 - done 1.33 - sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile 1.34 - sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c 1.35 - make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION SUPPORT_ALSA=1 DESTDIR=$PWD/_pkg drivers 1.36 + ungrab=ungrab-winmodem-20090716 1.37 + [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] || 1.38 + wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY 1.39 + [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz 1.40 + cd $ungrab 1.41 + make KERNEL_DIR=/usr/src/linux 1.42 + cd $src 1.43 + for i in utsrelease.h ; do 1.44 + grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" 1.45 + done 1.46 + sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile 1.47 + sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c 1.48 + make KERNEL_DIR=/usr/src/linux SUPPORT_ALSA=1 DESTDIR=$DESTDIR drivers 1.49 } 1.50 1.51 # Rules to gen a SliTaz package suitable for Tazpkg. 1.52 genpkg_rules() 1.53 { 1.54 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.55 - EXTRAVERSION=_$KERNEL_VERSION 1.56 - 1.57 - mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net 1.58 + EXTRAVERSION=_${kvers} 1.59 + mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net 1.60 1.61 # Compress and install module 1.62 - lzma e $src/drivers/slamr.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz 1.63 - lzma e ungrab-winmodem-20090716/ungrab-winmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz 1.64 - chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz 1.65 - chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz 1.66 - chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz 1.67 - chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz 1.68 - 1.69 + lzma e $src/drivers/slamr.ko \ 1.70 + $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/slamr.ko.gz 1.71 + lzma e ungrab-winmodem-20090716/ungrab-winmodem.ko \ 1.72 + $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz 1.73 + chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz 1.74 + chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz 1.75 } 1.76 1.77 post_install()