wok-current annotate linux-crypto/receipt @ rev 12285
Up: linux (3.2.14) Let play with the kernel :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 16:27:00 2012 +0200 (2012-04-15) |
parents | d1768332cee0 |
children | 416fab3c90c0 |
rev | line source |
---|---|
pascal@928 | 1 # SliTaz package receipt. |
pascal@928 | 2 |
pascal@928 | 3 PACKAGE="linux-crypto" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@928 | 6 CATEGORY="base-system" |
pascal@928 | 7 SHORT_DESC="The Linux kernel crypto modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 9 DEPENDS="linux" |
pascal@928 | 10 WANTED="linux" |
pascal@928 | 11 WEB_SITE="http://www.kernel.org/" |
pascal@928 | 12 |
pascal@928 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@928 | 14 genpkg_rules() |
pascal@928 | 15 { |
pascal@928 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@928 | 18 mkdir -p $fs/$path |
pascal@928 | 19 export src |
pascal@928 | 20 export _pkg |
slaxemulator@9700 | 21 $wanted_stuff/list_modules.sh arch/x86/crypto crypto drivers/crypto | \ |
pascal@1032 | 22 while read module; do |
pascal@928 | 23 dir=$path/$(dirname $module) |
pascal@928 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@928 | 25 cp -a $_pkg/$path/$module $fs/$dir |
pascal@928 | 26 done |
slaxemulator@7239 | 27 |
pankso@12285 | 28 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 29 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 30 rm -f $fs/$path/$i |
slaxemulator@7239 | 31 fi |
slaxemulator@7239 | 32 done |
pascal@928 | 33 } |
pascal@928 | 34 |
pascal@928 | 35 # Post install/remove commands for Tazpkg. |
pascal@928 | 36 post_install() |
pascal@928 | 37 { |
pankso@12285 | 38 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@928 | 39 } |
pascal@928 | 40 |
pascal@928 | 41 post_remove() |
pascal@928 | 42 { |
pankso@12285 | 43 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@928 | 44 } |
pascal@928 | 45 |