wok-6.x annotate linux-ecryptfs/receipt @ rev 20938

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