wok-tiny view module-sr_mod/receipt @ rev 151

linux/bundle: multi floppy support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 15 19:49:24 2019 +0200 (2019-09-15)
parents
children 2c80994c5e30
line source
1 # SliTaz package receipt.
3 PACKAGE="module-sr_mod"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,scsi"
7 SHORT_DESC="Kernel module for the SCSI CD-ROM (sr) driver"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL"
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
21 $src/slitaz/list_modules.sh drivers/scsi/${PACKAGE#*-}* | 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 ||
32 echo "${PACKAGE#*-}|test_xa=$([ "TEST_XA" ] && echo 1 || echo 0)" >> $1/modules
33 }
35 config_form()
36 {
37 cat <<EOT
38 <h4>SCSI CD-ROM driver</h4>
39 <table>
40 <tr>
41 <td><input type="checkbox" name="TEST_XA" ${TEST_XA:+checked=checked }> Test XA (mode2 sectors)
42 </tr>
43 </table>
44 EOT
45 }