wok-undigest annotate ovzkernel-crypto/receipt @ rev 1087
Add: linux with Kultex kernel config
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Dec 28 10:14:11 2013 +0100 (2013-12-28) |
parents | 2a507a5f33cc |
children |
rev | line source |
---|---|
erjo@219 | 1 # SliTaz package receipt. |
erjo@219 | 2 |
erjo@219 | 3 PACKAGE="ovzkernel-crypto" |
erjo@219 | 4 VERSION="2.6.32" |
erjo@219 | 5 CATEGORY="base-system" |
erjo@219 | 6 SHORT_DESC="The Linux kernel crypto modules." |
erjo@219 | 7 MAINTAINER="devel@slitaz.org" |
pascal@1038 | 8 LICENSE="GPL2" |
erjo@219 | 9 DEPENDS="ovzkernel" |
erjo@219 | 10 WANTED="ovzkernel" |
erjo@219 | 11 WEB_SITE="http://www.kernel.org/" |
erjo@219 | 12 EXTRAVERSION="-i686" |
erjo@219 | 13 SOURCE="linux" |
erjo@219 | 14 PROVIDE="linux-crypto" |
erjo@219 | 15 |
erjo@219 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@219 | 17 genpkg_rules() |
erjo@219 | 18 { |
erjo@219 | 19 local path |
erjo@219 | 20 KERNELRELEASE=$( cat $src/include/config/kernel.release 2> /dev/null) |
erjo@219 | 21 path=lib/modules/${KERNELRELEASE}/kernel |
erjo@219 | 22 mkdir -p $fs/$path |
erjo@219 | 23 export src |
erjo@219 | 24 export _pkg |
erjo@219 | 25 $src/OpenVZ/list_modules.sh ${KERNELRELEASE} arch/x86/crypto crypto drivers/crypto | \ |
erjo@219 | 26 while read module; do |
erjo@219 | 27 dir=$path/$(dirname $module) |
erjo@219 | 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
erjo@219 | 29 cp -a $_pkg/$path/$module $fs/$dir |
erjo@219 | 30 done |
erjo@219 | 31 |
erjo@219 | 32 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do |
erjo@219 | 33 if [ $fs/lib/modules/${KERNELRELEASE}/kernel/$i ]; then |
erjo@219 | 34 rm -f $fs/lib/modules/${KERNELRELEASE}/kernel/$i |
erjo@219 | 35 fi |
erjo@219 | 36 done |
erjo@219 | 37 } |
erjo@219 | 38 |
erjo@219 | 39 # Post install/remove commands for Tazpkg. |
erjo@219 | 40 post_install() |
erjo@219 | 41 { |
erjo@219 | 42 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release) |
erjo@219 | 43 chroot "$1/" depmod -a ${KERNELRELEASE} |
erjo@219 | 44 } |
erjo@219 | 45 |
erjo@219 | 46 post_remove() |
erjo@219 | 47 { |
erjo@219 | 48 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release) |
erjo@219 | 49 depmod -a ${KERNELRELEASE} |
erjo@219 | 50 } |
erjo@219 | 51 |