wok view linux-zram/receipt @ rev 15011

alsaplayer-scopes: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 11 12:51:05 2013 +0000 (2013-08-11)
parents 416fab3c90c0
children 051931e905b0
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.40"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="Compressed caching"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.kernel.org/"
11 WANTED="linux"
12 PROVIDE="compcache"
14 DEPENDS="linux"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 path=lib/modules/$BASEVER-slitaz/kernel
21 mkdir -p $fs/$path $fs/etc/init.d
22 export src
23 export _pkg
24 $wanted_stuff/list_modules.sh drivers/staging/zram | \
25 while read module; do
26 dir=$path/$(dirname $module)
27 [ -d $fs/$dir ] || mkdir -p $fs/$dir
28 cp -a $_pkg/$path/$module $fs/$dir
29 done
30 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
31 install -o root -m 644 $stuff/compcache.conf $fs/etc/
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 chroot "$1/" depmod -a $BASEVER-slitaz
38 }
40 post_remove()
41 {
42 chroot "$1/" depmod -a $BASEVER-slitaz
43 }