Hi,

The attached patch makes bootstrap.sh use the ftp program as fetcher on
OpenBSD (spares users from having to install wget).

All the best.
Mario
-- 
http://parenteses.org/mario
>From 005bad66a718982bcea84cc22722285b80a3e841 Mon Sep 17 00:00:00 2001
From: Mario Domenech Goulart <[email protected]>
Date: Wed, 18 Dec 2024 21:04:59 +0100
Subject: [PATCH] bootstrap.sh: Use ftp instead of wget on OpenBSD

OpenBSD's base system ships ftp (which supports HTTP[S]), but not
wget.
---
 scripts/bootstrap.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index dff029a7..25acafb0 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -10,6 +10,9 @@ case "$(uname)" in
     FreeBSD)
         mkcmd=gmake
         getcmd=fetch;;
+    OpenBSD)
+        mkcmd=gmake
+        getcmd="ftp -C";;
     *BSD)
         mkcmd=gmake;;
 esac
-- 
2.39.5

Reply via email to