wok annotate linux64-ecryptfs/receipt @ rev 20917
updated fdupes (1.40 -> 1.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 28 17:10:02 2019 +0100 (2019-02-28) |
parents | |
children |
rev | line source |
---|---|
pascal@20635 | 1 # SliTaz package receipt. |
pascal@20635 | 2 |
pascal@20635 | 3 PACKAGE="linux64-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="linux64" |
pascal@20635 | 10 WANTED="linux" |
pascal@20635 | 11 PROVIDE="linux-ecryptfs:linux64" |
pascal@20635 | 12 WEB_SITE="https://www.kernel.org/" |
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 src=$WOK/linux64/source/tmp |
pascal@20635 | 20 install=$install/linux64 |
pascal@20635 | 21 path=lib/modules/$VERSION-slitaz64/kernel |
pascal@20635 | 22 mkdir -p $fs/$path $fs/etc |
pascal@20635 | 23 export src |
pascal@20635 | 24 export install |
pascal@20635 | 25 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do |
pascal@20635 | 26 dir=$path/$(dirname $module) |
pascal@20635 | 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@20635 | 28 cp -a $install/$path/$module $fs/$dir |
pascal@20635 | 29 done |
pascal@20635 | 30 touch $fs/etc/filesystems |
pascal@20635 | 31 } |
pascal@20635 | 32 |
pascal@20635 | 33 # Post install/remove commands for Tazpkg. |
pascal@20635 | 34 post_install() |
pascal@20635 | 35 { |
pascal@20635 | 36 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \ |
pascal@20635 | 37 echo "${PACKAGE#*-}" >> "$1/etc/filesystems" |
pascal@20635 | 38 chroot "$1/" depmod -a $VERSION-slitaz64 |
pascal@20635 | 39 } |
pascal@20635 | 40 |
pascal@20635 | 41 post_remove() |
pascal@20635 | 42 { |
pascal@20635 | 43 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems" |
pascal@20635 | 44 chroot "$1/" depmod -a $VERSION-slitaz64 |
pascal@20635 | 45 } |