wok-6.x view compcache/receipt @ rev 1991

Fix: compcache typos
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jan 06 23:41:28 2009 +0100 (2009-01-06)
parents 1f5b672d2454
children 2fea1271d9d2
line source
1 # SliTaz package receipt.
3 PACKAGE="compcache"
4 VERSION="0.4"
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 BUILD_DEPENDS="lzma"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
17 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
18 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
19 tazwok cook linux
20 fi
21 cd $src
22 find -name Makefile | xargs sed -i \
23 "s|/lib/modules/\$(shell uname -r)/build|$WOK/linux/linux-$KERNEL_VERSION|"
24 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
31 EXTRAVERSION=_$KERNEL_VERSION
33 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc $fs/etc/init.d
35 install -o root -m 755 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
36 install -o root -m 755 $src/sub-projects/allocators/tlsf-kmod/tlsf.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
37 install -o root -m 755 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
38 install -o root -m 755 $src/sub-projects/compression/lzo-kmod/lzo1x_decompress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
40 for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
41 lzma e $i $i.gz && rm -f $i
42 done
43 install -o root -m 755 ./stuff/compcache $fs/etc/init.d/
44 install -o root -m 755 ./stuff/compcache.conf $fs/etc/
45 }
47 post_install()
48 {
49 echo "Processing post-install commands..."
50 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
51 }
53 post_remove()
54 {
55 echo "Processing post-remove commands..."
56 depmod -a
57 }