wok-tiny view module-vfat/receipt @ rev 131

base-tiny: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 20 09:49:39 2017 +0200 (2017-08-20)
parents 8af7d8943f03
children 2c80994c5e30
line source
1 # SliTaz package receipt.
3 PACKAGE="module-vfat"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="filesystem"
7 SHORT_DESC="Kernel module for the vfat filesystem"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://tiny.slitaz.org/"
11 WANTED="linux"
12 CONFIG_FILES="/etc/filesystems"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 local path
18 export src=$WOK/$WANTED/source/linux-$VERSION
19 export _pkg=$WOK/$WANTED/install
20 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
21 mkdir -p $fs/$path $fs/etc
22 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} fs/nls | while read module; do
23 dir=$path/$(dirname $module)
24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
25 cp -a $_pkg/$path/$module $fs/$dir
26 done
27 touch $fs/etc/filesystems
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 for i in $(cd $1/lib/modules/*/kernel/fs/nls; ls nls*) fat vfat ; do
34 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
35 done
36 for i in vfat fat msdos ; do
37 grep -qs ^$i$ $1/etc/filesystems || \
38 echo "$i" >> $1/etc/filesystems
39 done
40 }