wok-tiny view module-serial/receipt @ rev 101

Add keyboard, remove fr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 03 21:58:21 2015 +0100 (2015-11-03)
parents 48d2c4c7a227
children 981558572b0f
line source
1 # SliTaz package receipt.
3 PACKAGE="module-serial"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the serial (RS232) port"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tiny.slitaz.org/"
10 WANTED="linux"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 export src=$WOK/$WANTED/source/linux-$VERSION
17 export _pkg=$WOK/$WANTED/install
18 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
19 mkdir -p $fs/$path $fs/dev
20 $src/slitaz/list_modules.sh drivers/serial | while read module; do
21 dir=$path/$(dirname $module)
22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
23 cp -a $_pkg/$path/$module $fs/$dir
24 done
25 for i in 0 1 2 3; do
26 mknod $fs/dev/ttyS$i c 4 $((64+$i))
27 done
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 echo ${PACKAGE#*-} >> $1/modules
34 }