wok-undigest view ovzkernel-crypto/receipt @ rev 1245

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