wok-6.x diff compcache/receipt @ rev 12392

libevent: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 20 08:24:45 2012 +0200 (2012-04-20)
parents 0b4cf0d9e1b5
children 199632c45ba9
line diff
     1.1 --- a/compcache/receipt	Mon Feb 14 19:09:46 2011 +0100
     1.2 +++ b/compcache/receipt	Fri Apr 20 08:24:45 2012 +0200
     1.3 @@ -8,52 +8,55 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://code.google.com/p/compcache/"
     1.6  WGET_URL="http://compcache.googlecode.com/files/$TARBALL"
     1.7 +
     1.8  DEPENDS="linux"
     1.9  BUILD_DEPENDS="lzma linux-module-headers"
    1.10  
    1.11  # Rules to configure and make the package.
    1.12  compile_rules()
    1.13  {
    1.14 -    
    1.15 -    KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.16 -    cd $src
    1.17 -    
    1.18 -    # Fix build with kernel 2.6.34
    1.19 -    patch -p1 < ../stuff/compcache-0.6.2-linux-2.6.34.u || return 1
    1.20 -    
    1.21 -    find -name Makefile | xargs sed -i \
    1.22 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | \
    1.23 +		cut -d "=" -f2 | sed -e 's/"//g'`
    1.24 +	cd $src
    1.25 +	
    1.26 +	# Fix build with kernel 2.6.34
    1.27 +	patch -p1 < $stuff/compcache-0.6.2-linux-2.6.34.u || return 1
    1.28 +	
    1.29 +	find -name Makefile | xargs sed -i \
    1.30  		"s|/lib/modules/\$(shell uname -r)/build|/usr/src/linux|"
    1.31 -    make  KBUILD=/usr/src/linux KVER=$KERNEL_VERSION 
    1.32 +	make  KBUILD=/usr/src/linux KVER=$KERNEL_VERSION 
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 -    KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.39 -    EXTRAVERSION=_$KERNEL_VERSION
    1.40 -    
    1.41 -    mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
    1.42 -    		$fs/etc/init.d \
    1.43 -    		$fs/usr/bin
    1.44 -    
    1.45 -    install -o root -m 644 $src/ramzswap.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.46 -    cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
    1.47 -    
    1.48 -    for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
    1.49 -        lzma e $i $i.gz && rm -f $i
    1.50 -    done
    1.51 -    install -o root -m 755 ./stuff/compcache $fs/etc/init.d/
    1.52 -    install -o root -m 644 ./stuff/compcache.conf $fs/etc/
    1.53 +	KERNEL_VERSION=$(grep  ^VERSION= $WOK/linux/receipt | \
    1.54 +		cut -d "=" -f2 | sed -e 's/"//g')
    1.55 +	EXTRAVERSION=_$KERNEL_VERSION
    1.56 +	
    1.57 +	mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
    1.58 +			$fs/etc/init.d \
    1.59 +			$fs/usr/bin
    1.60 +	
    1.61 +	install -o root -m 644 $src/ramzswap.ko \
    1.62 +		$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
    1.63 +	cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
    1.64 +	
    1.65 +	for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
    1.66 +		lzma e $i $i.gz && rm -f $i
    1.67 +	done
    1.68 +	install -o root -m 755 $stuff/compcache $fs/etc/init.d/
    1.69 +	install -o root -m 644 $stuff/compcache.conf $fs/etc/
    1.70  }
    1.71  
    1.72  post_install()
    1.73  {
    1.74 -    echo "Processing post-install commands..."
    1.75 -    chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.76 +	echo "Processing post-install commands..."
    1.77 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.78  }
    1.79  
    1.80  post_remove()
    1.81  {
    1.82 -    echo "Processing post-remove commands..."
    1.83 -    chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.84 +	echo "Processing post-remove commands..."
    1.85 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.86  }