# HG changeset patch # User Christopher Rogers # Date 1301145019 0 # Node ID f60618139f66c789d1f27a2520dde15654cc077e # Parent 8251ee2d69a4ee1f0e960908b30234edff5c533e 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. diff -r 8251ee2d69a4 -r f60618139f66 rt-source/receipt --- a/rt-source/receipt Sat Mar 26 13:07:23 2011 +0000 +++ b/rt-source/receipt Sat Mar 26 13:10:19 2011 +0000 @@ -7,11 +7,11 @@ SHORT_DESC="Realtime Preemption patched low latency Linux kernel sources." MAINTAINER="devl547@gmail.com" WEB_SITE="http://www.kernel.org/pub/linux/kernel/projects/rt/" -BUILD_DEPENDS="bzip2" -TARBALL="linux-$VERSION.tar.bz2" +BUILD_DEPENDS="bzip2 rt-source-patch" +SOURCE="linux" +TARBALL="$SOURCE-$VERSION.tar.bz2" RT_TARBALL="patch-$VERSION$RT_VERSION.bz2" WGET_URL="http://www.kernel.org/pub/linux/kernel/v2.6/$TARBALL" -RT_URL="$WEB_SITE/$RT_TARBALL" # Rules to configure and make the package. compile_rules() @@ -19,8 +19,15 @@ cd $src mkdir -p _pkg/$PACKAGE-$VERSION$RT_VERSION mv * _pkg/$PACKAGE-$VERSION$RT_VERSION 2> /dev/null - wget $RT_URL - bzip2 -d $RT_TARBALL + # can't extract since its bzip2 only and not tar.bz2 + if [ ! -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then + tazwok get-src rt-source-patch + fi + + if [ -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then + cp $SOURCE_REPOSITORY/$RT_TARBALL . + bunzip2 -d $RT_TARBALL + fi cd _pkg/$PACKAGE-$VERSION$RT_VERSION patch -p1 < ../../patch-$VERSION$RT_VERSION }