wok rev 18931
defrag, gcc+gcj, iptables-template, raine: use EXTRA_SOURCE_FILES to track the sources files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 26 18:25:53 2016 +0100 (2016-02-26) |
parents | a77b556923e9 |
children | d300343d856c |
files | defrag/receipt gcc+gcj/receipt iptables-template/receipt raine/receipt |
line diff
1.1 --- a/defrag/receipt Fri Feb 26 17:55:33 2016 +0100 1.2 +++ b/defrag/receipt Fri Feb 26 18:25:53 2016 +0100 1.3 @@ -8,6 +8,7 @@ 1.4 LICENSE="unknown" 1.5 WEB_SITE="http://ck.kolivas.org/apps/defrag/README" 1.6 URL="$(dirname $WEB_SITE)/$PACKAGE-$VERSION/$PACKAGE" 1.7 +EXTRA_SOURCE_FILES="$PACKAGE" 1.8 SUGGESTED="shake" 1.9 DEPENDS="bash" 1.10 1.11 @@ -15,5 +16,7 @@ 1.12 genpkg_rules() 1.13 { 1.14 mkdir -p $fs/usr/bin 1.15 - wget -P $fs/usr/bin $URL 1.16 + [ -s "$SOURCES_REPOSITORY/$PACKAGE" ] || 1.17 + wget -P $SOURCES_REPOSITORY $URL 1.18 + cp $SOURCES_REPOSITORY/$PACKAGE $fs/usr/bin 1.19 }
2.1 --- a/gcc+gcj/receipt Fri Feb 26 17:55:33 2016 +0100 2.2 +++ b/gcc+gcj/receipt Fri Feb 26 18:25:53 2016 +0100 2.3 @@ -10,6 +10,9 @@ 2.4 TARBALL="$SOURCE-$VERSION.tar.bz2" 2.5 WEB_SITE="http://gcc.gnu.org/java/" 2.6 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" 2.7 +ECJ_JAR="ecj-latest.jar" 2.8 +ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" 2.9 +EXTRA_SOURCE_FILES="$ECJ_JAR" 2.10 PROVIDE="$SOURCE jre jdk" 2.11 TAGS="compiler C C++ objective-C java" 2.12 2.13 @@ -36,8 +39,6 @@ 2.14 # Get ecj.jar needed to build gcj. We have to dl it each time from the 2.15 # sources repository to ensure that we receive the latest JAR. 2.16 # (See http://gcc.gnu.org/install/configure.html --with-ecj-jar) 2.17 - ECJ_JAR="ecj-latest.jar" 2.18 - ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" 2.19 if [ ! -f "$ECJ_JAR" ] ; then 2.20 echo "Downloading ECJ jar to: $(pwd)" 2.21 wget -c $ECJ_URL 2.22 @@ -46,6 +47,7 @@ 2.23 echo -e "\nECJ jar download failed, exiting. Please check ECJ_URL variable.\n" 2.24 return 1 2.25 fi 2.26 + cp $ECJ_URL $SOURCES_REPOSITORY 2.27 fi 2.28 2.29 # Use libiberty.a from binutils.
3.1 --- a/iptables-template/receipt Fri Feb 26 17:55:33 2016 +0100 3.2 +++ b/iptables-template/receipt Fri Feb 26 18:25:53 2016 +0100 3.3 @@ -7,6 +7,7 @@ 3.4 MAINTAINER="pascal.bellard@slitaz.org" 3.5 LICENSE="MIT" 3.6 WEB_SITE="https://gist.github.com/jirutka/3742890" 3.7 +EXTRA_SOURCE_FILES="rules-both.iptables rules-ipv4.iptables rules-ipv6.ip6tables" 3.8 3.9 BUILD_DEPENDS="wget" 3.10 3.11 @@ -14,13 +15,16 @@ 3.12 compile_rules() 3.13 { 3.14 mkdir -p $install/usr/share/iptables 3.15 - for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \ 3.16 - 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \ 3.17 - 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables 3.18 - do 3.19 - wget --no-check-certificate \ 3.20 - -O $install/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i 3.21 - done 3.22 + while read dir file ; do 3.23 + [ -s "$SOURCES_REPOSITORY/$file" ] || 3.24 + wget --no-check-certificate -P $SOURCES_REPOSITORY \ 3.25 + $WEB_SITE/raw/$dir/$file 3.26 + cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/ 3.27 + done <<EOT 3.28 +c025b0b8c58af49aa9644982c459314c9adba157 rules-both.iptables 3.29 +622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables 3.30 +3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables 3.31 +EOT 3.32 } 3.33 3.34 # Rules to gen a SliTaz package suitable for Tazpkg.
4.1 --- a/raine/receipt Fri Feb 26 17:55:33 2016 +0100 4.2 +++ b/raine/receipt Fri Feb 26 18:25:53 2016 +0100 4.3 @@ -9,6 +9,7 @@ 4.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 4.5 WEB_SITE="http://rainemu.swishparty.co.uk" 4.6 WGET_URL="$WEB_SITE/cgi-bin/gitweb.cgi?p=raine;a=snapshot;h=02988ce197bc5b9f1a9eae66251e883d649cc03b;sf=tgz" 4.7 +EXTRA_SOURCE_FILES="raines-0.51.9.tar.bz2" 4.8 4.9 DEPENDS="libsdl zlib libpng libsdl-image liblzma libsdl-ttf muparser mesa" 4.10 BUILD_DEPENDS="libsdl-dev zlib-dev libpng-dev nasm libsdl-image-dev liblzma-dev libsdl-ttf-dev muparser-dev mesa-dev" 4.11 @@ -16,10 +17,12 @@ 4.12 # Rules to configure and make the package. 4.13 compile_rules() 4.14 { 4.15 - cd $src 4.16 touch -d 197001010000 make.dep cpuinfo 4.17 wget http://mirror.yandex.ru/gentoo-distfiles/distfiles/raines-0.51.9.tar.bz2 4.18 - tar xf raines-0.51.9.tar.bz2 4.19 + [ -s "$SOURCES_REPOSITORY/raines-0.51.9.tar.bz2" ] || 4.20 + wget -P $SOURCES_REPOSITORY \ 4.21 + http://mirror.yandex.ru/gentoo-distfiles/distfiles/raines-0.51.9.tar.bz2 4.22 + tar xf $SOURCES_REPOSITORY/raines-0.51.9.tar.bz2 4.23 mv raine-0.51.9/fonts . 4.24 mv raine-0.51.9/scripts . 4.25 mv raine-0.51.9/bitmaps .