wok-current annotate linux-libre-ecryptfs/receipt @ rev 22167

corrected activeresource
author Hans-G?nter Theisgen
date Fri Nov 08 09:03:27 2019 +0100 (2019-11-08)
parents
children
rev   line source
pascal@20635 1 # SliTaz package receipt.
pascal@20635 2
pascal@20635 3 PACKAGE="linux-libre-ecryptfs"
pascal@20635 4 VERSION="3.18.129-gnu"
pascal@20635 5 CATEGORY="base-system"
pascal@20635 6 SHORT_DESC="The Linux Libre kernel ecryptfs module."
pascal@20635 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@20635 8 LICENSE="GPL2"
pascal@20635 9 PROVIDE="linux-ecryptfs"
pascal@20635 10 DEPENDS="linux-libre"
pascal@20635 11 WANTED="linux-libre"
pascal@20635 12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
pascal@20635 13 CONFIG_FILES="/etc/filesystems"
pascal@20635 14
pascal@20635 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20635 16 genpkg_rules()
pascal@20635 17 {
pascal@20635 18 local path
pascal@20635 19 path=lib/modules/$VERSION-slitaz/kernel
pascal@20635 20 mkdir -p $fs/$path $fs/etc
pascal@20635 21 export src
pascal@20635 22 export _pkg
pascal@20635 23 $wanted_stuff/list_modules.sh fs/${PACKAGE##*-} | while read module; do
pascal@20635 24 dir=$path/$(dirname $module)
pascal@20635 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@20635 26 cp -a $install/$path/$module $fs/$dir
pascal@20635 27 done
pascal@20635 28 touch $fs/etc/filesystems
pascal@20635 29 }
pascal@20635 30
pascal@20635 31 # Post install/remove commands for Tazpkg.
pascal@20635 32 post_install()
pascal@20635 33 {
pascal@20635 34 grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
pascal@20635 35 echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
pascal@20635 36 chroot "$1/" depmod -a $VERSION-slitaz
pascal@20635 37 }
pascal@20635 38
pascal@20635 39 post_remove()
pascal@20635 40 {
pascal@20635 41 sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
pascal@20635 42 chroot "$1/" depmod -a $VERSION-slitaz
pascal@20635 43 }