wok diff linux64-ecryptfs/receipt @ rev 20879

updated electric-fence (2.1.13 -> 2.2.5)
author Hans-G?nter Theisgen
date Sun Feb 24 15:20:13 2019 +0100 (2019-02-24)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux64-ecryptfs/receipt	Sun Feb 24 15:20:13 2019 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux64-ecryptfs"
     1.7 +VERSION="3.16.55"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="The Linux kernel ecryptfs module."
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +DEPENDS="linux64"
    1.13 +WANTED="linux"
    1.14 +PROVIDE="linux-ecryptfs:linux64"
    1.15 +WEB_SITE="https://www.kernel.org/"
    1.16 +CONFIG_FILES="/etc/filesystems"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +    local path
    1.22 +    src=$WOK/linux64/source/tmp
    1.23 +    install=$install/linux64
    1.24 +    path=lib/modules/$VERSION-slitaz64/kernel
    1.25 +    mkdir -p $fs/$path $fs/etc
    1.26 +    export src
    1.27 +    export install
    1.28 +    $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    1.29 +    	dir=$path/$(dirname $module)
    1.30 +    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.31 +        cp -a $install/$path/$module $fs/$dir
    1.32 +    done
    1.33 +    touch $fs/etc/filesystems
    1.34 +}
    1.35 +
    1.36 +# Post install/remove commands for Tazpkg.
    1.37 +post_install()
    1.38 +{
    1.39 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
    1.40 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
    1.41 +	chroot "$1/" depmod -a $VERSION-slitaz64
    1.42 +}
    1.43 +
    1.44 +post_remove()
    1.45 +{
    1.46 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
    1.47 +	chroot "$1/" depmod -a $VERSION-slitaz64
    1.48 +}