# HG changeset patch # User Pascal Bellard # Date 1456507553 -3600 # Node ID 5b16e60b3d246a597b843512bc2f3eeed1bd8575 # Parent a77b556923e9cc0c5b28f670339ae1ece1e60ade defrag, gcc+gcj, iptables-template, raine: use EXTRA_SOURCE_FILES to track the sources files diff -r a77b556923e9 -r 5b16e60b3d24 defrag/receipt --- a/defrag/receipt Fri Feb 26 17:55:33 2016 +0100 +++ b/defrag/receipt Fri Feb 26 18:25:53 2016 +0100 @@ -8,6 +8,7 @@ LICENSE="unknown" WEB_SITE="http://ck.kolivas.org/apps/defrag/README" URL="$(dirname $WEB_SITE)/$PACKAGE-$VERSION/$PACKAGE" +EXTRA_SOURCE_FILES="$PACKAGE" SUGGESTED="shake" DEPENDS="bash" @@ -15,5 +16,7 @@ genpkg_rules() { mkdir -p $fs/usr/bin - wget -P $fs/usr/bin $URL + [ -s "$SOURCES_REPOSITORY/$PACKAGE" ] || + wget -P $SOURCES_REPOSITORY $URL + cp $SOURCES_REPOSITORY/$PACKAGE $fs/usr/bin } diff -r a77b556923e9 -r 5b16e60b3d24 gcc+gcj/receipt --- a/gcc+gcj/receipt Fri Feb 26 17:55:33 2016 +0100 +++ b/gcc+gcj/receipt Fri Feb 26 18:25:53 2016 +0100 @@ -10,6 +10,9 @@ TARBALL="$SOURCE-$VERSION.tar.bz2" WEB_SITE="http://gcc.gnu.org/java/" WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" +ECJ_JAR="ecj-latest.jar" +ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" +EXTRA_SOURCE_FILES="$ECJ_JAR" PROVIDE="$SOURCE jre jdk" TAGS="compiler C C++ objective-C java" @@ -36,8 +39,6 @@ # Get ecj.jar needed to build gcj. We have to dl it each time from the # sources repository to ensure that we receive the latest JAR. # (See http://gcc.gnu.org/install/configure.html --with-ecj-jar) - ECJ_JAR="ecj-latest.jar" - ECJ_URL="ftp://sourceware.org/pub/java/$ECJ_JAR" if [ ! -f "$ECJ_JAR" ] ; then echo "Downloading ECJ jar to: $(pwd)" wget -c $ECJ_URL @@ -46,6 +47,7 @@ echo -e "\nECJ jar download failed, exiting. Please check ECJ_URL variable.\n" return 1 fi + cp $ECJ_URL $SOURCES_REPOSITORY fi # Use libiberty.a from binutils. diff -r a77b556923e9 -r 5b16e60b3d24 iptables-template/receipt --- a/iptables-template/receipt Fri Feb 26 17:55:33 2016 +0100 +++ b/iptables-template/receipt Fri Feb 26 18:25:53 2016 +0100 @@ -7,6 +7,7 @@ MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://gist.github.com/jirutka/3742890" +EXTRA_SOURCE_FILES="rules-both.iptables rules-ipv4.iptables rules-ipv6.ip6tables" BUILD_DEPENDS="wget" @@ -14,13 +15,16 @@ compile_rules() { mkdir -p $install/usr/share/iptables - for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \ - 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \ - 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables - do - wget --no-check-certificate \ - -O $install/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i - done + while read dir file ; do + [ -s "$SOURCES_REPOSITORY/$file" ] || + wget --no-check-certificate -P $SOURCES_REPOSITORY \ + $WEB_SITE/raw/$dir/$file + cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/ + done <