wok-undigest view ovzkernel-netfilter/receipt @ rev 488

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