# SliTaz package receipt. PACKED_SIZE="32.0K" UNPACKED_SIZE="96.0K" PACKAGE="module-tulip" VERSION="2.6.20" CATEGORY="base-system" GROUP="driver,ethernet" SHORT_DESC="Kernel module for the DECchip Tulip (dc2114x) PCI 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/tulip/${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() { grep -qs "^${PACKAGE#*-}$" $1/modules || echo "${PACKAGE#*-}" >> $1/modules }