wok-current rev 5555

smbwebclient, squashfs, xlogo: cache extra wget'd files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 13 23:05:31 2010 +0200 (2010-05-13)
parents aebcbcedcc6b
children 14241a138e93
files smbwebclient/receipt squashfs/receipt xlogo/receipt
line diff
     1.1 --- a/smbwebclient/receipt	Thu May 13 22:57:11 2010 +0200
     1.2 +++ b/smbwebclient/receipt	Thu May 13 23:05:31 2010 +0200
     1.3 @@ -12,10 +12,11 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	[ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz ] ||
     1.8 +		wget $SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION.php.gz -P $SOURCES_REPOSITORY
     1.9  	if [ ! -d $src ]; then
    1.10 -		wget $SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION.php.gz || return 1
    1.11  		mkdir -p $src
    1.12 -		mv $PACKAGE-$VERSION.php.gz $src
    1.13 +		cp $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz $src
    1.14  		gunzip $src/$PACKAGE-$VERSION.php.gz
    1.15  	fi
    1.16  }
     2.1 --- a/squashfs/receipt	Thu May 13 22:57:11 2010 +0200
     2.2 +++ b/squashfs/receipt	Thu May 13 23:05:31 2010 +0200
     2.3 @@ -21,10 +21,10 @@
     2.4  	mkdir -p ../_pkg/usr/sbin ../_pkg/sbin
     2.5  	if [ ! -d ../LZMA/lzma465 ]; then
     2.6  		SF_MIRROR=http://switch.dl.sourceforge.net/sourceforge
     2.7 -		[ -s lzma465.tar.bz2 ] || 
     2.8 -		wget $SF_MIRROR/sevenzip/lzma465.tar.bz2
     2.9 +		[ -s $SOURCES_REPOSITORY/lzma465.tar.bz2 ] || 
    2.10 +		wget $SF_MIRROR/sevenzip/lzma465.tar.bz2 -P $SOURCES_REPOSITORY
    2.11  		mkdir -p ../LZMA/lzma465
    2.12 -		tar xjf lzma465.tar.bz2 -C ../LZMA/lzma465
    2.13 +		tar xjf $SOURCES_REPOSITORY/lzma465.tar.bz2 -C ../LZMA/lzma465
    2.14  	fi
    2.15  	if [ ! -f lzma_wrapper.c ]; then
    2.16  		patch -p2 -i ../../stuff/lzma.u
     3.1 --- a/xlogo/receipt	Thu May 13 22:57:11 2010 +0200
     3.2 +++ b/xlogo/receipt	Thu May 13 23:05:31 2010 +0200
     3.3 @@ -12,16 +12,14 @@
     3.4  compile_rules()
     3.5  {
     3.6  	wget_url="http://downloads.tuxfamily.org/xlogo/common/xlogo.jar"
     3.7 -	mkdir $PACKAGE-$VERSION
     3.8 -	cd $src
     3.9 -	wget $wget_url
    3.10 +	[ -f $SOURCES_REPOSITORY/xlogo.jar ] ||
    3.11 +	wget $wget_url -P $SOURCES_REPOSITORY
    3.12  }
    3.13  
    3.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.15  genpkg_rules()
    3.16  {
    3.17 -	_pkg="$WOK/$PACKAGE/$PACKAGE-$VERSION"
    3.18  	mkdir -p $fs/usr/lib/xlogo
    3.19 -	cp $_pkg/xlogo.jar $fs/usr/lib/xlogo
    3.20 +	cp $SOURCES_REPOSITORY/xlogo.jar $fs/usr/lib/xlogo
    3.21  }
    3.22