wok-current annotate linux-configfs/receipt @ rev 25664
Up kernel to 4.19.307
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Feb 23 20:17:27 2024 +0000 (9 months ago) |
parents | 6c6067379b37 |
children | 8e3f5f4438f1 |
rev | line source |
---|---|
pankso@5645 | 1 # SliTaz package receipt. |
pankso@5645 | 2 |
pankso@5645 | 3 PACKAGE="linux-configfs" |
shann@25664 | 4 VERSION="4.19.307" |
pankso@5645 | 5 CATEGORY="base-system" |
pankso@5645 | 6 SHORT_DESC="The Linux kernel configfs module." |
pankso@5645 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pankso@5645 | 9 DEPENDS="linux" |
pankso@5645 | 10 WANTED="linux" |
pascal@20421 | 11 WEB_SITE="https://www.kernel.org/" |
pankso@5645 | 12 CONFIG_FILES="/etc/filesystems" |
pankso@5645 | 13 |
pankso@5645 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5645 | 15 genpkg_rules() |
pankso@5645 | 16 { |
pankso@5645 | 17 local path |
pankso@15855 | 18 path=lib/modules/$VERSION-slitaz/kernel |
pankso@5645 | 19 mkdir -p $fs/$path $fs/etc |
pankso@15855 | 20 export src install |
shann@25629 | 21 $wanted_stuff/list_modules.sh fs/configfs | while read module; do |
pankso@5645 | 22 dir=$path/$(dirname $module) |
pankso@5645 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 24 cp -a $install/$path/$module $fs/$dir |
pankso@5645 | 25 done |
shann@25629 | 26 |
shann@25629 | 27 # Workaround for configfs |
shann@25629 | 28 mkdir -p $fs/$path/fs/configfs |
shann@25629 | 29 cp -a $install/$path/fs/configfs/configfs.ko.xz $fs/$path/fs/configfs/ |
shann@25629 | 30 |
pankso@5645 | 31 touch $fs/etc/filesystems |
pankso@5645 | 32 } |
pankso@5645 | 33 |
pankso@5645 | 34 # Post install/remove commands for Tazpkg. |
pankso@5645 | 35 post_install() |
pankso@5645 | 36 { |
pascal@18730 | 37 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \ |
pascal@18730 | 38 echo "${PACKAGE#*-}" >> "$1/etc/filesystems" |
pascal@18730 | 39 chroot "$1/" depmod -a $VERSION-slitaz |
pankso@5645 | 40 } |
pankso@5645 | 41 |
pankso@5645 | 42 post_remove() |
pankso@5645 | 43 { |
pascal@18730 | 44 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems" |
pascal@18730 | 45 chroot "$1/" depmod -a $VERSION-slitaz |
pankso@5645 | 46 } |