wok-undigest view ovzkernel-netfilter/receipt @ rev 1201
palemoon : ac_add_options
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Aug 19 22:41:17 2016 +0200 (2016-08-19) |
parents | 923042a937f6 |
children |
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 LICENSE="GPL2"
9 DEPENDS="ovzkernel"
10 WANTED="ovzkernel"
11 WEB_SITE="http://www.kernel.org/"
12 EXTRAVERSION="-i686"
13 SOURCE="linux"
14 PROVIDE="linux-netfilter"
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
24 export src
25 export _pkg
27 $src/OpenVZ/list_modules.sh ${KERNELRELEASE} net/netfilter net/ipv4/netfilter net/8021q | \
28 while read module; do
29 dir=$path/$(dirname $module)
30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
31 cp -a $_pkg/$path/$module $fs/$dir
32 done
33 #rm -r $fs/$path/net/ipv6
35 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
36 if [ $fs/lib/modules/${KERNELRELEASE}/kernel/$i ]; then
37 rm -f $fs/lib/modules/${KERNELRELEASE}/kernel/$i
38 fi
39 done
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
46 chroot "$1/" depmod -a ${KERNELRELEASE}
47 }
49 post_remove()
50 {
51 KERNELRELEASE=$(cat $1/etc/ovzkernel/kernel.release)
52 depmod -a ${KERNELRELEASE}
53 }