wok-6.x rev 2994

Remove atl2 compat-wireless madwifi
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 11 20:35:40 2009 +0200 (2009-05-11)
parents 4a83c4b49c5d
children babed361ea77
files atl2/receipt compat-wireless/receipt madwifi/receipt
line diff
     1.1 --- a/atl2/receipt	Mon May 11 20:33:07 2009 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,49 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="atl2"
     1.7 -VERSION="2.0.4"
     1.8 -CATEGORY="system-tools"
     1.9 -SHORT_DESC="Driver for the Atheros L2"
    1.10 -MAINTAINER="erjo@slitaz.org"
    1.11 -DEPENDS="linux"
    1.12 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 -WEB_SITE="http://atl2.sf.net/"
    1.14 -WGET_URL="http://people.redhat.com/csnook/atl2/atl2-2.0.4.tar.bz2"
    1.15 -
    1.16 -# Rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 -	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.20 -	if [ ! -d $WOK/linux/linux-$KVER ]; then
    1.21 -		tazwok cook linux
    1.22 -	fi
    1.23 -	cd $src
    1.24 -	make KSRC=$WOK/linux/linux-$KVER
    1.25 -}
    1.26 -
    1.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 -genpkg_rules()
    1.29 -{
    1.30 -	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.31 -	EXTRAVERSION=_$KVER
    1.32 -	
    1.33 -	mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
    1.34 -	
    1.35 -	# Find all modules (gztazmod.sh code).
    1.36 -	echo -n "Searching all modules to compress them... "
    1.37 -	find $src -name "*.ko" -exec lzma e '{}' '{}'.gz \;
    1.38 -
    1.39 -	# copy module 
    1.40 -	cp -a $src/*.gz $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
    1.41 -}
    1.42 -
    1.43 -# Post install/remove commands for Tazpkg.
    1.44 -post_install()
    1.45 -{
    1.46 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.47 -}
    1.48 -
    1.49 -post_remove()
    1.50 -{
    1.51 -	depmod -a 
    1.52 -}
     2.1 --- a/compat-wireless/receipt	Mon May 11 20:33:07 2009 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,63 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="compat-wireless"
     2.7 -VERSION="2009-04-08"
     2.8 -CATEGORY="base-system"
     2.9 -SHORT_DESC="Linux wireless driver update."
    2.10 -MAINTAINER="pascal.bellard@slitaz.org"
    2.11 -WEB_SITE="http://wireless.kernel.org/"
    2.12 -TARBALL="$PACKAGE-old-$VERSION.tar.bz2"
    2.13 -WGET_URL="${WEB_SITE}download/$PACKAGE-2.6/$TARBALL"
    2.14 -DEPENDS="linux"
    2.15 -BUILD_DEPENDS="lzma"
    2.16 -PROVIDE="linux-wireless"
    2.17 -
    2.18 -# Rules to configure and make the package.
    2.19 -compile_rules()
    2.20 -{
    2.21 -	local kver
    2.22 -	local kpath
    2.23 -
    2.24 -	mv $PACKAGE-2.6-old $src 2> /dev/null
    2.25 -	cd $src
    2.26 -	# get kernel version
    2.27 -	if [ ! -d $WOK/linux/taz ]; then
    2.28 -		tazwok cook linux
    2.29 -	fi
    2.30 -	kpath=$WOK/linux/$(ls $WOK/linux/taz)
    2.31 -	kver=$(grep "kernel version" $kpath/.config)
    2.32 -	kver=${kver##* }
    2.33 -	IFS='.'; set -- $kver ; unset IFS
    2.34 -	if [ $1 -ne 2 -o $2 -ne 6 -o $3 -lt 22 -o $3 -gt 27 ]; then
    2.35 -		cat <<EOT
    2.36 -Wrong linux version $kver
    2.37 -Supported versions are 2.6.22 - 2.6.27
    2.38 -EOT
    2.39 -		return 1
    2.40 -	fi
    2.41 -	make KLIB=$kpath KLIB_BUILD=$kpath
    2.42 -	make -C $kpath M=$PWD INSTALL_MOD_PATH=$PWD/_pkg modules_install
    2.43 -	mkdir -p _pkg/usr/lib/compat-wireless/ _pkg/usr/sbin
    2.44 -	$WOK/linux/stuff/gztazmod.sh _pkg/lib/modules/*-slitaz
    2.45 -	cp scripts/modlib.sh _pkg/usr/lib/compat-wireless/
    2.46 -	cp scripts/*load scripts/*able _pkg/usr/sbin
    2.47 -}
    2.48 -
    2.49 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.50 -genpkg_rules()
    2.51 -{
    2.52 -	cp -a $_pkg/usr $_pkg/lib $fs
    2.53 -	rm -f $fs/lib/modules/*-slitaz/modules.*
    2.54 -	sed -i 's|/bin/bash|/bin/ash|' $_pkg/usr/sbin/* $_pkg/usr/lib/*/*
    2.55 -}
    2.56 -
    2.57 -# Post install/remove commands for Tazpkg.
    2.58 -post_install()
    2.59 -{
    2.60 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.61 -}
    2.62 -
    2.63 -post_remove()
    2.64 -{
    2.65 -	depmod -a
    2.66 -}
     3.1 --- a/madwifi/receipt	Mon May 11 20:33:07 2009 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,62 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="madwifi"
     3.7 -VERSION="r3861"
     3.8 -CATEGORY="system-tools"
     3.9 -SHORT_DESC="Driver for Atheros-based WLAN cards"
    3.10 -MAINTAINER="erjo@slitaz.org"
    3.11 -DEPENDS="linux"
    3.12 -SOURCE="madwifi-hal-0.10.5.6-r3861-20080903"
    3.13 -TARBALL="$SOURCE.tar.gz"
    3.14 -WEB_SITE="http://madwifi.org"
    3.15 -WGET_URL="http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/$TARBALL"
    3.16 -
    3.17 -# Rules to configure and make the package.
    3.18 -compile_rules()
    3.19 -{
    3.20 -	if [ ! -d $WOK/linux/taz ]; then
    3.21 -		tazwok cook linux
    3.22 -	fi
    3.23 -	cd "$SOURCE"
    3.24 -	export KERNELPATH=$(ls -d $WOK/linux/linux-*)
    3.25 -	echo "KERNELPATH=$KERNELPATH"
    3.26 -	make KERNELPATH=$KERNELPATH clean
    3.27 -	make KERNELPATH=$KERNELPATH &&
    3.28 -	make DESTDIR=$PWD/_pkg install
    3.29 -}
    3.30 -
    3.31 -genpkg_rules()
    3.32 -{
    3.33 -	_pkg="$SOURCE/_pkg"
    3.34 -	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    3.35 -	EXTRAVERSION=_$KVER
    3.36 -	
    3.37 -	mkdir -p $fs/lib/modules/${KVER}-slitaz/net \
    3.38 -		$fs/usr	
    3.39 -	# Find all modules (gztazmod.sh code).
    3.40 -	echo -n "Searching all modules to compress them... "
    3.41 -	find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1
    3.42 -	status
    3.43 -
    3.44 -	# copy module 
    3.45 -	cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net
    3.46 -	cp -a $_pkg/usr/local/bin $fs/usr
    3.47 -}
    3.48 -
    3.49 -
    3.50 -post_install()
    3.51 -{
    3.52 -	echo "Processing post-install commands..."
    3.53 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    3.54 -}
    3.55 -
    3.56 -post_remove()
    3.57 -{
    3.58 -	echo "Processing post-remove commands..."
    3.59 -	depmod -a
    3.60 -}
    3.61 -
    3.62 -clean_wok()
    3.63 -{
    3.64 -	rm -rf "madwifi-ng-r3366+ar5007"
    3.65 -}