# SliTaz package receipt. PACKED_SIZE="24.0K" UNPACKED_SIZE="72.0K" PACKAGE="module-ne" VERSION="2.6.20" CATEGORY="base-system" GROUP="driver,ethernet" SHORT_DESC="Kernel module for the ne2000 driver" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="busybox-net" WANTED="linux" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path export src=$WOK/$WANTED/source/linux-$VERSION export _pkg=$WOK/$WANTED/install path=lib/modules/$(ls $_pkg/lib/modules)/kernel mkdir -p $fs/$path $src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { [ "$IRQNE2K" ] && IRQNE2K="|irq=${IRQNE2K// /,}" [ "$IONE2K" ] && IONE2K="|io=${IONE2K// /,}" [ "$BADNE2K" = "on" ] && BADNE2K="|bad" || BADNE2K="" grep -qs "^${PACKAGE#*-}|" $1/modules || echo "${PACKAGE#*-}${IONE2K:-|io=0x300}$IRQNE2K$BADNE2K" >> $1/modules } config_form() { if [ -n "$IONE2K" ]; then IONE2K=0x300 BADNE2K=on fi cat <NE2000 isa Ethernet driver
Base io address
IRQ (optionnal)
Accept card with bad signatures
EOT }