wok-current diff linux/receipt @ rev 6719
Fixed linux recepit so there will be not need for them to be repackage twiced.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Oct 14 17:57:21 2010 +0000 (2010-10-14) |
parents | 37417e21084f |
children | 473886fe148a |
line diff
1.1 --- a/linux/receipt Thu Oct 14 13:00:07 2010 +0000 1.2 +++ b/linux/receipt Thu Oct 14 17:57:21 2010 +0000 1.3 @@ -15,12 +15,20 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - # Aufs2 from git repository 1.8 - if [ ! -d aufs2 ]; then 1.9 - git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2 1.10 - cd aufs2 && git checkout origin/aufs2-34 1.11 + local _AUFSVER="20101014" 1.12 + [ -d "aufs2-$_AUFSVER-$VERSION" ] && rm -rf aufs2-$_AUFSVER-$VERSION 1.13 + TARBALL=$SOURCES_REPOSITORY/aufs2-$_AUFSVER-$VERSION.tar.gz 1.14 + if [ -f $TARBALL ]; then 1.15 + tar xzf $TARBALL 1.16 + cd aufs2-$_AUFSVER-$VERSION && git checkout origin/aufs2-34 1.17 + else 1.18 + # Aufs2 from git repository 1.19 + git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2-$_AUFSVER-$VERSION 1.20 + cd aufs2-$_AUFSVER-$VERSION && git checkout origin/aufs2-34 1.21 + tar czf $TARBALL aufs2-$_AUFSVER-$VERSION 1.22 + 1.23 fi 1.24 - cd aufs2 1.25 + #cd aufs2-$_AUFSVER-$VERSION 2>/dev/null 1.26 cp -a Documentation fs include $src 1.27 cp -a *.patch ../stuff 1.28 # We need the real GNU patch 1.29 @@ -65,6 +73,8 @@ 1.30 make INSTALL_MOD_PATH=$PWD/_pkg modules_install && 1.31 make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install && 1.32 [ -s arch/x86/boot/bzImage ] 1.33 + # Compress all modules. 1.34 + $WOK/$PACKAGE/stuff/gztazmod.sh $PWD/_pkg/lib/modules/$VERSION-slitaz 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 @@ -75,7 +85,7 @@ 1.39 cp -a $src/arch/x86/boot/bzImage \ 1.40 $fs/boot/vmlinuz-$VERSION-slitaz 1.41 # Compress all modules. 1.42 - ./stuff/gztazmod.sh $_pkg/lib/modules/$VERSION-slitaz 1.43 + #./stuff/gztazmod.sh $_pkg/lib/modules/$VERSION-slitaz 1.44 path=$fs/lib/modules/$VERSION-slitaz/kernel 1.45 mkdir -p $path 1.46 cp -a $_pkg/lib/modules/$VERSION-slitaz/mo* \