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

Add rsync
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 19 23:03:09 2012 +0200 (2012-07-19)
parents 8e9d095d63e7
children a6d2ddc65590
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 WEB_SITE="http://tiny.slitaz.org/"
9 WANTED="kernel-modular"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 local path
15 path=lib/modules/$VERSION-slitaz/kernel
16 mkdir -p $fs/$path
17 export src=$WOK/$WANTED/linux-$VERSION
18 export _pkg=$src/_pkg
19 $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
20 dir=$path/$(dirname $module)
21 [ -d $fs/$dir ] || mkdir -p $fs/$dir
22 cp -a $_pkg/$path/$module $fs/$dir
23 done
24 }
26 # Post install/remove commands for Tazpkg.
27 post_install()
28 {
29 chroot "$1/" depmod -a $VERSION-slitaz
30 }