wok-tiny view module-cifs/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-cifs"
4 VERSION="2.6.20"
5 CATEGORY="base-system"
6 GROUP="filesystem"
7 SHORT_DESC="Kernel module for the cifs (samba) filesystem"
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 nls_base cifs ; 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 }
41 #cifs.ko:
42 #parm=CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048
43 #parm=cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64
44 #parm=cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256
45 #parm=cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256