[OpenWrt-Devel] [PATCH] Add @APACHE download facility

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jan 17 05:26:07 EST 2016


I would like to package subversion.
The patch below is a prerequisite.

Best regards

Heinrich Schuchardt

On 01/06/2016 09:30 PM, Heinrich Schuchardt wrote:
> The Apache Software Foundation offers diverse download mirros.
> 
> For packaging Apache software a new alias @APACHE is defined.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  include/download.mk | 2 +-
>  scripts/download.pl | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/include/download.mk b/include/download.mk
> index c551647..7b7aa4a 100644
> --- a/include/download.mk
> +++ b/include/download.mk
> @@ -11,7 +11,7 @@ DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED)
>  define dl_method
>  $(strip \
>    $(if $(2),$(2), \
> -    $(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
> +    $(if $(filter @APACHE/% @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
>        $(if $(filter git://%,$(1)),git, \
>          $(if $(filter svn://%,$(1)),svn, \
>            $(if $(filter cvs://%,$(1)),cvs, \
> diff --git a/scripts/download.pl b/scripts/download.pl
> index 6f28237..09d492c 100755
> --- a/scripts/download.pl
> +++ b/scripts/download.pl
> @@ -158,6 +158,12 @@ foreach my $mirror (@ARGV) {
>  		for (1 .. 5) {
>  			push @mirrors, "http://downloads.sourceforge.net/$1";
>  		}
> +	} elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
> +		push @mirrors, "http://ftp.tudelft.nl/apache/$1";
> +		push @mirrors, "http://apache.openmirror.de/$1";
> +		push @mirrors, "http://mirrors.ocf.berkeley.edu/apache/$1";
> +		push @mirrors, "http://mirror.cc.columbia.edu/pub/software/apache/$1";
> +		push @mirrors, "http://ftp.jaist.ac.jp/pub/apache/$1";
>  	} elsif ($mirror =~ /^\@GNU\/(.+)$/) {
>  		push @mirrors, "http://ftpmirror.gnu.org/$1";
>  		push @mirrors, "http://ftp.gnu.org/pub/gnu/$1";
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list