From 6881fbf6e8a17297dfed48f2d413f9204c6a0c7e Mon Sep 17 00:00:00 2001
From: mattmadeofpasta <mattmadeofpasta@mattmadeofpasta.me>
Date: Tue, 24 Oct 2023 19:36:18 +0000
Subject: [PATCH] Download sources over https

---
 recipes/bash/recipe.toml       | 2 +-
 recipes/diffutils/recipe.sh    | 2 +-
 recipes/freeciv/recipe.sh      | 2 +-
 recipes/gnu-binutils/recipe.sh | 2 +-
 recipes/jansson/recipe.sh      | 2 +-
 recipes/libc-bench/recipe.sh   | 2 +-
 recipes/libjpeg/recipe.toml    | 2 +-
 recipes/nasm/recipe.toml       | 2 +-
 recipes/ncursesw/recipe.sh     | 2 +-
 recipes/netsurf/recipe.sh      | 2 +-
 recipes/readline/recipe.toml   | 2 +-
 recipes/sed/recipe.toml        | 2 +-
 recipes/ssh/recipe.sh          | 2 +-
 recipes/vim/recipe.sh          | 5 ++++-
 14 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/recipes/bash/recipe.toml b/recipes/bash/recipe.toml
index 68b0f3fcb..923591646 100644
--- a/recipes/bash/recipe.toml
+++ b/recipes/bash/recipe.toml
@@ -1,5 +1,5 @@
 [source]
