From c532b11eeb9ba61fbcf37b8e7885b58c3b7f6f71 Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Tue, 6 Dec 2016 15:26:20 -0500
Subject: [PATCH] contrib: fix downloads on sourceforge.net

Using properly SF URL to download packages on this platform.
Boost and uuid was impacted by this.

Reviewed-by: Alexandre Viau <alexandre.viau@savoirfairelinux.com>
Change-Id: I613f39c59c2bef22572cba57977c01e045a1e2d6
---
 contrib/src/boost/rules.mak | 2 +-
 contrib/src/main.mak        | 2 +-
 contrib/src/uuid/rules.mak  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/src/boost/rules.mak b/contrib/src/boost/rules.mak
index 84366813a1..e1b3d8d363 100644
--- a/contrib/src/boost/rules.mak
+++ b/contrib/src/boost/rules.mak
@@ -1,7 +1,7 @@
 # Boost
 BOOST_VERSION_1 := 1.61.0
 BOOST_VERSION_2 := 1_61_0
-BOOST_URL := https://downloads.sourceforge.net/project/boost/boost/$(BOOST_VERSION_1)/boost_$(BOOST_VERSION_2).tar.bz2
+BOOST_URL := $(SF)/boost/files/boost/$(BOOST_VERSION_1)/boost_$(BOOST_VERSION_2).tar.bz2/download
 
 PKGS += boost
 
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 1d8730d494..96836ee3b8 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -38,7 +38,7 @@ VPATH := $(TARBALLS)
 
 # Common download locations
 GNU := http://ftpmirror.gnu.org/
-SF := http://heanet.dl.sourceforge.net/sourceforge
+SF := https://sourceforge.net/projects
 CONTRIB_VIDEOLAN ?= http://downloads.videolan.org/pub/contrib
 
 #
diff --git a/contrib/src/uuid/rules.mak b/contrib/src/uuid/rules.mak
index 63f3296901..7f5e97daa9 100644
--- a/contrib/src/uuid/rules.mak
+++ b/contrib/src/uuid/rules.mak
@@ -1,7 +1,7 @@
 # libuuid part of util-linux
 
 UUID_VERSION := 1.0.2
-UUID_URL := $(SF)/libuuid/libuuid-$(UUID_VERSION).tar.gz
+UUID_URL := $(SF)/libuuid/files/libuuid-$(UUID_VERSION).tar.gz/download
 
 ifndef HAVE_IOS
 ifeq ($(call need_pkg,"uuid >= 2.0.0"),)
-- 
GitLab