wok view linux-squashfs/receipt @ rev 19824
Up smplayer, smtube (17.2.0)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Mar 04 22:10:01 2017 +0100 (2017-03-04) |
parents | 08cf996a2307 |
children | ffc20f9bd49f |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-squashfs"
4 VERSION="3.2.71"
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="http://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 }