wok-stable view compcache/receipt @ rev 2756

glibc: Remove duplicate glibc-extra-samba files in glibc-locale
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 21:06:51 2009 +0200 (2009-04-26)
parents bfd8ed4b253e
children f306d126580e
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 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 644 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
36 install -o root -m 644 $src/sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
37 install -o root -m 644 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
38 install -o root -m 644 $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 644 ./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 }