wok-stable rev 5552

catalyst, eduke32, erlang, fxload: cache extra wget'd files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 13 22:04:49 2010 +0200 (2010-05-13)
parents 54f5b0583b44
children b4b992b90e4a
files catalyst/receipt eduke32/receipt erlang/receipt fxload/receipt
line diff
     1.1 --- a/catalyst/receipt	Thu May 13 21:40:06 2010 +0200
     1.2 +++ b/catalyst/receipt	Thu May 13 22:04:49 2010 +0200
     1.3 @@ -20,12 +20,19 @@
     1.4  	
     1.5  	[ -d $WOK/linux/taz ] || tazwok cook linux
     1.6     
     1.7 -    cd $WOK/$PACKAGE
     1.8 -    [ -f $TARBALL ] || wget $WGET_URL
     1.9 +	cd $WOK/$PACKAGE
    1.10 +	[ -f $SOURCES_REPOSITORY/$TARBALL ] && cp $SOURCES_REPOSITORY/$TARBALL .
    1.11 +	if [ ! -f $TARBALL ]; then
    1.12 +		wget $WGET_URL
    1.13 +		cp $TARBALL $SOURCES_REPOSITORY
    1.14 +	fi
    1.15      
    1.16  	chmod +x $TARBALL
    1.17  	[ -d $PACKAGE-$VERSION ]  || sh $TARBALL --extract $PACKAGE-$VERSION
    1.18  	
    1.19 +	for i in autoconf.h utsrelease.h ; do
    1.20 +		grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
    1.21 +	done
    1.22  	cd $src/common/lib/modules/fglrx/build_mod
    1.23  	cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 . 
    1.24  	cp 2.6.x/Makefile .
     2.1 --- a/eduke32/receipt	Thu May 13 21:40:06 2010 +0200
     2.2 +++ b/eduke32/receipt	Thu May 13 22:04:49 2010 +0200
     2.3 @@ -17,7 +17,12 @@
     2.4  {
     2.5     	mv eduke32_src_20090131 eduke32-20090313
     2.6  	cd $src
     2.7 -    	wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
     2.8 +	[ -f $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] &&
     2.9 +	cp $SOURCES_REPOSITORY/eduke32_src_20090313.diff .
    2.10 +	if [ ! -f eduke32_src_20090313.diff ]; then
    2.11 +    		wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
    2.12 +		cp eduke32_src_20090313.diff $SOURCES_REPOSITORY
    2.13 +	fi
    2.14     	patch -p1 < eduke32_src_20090313.diff
    2.15  	make || return 1
    2.16      	mkdir $src/_pkg
     3.1 --- a/erlang/receipt	Thu May 13 21:40:06 2010 +0200
     3.2 +++ b/erlang/receipt	Thu May 13 22:04:49 2010 +0200
     3.3 @@ -19,9 +19,14 @@
     3.4  	/home/slitaz/wok/erlang/otp_src-R12B-5
     3.5  	mv ${SOURCE}_$VERSION $src
     3.6  	cd $src
     3.7 -	if [ -f $patch ]; then	
     3.8 +	[ -f $SOURCES_REPOSITORY/$patch ] && cp $SOURCES_REPOSITORY/$patch .
     3.9 +	if [ ! -f $patch ]; then
    3.10  		wget http://www.erlang.org/download/patches/$patch
    3.11 +		cp $patch $SOURCES_REPOSITORY
    3.12 +	fi
    3.13 +	if [ ! -f done.$patch ]; then
    3.14  		patch -p1 < $patch
    3.15 +		touch done.$patch
    3.16  	fi
    3.17  	export LANG=C
    3.18  	sed -i 's|./Install|sh -x Install|' Makefile*
     4.1 --- a/fxload/receipt	Thu May 13 21:40:06 2010 +0200
     4.2 +++ b/fxload/receipt	Thu May 13 22:04:49 2010 +0200
     4.3 @@ -16,7 +16,12 @@
     4.4  	cd $src
     4.5  	mkdir -p _pkg/usr/share/usb
     4.6  	cp a3load.hex _pkg/usr/share/usb || return 1
     4.7 -	wget http://updates.xorcom.com/astribank/$PACKAGE/$PACKAGE || return 1
     4.8 +	[ -f $SOURCES_REPOSITORY/$PACKAGE ] && cp $SOURCES_REPOSITORY/$PACKAGE .
     4.9 +	if [ ! -f $PACKAGE ]; then
    4.10 +		wget http://updates.xorcom.com/astribank/$PACKAGE/$PACKAGE ||
    4.11 +			 return 1
    4.12 +		cp $PACKAGE $SOURCES_REPOSITORY
    4.13 +	fi
    4.14  	chmod +x fxload
    4.15  	mkdir -p _pkg/usr/bin
    4.16  	mv fxload _pkg/usr/bin