Browse Source

Switch to virtual-hosted style URLs for S3

Ref: https://forums.aws.amazon.com/ann.jspa?annID=6776
tags/build-2019-06-02
Viktor Szakats 2 months ago
parent
commit
20ceee7529
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      Makefile
  2. 2
    2
      src/json-c.mk

+ 1
- 1
Makefile View File

@@ -19,7 +19,7 @@ DEFAULT_MAX_JOBS   := 6
19 19
 PRINTF_COL_1_WIDTH := 13
20 20
 SOURCEFORGE_MIRROR := downloads.sourceforge.net
21 21
 MXE_MIRROR         := https://mirror.mxe.cc/pkg
22
-PKG_MIRROR         := https://s3.amazonaws.com/mxe-pkg
22
+PKG_MIRROR         := https://mxe-pkg.s3.amazonaws.com
23 23
 PKG_CDN            := http://d1yihgixbnrglp.cloudfront.net
24 24
 # reorder as required, ensuring final one is a http fallback
25 25
 MIRROR_SITES       := MXE_MIRROR PKG_MIRROR PKG_CDN

+ 2
- 2
src/json-c.mk View File

@@ -7,11 +7,11 @@ $(PKG)_VERSION  := 0.13.1
7 7
 $(PKG)_CHECKSUM := 94a26340c0785fcff4f46ff38609cf84ebcd670df0c8efd75d039cc951d80132
8 8
 $(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
9 9
 $(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION)-nodoc.tar.gz
10
-$(PKG)_URL      := https://s3.amazonaws.com/$(PKG)_releases/releases/$($(PKG)_FILE)
10
+$(PKG)_URL      := https://$(PKG)_releases.s3.amazonaws.com/releases/$($(PKG)_FILE)
11 11
 $(PKG)_DEPS     := cc
12 12
 
13 13
 define $(PKG)_UPDATE
14
-    $(WGET) -q -O- 'https://s3.amazonaws.com/json-c_releases' | \
14
+    $(WGET) -q -O- 'https://json-c_releases.s3.amazonaws.com' | \
15 15
     $(SED) -r 's,<Key>,\n<Key>,g' | \
16 16
     $(SED) -n 's,.*releases/json-c-\([0-9.]*\).tar.gz.*,\1,p' | \
17 17
     $(SORT) -V | \

Loading…
Cancel
Save