wok-6.x annotate linux-md/receipt @ rev 12859

dahdi-linux, iptables, linmodem*, ndiswrapper-driver, nvidia-173xx, v4l-dvb: fix EXTRAVERSION for 3.x kernels
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 24 19:11:41 2012 +0200 (2012-05-24)
parents d1768332cee0
children 416fab3c90c0
rev   line source
pascal@1026 1 # SliTaz package receipt.
pascal@1026 2
pascal@1026 3 PACKAGE="linux-md"
pankso@12285 4 VERSION="3.2.14"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@1026 6 CATEGORY="base-system"
pascal@1026 7 SHORT_DESC="The Linux kernel md modules."
pankso@3864 8 MAINTAINER="devel@slitaz.org"
pascal@2926 9 DEPENDS="linux"
pascal@1026 10 WANTED="linux"
pascal@1026 11 WEB_SITE="http://www.kernel.org/"
pascal@1028 12 DEPENDS="linux-crypto"
pascal@1026 13
pascal@1026 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1026 15 genpkg_rules()
pascal@1026 16 {
pascal@1026 17 local path
pankso@12285 18 path=lib/modules/$BASEVER-slitaz/kernel
pascal@1026 19 mkdir -p $fs/$path
pascal@1026 20 export src
pascal@1026 21 export _pkg
slaxemulator@9700 22 $wanted_stuff/list_modules.sh drivers/md | while read module; do
pascal@1028 23 case "$module" in
pascal@1028 24 crypto/*) continue;;
pascal@1028 25 esac
pascal@1026 26 dir=$path/$(dirname $module)
pascal@1026 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@1026 28 cp -a $_pkg/$path/$module $fs/$dir
pascal@1026 29 done
slaxemulator@7239 30
pankso@12285 31 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 32 if [ -f $fs/$path/$i ]; then
pankso@12285 33 rm -f $fs/$path/$i
slaxemulator@7239 34 fi
slaxemulator@7239 35 done
pascal@1026 36 }
pascal@1026 37
pascal@1026 38 # Post install/remove commands for Tazpkg.
pascal@1026 39 post_install()
pascal@1026 40 {
pankso@12285 41 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@1026 42 }
pascal@1026 43
pascal@1026 44 post_remove()
pascal@1026 45 {
pankso@12285 46 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@1026 47 }
pascal@1026 48