wok diff ndiswrapper/receipt @ rev 1869

Cleanup tck/tk packages.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Dec 16 22:46:36 2008 +0100 (2008-12-16)
parents 45d974386ace
children 2eaab2a3a962
line diff
     1.1 --- a/ndiswrapper/receipt	Fri Dec 05 23:08:55 2008 +0100
     1.2 +++ b/ndiswrapper/receipt	Tue Dec 16 22:46:36 2008 +0100
     1.3 @@ -5,50 +5,14 @@
     1.4  CATEGORY="system-tools"
     1.5  SHORT_DESC="Add Windows network drivers support to Linux kernel."
     1.6  MAINTAINER="erjo@slitaz.org"
     1.7 -DEPENDS="linux"
     1.8 -BUILD_DEPENDS="slitaz-toolchain"
     1.9 +DEPENDS="ndiswrapper-driver ndiswrapper-utils"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
    1.12  WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL
    1.13   http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL"
    1.14  
    1.15 -# Rules to configure and make the package.
    1.16 -compile_rules()
    1.17 -{
    1.18 -	
    1.19 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.20 -	if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
    1.21 -		tazwok cook linux
    1.22 -	fi
    1.23 -	cd $src
    1.24 -	make  KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 
    1.25 -}
    1.26 -
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.31 -	EXTRAVERSION=_$KERNEL_VERSION
    1.32 -	
    1.33 -	mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.34 -	
    1.35 -	# Install utilities	
    1.36 -	install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
    1.37 -	strip -s $fs/sbin/load*
    1.38 -
    1.39 -	# Compress and install module
    1.40 -	#./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
    1.41 -	install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.42 +	mkdir -p $fs/usr/sbin $fs/sbin 
    1.43  }
    1.44 -
    1.45 -post_install()
    1.46 -{
    1.47 -	echo "Processing post-install commands..."
    1.48 -	depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
    1.49 -}
    1.50 -
    1.51 -post_remove()
    1.52 -{
    1.53 -	echo "Processing post-remove commands..."
    1.54 -	depmod -a
    1.55 -}