wok annotate linux-exofs/receipt @ rev 25334

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