wok-tiny view module-cs89x0/receipt @ rev 90

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 13:51:26 2013 +0200 (2013-07-05)
parents d3c5f3688ec0
children 371673f39e46
line source
1 # SliTaz package receipt.
3 PACKAGE="module-cs89x0"
4 VERSION="2.6.37"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the cs89x0 driver"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tiny.slitaz.org/"
10 WANTED="kernel-modular"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 path=lib/modules/$VERSION-slitaz/kernel
17 mkdir -p $fs/$path
18 export src=$WOK/$WANTED/linux-$VERSION
19 export _pkg=$src/_pkg
20 $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
21 dir=$path/$(dirname $module)
22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
23 cp -a $_pkg/$path/$module $fs/$dir
24 done
25 }
27 # Post install/remove commands for Tazpkg.
28 post_install()
29 {
30 chroot "$1/" depmod -a $VERSION-slitaz
31 }