wok-tiny view module-usbserial/receipt @ rev 100

Update wiki, add module-serial
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 31 16:32:19 2015 +0100 (2015-10-31)
parents a10bae21f602
children 0d8ef9102fc0
line source
1 # SliTaz package receipt.
3 PACKAGE="module-usbserial"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the USB serial dongle"
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/usb/serial/usbserial.ko | 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 188 $i
27 done
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 echo ${PACKAGE#*-} >> $1/modules
34 }