wok view linux-netfilter/receipt @ rev 8164

imported patch commit_inprogress/libsasl.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:49 2011 +0100 (2011-01-27)
parents f88c7e10681b
children 1d89aa1672da
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 $src/slitaz/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
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 $WOK/$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 depmod -a $VERSION-slitaz
46 }