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