From ff36def5d393d8aa3c9253c00f5b61064acde913 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Thu, 5 Jan 2017 23:16:44 +0100 Subject: add new packages backup: gitlab See http://lists.nongnu.org/archive/html/mingw-cross-env-list/2017-01/msg00005.html --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 284976b..ed7c84a 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ DEFAULT_MAX_JOBS := 6 SOURCEFORGE_MIRROR := downloads.sourceforge.net PKG_MIRROR := s3.amazonaws.com/mxe-pkg PKG_CDN := d1yihgixbnrglp.cloudfront.net +GITLAB_BACKUP := https://gitlab.com/starius/mxe-backup2/raw/master/ PWD := $(shell pwd) SHELL := bash @@ -228,7 +229,8 @@ ESCAPE_PKG = \ BACKUP_DOWNLOAD = \ (echo "MXE Warning! Downloading $(1) from backup." >&2 && \ ($(WGET) -O '$(PKG_DIR)/.tmp-$($(1)_FILE)' $(PKG_MIRROR)/`$(call ESCAPE_PKG,$(1))` || \ - $(WGET) -O '$(PKG_DIR)/.tmp-$($(1)_FILE)' $(PKG_CDN)/`$(call ESCAPE_PKG,$(1))`)) + $(WGET) -O '$(PKG_DIR)/.tmp-$($(1)_FILE)' $(PKG_CDN)/`$(call ESCAPE_PKG,$(1))` || \ + $(WGET) -O '$(PKG_DIR)/.tmp-$($(1)_FILE)' $(GITLAB_BACKUP)/`$(call ESCAPE_PKG,$(1))`_$($(1)_CHECKSUM))) DOWNLOAD_PKG_ARCHIVE = \ $(if $($(1)_SOURCE_TREE),\ -- cgit v0.12