wok view linux-netfilter/receipt @ rev 3886
perdition: ensure pidfile are valid
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 12 18:13:06 2009 +0200 (2009-08-12) |
parents | d91bf195bd16 |
children | bea1fdc6a26e |
line source
1 # SliTaz package receipt.
5 PACKED_SIZE="8.0k"
6 UNPACKED_SIZE="4.0k"
7 PACKAGE="linux-netfilter"
8 VERSION="2.6.30.4"
9 CATEGORY="base-system"
10 SHORT_DESC="The Linux kernel netfilter modules."
11 MAINTAINER="devel@slitaz.org"
12 DEPENDS="linux"
13 WANTED="linux"
14 WEB_SITE="http://www.kernel.org/"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 local path
21 path=lib/modules/$VERSION-slitaz/kernel
22 mkdir -p $fs/$path
24 export src
25 export _pkg
27 $src/list_modules.sh 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 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 chroot "$1/" depmod -a $VERSION-slitaz
39 }
41 post_remove()
42 {
43 depmod -a $VERSION-slitaz
44 }