Author: nbd
Date: 2016-01-17 11:47:32 +0100 (Sun, 17 Jan 2016)
New Revision: 48270

Modified:
   trunk/include/download.mk
   trunk/scripts/download.pl
Log:
build: add @APACHE download facility

The Apache Software Foundation offers diverse download mirros.

For packaging Apache software a new alias @APACHE is defined.

Signed-off-by: Heinrich Schuchardt <[email protected]>

Modified: trunk/include/download.mk
===================================================================
--- trunk/include/download.mk   2016-01-17 10:47:10 UTC (rev 48269)
+++ trunk/include/download.mk   2016-01-17 10:47:32 UTC (rev 48270)
@@ -13,7 +13,7 @@
 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, \

Modified: trunk/scripts/download.pl
===================================================================
--- trunk/scripts/download.pl   2016-01-17 10:47:10 UTC (rev 48269)
+++ trunk/scripts/download.pl   2016-01-17 10:47:32 UTC (rev 48270)
@@ -176,6 +176,12 @@
                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-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to