wok-6.x rev 1851

Add: ndiswrapper-driver, end of split.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Dec 14 10:55:03 2008 +0100 (2008-12-14)
parents 74fc0f86573d
children 8a74d5a16526
files hal/receipt linux-wireless/receipt ndiswrapper-driver/receipt ndiswrapper-driver/stuff/gztazmod.sh ndiswrapper-utils/receipt ndiswrapper/receipt pcmanfm/receipt wine/receipt
line diff
     1.1 --- a/hal/receipt	Sun Dec 14 10:53:02 2008 +0100
     1.2 +++ b/hal/receipt	Sun Dec 14 10:55:03 2008 +0100
     1.3 @@ -26,7 +26,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -	gzip -d /usr/share/misc/pci.ids.gz
     1.8 +	gzip -d ../stuff/pci.ids.gz
     1.9  	./configure \
    1.10  		--prefix=/usr \
    1.11  		--libexecdir=/usr/lib/hal \
     2.1 --- a/linux-wireless/receipt	Sun Dec 14 10:53:02 2008 +0100
     2.2 +++ b/linux-wireless/receipt	Sun Dec 14 10:55:03 2008 +0100
     2.3 @@ -15,13 +15,25 @@
     2.4      local path
     2.5      path=lib/modules/$VERSION-slitaz/kernel
     2.6      mkdir -p $fs/$path
     2.7 +    
     2.8      export src
     2.9      export _pkg
    2.10 +    
    2.11 +    echo "DEBUG"
    2.12 +    echo "path:$path"
    2.13 +    echo "src:$src"
    2.14 +    echo "_pkg:$_pkg"
    2.15 +    echo "DEBUG"
    2.16 +    
    2.17 +    $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 
    2.18 +    
    2.19 +    exit
    2.20      $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 | \
    2.21      while read module; do
    2.22      	dir=$path/$(dirname $module)
    2.23      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    2.24          cp -a $_pkg/$path/$module $fs/$dir
    2.25 +        echo "$_pkg/$path/$module $fs/$dir"
    2.26      done
    2.27  }
    2.28  
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/ndiswrapper-driver/receipt	Sun Dec 14 10:55:03 2008 +0100
     3.3 @@ -0,0 +1,55 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="ndiswrapper-driver"
     3.7 +VERSION="1.53"
     3.8 +CATEGORY="system-tools"
     3.9 +SHORT_DESC="Add Windows network drivers support to Linux kernel."
    3.10 +MAINTAINER="erjo@slitaz.org"
    3.11 +DEPENDS="linux"
    3.12 +BUILD_DEPENDS="slitaz-toolchain"
    3.13 +SOURCE="ndiswrapper"
    3.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    3.15 +WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
    3.16 +WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL
    3.17 + http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL"
    3.18 +
    3.19 +# Rules to configure and make the package.
    3.20 +compile_rules()
    3.21 +{
    3.22 +	
    3.23 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    3.24 +	if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
    3.25 +		tazwok cook linux
    3.26 +	fi
    3.27 +	cd $src
    3.28 +	make  KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 
    3.29 +}
    3.30 +
    3.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.32 +genpkg_rules()
    3.33 +{
    3.34 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    3.35 +	EXTRAVERSION=_$KERNEL_VERSION
    3.36 +	
    3.37 +	mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    3.38 +	
    3.39 +	# Install utilities	
    3.40 +	install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
    3.41 +	strip -s $fs/sbin/load*
    3.42 +
    3.43 +	# Compress and install module
    3.44 +	#./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
    3.45 +	install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    3.46 +}
    3.47 +
    3.48 +post_install()
    3.49 +{
    3.50 +	echo "Processing post-install commands..."
    3.51 +	depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
    3.52 +}
    3.53 +
    3.54 +post_remove()
    3.55 +{
    3.56 +	echo "Processing post-remove commands..."
    3.57 +	depmod -a
    3.58 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/ndiswrapper-driver/stuff/gztazmod.sh	Sun Dec 14 10:55:03 2008 +0100
     4.3 @@ -0,0 +1,64 @@
     4.4 +#!/bin/sh
     4.5 +# gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.
     4.6 +# 2007/10/04 <pankso@slitaz.org> - GNU General Public License.
     4.7 +#
     4.8 +
     4.9 +# We do our work in the kernel version modules directory.
    4.10 +if [ -z "$1" ] ; then
    4.11 +  echo ""
    4.12 +  echo -e "\033[1musage:\033[0m `basename $0` path/to/kernel-version"
    4.13 +  echo ""
    4.14 +  exit 1
    4.15 +fi
    4.16 +
    4.17 +if [ ! -r "$1" ] ; then
    4.18 +  echo ""
    4.19 +  echo -e "Error : $1 does not exist."
    4.20 +  echo ""
    4.21 +  exit 1
    4.22 +fi
    4.23 +
    4.24 +cd $1
    4.25 +
    4.26 +# Status functions.
    4.27 +status()
    4.28 +{
    4.29 +	local CHECK=$?
    4.30 +	echo -en "\\033[70G[ "
    4.31 +	if [ $CHECK = 0 ]; then
    4.32 +		echo -en "\\033[1;33mOK"
    4.33 +	else
    4.34 +		echo -en "\\033[1;31mFailed"
    4.35 +	fi
    4.36 +	echo -e "\\033[0;39m ]"
    4.37 +}
    4.38 +
    4.39 +# Script start.
    4.40 +echo ""
    4.41 +echo "Starting gztazmod.sh to build compressed kernel modules... "
    4.42 +echo ""
    4.43 +
    4.44 +# Find all modules.
    4.45 +echo -n "Searching all modules to gzip them... "
    4.46 +find . -name "*.ko" -exec gzip '{}' \;
    4.47 +status
    4.48 +
    4.49 +# Build a new temporary modules.dep.
    4.50 +echo -n "Building tmp.dep... "
    4.51 +sed 's/\.ko/.ko.gz/g' modules.dep > tmp.dep
    4.52 +status
    4.53 +
    4.54 +# Destroy original modules.dep
    4.55 +echo -n "Destroying modules.dep... "
    4.56 +rm modules.dep
    4.57 +status
    4.58 +
    4.59 +# Remove tmp.dep to modules.dep.
    4.60 +echo -n "Removing tmp.dep to modules.dep... "
    4.61 +mv tmp.dep modules.dep
    4.62 +status
    4.63 +
    4.64 +# Script end.
    4.65 +echo ""
    4.66 +echo "Kernel modules `basename $1` are ready."
    4.67 +echo ""
     5.1 --- a/ndiswrapper-utils/receipt	Sun Dec 14 10:53:02 2008 +0100
     5.2 +++ b/ndiswrapper-utils/receipt	Sun Dec 14 10:55:03 2008 +0100
     5.3 @@ -5,18 +5,18 @@
     5.4  CATEGORY="system-tools"
     5.5  SHORT_DESC="ndiswrapper utilities."
     5.6  MAINTAINER="erjo@slitaz.org"
     5.7 -DEPENDS="ndiswrapper perl"
     5.8 +DEPENDS="ndiswrapper-driver perl"
     5.9  BUILD_DEPENDS=""
    5.10  SOURCE="ndiswrapper"
    5.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    5.12 -WANTED="ndiswrapper"
    5.13 +WANTED="ndiswrapper-driver"
    5.14  WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
    5.15  
    5.16  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.17  genpkg_rules()
    5.18  {
    5.19  	
    5.20 -	src=${WOK}/${WANTED}/${WANTED}-${VERSION}
    5.21 +	src=${WOK}/${WANTED}/${SOURCE}-${VERSION}
    5.22  	
    5.23  	mkdir -p $fs/usr/sbin $fs/sbin 
    5.24  	
     6.1 --- a/ndiswrapper/receipt	Sun Dec 14 10:53:02 2008 +0100
     6.2 +++ b/ndiswrapper/receipt	Sun Dec 14 10:55:03 2008 +0100
     6.3 @@ -5,50 +5,14 @@
     6.4  CATEGORY="system-tools"
     6.5  SHORT_DESC="Add Windows network drivers support to Linux kernel."
     6.6  MAINTAINER="erjo@slitaz.org"
     6.7 -DEPENDS="linux"
     6.8 -BUILD_DEPENDS="slitaz-toolchain"
     6.9 +DEPENDS="ndiswrapper-driver ndiswrapper-utils"
    6.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.11  WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
    6.12  WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL
    6.13   http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL"
    6.14  
    6.15 -# Rules to configure and make the package.
    6.16 -compile_rules()
    6.17 -{
    6.18 -	
    6.19 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    6.20 -	if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
    6.21 -		tazwok cook linux
    6.22 -	fi
    6.23 -	cd $src
    6.24 -	make  KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 
    6.25 -}
    6.26 -
    6.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.28  genpkg_rules()
    6.29  {
    6.30 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    6.31 -	EXTRAVERSION=_$KERNEL_VERSION
    6.32 -	
    6.33 -	mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    6.34 -	
    6.35 -	# Install utilities	
    6.36 -	install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
    6.37 -	strip -s $fs/sbin/load*
    6.38 -
    6.39 -	# Compress and install module
    6.40 -	#./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
    6.41 -	install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    6.42 +	mkdir -p $fs/usr/sbin $fs/sbin 
    6.43  }
    6.44 -
    6.45 -post_install()
    6.46 -{
    6.47 -	echo "Processing post-install commands..."
    6.48 -	depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
    6.49 -}
    6.50 -
    6.51 -post_remove()
    6.52 -{
    6.53 -	echo "Processing post-remove commands..."
    6.54 -	depmod -a
    6.55 -}
     7.1 --- a/pcmanfm/receipt	Sun Dec 14 10:53:02 2008 +0100
     7.2 +++ b/pcmanfm/receipt	Sun Dec 14 10:55:03 2008 +0100
     7.3 @@ -6,8 +6,8 @@
     7.4  SHORT_DESC="Light and easy to use file manager."
     7.5  MAINTAINER="pankso@slitaz.org"
     7.6  DEPENDS="gtk+ xorg gamin startup-notification"
     7.7 -BUILD_DEPENDS="gtk+-dev gamin-dev startup-notification-dev 
     7.8 -	shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev"
     7.9 +BUILD_DEPENDS="gtk+-dev gamin-dev  
    7.10 +	shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev startup-notification-dev"
    7.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.12  WEB_SITE="http://pcmanfm.sourceforge.net/"
    7.13  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    7.14 @@ -19,8 +19,9 @@
    7.15  	./configure \
    7.16  		--prefix=/usr \
    7.17  		--mandir=/usr/share/man \
    7.18 -		$CONFIGURE_ARGS
    7.19 -	make
    7.20 +		--enable-hal \
    7.21 +		$CONFIGURE_ARGS &&
    7.22 +	make &&
    7.23  	make DESTDIR=$PWD/_pkg install
    7.24  }
    7.25  
     8.1 --- a/wine/receipt	Sun Dec 14 10:53:02 2008 +0100
     8.2 +++ b/wine/receipt	Sun Dec 14 10:55:03 2008 +0100
     8.3 @@ -1,7 +1,7 @@
     8.4  # SliTaz package receipt.
     8.5  
     8.6  PACKAGE="wine"
     8.7 -VERSION="1.0"
     8.8 +VERSION="1.0.1"
     8.9  CATEGORY="misc"
    8.10  SHORT_DESC="Windows API for Linux."
    8.11  MAINTAINER="pascal.bellard@slitaz.org"