wok annotate linux-mmc/receipt @ rev 7172
Up: openvas-libraries to 3.1.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Nov 07 20:17:15 2010 +0000 (2010-11-07) |
parents | ce1a465271d9 |
children | 7b2d17996a15 |
rev | line source |
---|---|
pascal@2162 | 1 # SliTaz package receipt. |
pascal@2162 | 2 |
pascal@2162 | 3 PACKAGE="linux-mmc" |
slaxemulator@7131 | 4 VERSION="2.6.36" |
pascal@2162 | 5 CATEGORY="base-system" |
pascal@2162 | 6 SHORT_DESC="The Linux kernel mmc modules (card reader)." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2162 | 9 WANTED="linux" |
pascal@2162 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2162 | 11 |
pascal@2162 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2162 | 13 genpkg_rules() |
pascal@2162 | 14 { |
pascal@2162 | 15 local path |
pascal@2162 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2162 | 17 mkdir -p $fs/$path |
pascal@2162 | 18 export src |
pascal@2162 | 19 export _pkg |
slaxemulator@6293 | 20 $src/slitaz/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.gz drivers/misc/iwmc3200top/iwmc3200top.ko.gz| \ |
pascal@2990 | 21 while read module; do |
pascal@2162 | 22 dir=$path/$(dirname $module) |
pascal@2162 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2162 | 24 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2162 | 25 done |
pascal@2162 | 26 } |
pascal@2162 | 27 |
pascal@2162 | 28 # Post install/remove commands for Tazpkg. |
pascal@2162 | 29 post_install() |
pascal@2162 | 30 { |
pascal@2990 | 31 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2162 | 32 } |
pascal@2162 | 33 |
pascal@2162 | 34 post_remove() |
pascal@2162 | 35 { |
pascal@2162 | 36 depmod -a $VERSION-slitaz |
pascal@2162 | 37 } |
pascal@2162 | 38 |