-tar = "http://ftp.gnu.org/gnu/bash/bash-5.2.15.tar.gz"
+tar = "https://ftp.gnu.org/gnu/bash/bash-5.2.15.tar.gz"
 blake3 = "c1548e3f2a9b6de5296e18c28b3d2007985e647273e03f039efd3e489edaa41f"
 patches = [
     "redox.patch"
diff --git a/recipes/diffutils/recipe.sh b/recipes/diffutils/recipe.sh
index a7f57fb85..4d04c16b4 100644
--- a/recipes/diffutils/recipe.sh
+++ b/recipes/diffutils/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=3.6
-TAR=http://ftp.gnu.org/gnu/diffutils/diffutils-$VERSION.tar.xz
+TAR=https://ftp.gnu.org/gnu/diffutils/diffutils-$VERSION.tar.xz
 
 function recipe_version {
     echo "$VERSION"
diff --git a/recipes/freeciv/recipe.sh b/recipes/freeciv/recipe.sh
index bbbf7fced..be7e2a374 100644
--- a/recipes/freeciv/recipe.sh
+++ b/recipes/freeciv/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=2.6.6
-TAR=http://files.freeciv.org/stable/freeciv-$VERSION.tar.bz2
+TAR=https://files.freeciv.org/stable/freeciv-$VERSION.tar.bz2
 BUILD_DEPENDS=(curl freetype libiconv liborbital libpng openssl nghttp2 sdl sdl_gfx sdl_image sdl_mixer sdl_ttf zlib)
 
 function recipe_version {
diff --git a/recipes/gnu-binutils/recipe.sh b/recipes/gnu-binutils/recipe.sh
index 19bc559b5..03c15d6aa 100644
--- a/recipes/gnu-binutils/recipe.sh
+++ b/recipes/gnu-binutils/recipe.sh
@@ -1,6 +1,6 @@
 GIT=https://gitlab.redox-os.org/redox-os/binutils-gdb.git
 BRANCH=redox-2.41
-GIT_UPSTREAM=git://sourceware.org/git/binutils-gdb.git
+GIT_UPSTREAM=https://sourceware.org/git/binutils-gdb.git
 BUILD_DEPENDS=(expat libgmp libmpfr)
 
 function recipe_version {
diff --git a/recipes/jansson/recipe.sh b/recipes/jansson/recipe.sh
index f0091397c..451d25445 100644
--- a/recipes/jansson/recipe.sh
+++ b/recipes/jansson/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=2.10
-TAR=http://www.digip.org/jansson/releases/jansson-$VERSION.tar.gz
+TAR=https://www.digip.org/jansson/releases/jansson-$VERSION.tar.gz
 
 function recipe_version {
     echo "$VERSION"
diff --git a/recipes/libc-bench/recipe.sh b/recipes/libc-bench/recipe.sh
index 2c0f9992c..df203cea0 100644
--- a/recipes/libc-bench/recipe.sh
+++ b/recipes/libc-bench/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=20110206
-TAR=http://www.etalabs.net/releases/libc-bench-$VERSION.tar.gz
+TAR=https://www.etalabs.net/releases/libc-bench-$VERSION.tar.gz
 
 function recipe_version {
     echo "$VERSION"
diff --git a/recipes/libjpeg/recipe.toml b/recipes/libjpeg/recipe.toml
index cfd3a69d4..6cad244e1 100644
--- a/recipes/libjpeg/recipe.toml
+++ b/recipes/libjpeg/recipe.toml
@@ -1,5 +1,5 @@
 [source]
-tar = "http://ijg.org/files/jpegsrc.v9e.tar.gz"
+tar = "https://ijg.org/files/jpegsrc.v9e.tar.gz"
 blake3 = "f0d6072e15de609397cbd8428758d7054dd921dc448018111e3822b17bcbcc5d"
 [build]
 template = "configure"
diff --git a/recipes/nasm/recipe.toml b/recipes/nasm/recipe.toml
index 384cd9e1f..57a1e7741 100644
--- a/recipes/nasm/recipe.toml
+++ b/recipes/nasm/recipe.toml
@@ -1,5 +1,5 @@
 [source]
-tar = "http://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz"
+tar = "https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz"
 
 [build]
 template = "configure"
diff --git a/recipes/ncursesw/recipe.sh b/recipes/ncursesw/recipe.sh
index 485e2c54a..05c8e6ab9 100644
--- a/recipes/ncursesw/recipe.sh
+++ b/recipes/ncursesw/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=6.0
-TAR=http://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz
+TAR=https://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz
 DEPENDS="terminfo"
 
 function recipe_version {
diff --git a/recipes/netsurf/recipe.sh b/recipes/netsurf/recipe.sh
index 6cc42ec82..77ddf17f1 100644
--- a/recipes/netsurf/recipe.sh
+++ b/recipes/netsurf/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=3.10
-TAR=http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-$VERSION.tar.gz
+TAR=https://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-$VERSION.tar.gz
 BUILD_DEPENDS=(curl expat libjpeg libpng nghttp2 openssl sdl zlib freetype liborbital libiconv)
 DEPENDS="ca-certificates orbital"
 
diff --git a/recipes/readline/recipe.toml b/recipes/readline/recipe.toml
index 0a5664c3d..322e8f6bd 100644
--- a/recipes/readline/recipe.toml
+++ b/recipes/readline/recipe.toml
@@ -1,7 +1,7 @@
 [source]
 #git = "https://git.savannah.gnu.org/git/readline.git"
 #rev = "d49a9082c0e15bba8cd3d8cc0a994409cf823cac"
-tar = "http://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz"
+tar = "https://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz"
 blake3 = "962483e201f36f05a5ccb507bb7330b4d4e4989fd52f41eb15ba65582ad02703"
 patches = [
     "redox.patch"
diff --git a/recipes/sed/recipe.toml b/recipes/sed/recipe.toml
index ffb29795c..c9f58cec0 100644
--- a/recipes/sed/recipe.toml
+++ b/recipes/sed/recipe.toml
@@ -1,5 +1,5 @@
 [source]
-tar = "http://ftp.gnu.org/gnu/sed/sed-4.4.tar.xz"
+tar = "https://ftp.gnu.org/gnu/sed/sed-4.4.tar.xz"
 patches = [
     "sed.patch"
 ]
diff --git a/recipes/ssh/recipe.sh b/recipes/ssh/recipe.sh
index 07b365a4b..ef1cf953b 100644
--- a/recipes/ssh/recipe.sh
+++ b/recipes/ssh/recipe.sh
@@ -1,5 +1,5 @@
 VERSION=7.9p1
-TAR=http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$VERSION.tar.gz
+TAR=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$VERSION.tar.gz
 BUILD_DEPENDS=(openssl zlib)
 
 function recipe_version {
diff --git a/recipes/vim/recipe.sh b/recipes/vim/recipe.sh
index c4dd8182e..f2b157baa 100644
--- a/recipes/vim/recipe.sh
+++ b/recipes/vim/recipe.sh
@@ -1,5 +1,8 @@
 VERSION=8.2
-TAR=http://ftp.vim.org/vim/unix/vim-$VERSION.tar.bz2
+# We use `https://ftp.nluug.nl` because `ftp.vim.org` doesn't support `https`
+# see https://www.vim.org/mirrors.php
+TAR=https://ftp.nluug.nl/pub/vim/unix/vim-$VERSION.tar.bz2
+
 BUILD_DEPENDS=(ncurses)
 DEPENDS="terminfo"
 
-- 
GitLab