# HG changeset patch # User Eric Joseph-Alexandre # Date 1229248503 -3600 # Node ID f9c021d9b2fc0f9db214310a86533002f86fffb8 # Parent 74fc0f86573de950a1c38f5e73ecde5ce4bc7b41 Add: ndiswrapper-driver, end of split. diff -r 74fc0f86573d -r f9c021d9b2fc hal/receipt --- a/hal/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/hal/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -26,7 +26,7 @@ compile_rules() { cd $src - gzip -d /usr/share/misc/pci.ids.gz + gzip -d ../stuff/pci.ids.gz ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/hal \ diff -r 74fc0f86573d -r f9c021d9b2fc linux-wireless/receipt --- a/linux-wireless/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/linux-wireless/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -15,13 +15,25 @@ local path path=lib/modules/$VERSION-slitaz/kernel mkdir -p $fs/$path + export src export _pkg + + echo "DEBUG" + echo "path:$path" + echo "src:$src" + echo "_pkg:$_pkg" + echo "DEBUG" + + $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 + + exit $src/list_modules.sh drivers/net/wireless net/wireless net/ieee80211 | \ while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir + echo "$_pkg/$path/$module $fs/$dir" done } diff -r 74fc0f86573d -r f9c021d9b2fc ndiswrapper-driver/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ndiswrapper-driver/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -0,0 +1,55 @@ +# SliTaz package receipt. + +PACKAGE="ndiswrapper-driver" +VERSION="1.53" +CATEGORY="system-tools" +SHORT_DESC="Add Windows network drivers support to Linux kernel." +MAINTAINER="erjo@slitaz.org" +DEPENDS="linux" +BUILD_DEPENDS="slitaz-toolchain" +SOURCE="ndiswrapper" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" +WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL + http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` + if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then + tazwok cook linux + fi + cd $src + make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` + EXTRAVERSION=_$KERNEL_VERSION + + mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc + + # Install utilities + install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ + strip -s $fs/sbin/load* + + # Compress and install module + #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz + install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc +} + +post_install() +{ + echo "Processing post-install commands..." + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz +} + +post_remove() +{ + echo "Processing post-remove commands..." + depmod -a +} diff -r 74fc0f86573d -r f9c021d9b2fc ndiswrapper-driver/stuff/gztazmod.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ndiswrapper-driver/stuff/gztazmod.sh Sun Dec 14 10:55:03 2008 +0100 @@ -0,0 +1,64 @@ +#!/bin/sh +# gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux. +# 2007/10/04 - GNU General Public License. +# + +# We do our work in the kernel version modules directory. +if [ -z "$1" ] ; then + echo "" + echo -e "\033[1musage:\033[0m `basename $0` path/to/kernel-version" + echo "" + exit 1 +fi + +if [ ! -r "$1" ] ; then + echo "" + echo -e "Error : $1 does not exist." + echo "" + exit 1 +fi + +cd $1 + +# Status functions. +status() +{ + local CHECK=$? + echo -en "\\033[70G[ " + if [ $CHECK = 0 ]; then + echo -en "\\033[1;33mOK" + else + echo -en "\\033[1;31mFailed" + fi + echo -e "\\033[0;39m ]" +} + +# Script start. +echo "" +echo "Starting gztazmod.sh to build compressed kernel modules... " +echo "" + +# Find all modules. +echo -n "Searching all modules to gzip them... " +find . -name "*.ko" -exec gzip '{}' \; +status + +# Build a new temporary modules.dep. +echo -n "Building tmp.dep... " +sed 's/\.ko/.ko.gz/g' modules.dep > tmp.dep +status + +# Destroy original modules.dep +echo -n "Destroying modules.dep... " +rm modules.dep +status + +# Remove tmp.dep to modules.dep. +echo -n "Removing tmp.dep to modules.dep... " +mv tmp.dep modules.dep +status + +# Script end. +echo "" +echo "Kernel modules `basename $1` are ready." +echo "" diff -r 74fc0f86573d -r f9c021d9b2fc ndiswrapper-utils/receipt --- a/ndiswrapper-utils/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/ndiswrapper-utils/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -5,18 +5,18 @@ CATEGORY="system-tools" SHORT_DESC="ndiswrapper utilities." MAINTAINER="erjo@slitaz.org" -DEPENDS="ndiswrapper perl" +DEPENDS="ndiswrapper-driver perl" BUILD_DEPENDS="" SOURCE="ndiswrapper" TARBALL="$SOURCE-$VERSION.tar.gz" -WANTED="ndiswrapper" +WANTED="ndiswrapper-driver" WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - src=${WOK}/${WANTED}/${WANTED}-${VERSION} + src=${WOK}/${WANTED}/${SOURCE}-${VERSION} mkdir -p $fs/usr/sbin $fs/sbin diff -r 74fc0f86573d -r f9c021d9b2fc ndiswrapper/receipt --- a/ndiswrapper/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/ndiswrapper/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -5,50 +5,14 @@ CATEGORY="system-tools" SHORT_DESC="Add Windows network drivers support to Linux kernel." MAINTAINER="erjo@slitaz.org" -DEPENDS="linux" -BUILD_DEPENDS="slitaz-toolchain" +DEPENDS="ndiswrapper-driver ndiswrapper-utils" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" -# Rules to configure and make the package. -compile_rules() -{ - - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then - tazwok cook linux - fi - cd $src - make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION -} - # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - EXTRAVERSION=_$KERNEL_VERSION - - mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc - - # Install utilities - install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ - strip -s $fs/sbin/load* - - # Compress and install module - #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz - install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc + mkdir -p $fs/usr/sbin $fs/sbin } - -post_install() -{ - echo "Processing post-install commands..." - depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz -} - -post_remove() -{ - echo "Processing post-remove commands..." - depmod -a -} diff -r 74fc0f86573d -r f9c021d9b2fc pcmanfm/receipt --- a/pcmanfm/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/pcmanfm/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -6,8 +6,8 @@ SHORT_DESC="Light and easy to use file manager." MAINTAINER="pankso@slitaz.org" DEPENDS="gtk+ xorg gamin startup-notification" -BUILD_DEPENDS="gtk+-dev gamin-dev startup-notification-dev - shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev" +BUILD_DEPENDS="gtk+-dev gamin-dev + shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev startup-notification-dev" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://pcmanfm.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" @@ -19,8 +19,9 @@ ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ - $CONFIGURE_ARGS - make + --enable-hal \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install } diff -r 74fc0f86573d -r f9c021d9b2fc wine/receipt --- a/wine/receipt Sun Dec 14 10:53:02 2008 +0100 +++ b/wine/receipt Sun Dec 14 10:55:03 2008 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="wine" -VERSION="1.0" +VERSION="1.0.1" CATEGORY="misc" SHORT_DESC="Windows API for Linux." MAINTAINER="pascal.bellard@slitaz.org"