wok-4.x annotate 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 |
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 WEB_SITE="http://linmodems.technion.ac.il/packages/smartlink/" |
jozee@4590 | 9 SOURCE="slmodem" |
jozee@4590 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
jozee@4590 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pankso@10668 | 12 |
pankso@10668 | 13 BUILD_DEPENDS="linux-module-headers lzma" |
jozee@4590 | 14 |
jozee@4590 | 15 # Rules to configure and make the package. |
jozee@4590 | 16 |
jozee@4590 | 17 compile_rules() { |
pankso@10668 | 18 ungrab=ungrab-winmodem-20090716 |
pankso@10668 | 19 [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] || |
pankso@10668 | 20 wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY |
pankso@10668 | 21 [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz |
pankso@10668 | 22 cd $ungrab |
pankso@10668 | 23 make KERNEL_DIR=/usr/src/linux |
pankso@10668 | 24 cd $src |
pankso@10668 | 25 for i in utsrelease.h ; do |
pankso@10668 | 26 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" |
pankso@10668 | 27 done |
pankso@10668 | 28 sed -i 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' drivers/Makefile |
pankso@10668 | 29 sed -i 's/\.ioctl/.unlocked_ioctl/' drivers/amrmo_init.c |
pankso@10668 | 30 make KERNEL_DIR=/usr/src/linux SUPPORT_ALSA=1 DESTDIR=$DESTDIR drivers |
jozee@4590 | 31 } |
jozee@4590 | 32 |
jozee@4590 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4590 | 34 genpkg_rules() |
jozee@4590 | 35 { |
pankso@10668 | 36 EXTRAVERSION=_${kvers} |
pankso@10668 | 37 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net |
jozee@4590 | 38 |
jozee@4590 | 39 # Compress and install module |
pankso@10668 | 40 lzma e $src/drivers/slamr.ko \ |
pankso@10668 | 41 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/slamr.ko.gz |
pankso@10668 | 42 lzma e ungrab-winmodem-20090716/ungrab-winmodem.ko \ |
pankso@10668 | 43 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/ungrab-winmodem.ko.gz |
pankso@10668 | 44 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz |
pankso@10668 | 45 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.gz |
jozee@4590 | 46 } |
jozee@4590 | 47 |
jozee@4590 | 48 post_install() |
jozee@4590 | 49 { |
jozee@4590 | 50 echo "Processing post-install commands..." |
jozee@4590 | 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4590 | 52 } |
jozee@4590 | 53 |
jozee@4590 | 54 post_remove() |
jozee@4590 | 55 { |
jozee@4590 | 56 echo "Processing post-remove commands..." |
jozee@4590 | 57 depmod -a |
jozee@4590 | 58 } |