wok-next rev 2324

Add atl1e Ethernet module (used on some EeePC)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 28 00:45:21 2009 +0100 (2009-02-28)
parents da99e1faadb3
children 5764ab6c83b0
files atl1e/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/atl1e/receipt	Sat Feb 28 00:45:21 2009 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="atl1e"
     1.7 +VERSION="1.0.1.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="SliTaz EeePC scripts and configurations files."
    1.10 +DEPENDS="linux"
    1.11 +BUILD_DEPENDS="linux-source"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 +MAINTAINER="pankso@slitaz.org"
    1.14 +WEB_SITE="http://asus.com/"
    1.15 +WGET_URL="http://mirror.slitaz.org/sources/packages/a/$TARBALL"
    1.16 +KVER=`grep  ^VERSION= $WOK/linux-source/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.17 +EXTRAVERSION=_${KVER}
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src/src
    1.23 +	make
    1.24 +	find $src/src -name "*.ko" -exec lzma e '{}' '{}'.gz \;
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/atl1e
    1.31 +	cp $src/src/atl1e.ko.gz \
    1.32 +		$fs/lib/modules/${KVER}-slitaz/kernel/drivers/net/atl1e
    1.33 +}
    1.34 +
    1.35 +post_install()
    1.36 +{
    1.37 +	depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
    1.38 +}