wok view linux64-zram/receipt @ rev 14966
Up: firefox-langpack-es_ES (17.0.8esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 22:19:56 2013 +0200 (2013-08-08) |
parents | 416fab3c90c0 |
children | 051931e905b0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-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 linux-zram"
14 DEPENDS="linux64"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 _pkg=$_pkg/linux64
21 path=lib/modules/$BASEVER-slitaz/kernel
22 mkdir -p $fs/$path $fs/etc/init.d
23 export src
24 export _pkg
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 $_pkg/$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 "$1/" depmod -a $BASEVER-slitaz
39 }
41 post_remove()
42 {
43 chroot "$1/" depmod -a $BASEVER-slitaz
44 }