wok-current annotate linux64-zram/receipt @ rev 17967
make-slitaz-icons: add LXPanel network status icons; slitaz-icons-faenza: rebuild.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 17 09:03:57 2015 +0300 (2015-04-17) |
parents | 51a123a3f6f5 |
children | 08cf996a2307 |
rev | line source |
---|---|
pascal@13390 | 1 # SliTaz package receipt. |
pascal@13390 | 2 |
pascal@13390 | 3 PACKAGE="linux64-zram" |
pascal@15670 | 4 VERSION="3.2.53" |
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@13391 | 10 WANTED="linux" |
pascal@17031 | 11 PROVIDE="compcache:linux64 linux-zram:linux64" |
pascal@13390 | 12 |
pascal@13391 | 13 DEPENDS="linux64" |
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 |
pascal@17277 | 19 src=$WOK/linux64/source/tmp |
pascal@16657 | 20 install=$install/linux64 |
pascal@17028 | 21 path=lib/modules/$VERSION-slitaz64/kernel |
pascal@13390 | 22 mkdir -p $fs/$path $fs/etc/init.d |
pascal@13390 | 23 export src |
pascal@16657 | 24 export install |
pascal@13390 | 25 $wanted_stuff/list_modules.sh drivers/staging/zram | \ |
pascal@13390 | 26 while read module; do |
pascal@13390 | 27 dir=$path/$(dirname $module) |
pascal@13390 | 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@16657 | 29 cp -a $install/$path/$module $fs/$dir |
pascal@13390 | 30 done |
pascal@13390 | 31 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ |
pascal@13390 | 32 install -o root -m 644 $stuff/compcache.conf $fs/etc/ |
pascal@13390 | 33 } |
pascal@13390 | 34 |
pascal@13390 | 35 # Post install/remove commands for Tazpkg. |
pascal@13390 | 36 post_install() |
pascal@13390 | 37 { |
pascal@17032 | 38 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@13390 | 39 } |
pascal@13390 | 40 |
pascal@13390 | 41 post_remove() |
pascal@13390 | 42 { |
pascal@17032 | 43 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@13390 | 44 } |
pascal@13390 | 45 |