wok diff compcache/receipt @ rev 1989
Fix: libnotify-dev typo.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Jan 06 13:18:57 2009 +0100 (2009-01-06) |
parents | |
children | bfd8ed4b253e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/compcache/receipt Tue Jan 06 13:18:57 2009 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="compcache" 1.7 +VERSION="0.4" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Compressed caching" 1.10 +MAINTAINER="fabrice.thiroux@free.fr" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://code.google.com/p/compcache/" 1.13 +WGET_URL="http://compcache.googlecode.com/files/$TARBALL" 1.14 +BUILD_DEPENDS="lzma" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + 1.20 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.21 + if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then 1.22 + tazwok cook linux 1.23 + fi 1.24 + cd $src 1.25 + find -name Makefile | xargs sed -i \ 1.26 + "s|/lib/modules/\$(shell uname -r)/build|$WOK/linux/linux-$KERNEL_VERSION|" 1.27 + make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.34 + EXTRAVERSION=_$KERNEL_VERSION 1.35 + 1.36 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc $fs/etc/init.d 1.37 + 1.38 + install -o root -m 755 $src/compcache.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.39 + install -o root -m 755 $src/sub-projects/allocators/tlsf-kmod/tlsf.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.40 + install -o root -m 755 $src/sub-projects/compression/lzo-kmod/lzo1x_compress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.41 + install -o root -m 755 $src/sub-projects/compression/lzo-kmod/lzo1x_decompress.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.42 + 1.43 + for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do 1.44 + lzma e $i $i.gz && rm -f $i 1.45 + done 1.46 + install -o root -m 755 ./stuff/compcache $fs/etc/init.d/ 1.47 + install -o root -m 755 ./stuff/compcache.conf $fs/etc/ 1.48 +} 1.49 + 1.50 +post_install() 1.51 +{ 1.52 + echo "Processing post-install commands..." 1.53 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 1.54 +} 1.55 + 1.56 +post_remove() 1.57 +{ 1.58 + echo "Processing post-remove commands..." 1.59 + depmod -a 1.60 +}