wok-tiny view module-nbd/receipt @ rev 175

Up linux 2.6.20 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 14:47:52 2021 +0000 (2021-07-14)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="module-nbd"
4 VERSION="2.6.20"
5 CATEGORY="base-system"
6 GROUP="driver"
7 SHORT_DESC="Kernel module for the network block device"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://tiny.slitaz.org/"
11 WANTED="linux"
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/dev
21 $src/slitaz/list_modules.sh drivers/block/nbd.ko | 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 }
28 # Post install/remove commands for Tazpkg.
29 post_install()
30 {
31 grep -qs ^${PACKAGE#*-}$ $1/modules || echo ${PACKAGE#*-} >> $1/modules
32 }