wok-current view linux64-zram/receipt @ rev 18599
dropbear, slitaz-tools, tazwikiss, wpa_supplicant: touch missing "official" config files
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 16 00:25:42 2015 +0200 (2015-11-16) |
parents | 4ad2325946cd |
children | f432334ec8cf |
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 WANTED="linux"
11 PROVIDE="compcache:linux64 linux-zram:linux64"
13 DEPENDS="linux64"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 src=$WOK/linux64/source/tmp
20 install=$install/linux64
21 path=lib/modules/$VERSION-slitaz64/kernel
22 mkdir -p $fs/$path $fs/etc/init.d
23 export src
24 export install
25 $wanted_stuff/list_modules.sh drivers/staging/zram | \
26 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 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
32 install -o root -m 644 $stuff/compcache.conf $fs/etc/
33 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 chroot "$root/" depmod -a $VERSION-slitaz64
39 }
41 post_remove()
42 {
43 chroot "$root/" depmod -a $VERSION-slitaz64
44 }