wok-4.x annotate linux-hwmon/receipt @ rev 9219

wvdial: needs -j1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 11 16:47:05 2011 +0100 (2011-03-11)
parents 6dc83d5fb812
children d1768332cee0
rev   line source
slaxemulator@8616 1 # SliTaz package receipt.
slaxemulator@8616 2
slaxemulator@8616 3 PACKAGE="linux-hwmon"
slaxemulator@8616 4 VERSION="2.6.37"
slaxemulator@8616 5 CATEGORY="base-system"
slaxemulator@8616 6 SHORT_DESC="The Linux kernel hwmon modules."
slaxemulator@8616 7 MAINTAINER="devel@slitaz.org"
slaxemulator@8616 8 DEPENDS="linux"
slaxemulator@8616 9 WANTED="linux"
slaxemulator@8616 10 WEB_SITE="http://www.kernel.org/"
slaxemulator@8616 11
slaxemulator@8616 12 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@8616 13 genpkg_rules()
slaxemulator@8616 14 {
slaxemulator@8616 15 local path
slaxemulator@8616 16 path=lib/modules/$VERSION-slitaz/kernel
slaxemulator@8616 17 mkdir -p $fs/$path
slaxemulator@8616 18 export src
slaxemulator@8616 19 export _pkg
slaxemulator@8681 20 $WOK/$WANTED/stuff/list_modules.sh drivers/hwmon | while read module; do
slaxemulator@8616 21 dir=$path/$(dirname $module)
slaxemulator@8616 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
slaxemulator@8616 23 cp -a $_pkg/$path/$module $fs/$dir
slaxemulator@8616 24 done
slaxemulator@8616 25
slaxemulator@8616 26 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
slaxemulator@8616 27 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
slaxemulator@8616 28 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
slaxemulator@8616 29 fi
slaxemulator@8616 30 done
slaxemulator@8616 31 }
slaxemulator@8616 32
slaxemulator@8616 33 # Post install/remove commands for Tazpkg.
slaxemulator@8616 34 post_install()
slaxemulator@8616 35 {
slaxemulator@8616 36 chroot "$1/" depmod -a $VERSION-slitaz
slaxemulator@8616 37 }
slaxemulator@8616 38
slaxemulator@8616 39 post_remove()
slaxemulator@8616 40 {
slaxemulator@8616 41 chroot "$1/" depmod -a $VERSION-slitaz
slaxemulator@8616 42 }
slaxemulator@8616 43