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