SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "linux-libre-dlm"

# SliTaz package receipt.

PACKAGE="linux-libre-dlm"
VERSION="2.6.37-libre"
CATEGORY="base-system"
SHORT_DESC="The Linux Libre kernel dlmfs module."
MAINTAINER="gokhlayeh@slitaz.org"
PROVIDE="linux-dlm"
DEPENDS="linux-libre"
WANTED="linux-libre"
WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
CONFIG_FILES="/etc/filesystems"

# Modules paths and list
MOD_PATH="lib/modules/$VERSION-slitaz/kernel"
MODULES="fs/dlm/dlm.ko.gz"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p ${fs}${MOD_PATH} $fs/etc
    for module in $MODULES
    do
        dir=$MOD_PATH/$(dirname $module)
        [ -d $fs/$dir ] || mkdir -p $fs/$dir
        cp -a $_pkg/$MOD_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
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)