wok-tiny view module-nfs/receipt @ rev 30
Add module-nfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 11:46:34 2011 +0100 (2011-02-03) |
parents | |
children | d3c5f3688ec0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-nfs"
4 VERSION="2.6.37"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the nfs filesystem"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://mirror.slitaz.org/pizza/tiny/"
9 WANTED="kernel-modular"
10 CONFIG_FILES="/etc/filesystems"
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 $fs/etc
18 export src=$WOK/$WANTED/linux-$VERSION
19 export _pkg=$src/_pkg
20 $src/slitaz/list_modules.sh fs/${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 touch $fs/etc/filesystems
26 }
28 # Post install/remove commands for Tazpkg.
29 post_install()
30 {
31 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
32 echo "${PACKAGE#*-}" >> $1/etc/filesystems
33 chroot "$1/" depmod -a $VERSION-slitaz
34 }