wok-current annotate linmodem-slmodem/receipt @ rev 8271
Added xorg-imake to mesa depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 30 01:38:36 2011 +0000 (2011-01-30) |
parents | b4b992b90e4a |
children | 51dc38f6efca |
rev | line source |
---|---|
jozee@4590 | 1 # SliTaz package receipt. |
jozee@4590 | 2 |
jozee@4590 | 3 PACKAGE="linmodem-slmodem" |
pascal@5467 | 4 VERSION="2.9.11-20100303" |
jozee@4590 | 5 CATEGORY="network" |
jozee@4590 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4590 | 7 SHORT_DESC="Drivers for the Smartlink winmodems" |
jozee@4590 | 8 BUILD_DEPENDS="linux lzma" |
jozee@4590 | 9 WEB_SITE="http://linmodems.technion.ac.il/packages/smartlink/" |
jozee@4590 | 10 SOURCE="slmodem" |
jozee@4590 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
jozee@4590 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
jozee@4590 | 13 TAGS="" |
jozee@4590 | 14 |
jozee@4590 | 15 # Rules to configure and make the package. |
jozee@4590 | 16 |
jozee@4590 | 17 compile_rules() { |
jozee@4590 | 18 |
jozee@4590 | 19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4590 | 20 [ -d $WOK/linux/taz ] || tazwok cook linux |
jozee@4590 | 21 |
pascal@5553 | 22 ungrab=ungrab-winmodem-20090716 |
pascal@5553 | 23 [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] || |
pascal@5553 | 24 wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY |
pascal@5553 | 25 [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz |
pascal@5553 | 26 cd $ungrab |
jozee@4590 | 27 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION |
jozee@4590 | 28 cd $src |
pascal@5467 | 29 for i in utsrelease.h ; do |
pascal@5467 | 30 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" |
pascal@5467 | 31 done |
jozee@4590 | 32 sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile |
pascal@7419 | 33 sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c |
jozee@4590 | 34 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION SUPPORT_ALSA=1 DESTDIR=$PWD/_pkg drivers |
jozee@4590 | 35 } |
jozee@4590 | 36 |
jozee@4590 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4590 | 38 genpkg_rules() |
jozee@4590 | 39 { |
jozee@4590 | 40 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4590 | 41 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4590 | 42 |
jozee@4590 | 43 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net |
jozee@4590 | 44 |
jozee@4590 | 45 # Compress and install module |
jozee@4590 | 46 lzma e $src/drivers/slamr.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz |
jozee@4590 | 47 lzma e ungrab-winmodem-20090716/ungrab-winmodem.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz |
jozee@4590 | 48 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz |
jozee@4590 | 49 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz |
jozee@4590 | 50 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/slamr.ko.gz |
jozee@4590 | 51 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz |
jozee@4590 | 52 |
jozee@4590 | 53 } |
jozee@4590 | 54 |
jozee@4590 | 55 post_install() |
jozee@4590 | 56 { |
jozee@4590 | 57 echo "Processing post-install commands..." |
jozee@4590 | 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4590 | 59 } |
jozee@4590 | 60 |
jozee@4590 | 61 post_remove() |
jozee@4590 | 62 { |
jozee@4590 | 63 echo "Processing post-remove commands..." |
jozee@4590 | 64 depmod -a |
jozee@4590 | 65 } |