SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "linux-netfilter"

# SliTaz package receipt.

PACKAGE="linux-netfilter"
VERSION="5.10.215"
CATEGORY="base-system"
SHORT_DESC="The Linux kernel netfilter modules."
MAINTAINER="devel@slitaz.org"
LICENSE="GPL2"
DEPENDS="linux"
WANTED="linux"
WEB_SITE="https://www.kernel.org/"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    local path
    path=lib/modules/$VERSION-slitaz/kernel
    mkdir -p $fs/$path
    
    export src install
    
    $wanted_stuff/list_modules.sh net/netfilter net/ipv4/netfilter net/8021q | \
    while read module; do
        dir=$path/$(dirname $module)
        [ -d $fs/$dir ] || mkdir -p $fs/$dir
        cp -a $install/$path/$module $fs/$dir
    done
    rm -rf $fs/$path/net/ipv6 2> /dev/null

    for i in $(cat $wanted_stuff/modules.list); do
        if [ -f $fs/$path/$i ]; then
        rm -f $fs/$path/$i
    fi
    done

    # Workaround for nf_defrag_ipv4 / nf_reject_ipv4
    cp -a $install/$path/net/ipv4/netfilter/nf_defrag_ipv4.ko.xz $fs/$path/net/ipv4/netfilter/
    cp -a $install/$path/net/ipv4/netfilter/nf_reject_ipv4.ko.xz $fs/$path/net/ipv4/netfilter/
}

# Post install/remove commands for Tazpkg.
post_install()
{
    chroot "$root/" depmod -a $VERSION-slitaz
}

post_remove()
{
    chroot "$root/" depmod -a $VERSION-slitaz
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)