wok-tiny view module-usbmouse/receipt @ rev 126

Update config_form()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 19:39:46 2017 +0100 (2017-02-12)
parents 14e714f8c808
children 2c80994c5e30
line source
1 # SliTaz package receipt.
3 PACKAGE="module-usbmouse"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,usb"
7 SHORT_DESC="Kernel module for the USB mouse"
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/sbin
21 ln -s /bin/busybox $fs/sbin/mdev
22 $src/slitaz/list_modules.sh drivers/usb/input/usbmouse.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 }
29 # Post install/remove commands for Tazpkg.
30 post_install()
31 {
32 for i in usbcore usbmouse ; do
33 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
34 done
35 }