wok view compcache/receipt @ rev 4862

xz: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 03 22:36:55 2010 +0100 (2010-02-03)
parents 2fea1271d9d2
children aae73869c238
line source
1 # SliTaz package receipt.
3 PACKAGE="compcache"
4 VERSION="0.5.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="fabrice.thiroux@free.fr"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://code.google.com/p/compcache/"
10 WGET_URL="http://compcache.googlecode.com/files/$TARBALL"
11 DEPENDS="linux"
12 BUILD_DEPENDS="lzma"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
19 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
20 tazwok cook linux
21 fi
22 cd $src
23 find -name Makefile | xargs sed -i \
24 "s|/lib/modules/\$(shell uname -r)/build|$WOK/linux/linux-$KERNEL_VERSION|"
25 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 EXTRAVERSION=_$KERNEL_VERSION
34 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc $fs/etc/init.d
36 install -o root -m 644 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
37 install -o root -m 644 $src/sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
38 install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
39 install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_decompress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
41 for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
42 lzma e $i $i.gz && rm -f $i
43 done
44 install -o root -m 755 ./stuff/compcache $fs/etc/init.d/
45 install -o root -m 644 ./stuff/compcache.conf $fs/etc/
46 }
48 post_install()
49 {
50 echo "Processing post-install commands..."
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }
54 post_remove()
55 {
56 echo "Processing post-remove commands..."
57 depmod -a
58 }