wok-tiny rev 20

Add module-3c509
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 11:46:32 2011 +0100 (2011-02-03)
parents 9c86add36e99
children e43fb24eb35e
files kernel-modular/receipt module-3c509/receipt
line diff
     1.1 --- a/kernel-modular/receipt	Wed Feb 02 23:23:14 2011 +0100
     1.2 +++ b/kernel-modular/receipt	Thu Feb 03 11:46:32 2011 +0100
     1.3 @@ -80,7 +80,7 @@
     1.4  EOT
     1.5  	make mrproper
     1.6  	cd Documentation/lguest
     1.7 -####	make lguest || return 1
     1.8 +	make CC=uclibc-$TARGET-cc lguest || return 1
     1.9  	cd ../..
    1.10  
    1.11  	# Build bzImage without modules first
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/module-3c509/receipt	Thu Feb 03 11:46:32 2011 +0100
     2.3 @@ -0,0 +1,30 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="module-3c509"
     2.7 +VERSION="2.6.37"
     2.8 +CATEGORY="base-system"
     2.9 +SHORT_DESC="Kernel module for the 3c509 driver"
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +WEB_SITE="http://mirror.slitaz.org/pizza/tiny/"
    2.12 +WANTED="kernel-modular"
    2.13 +
    2.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.15 +genpkg_rules()
    2.16 +{
    2.17 +	local path
    2.18 +	path=lib/modules/$VERSION-slitaz/kernel
    2.19 +	mkdir -p $fs/$path
    2.20 +	export src=$WOK/$WANTED/linux-$VERSION
    2.21 +	export _pkg=$src/_pkg
    2.22 +	$src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
    2.23 +		dir=$path/$(dirname $module)
    2.24 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    2.25 +		cp -a $_pkg/$path/$module $fs/$dir
    2.26 +	done
    2.27 +}
    2.28 +
    2.29 +# Post install/remove commands for Tazpkg.
    2.30 +post_install()
    2.31 +{
    2.32 +	chroot "$1/" depmod -a $VERSION-slitaz
    2.33 +}