wok-current view linux64-netfilter/receipt @ rev 25762
Up kernel to 5.10.235, align overlay usage
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Apr 01 13:26:27 2025 +0000 (6 months ago) |
parents | 5926178cd6fa |
children | 8042ca312770 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-netfilter"
4 VERSION="5.10.235"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel netfilter modules."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="linux64"
10 WANTED="linux"
11 PROVIDE="linux-netfilter:linux64"
12 WEB_SITE="https://www.kernel.org/"
14 HOST_ARCH="i486 x86_64"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 src=$WOK/linux64/source/tmp
20 install=$install/linux64
21 path=lib/modules/$VERSION-slitaz64/kernel
22 mkdir -p $fs/$path
24 export src
25 export install
27 $wanted_stuff/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 $install/$path/$module $fs/$dir
32 done
33 rm -rf $fs/$path/net/ipv6 2> /dev/null
35 for i in $(cat $wanted_stuff/modules.list); do
36 if [ -f $fs/$path/$i ]; then
37 rm -f $fs/$path/$i
38 fi
39 done
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 chroot "$root/" depmod -a $VERSION-slitaz64
46 }
48 post_remove()
49 {
50 chroot "$root/" depmod -a $VERSION-slitaz64
51 }