wok-6.x view linux-zram/receipt @ rev 16305
Up: xfce4-taskmanager (1.0.1)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Apr 07 09:42:24 2014 +0000 (2014-04-07) |
parents | eb689de65d7e |
children | ed7d78e6967f |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.53"
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"
13 DEPENDS="linux"
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/init.d
21 export src install
22 $wanted_stuff/list_modules.sh drivers/staging/zram | \
23 while read module; do
24 dir=$path/$(dirname $module)
25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
26 cp -a $install/$path/$module $fs/$dir
27 done
28 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
29 install -o root -m 644 $stuff/compcache.conf $fs/etc/
30 }
32 # Post install/remove commands for Tazpkg.
33 post_install()
34 {
35 chroot "$root/" depmod -a $VERSION-slitaz
36 }
38 post_remove()
39 {
40 chroot "$root/" depmod -a $VERSION-slitaz
41 }