wok rev 1150

Add: 915resolution, atl2, madwifi
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jul 26 17:27:49 2008 +0200 (2008-07-26)
parents 443dbfefc6bf
children 1f6a0ebbf926
files 915resolution/receipt atl2/receipt madwifi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/915resolution/receipt	Sat Jul 26 17:27:49 2008 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="915resolution"
     1.7 +VERSION="0.5.3"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Modify the video BIOS of the 800 and 900 series Intel graphics chipsets"
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS=""
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.geocities.com/stomljen/"
    1.14 +WGET_URL="http://www.geocities.com/stomljen/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	make clean && make
    1.21 +	make
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/usr/bin
    1.28 +	cp -a $src/$PACKAGE $fs/usr/bin
    1.29 +	cp -a $src/dump_bios $fs/usr/bin
    1.30 +}
    1.31 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/atl2/receipt	Sat Jul 26 17:27:49 2008 +0200
     2.3 @@ -0,0 +1,49 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="atl2"
     2.7 +VERSION="2.0.4"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Driver for the Atheros L2"
    2.10 +MAINTAINER="erjo@slitaz.org"
    2.11 +DEPENDS=""
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.13 +WEB_SITE="http://atl2.sf.net/"
    2.14 +WGET_URL="http://people.redhat.com/csnook/atl2/atl2-2.0.4.tar.bz2"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
    2.20 +	if [ ! -d $WOK/linux/linux-$KVER ]; then
    2.21 +		tazwok cook linux
    2.22 +	fi
    2.23 +	cd $src
    2.24 +	make
    2.25 +}
    2.26 +
    2.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.28 +genpkg_rules()
    2.29 +{
    2.30 +	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
    2.31 +	EXTRAVERSION=_$KVER
    2.32 +	
    2.33 +	mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
    2.34 +	
    2.35 +	# Find all modules (gztazmod.sh code).
    2.36 +	echo -n "Searching all modules to compress them... "
    2.37 +	find $src -name "*.ko" -exec lzma e '{}' '{}'.gz \;
    2.38 +
    2.39 +	# copy module 
    2.40 +	cp -a $src/*.gz $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net
    2.41 +}
    2.42 +
    2.43 +# Post install/remove commands for Tazpkg.
    2.44 +post_install()
    2.45 +{
    2.46 +	depmod -a -b /$1
    2.47 +}
    2.48 +
    2.49 +post_remove()
    2.50 +{
    2.51 +	depmod -a 
    2.52 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/madwifi/receipt	Sat Jul 26 17:27:49 2008 +0200
     3.3 @@ -0,0 +1,58 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="madwifi"
     3.7 +VERSION="r3366"
     3.8 +CATEGORY="system-toosl"
     3.9 +SHORT_DESC="Driver for Atheros-based WLAN cards"
    3.10 +MAINTAINER="erjo@slitaz.org"
    3.11 +DEPENDS=""
    3.12 +SOURCE="madwifi-nr-r3366+ar5007"
    3.13 +TARBALL="$SOURCE.tar.gz"
    3.14 +WEB_SITE="http://madwifi.org"
    3.15 +WGET_URL="http://snapshots.madwifi.org/special/$TARBALL"
    3.16 +
    3.17 +# Rules to configure and make the package.
    3.18 +compile_rules()
    3.19 +{
    3.20 +	src="madwifi-ng-r3366+ar5007"
    3.21 +	cd "$src"
    3.22 +	make clean 
    3.23 +	make && \
    3.24 +	make DESTDIR=$PWD/_pkg install
    3.25 +}
    3.26 +
    3.27 +genpkg_rules()
    3.28 +{
    3.29 +	_pkg="madwifi-ng-r3366+ar5007/_pkg"
    3.30 +	KVER=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g`
    3.31 +	EXTRAVERSION=_$KVER
    3.32 +	
    3.33 +	mkdir -p $fs/lib/modules/${KVER}-slitaz/net \
    3.34 +		$fs/usr	
    3.35 +	# Find all modules (gztazmod.sh code).
    3.36 +	echo -n "Searching all modules to compress them... "
    3.37 +	find $_pkg -name "*.ko" -exec lzma e '{}' '{}'.gz \; > /dev/null 2>&1
    3.38 +	status
    3.39 +
    3.40 +	# copy module 
    3.41 +	cp -a $_pkg/lib/modules/${KVER}-slitaz/net/*.gz $fs/lib/modules/${KVER}-slitaz/net
    3.42 +	cp -a $_pkg/usr/local/bin $fs/usr
    3.43 +}
    3.44 +
    3.45 +
    3.46 +post_install()
    3.47 +{
    3.48 +	echo "Processing post-install commands..."
    3.49 +	depmod -a  -b /$1
    3.50 +}
    3.51 +
    3.52 +post_remove()
    3.53 +{
    3.54 +	echo "Processing post-remove commands..."
    3.55 +	depmod -a
    3.56 +}
    3.57 +
    3.58 +clean_wok()
    3.59 +{
    3.60 +	rm -rf "madwifi-ng-r3366+ar5007"
    3.61 +}