wok-tiny view module-ne/receipt @ rev 94

Refresh, remove kernel*, add linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 02 21:45:05 2015 +0200 (2015-10-02)
parents
children 0d8ef9102fc0
line source
1 # SliTaz package receipt.
3 PACKAGE="module-ne"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the ne2000 driver"
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
20 $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | 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 }
27 # Post install/remove commands for Tazpkg.
28 post_install()
29 {
30 [ "$IRQNE2K" ] && IRQNE2K="|irq=${IRQNE2K// /,}"
31 [ "$IONE2K" ] && IONE2K="|io=${IONE2K// /,}"
32 [ "$BADNE2K" == "ON" ] && BADNE2K="|bad" || BADNE2K=""
33 echo "${PACKAGE#*-}${IONE2K:-|io=0x300}$IRQNE2K$BADNE2K" >> $1/modules
34 }
36 config_form()
37 {
38 cat <<EOT
39 <h4>NE2000 isa Ethernet driver</h4>
40 <table>
41 <tr>
42 <td>I/O base (required)</td>
43 <td><input type="text" name="IONE2K" value="0x300"
44 title="Likely 0x300 0x280 0x320 0x340 0x360 or 0x380" /></td>
45 </tr>
46 <tr>
47 <td>IRQ (optionnal)</td>
48 <td><input type="text" name="IRQNE2K" /></td>
49 </tr>
50 </table>
51 <input type="checkbox" name="BADNE2K" value="ON" />
52 Accept card with bad signatures<br>
53 EOT
54 }