wok-next view compcache/receipt @ rev 5708
Up libxml2-tools (2.7.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 23 12:21:19 2010 +0200 (2010-06-23) |
parents | 637d4b17803d |
children | 2491e5bd11d6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="compcache"
4 VERSION="0.6.2"
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 \
35 $fs/etc/init.d \
36 $fs/usr/bin
38 install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
39 cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
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 }