wok-6.x view linux-zram/receipt @ rev 13568
Add: python-prettytable
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 03 14:23:57 2012 +0100 (2012-11-03) |
parents | |
children | 416fab3c90c0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.14"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="Compressed caching"
8 MAINTAINER="devel@slitaz.org"
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/$BASEVER-slitaz/kernel
20 mkdir -p $fs/$path $fs/etc/init.d
21 export src
22 export _pkg
23 $wanted_stuff/list_modules.sh drivers/staging/zram | \
24 while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
30 install -o root -m 644 $stuff/compcache.conf $fs/etc/
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 chroot "$1/" depmod -a $BASEVER-slitaz
37 }
39 post_remove()
40 {
41 chroot "$1/" depmod -a $BASEVER-slitaz
42 }