wok-6.x annotate linux-zram/receipt @ rev 18404

gnome-keyring: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 09:46:36 2015 +0200 (2015-09-19)
parents ed7d78e6967f
children f432334ec8cf
rev   line source
pascal@13390 1 # SliTaz package receipt.
pascal@13390 2
pascal@13390 3 PACKAGE="linux-zram"
pascal@18296 4 VERSION="3.2.71"
pascal@13390 5 CATEGORY="base-system"
pascal@13390 6 SHORT_DESC="Compressed caching"
pascal@13390 7 MAINTAINER="devel@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pascal@13390 9 WEB_SITE="http://www.kernel.org/"
pascal@13390 10 WANTED="linux"
pascal@13390 11 PROVIDE="compcache"
pascal@13390 12
pascal@13390 13 DEPENDS="linux"
pascal@13390 14
pascal@13390 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13390 16 genpkg_rules()
pascal@13390 17 {
pascal@13390 18 local path
pankso@15855 19 path=lib/modules/$VERSION-slitaz/kernel
pascal@13390 20 mkdir -p $fs/$path $fs/etc/init.d
pankso@15855 21 export src install
pascal@13390 22 $wanted_stuff/list_modules.sh drivers/staging/zram | \
pascal@13390 23 while read module; do
pascal@13390 24 dir=$path/$(dirname $module)
pascal@13390 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15603 26 cp -a $install/$path/$module $fs/$dir
pascal@13390 27 done
pascal@13390 28 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
pascal@13390 29 install -o root -m 644 $stuff/compcache.conf $fs/etc/
pascal@13390 30 }
pascal@13390 31
pascal@13390 32 # Post install/remove commands for Tazpkg.
pascal@13390 33 post_install()
pascal@13390 34 {
psychomaniak@16965 35 chroot "$root/" depmod -a $VERSION-slitaz &&
psychomaniak@16965 36 RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` &&
psychomaniak@16965 37 echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf
pascal@13390 38 }
pascal@13390 39
pascal@13390 40 post_remove()
pascal@13390 41 {
pankso@15855 42 chroot "$root/" depmod -a $VERSION-slitaz
pascal@13390 43 }
pascal@13390 44