wok-current view linux-squashfs/receipt @ rev 22942
updated icewm again (1.3.8 -> 1.6.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 27 17:34:50 2020 +0100 (2020-02-27) |
parents | 708b5293dd29 |
children | a23978bfa665 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-squashfs"
4 VERSION="3.16.55"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel squashfs module."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="linux"
10 WANTED="linux"
11 WEB_SITE="https://www.kernel.org/"
12 PROVIDE="squashfs-module"
13 CONFIG_FILES="/etc/filesystems"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 path=lib/modules/$VERSION-slitaz/kernel
20 mkdir -p $fs/$path $fs/etc
21 export src install
22 $wanted_stuff/list_modules.sh fs/squashfs | while read module; do
23 dir=$path/$(dirname $module)
24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
25 cp -a $install/$path/$module $fs/$dir
26 done
27 touch $fs/etc/filesystems
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
34 echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
35 chroot "$1/" depmod -a $VERSION-slitaz
36 }
38 post_remove()
39 {
40 sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
41 chroot "$1/" depmod -a $VERSION-slitaz
42 }