wok annotate linux-hwmon/receipt @ rev 14975
Up: thunderbird (17.0.8esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 22:20:49 2013 +0200 (2013-08-08) |
parents | 416fab3c90c0 |
children | 051931e905b0 |
rev | line source |
---|---|
slaxemulator@8616 | 1 # SliTaz package receipt. |
slaxemulator@8616 | 2 |
slaxemulator@8616 | 3 PACKAGE="linux-hwmon" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
slaxemulator@8616 | 6 CATEGORY="base-system" |
slaxemulator@8616 | 7 SHORT_DESC="The Linux kernel hwmon modules." |
slaxemulator@8616 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
slaxemulator@8616 | 10 DEPENDS="linux" |
slaxemulator@8616 | 11 WANTED="linux" |
slaxemulator@8616 | 12 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8616 | 13 |
slaxemulator@8616 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8616 | 15 genpkg_rules() |
slaxemulator@8616 | 16 { |
slaxemulator@8616 | 17 local path |
pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
slaxemulator@8616 | 19 mkdir -p $fs/$path |
slaxemulator@8616 | 20 export src |
slaxemulator@8616 | 21 export _pkg |
slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh drivers/hwmon | while read module; do |
slaxemulator@8616 | 23 dir=$path/$(dirname $module) |
slaxemulator@8616 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
slaxemulator@8616 | 25 cp -a $_pkg/$path/$module $fs/$dir |
slaxemulator@8616 | 26 done |
slaxemulator@8616 | 27 |
pankso@12285 | 28 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 29 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 30 rm -f $fs/$path/$i |
slaxemulator@8616 | 31 fi |
slaxemulator@8616 | 32 done |
slaxemulator@8616 | 33 } |
slaxemulator@8616 | 34 |
slaxemulator@8616 | 35 # Post install/remove commands for Tazpkg. |
slaxemulator@8616 | 36 post_install() |
slaxemulator@8616 | 37 { |
pankso@12285 | 38 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8616 | 39 } |
slaxemulator@8616 | 40 |
slaxemulator@8616 | 41 post_remove() |
slaxemulator@8616 | 42 { |
pankso@12285 | 43 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8616 | 44 } |
slaxemulator@8616 | 45 |