wok-current annotate compcache/receipt @ rev 8889

Fixed typos in nagios depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 27 06:33:45 2011 +0000 (2011-02-27)
parents ec697b8b2555
children cbfb348cb173
rev   line source
pascal@1975 1 # SliTaz package receipt.
pascal@1975 2
pascal@1975 3 PACKAGE="compcache"
jozee@5598 4 VERSION="0.6.2"
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"
slaxemulator@7153 12 BUILD_DEPENDS="lzma linux-module-headers"
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 cd $src
erjo@5893 20
erjo@5893 21 # Fix build with kernel 2.6.34
gokhlayeh@8615 22 patch -p1 < ../stuff/compcache-0.6.2-linux-2.6.34.u || return 1
erjo@5893 23
mimas@2291 24 find -name Makefile | xargs sed -i \
slaxemulator@7153 25 "s|/lib/modules/\$(shell uname -r)/build|/usr/src/linux|"
slaxemulator@7153 26 make KBUILD=/usr/src/linux KVER=$KERNEL_VERSION
pascal@1975 27 }
pascal@1975 28
pascal@1975 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1975 30 genpkg_rules()
pascal@1975 31 {
erjo@1991 32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
pascal@1975 33 EXTRAVERSION=_$KERNEL_VERSION
pascal@1975 34
jozee@5599 35 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
jozee@5599 36 $fs/etc/init.d \
jozee@5599 37 $fs/usr/bin
pascal@1975 38
jozee@5599 39 install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
jozee@5600 40 cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
jozee@5599 41
mimas@2291 42 for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
mimas@2291 43 lzma e $i $i.gz && rm -f $i
pascal@1975 44 done
pascal@1975 45 install -o root -m 755 ./stuff/compcache $fs/etc/init.d/
mimas@2291 46 install -o root -m 644 ./stuff/compcache.conf $fs/etc/
pascal@1975 47 }
pascal@1975 48
pascal@1975 49 post_install()
pascal@1975 50 {
pascal@1975 51 echo "Processing post-install commands..."
pascal@2926 52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@1975 53 }
pascal@1975 54
pascal@1975 55 post_remove()
pascal@1975 56 {
pascal@1975 57 echo "Processing post-remove commands..."
slaxemulator@8308 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@1975 59 }