wok-tiny view jslinux-config/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 e5cfd000e4a6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="jslinux-config"
4 VERSION="2.6.20"
5 CATEGORY="base-system"
6 GROUP="driver"
7 SHORT_DESC="Tiny SliTaz configuration files for jslinux"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="http://tiny.slitaz.org/"
11 DEPENDS="custom-console"
12 WANTED="linux"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 local path
18 export src=$WOK/$WANTED/source/linux-$VERSION
19 export _pkg=$WOK/$WANTED/install
20 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
21 mkdir -p $fs/$path $fs/dev
22 $src/slitaz/list_modules.sh drivers/char/jsclipboard.ko | while read module; do
23 dir=$path/$(dirname $module)
24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
25 cp -a $_pkg/$path/$module $fs/$dir
26 done
27 mknod -m 660 $fs/dev/clipboard c 10 231
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 for i in jsclipboard ; do
34 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
35 done
36 }