wok view compcache/receipt @ rev 9027
httpfs-fuse: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 03 22:10:39 2011 +0100 (2011-03-03) |
parents | ec697b8b2555 |
children | cbfb348cb173 |
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 linux-module-headers"
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 cd $src
21 # Fix build with kernel 2.6.34
22 patch -p1 < ../stuff/compcache-0.6.2-linux-2.6.34.u || return 1
24 find -name Makefile | xargs sed -i \
25 "s|/lib/modules/\$(shell uname -r)/build|/usr/src/linux|"
26 make KBUILD=/usr/src/linux KVER=$KERNEL_VERSION
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
33 EXTRAVERSION=_$KERNEL_VERSION
35 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
36 $fs/etc/init.d \
37 $fs/usr/bin
39 install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
40 cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
42 for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
43 lzma e $i $i.gz && rm -f $i
44 done
45 install -o root -m 755 ./stuff/compcache $fs/etc/init.d/
46 install -o root -m 644 ./stuff/compcache.conf $fs/etc/
47 }
49 post_install()
50 {
51 echo "Processing post-install commands..."
52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
53 }
55 post_remove()
56 {
57 echo "Processing post-remove commands..."
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
59 }