wok-current view linux64-romfs/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents b24b6ee1d4d2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-romfs"
4 VERSION="5.10.221"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel romfs module."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="linux64"
10 WANTED="linux"
11 PROVIDE="linux-romfs:linux64"
12 WEB_SITE="https://www.kernel.org/"
13 CONFIG_FILES="/etc/filesystems"
15 HOST_ARCH="i486 x86_64"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 src=$WOK/linux64/source/tmp
21 install=$install/linux64
22 path=lib/modules/$VERSION-slitaz64/kernel
23 mkdir -p $fs/$path $fs/etc
24 export src
25 export install
26 $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
27 dir=$path/$(dirname $module)
28 [ -d $fs/$dir ] || mkdir -p $fs/$dir
29 cp -a $install/$path/$module $fs/$dir
30 done
31 touch $fs/etc/filesystems
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
38 echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
39 chroot "$1/" depmod -a $VERSION-slitaz64
40 }
42 post_remove()
43 {
44 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
45 chroot "$1/" depmod -a $VERSION-slitaz64
46 }