wok view linux-netfilter/receipt @ rev 7741
get-opera: add current locale
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 20 18:56:28 2010 +0100 (2010-12-20) |
parents | 5355ffc461cf |
children | 03d4663c81fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-netfilter"
4 VERSION="2.6.36"
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 }