wok-6.x view linux64-zram/receipt @ rev 19213

Add uhd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 18:27:53 2016 +0200 (2016-06-14)
parents f432334ec8cf
children ffc20f9bd49f
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-zram"
4 VERSION="3.2.71"
5 CATEGORY="base-system"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.kernel.org/"
10 CONFIG_FILES="/etc/compcache.conf"
11 WANTED="linux"
12 PROVIDE="compcache:linux64 linux-zram:linux64"
14 DEPENDS="linux64"
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/init.d
24 export src
25 export install
26 $wanted_stuff/list_modules.sh drivers/staging/zram | \
27 while read module; do
28 dir=$path/$(dirname $module)
29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
30 cp -a $install/$path/$module $fs/$dir
31 done
32 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
33 install -o root -m 644 $stuff/compcache.conf $fs/etc/
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 chroot "$root/" depmod -a $VERSION-slitaz64
40 cat <<EOT
42 You can add compressed swap according /etc/compcache.conf configuration with:
43 # /etc/init.d/compcache start
44 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
45 EOT
46 }
48 post_remove()
49 {
50 chroot "$root/" depmod -a $VERSION-slitaz64
51 }