wok annotate linux64-zram/receipt @ rev 19786

binutils: depends on flex (ar, ranlib)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 22 15:22:41 2017 +0200 (2017-02-22)
parents f432334ec8cf
children ffc20f9bd49f
rev   line source
pascal@13390 1 # SliTaz package receipt.
pascal@13390 2
pascal@13390 3 PACKAGE="linux64-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@18743 10 CONFIG_FILES="/etc/compcache.conf"
pascal@13391 11 WANTED="linux"
pascal@17031 12 PROVIDE="compcache:linux64 linux-zram:linux64"
pascal@13390 13
pascal@13391 14 DEPENDS="linux64"
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@17277 20 src=$WOK/linux64/source/tmp
pascal@16657 21 install=$install/linux64
pascal@17028 22 path=lib/modules/$VERSION-slitaz64/kernel
pascal@13390 23 mkdir -p $fs/$path $fs/etc/init.d
pascal@13390 24 export src
pascal@16657 25 export install
pascal@13390 26 $wanted_stuff/list_modules.sh drivers/staging/zram | \
pascal@13390 27 while read module; do
pascal@13390 28 dir=$path/$(dirname $module)
pascal@13390 29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@16657 30 cp -a $install/$path/$module $fs/$dir
pascal@13390 31 done
pascal@13390 32 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
pascal@13390 33 install -o root -m 644 $stuff/compcache.conf $fs/etc/
pascal@13390 34 }
pascal@13390 35
pascal@13390 36 # Post install/remove commands for Tazpkg.
pascal@13390 37 post_install()
pascal@13390 38 {
pascal@17032 39 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@18743 40 cat <<EOT
pascal@18745 41
pascal@18743 42 You can add compressed swap according /etc/compcache.conf configuration with:
pascal@18743 43 # /etc/init.d/compcache start
pascal@18743 44 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
pascal@18743 45 EOT
pascal@13390 46 }
pascal@13390 47
pascal@13390 48 post_remove()
pascal@13390 49 {
pascal@17032 50 chroot "$root/" depmod -a $VERSION-slitaz64
pascal@13390 51 }
pascal@13390 52