wok-current rev 9393

Made rt-source use rt-source-patch for getting patch. Added rt-source-patch to build depends so it will be added into slitaz-modular source dvd.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Mar 26 13:10:19 2011 +0000 (2011-03-26)
parents 8251ee2d69a4
children 192a9e641d52
files rt-source/receipt
line diff
     1.1 --- a/rt-source/receipt	Sat Mar 26 13:07:23 2011 +0000
     1.2 +++ b/rt-source/receipt	Sat Mar 26 13:10:19 2011 +0000
     1.3 @@ -7,11 +7,11 @@
     1.4  SHORT_DESC="Realtime Preemption patched low latency Linux kernel sources."
     1.5  MAINTAINER="devl547@gmail.com"
     1.6  WEB_SITE="http://www.kernel.org/pub/linux/kernel/projects/rt/"
     1.7 -BUILD_DEPENDS="bzip2"
     1.8 -TARBALL="linux-$VERSION.tar.bz2"
     1.9 +BUILD_DEPENDS="bzip2 rt-source-patch"
    1.10 +SOURCE="linux"
    1.11 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.12  RT_TARBALL="patch-$VERSION$RT_VERSION.bz2"
    1.13  WGET_URL="http://www.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
    1.14 -RT_URL="$WEB_SITE/$RT_TARBALL"
    1.15  
    1.16  # Rules to configure and make the package.
    1.17  compile_rules()
    1.18 @@ -19,8 +19,15 @@
    1.19  	cd $src
    1.20  	mkdir -p _pkg/$PACKAGE-$VERSION$RT_VERSION
    1.21  	mv * _pkg/$PACKAGE-$VERSION$RT_VERSION 2> /dev/null
    1.22 -	wget $RT_URL
    1.23 -	bzip2 -d $RT_TARBALL
    1.24 +	# can't extract since its bzip2 only and not tar.bz2
    1.25 +	if [ ! -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then
    1.26 +		tazwok get-src rt-source-patch
    1.27 +	fi
    1.28 +
    1.29 +	if [ -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then
    1.30 +		cp $SOURCE_REPOSITORY/$RT_TARBALL .
    1.31 +		bunzip2 -d $RT_TARBALL
    1.32 +	fi
    1.33  	cd _pkg/$PACKAGE-$VERSION$RT_VERSION
    1.34  	patch -p1 < ../../patch-$VERSION$RT_VERSION
    1.35  }