wok-tiny view module-nfsd/receipt @ rev 174

Up linux 2.6.20 (avoid 386 & 486 problems)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 14:20:00 2021 +0000 (2021-07-14)
parents a28c45a86936
children
line source
1 # SliTaz package receipt.
3 PACKAGE="module-nfsd"
4 VERSION="2.6.20"
5 CATEGORY="base-system"
6 GROUP="filesystem"
7 SHORT_DESC="Kernel module for the nfs filesystem (server side)"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://tiny.slitaz.org/"
11 DEPENDS="busybox-net"
12 WANTED="linux"
13 CONFIG_FILES="/etc/filesystems"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 export src=$WOK/$WANTED/source/linux-$VERSION
20 export _pkg=$WOK/$WANTED/install
21 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
22 mkdir -p $fs/$path $fs/etc
23 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
24 dir=$path/$(dirname $module)
25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
26 cp -a $_pkg/$path/$module $fs/$dir
27 done
28 touch $fs/etc/filesystems
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 for i in sunrpc lockd exportfs nfsd ; do
35 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
36 done
37 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
38 echo "${PACKAGE#*-}" >> $1/etc/filesystems
39 }