wok-6.x annotate linux-firewire/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | ad59999b3fce |
children | eb689de65d7e |
rev | line source |
---|---|
slaxemulator@8087 | 1 # SliTaz package receipt. |
slaxemulator@8087 | 2 |
slaxemulator@8087 | 3 PACKAGE="linux-firewire" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
slaxemulator@8087 | 6 CATEGORY="base-system" |
slaxemulator@8087 | 7 SHORT_DESC="The Linux kernel firewire modules." |
slaxemulator@8087 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
slaxemulator@8087 | 10 DEPENDS="linux" |
slaxemulator@8087 | 11 WANTED="linux" |
slaxemulator@8087 | 12 WEB_SITE="http://www.kernel.org/" |
slaxemulator@8087 | 13 |
slaxemulator@8087 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8087 | 15 genpkg_rules() |
slaxemulator@8087 | 16 { |
slaxemulator@8087 | 17 local path |
pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
slaxemulator@8087 | 19 mkdir -p $fs/$path |
slaxemulator@8087 | 20 export src |
slaxemulator@8087 | 21 export _pkg |
slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh drivers/firewire | while read module; do |
slaxemulator@8087 | 23 dir=$path/$(dirname $module) |
slaxemulator@8087 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 25 cp -a $install/$path/$module $fs/$dir |
slaxemulator@8087 | 26 done |
slaxemulator@8087 | 27 } |
slaxemulator@8087 | 28 |
slaxemulator@8087 | 29 # Post install/remove commands for Tazpkg. |
slaxemulator@8087 | 30 post_install() |
slaxemulator@8087 | 31 { |
pankso@12285 | 32 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8087 | 33 } |
slaxemulator@8087 | 34 |
slaxemulator@8087 | 35 post_remove() |
slaxemulator@8087 | 36 { |
pankso@12285 | 37 chroot "$1/" depmod -a $BASEVER-slitaz |
slaxemulator@8087 | 38 } |
slaxemulator@8087 | 39 |