wok-tiny view module-cifs/receipt @ rev 94

Refresh, remove kernel*, add linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 02 21:45:05 2015 +0200 (2015-10-02)
parents a6d2ddc65590
children 0d8ef9102fc0
line source
1 # SliTaz package receipt.
3 PACKAGE="module-cifs"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the cifs (samba) filesystem"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tiny.slitaz.org/"
10 WANTED="linux"
11 CONFIG_FILES="/etc/filesystems"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 export src=$WOK/$WANTED/source/linux-$VERSION
18 export _pkg=$WOK/$WANTED/install
19 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
20 mkdir -p $fs/$path $fs/etc
21 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
22 dir=$path/$(dirname $module)
23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
24 cp -a $_pkg/$path/$module $fs/$dir
25 done
26 touch $fs/etc/filesystems
27 }
29 # Post install/remove commands for Tazpkg.
30 post_install()
31 {
32 echo ${PACKAGE#*-} >> $1/modules
33 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
34 echo "${PACKAGE#*-}" >> $1/etc/filesystems
35 }
37 #cifs.ko:
38 #parm=CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048
39 #parm=cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64
40 #parm=cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256
41 #parm=cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256