wok-current annotate compcache/receipt @ rev 5306

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