wok rev 2621

atl1e, rt2860sta: move code into functions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 14 15:27:15 2009 +0000 (2009-04-14)
parents d156f4b7e2a7
children fbe5de5d8122
files atl1e/receipt rt2860sta/receipt
line diff
     1.1 --- a/atl1e/receipt	Tue Apr 14 16:46:45 2009 +0200
     1.2 +++ b/atl1e/receipt	Tue Apr 14 15:27:15 2009 +0000
     1.3 @@ -10,8 +10,6 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  WEB_SITE="http://asus.com/"
     1.6  WGET_URL="http://mirror.slitaz.org/sources/packages/a/$TARBALL"
     1.7 -KVER=`grep  ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
     1.8 -EXTRAVERSION=_${KVER}
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12 @@ -24,6 +22,7 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 +	KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.17  	mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/atl1e
    1.18  	cp $src/src/atl1e.ko.gz \
    1.19  		$fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/atl1e
     2.1 --- a/rt2860sta/receipt	Tue Apr 14 16:46:45 2009 +0200
     2.2 +++ b/rt2860sta/receipt	Tue Apr 14 15:27:15 2009 +0000
     2.3 @@ -10,8 +10,6 @@
     2.4  MAINTAINER="pankso@slitaz.org"
     2.5  WEB_SITE="http://www.ralinktech.com/ralink/Home/Support/Linux.html"
     2.6  WGET_URL="http://mirror.slitaz.org/sources/packages/r/$TARBALL"
     2.7 -KVER=`grep -s ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
     2.8 -EXTRAVERSION=_${KVER}
     2.9  
    2.10  # Rules to configure and make the package.
    2.11  compile_rules()
    2.12 @@ -26,6 +24,7 @@
    2.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.14  genpkg_rules()
    2.15  {
    2.16 +	KVER=`grep ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    2.17  	mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860
    2.18  	cp $src/os/linux/rt2860sta.ko.gz \
    2.19  		$fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/rt2860