wok-tiny diff module-cs89x0/receipt @ rev 23

Add module-cs89x0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 11:46:33 2011 +0100 (2011-02-03)
parents
children d3c5f3688ec0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/module-cs89x0/receipt	Thu Feb 03 11:46:33 2011 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="module-cs89x0"
     1.7 +VERSION="2.6.37"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Kernel module for the cs89x0 driver"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://mirror.slitaz.org/pizza/tiny/"
    1.12 +WANTED="kernel-modular"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	local path
    1.18 +	path=lib/modules/$VERSION-slitaz/kernel
    1.19 +	mkdir -p $fs/$path
    1.20 +	export src=$WOK/$WANTED/linux-$VERSION
    1.21 +	export _pkg=$src/_pkg
    1.22 +	$src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
    1.23 +		dir=$path/$(dirname $module)
    1.24 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.25 +		cp -a $_pkg/$path/$module $fs/$dir
    1.26 +	done
    1.27 +}
    1.28 +
    1.29 +# Post install/remove commands for Tazpkg.
    1.30 +post_install()
    1.31 +{
    1.32 +	chroot "$1/" depmod -a $VERSION-slitaz
    1.33 +}