wok-backports view linux64-zram/receipt @ rev 0

Add linux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 18 15:14:49 2013 +0000 (2013-12-18)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-zram"
4 VERSION="3.2.53"
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=$install/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 }