wok view linux-toshiba/receipt @ rev 10954
uclibc-cross-compiler-i486: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 17 16:29:30 2011 +0200 (2011-09-17) |
parents | 03d4663c81fa |
children | 6f536abe4f0b |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-toshiba"
4 VERSION="2.6.37"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel toshiba module."
7 MAINTAINER="devel@slitaz.org"
8 DEPENDS="linux"
9 WANTED="linux"
10 WEB_SITE="http://www.kernel.org/"
12 # Modules paths and list
13 MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
14 MODULES="drivers/char/toshiba.ko.gz"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p ${fs}${MOD_PATH}
20 for module in $MODULES
21 do
22 dir=$MOD_PATH/$(dirname $module)
23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
24 cp -a $_pkg/$MOD_PATH/$module $fs/$dir
25 done
26 }
28 # Post install/remove commands for Tazpkg.
29 post_install()
30 {
31 chroot "$1/" depmod -a $VERSION-slitaz
32 }
34 post_remove()
35 {
36 chroot "$1/" depmod -a $VERSION-slitaz
37 }