wok-current rev 5553
linld, linmodem-slmodem, mountlo, nbs, nvidia: cache extra wget'd files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 13 22:41:03 2010 +0200 (2010-05-13) |
parents | 4a13e7cb398c |
children | aebcbcedcc6b |
files | linld/receipt linmodem-slmodem/receipt mountlo/receipt nbs/receipt nvidia/receipt |
line diff
1.1 --- a/linld/receipt Thu May 13 22:04:49 2010 +0200 1.2 +++ b/linld/receipt Thu May 13 22:41:03 2010 +0200 1.3 @@ -15,7 +15,10 @@ 1.4 { 1.5 mv DIST $src 2> /dev/null 1.6 cd $src 1.7 - [ -f README.txt ] || wget $WEB_SITE 1.8 + if [ ! -f $SOURCES_REPOSITORY/linld.txt ]; then 1.9 + wget $WEB_SITE 1.10 + mv README.txt $SOURCES_REPOSITORY/linld.txt 1.11 + fi 1.12 } 1.13 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 @@ -24,6 +27,6 @@ 1.16 mkdir -p $fs/usr/share/boot 1.17 cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \ 1.18 $fs/usr/share/boot/linld.com 1.19 - cp $src/README.txt $fs/usr/share/boot/linld.txt 1.20 + cp $SOURCES_REPOSITORY/linld.txt $fs/usr/share/boot/ 1.21 } 1.22
2.1 --- a/linmodem-slmodem/receipt Thu May 13 22:04:49 2010 +0200 2.2 +++ b/linmodem-slmodem/receipt Thu May 13 22:41:03 2010 +0200 2.3 @@ -19,9 +19,11 @@ 2.4 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 2.5 [ -d $WOK/linux/taz ] || tazwok cook linux 2.6 2.7 - [ -f ungrab-winmodem-20090716.tar.gz ] || wget $WEB_SITE/ungrab-winmodem-20090716.tar.gz 2.8 - [ -d ungrab-winmodem-20090716 ] || tar -xzf ungrab-winmodem-20090716.tar.gz 2.9 - cd ungrab-winmodem-20090716 2.10 + ungrab=ungrab-winmodem-20090716 2.11 + [ -f $SOURCES_REPOSITORY/$ungrab.tar.gz ] || 2.12 + wget $WEB_SITE/$ungrab.tar.gz -P $SOURCES_REPOSITORY 2.13 + [ -d $ungrab ] || tar -xzf $SOURCES_REPOSITORY/$ungrab.tar.gz 2.14 + cd $ungrab 2.15 make KERNEL_DIR=$WOK/linux/linux-$KERNEL_VERSION 2.16 cd $src 2.17 for i in utsrelease.h ; do
3.1 --- a/mountlo/receipt Thu May 13 22:04:49 2010 +0200 3.2 +++ b/mountlo/receipt Thu May 13 22:41:03 2010 +0200 3.3 @@ -14,9 +14,11 @@ 3.4 compile_rules() 3.5 { 3.6 cd $src 3.7 + [ -f $SOURCES_REPOSITORY/$PACKAGE-i386-$VERSION.tar.gz ] || 3.8 + wget $SF_MIRROR/fuse/$PACKAGE/$VERSION/$PACKAGE-i386-$VERSION.tar.gz \ 3.9 + -P $SOURCES_REPOSITORY 3.10 if [ ! -f mountlo-$VERSION/mountlo ]; then 3.11 - wget $SF_MIRROR/fuse/$PACKAGE/$VERSION/$PACKAGE-i386-$VERSION.tar.gz 3.12 - tar xzf $PACKAGE-i386-$VERSION.tar.gz 3.13 + tar xzf $SOURCES_REPOSITORY/$PACKAGE-i386-$VERSION.tar.gz 3.14 fi 3.15 } 3.16
4.1 --- a/nbs/receipt Thu May 13 22:04:49 2010 +0200 4.2 +++ b/nbs/receipt Thu May 13 22:41:03 2010 +0200 4.3 @@ -13,12 +13,18 @@ 4.4 { 4.5 mkdir $src 4.6 cd $src 4.7 + TARBALL=$PACKAGE-$VERSION.tar.gz 4.8 + [ -f $SOURCES_REPOSITORY/$TARBALL ] && 4.9 + tar xzf $SOURCES_REPOSITORY/$TARBALL 4.10 for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do 4.11 [ -f $i ] && continue 4.12 wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1 4.13 mv $i\?view=co $i 4.14 [ -f ../stuff/$i.u ] && patch -p0 < ../stuff/$i.u 4.15 done 4.16 + [ -f $SOURCES_REPOSITORY/$TARBALL ] || 4.17 + tar cvzf $SOURCES_REPOSITORY/$TARBALL \ 4.18 + Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c 4.19 make && 4.20 make DESTDIR=$PWD/_pkg install 4.21 }
5.1 --- a/nvidia/receipt Thu May 13 22:04:49 2010 +0200 5.2 +++ b/nvidia/receipt Thu May 13 22:41:03 2010 +0200 5.3 @@ -21,10 +21,10 @@ 5.4 [ -d $WOK/linux/taz ] || tazwok cook linux 5.5 5.6 cd $WOK/$PACKAGE 5.7 - [ -f $TARBALL ] || wget $WGET_URL 5.8 + [ -f $SOURCES_REPOSITORY/$TARBALL ] || wget $WGET_URL -P $SOURCES_REPOSITORY 5.9 5.10 - chmod +x $TARBALL 5.11 - sh $TARBALL --extract-only 5.12 + chmod +x $SOURCES_REPOSITORY/$TARBALL 5.13 + sh $SOURCES_REPOSITORY/$TARBALL --extract-only 5.14 5.15 cd $SOURCE/usr/src/nv/ 5.16 make SYSSRC="$WOK/linux/linux-$KERNEL_VERSION" module