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