wok-undigest rev 993
rt-source*: store patch in /tmp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 21 11:15:35 2013 +0200 (2013-04-21) |
parents | 0d8ed6a20e2e |
children | 9adb5dace47c |
files | rt-source-patch/receipt rt-source/receipt |
line diff
1.1 --- a/rt-source-patch/receipt Sun Apr 21 00:17:29 2013 +0200 1.2 +++ b/rt-source-patch/receipt Sun Apr 21 11:15:35 2013 +0200 1.3 @@ -2,10 +2,17 @@ 1.4 1.5 PACKAGE="rt-source-patch" 1.6 VERSION="2.6.33.9-rt31" 1.7 -CATEGORY="meta" 1.8 -SHORT_DESC="Realtime Preempation patch (empty package)" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="Realtime Preempation patch" 1.11 MAINTAINER="slaxemulator@gmail.com" 1.12 TARBALL="patch-$VERSION.bz2" 1.13 WEB_SITE="ftp://ftp.kernel.org/pub/linux/kernel/projects/rt" 1.14 WGET_URL="$WEB_SITE/${VERSION%.*}/$TARBALL" 1.15 -COOK_OPT="!unpack !repack_src !fs" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir $fs/tmp 1.21 + cp $SOURCES_REPOSITORY/$TARBALL $fs/tmp 1.22 + 1.23 +}
2.1 --- a/rt-source/receipt Sun Apr 21 00:17:29 2013 +0200 2.2 +++ b/rt-source/receipt Sun Apr 21 11:15:35 2013 +0200 2.3 @@ -19,14 +19,8 @@ 2.4 cd $src 2.5 mkdir -p $install/$PACKAGE-$VERSION$RT_VERSION 2.6 mv * $install/$PACKAGE-$VERSION$RT_VERSION 2> /dev/null 2.7 - # can't extract since its bzip2 only and not tar.bz2 2.8 - 2.9 - if [ -f $SOURCE_REPOSITORY/$RT_TARBALL ]; then 2.10 - cp $SOURCE_REPOSITORY/$RT_TARBALL . 2.11 - bunzip2 -d $RT_TARBALL 2.12 - fi 2.13 cd $install/$PACKAGE-$VERSION$RT_VERSION 2.14 - patch -p1 < $src/patch-$VERSION$RT_VERSION 2.15 + bzcat /patch-* | patch -p1 2.16 } 2.17 2.18 # Rules to gen a SliTaz package suitable for Tazpkg. 2.19 @@ -34,4 +28,4 @@ 2.20 { 2.21 mkdir -p $fs/usr/src/ 2.22 mv $install/$PACKAGE-$VERSION$RT_VERSION $fs/usr/src/ 2.23 -} 2.24 \ No newline at end of file 2.25 +}