wok-tiny view module-hp/receipt @ rev 155

plop/bootloader.S: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 12 12:05:54 2019 +0200 (2019-10-12)
parents
children a28c45a86936
line source
1 # SliTaz package receipt.
3 PACKAGE="module-hp"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,ethernet"
7 SHORT_DESC="Kernel module for the HP PC-LAN ISA ethernet 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/net/${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 [ "$IRQHPLAN" ] && IRQHPLAN="|irq=${IRQHPLAN// /,}"
32 [ "$IOHPLAN" ] && IOHPLAN="|io=${IOHPLAN// /,}"
33 grep -qs "^${PACKAGE#*-}|" $1/modules ||
34 echo "${PACKAGE#*-}${IOHPLAN:-|io=0x300}$IRQHPLAN" >> $1/modules
35 }
37 config_form()
38 {
39 if [ -n "$IOHPLAN" ]; then
40 IOHPLAN=0x300
41 fi
42 cat <<EOT
43 <h4>HP PC-LAN isa Ethernet driver</h4>
44 <table>
45 <tr>
46 <td>Base io address</td>
47 <td><select name="IOHPLAN">
48 EOT
49 for i in 0x300 0x320 0x340 0x280 0x2C0 0x200 0x240; do
50 echo -n "<option value=\"$i\""
51 [ "$i" = "$IOHPLAN" ] && echo -n ' selected="selected"'
52 echo ">$i</option>"
53 done
54 cat <<EOT
55 </select></td>
56 </tr>
57 <tr>
58 <td>IRQ (optionnal)</td>
59 <td><input type="text" name="IRQHPLAN" ${IRQHPLAN:+value="$IRQHPLAN" }/></td>
60 </tr>
61 </table>
62 EOT
63 }