Hi Mario, NetBSD has ftp as well, unfortunately no -C flag. But that's not super important I think.
So, I would suggest using ftp on both NetBSD and OpenBSD without -C, and possibly MirBSD and DragonFly BSD as well (though I don't know if we support these otherwise). Actually, it's a bit annoying: it looks like FreeBSD's ftp(1) is the only one which DOESN'T support https (it does support http, however). Otherwise we could add a catch-all for all the BSDs, which would be much simpler. Perhaps someone with access to a FreeBSD box can check if it really doesn't support https or if it simply isn't documented. Also, maybe add a comment stating that the ftp program supports HTTP(S) because it is definitely counter-intuitive for someone coming from another OS to use ftp for doing HTTP transfers. Cheers, Peter On Wed, Dec 18, 2024 at 09:08:53PM +0100, Mario Domenech Goulart wrote: > 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 >
