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