wok-next view linux-libre-netfilter/receipt @ rev 9615
Add tazdrop (DND tool for the desktop) - Part of improving user experience for 4.0
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 17 23:36:50 2011 +0200 (2011-04-17) |
parents | |
children | d1768332cee0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-netfilter"
4 VERSION="2.6.37-libre"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel netfilter modules."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-netfilter"
9 DEPENDS="linux-libre"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$VERSION-slitaz/kernel
18 mkdir -p $fs/$path
20 export src
21 export _pkg
23 $WOK/$WANTED/stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
24 while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 rm -r $fs/$path/net/ipv6
31 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
32 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
33 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
34 fi
35 done
36 }
38 # Post install/remove commands for Tazpkg.
39 post_install()
40 {
41 chroot "$1/" depmod -a $VERSION-slitaz
42 }
44 post_remove()
45 {
46 chroot "$1/" depmod -a $VERSION-slitaz
47 }