wok-current view linux-netfilter/receipt @ rev 10854

linux-netfilter: add lib modules (for ts_*)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 16:32:01 2011 +0200 (2011-06-14)
parents d1768332cee0
children 02b9db771c0a
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-netfilter"
4 VERSION="2.6.37"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel netfilter modules."
7 MAINTAINER="devel@slitaz.org"
8 DEPENDS="linux"
9 WANTED="linux"
10 WEB_SITE="http://www.kernel.org/"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 path=lib/modules/$VERSION-slitaz/kernel
17 mkdir -p $fs/$path
19 export src
20 export _pkg
22 $wanted_stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q lib | \
23 while read module; do
24 dir=$path/$(dirname $module)
25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
26 cp -a $_pkg/$path/$module $fs/$dir
27 done
28 rm -r $fs/$path/net/ipv6
30 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
31 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
32 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
33 fi
34 done
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 chroot "$1/" depmod -a $VERSION-slitaz
41 }
43 post_remove()
44 {
45 chroot "$1/" depmod -a $VERSION-slitaz
46 }