wok-6.x annotate linux-irda/receipt @ rev 3864
Up: linux (2.6.30.4)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Aug 07 23:18:34 2009 +0200 (2009-08-07) |
parents | 00d3aba8b500 |
children | bea1fdc6a26e |
rev | line source |
---|---|
pascal@3057 | 1 # SliTaz package receipt. |
pascal@3057 | 2 |
pascal@3057 | 3 PACKAGE="linux-irda" |
pankso@3864 | 4 VERSION="2.6.30.4" |
pascal@3057 | 5 CATEGORY="base-system" |
pascal@3057 | 6 SHORT_DESC="The Linux kernel irda modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@3057 | 8 WANTED="linux" |
pascal@3057 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@3057 | 10 |
pascal@3057 | 11 |
pascal@3057 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3057 | 13 genpkg_rules() |
pascal@3057 | 14 { |
pascal@3057 | 15 local path |
pascal@3057 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@3057 | 17 mkdir -p $fs/$path |
pascal@3057 | 18 |
pascal@3057 | 19 export src |
pascal@3057 | 20 export _pkg |
pascal@3057 | 21 |
pascal@3057 | 22 $src/list_modules.sh drivers/net/irda net/irda | while read module; do |
pascal@3057 | 23 dir=$path/$(dirname $module) |
pascal@3057 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@3057 | 25 cp -a $_pkg/$path/$module $fs/$dir |
pascal@3057 | 26 done |
pascal@3057 | 27 } |
pascal@3057 | 28 |
pascal@3057 | 29 # Post install/remove commands for Tazpkg. |
pascal@3057 | 30 post_install() |
pascal@3057 | 31 { |
pascal@3057 | 32 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@3057 | 33 } |
pascal@3057 | 34 |
pascal@3057 | 35 post_remove() |
pascal@3057 | 36 { |
pascal@3057 | 37 depmod -a $VERSION-slitaz |
pascal@3057 | 38 } |
pascal@3057 | 39 |