wok-next annotate linux-dialup/receipt @ rev 7239

Fixed wanted linux receipts to remove modules that are in modules-VERSION.list if they exist in other packages.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Nov 13 03:27:43 2010 +0000 (2010-11-13)
parents 5355ffc461cf
children 03d4663c81fa
rev   line source
jozee@3732 1 # SliTaz package receipt.
jozee@3732 2
jozee@3732 3 PACKAGE="linux-dialup"
slaxemulator@7131 4 VERSION="2.6.36"
jozee@3732 5 CATEGORY="base-system"
jozee@3732 6 SHORT_DESC="The Linux kernel dial-up modules."
jozee@3732 7 MAINTAINER="domcox@slitaz.org"
jozee@3732 8 DEPENDS="linux"
jozee@3732 9 WANTED="linux"
jozee@3732 10 WEB_SITE="http://www.kernel.org/"
jozee@3732 11
jozee@3732 12 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3732 13 genpkg_rules()
jozee@3732 14 {
jozee@3732 15 local path
jozee@3732 16 path=lib/modules/$VERSION-slitaz/kernel
jozee@3732 17 mkdir -p $fs/$path
jozee@3732 18 export src
jozee@3732 19 export _pkg
pascal@3920 20 $src/slitaz/list_modules.sh drivers/serial/serial_cs.ko.gz drivers/char/nozomi.ko.gz \
jozee@3732 21 drivers/usb/serial/option.ko.gz drivers/net/usb/hso.ko.gz | \
jozee@3732 22 while read module; do
jozee@3732 23 dir=$path/$(dirname $module)
jozee@3732 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
jozee@3732 25 cp -a $_pkg/$path/$module $fs/$dir
jozee@3732 26 done
slaxemulator@7239 27
slaxemulator@7239 28 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
slaxemulator@7239 29 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
slaxemulator@7239 30 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
slaxemulator@7239 31 fi
slaxemulator@7239 32 done
jozee@3732 33 }
jozee@3732 34
jozee@3732 35 # Post install/remove commands for Tazpkg.
jozee@3732 36 post_install()
jozee@3732 37 {
jozee@3732 38 chroot "$1/" depmod -a $VERSION-slitaz
jozee@3732 39 }
jozee@3732 40
jozee@3732 41 post_remove()
jozee@3732 42 {
jozee@3732 43 depmod -a $VERSION-slitaz
jozee@3732 44 }
jozee@3732 45