SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "linux-squashfs"

# SliTaz package receipt.

PACKAGE="linux-squashfs"
VERSION="5.10.217"
CATEGORY="base-system"
SHORT_DESC="The Linux kernel squashfs module."
MAINTAINER="devel@slitaz.org"
LICENSE="GPL2"
DEPENDS="linux"
WANTED="linux"
WEB_SITE="https://www.kernel.org/"
PROVIDE="squashfs-module"
CONFIG_FILES="/etc/filesystems"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    local path
    path=lib/modules/$VERSION-slitaz/kernel
    mkdir -p $fs/$path $fs/etc
    export src install
    $wanted_stuff/list_modules.sh fs/squashfs | while read module; do
        dir=$path/$(dirname $module)
        [ -d $fs/$dir ] || mkdir -p $fs/$dir
        cp -a $install/$path/$module $fs/$dir
    done
    touch $fs/etc/filesystems
}

# Post install/remove commands for Tazpkg.
post_install()
{
    grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
        echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
    chroot "$1/" depmod -a $VERSION-slitaz
}

post_remove()
{
    sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
    chroot "$1/" depmod -a $VERSION-slitaz
}
6047 packages and 210260 files in current database (Tue Nov 5 13:55:32 2024)