wok annotate linux-hwmon/receipt @ rev 14296
Up: embryo (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:08:14 2013 +0200 (2013-04-07) |
parents | 6f536abe4f0b |
children | ad59999b3fce |
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" |
slaxemulator@8616 | 9 DEPENDS="linux" |
slaxemulator@8616 | 10 WANTED="linux" |
slaxemulator@8616 | 11 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8616 | 12 |
slaxemulator@8616 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8616 | 14 genpkg_rules() |
slaxemulator@8616 | 15 { |
slaxemulator@8616 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
slaxemulator@8616 | 18 mkdir -p $fs/$path |
slaxemulator@8616 | 19 export src |
slaxemulator@8616 | 20 export _pkg |
slaxemulator@9700 | 21 $wanted_stuff/list_modules.sh drivers/hwmon | while read module; do |
slaxemulator@8616 | 22 dir=$path/$(dirname $module) |
slaxemulator@8616 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
slaxemulator@8616 | 24 cp -a $_pkg/$path/$module $fs/$dir |
slaxemulator@8616 | 25 done |
slaxemulator@8616 | 26 |
pankso@12285 | 27 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 28 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 29 rm -f $fs/$path/$i |
slaxemulator@8616 | 30 fi |
slaxemulator@8616 | 31 done |
slaxemulator@8616 | 32 } |
slaxemulator@8616 | 33 |
slaxemulator@8616 | 34 # Post install/remove commands for Tazpkg. |
slaxemulator@8616 | 35 post_install() |
slaxemulator@8616 | 36 { |
pankso@12285 | 37 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8616 | 38 } |
slaxemulator@8616 | 39 |
slaxemulator@8616 | 40 post_remove() |
slaxemulator@8616 | 41 { |
pankso@12285 | 42 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8616 | 43 } |
slaxemulator@8616 | 44 |