wok-current annotate linux-hwmon/receipt @ rev 13260

Up: git to 1.7.11.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Aug 17 14:58:05 2012 +0000 (2012-08-17)
parents d1768332cee0
children 416fab3c90c0
rev   line source
slaxemulator@8616 1 # SliTaz package receipt.
slaxemulator@8616 2
slaxemulator@8616 3 PACKAGE="linux-hwmon"
pankso@12285 4 VERSION="3.2.14"
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