wok-stable annotate ndiswrapper-driver/receipt @ rev 4446

Up: ndiswrapper-driver, utils;fix WGET_URL
author Rohit Joshi <jozee@slitaz.org>
date Thu Nov 05 19:41:12 2009 +0000 (2009-11-05)
parents 09588e205d31
children bee79018e13a
rev   line source
erjo@1851 1 # SliTaz package receipt.
erjo@1851 2
erjo@1851 3 PACKAGE="ndiswrapper-driver"
jozee@4446 4 VERSION="1.55"
erjo@1851 5 CATEGORY="system-tools"
erjo@1851 6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
erjo@1851 7 MAINTAINER="erjo@slitaz.org"
pascal@1885 8 DEPENDS="linux lzma"
erjo@1851 9 BUILD_DEPENDS="slitaz-toolchain"
erjo@1851 10 SOURCE="ndiswrapper"
erjo@1851 11 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@1851 12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
jozee@4446 13 WGET_URL="$SF_MIRROR/$SOURCE/files/stable/$VERSION/$TARBALL"
erjo@1851 14
erjo@1851 15 # Rules to configure and make the package.
erjo@1851 16 compile_rules()
erjo@1851 17 {
erjo@1851 18
erjo@1851 19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1851 20 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
erjo@1851 21 tazwok cook linux
erjo@1851 22 fi
erjo@1851 23 cd $src
erjo@1851 24 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
erjo@1851 25 }
erjo@1851 26
erjo@1851 27 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 28 genpkg_rules()
erjo@1851 29 {
erjo@1851 30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1851 31 EXTRAVERSION=_$KERNEL_VERSION
erjo@1851 32
erjo@1851 33 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
erjo@1851 34
erjo@1851 35 # Install utilities
erjo@1851 36 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
erjo@1851 37 strip -s $fs/sbin/load*
erjo@1851 38
erjo@1851 39 # Compress and install module
erjo@1851 40 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
pascal@1885 41 lzma e $src/driver/ndiswrapper.ko \
pascal@1885 42 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
pascal@1885 43 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
pascal@1885 44 chmod O644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
erjo@1851 45 }
erjo@1851 46
erjo@1851 47 post_install()
erjo@1851 48 {
erjo@1851 49 echo "Processing post-install commands..."
pascal@2926 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
erjo@1851 51 }
erjo@1851 52
erjo@1851 53 post_remove()
erjo@1851 54 {
erjo@1851 55 echo "Processing post-remove commands..."
erjo@1851 56 depmod -a
erjo@1851 57 }