wok diff iptables-template/receipt @ rev 20917

updated fdupes (1.40 -> 1.6.1)
author Hans-G?nter Theisgen
date Thu Feb 28 17:10:02 2019 +0100 (2019-02-28)
parents aadee5047c4e
children ba1e68274f76
line diff
     1.1 --- a/iptables-template/receipt	Fri Jul 04 13:41:43 2014 +0200
     1.2 +++ b/iptables-template/receipt	Thu Feb 28 17:10:02 2019 +0100
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  LICENSE="MIT"
     1.6  WEB_SITE="https://gist.github.com/jirutka/3742890"
     1.7 +EXTRA_SOURCE_FILES="rules-both.iptables rules-ipv4.iptables rules-ipv6.ip6tables"
     1.8  
     1.9  BUILD_DEPENDS="wget"
    1.10  
    1.11 @@ -14,13 +15,16 @@
    1.12  compile_rules()
    1.13  {
    1.14  	mkdir -p $install/usr/share/iptables
    1.15 -	for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \
    1.16 -		 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \
    1.17 -		 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables
    1.18 -	do
    1.19 -		wget --no-check-certificate \
    1.20 -		     -O $install/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i
    1.21 -	done
    1.22 +	while read dir file ; do
    1.23 +		[ -s "$SOURCES_REPOSITORY/$file" ] ||
    1.24 +			wget --no-check-certificate -P $SOURCES_REPOSITORY \
    1.25 +				$WEB_SITE/raw/$dir/$file
    1.26 +		cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/
    1.27 +	done <<EOT
    1.28 +c025b0b8c58af49aa9644982c459314c9adba157 rules-both.iptables
    1.29 +622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables
    1.30 +3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables
    1.31 +EOT
    1.32  }
    1.33  
    1.34  # Rules to gen a SliTaz package suitable for Tazpkg.