wok-next annotate linux-crypto/receipt @ rev 1127
linux-source: some post-install messages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 22 13:49:27 2008 +0000 (2008-07-22) |
parents | bacd5baa9f15 |
children | f306d126580e |
rev | line source |
---|---|
pascal@928 | 1 # SliTaz package receipt. |
pascal@928 | 2 |
pascal@928 | 3 PACKAGE="linux-crypto" |
pascal@928 | 4 VERSION="2.6.25.5" |
pascal@928 | 5 CATEGORY="base-system" |
pascal@928 | 6 SHORT_DESC="The Linux kernel crypto modules." |
pascal@928 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@928 | 8 WANTED="linux" |
pascal@928 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@928 | 10 |
pascal@928 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@928 | 12 genpkg_rules() |
pascal@928 | 13 { |
pascal@928 | 14 local path |
pascal@928 | 15 path=lib/modules/$VERSION-slitaz/kernel |
pascal@928 | 16 mkdir -p $fs/$path |
pascal@928 | 17 export src |
pascal@928 | 18 export _pkg |
pascal@1032 | 19 $src/list_modules.sh arch/x86/crypto crypto drivers/crypto | \ |
pascal@1032 | 20 while read module; do |
pascal@928 | 21 dir=$path/$(dirname $module) |
pascal@928 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@928 | 23 cp -a $_pkg/$path/$module $fs/$dir |
pascal@928 | 24 done |
pascal@928 | 25 } |
pascal@928 | 26 |
pascal@928 | 27 # Post install/remove commands for Tazpkg. |
pascal@928 | 28 post_install() |
pascal@928 | 29 { |
pascal@928 | 30 depmod -a -b "$1/" $VERSION-slitaz |
pascal@928 | 31 } |
pascal@928 | 32 |
pascal@928 | 33 post_remove() |
pascal@928 | 34 { |
pascal@928 | 35 depmod -a $VERSION-slitaz |
pascal@928 | 36 } |
pascal@928 | 37 |