Re: CLI program to download OpenBSD ISO images

2024-03-24 Thread Peter N. M. Hansteen
On Sun, Mar 24, 2024 at 05:32:20PM -0300, Alceu Rodrigues de Freitas Junior 
wrote:
> 
> Is there any CLI program for OpenBSD that implements the steps described at
> https://www.openbsd.org/faq/faq4.html#Download to download and check the ISO
> images?
> 
> I wasn't able to find anything relevant after a quick check on DuckDuckGo.
> 
> I implemented a simple Perl script that implements those steps, but is
> basically forking wget and signify to really get the job done.

ftp(1) is in base and can do the fetching for you. sha256(1) and signify(1),
both in base, will do the integrity checking.

If you *want* to have a script that wraps both actions into one, that's fine.

But I would have wanted to make life easier by sticking to the tools that
are available in a default install.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



CLI program to download OpenBSD ISO images

2024-03-24 Thread Alceu Rodrigues de Freitas Junior

Greetings,

Is there any CLI program for OpenBSD that implements the steps described 
at https://www.openbsd.org/faq/faq4.html#Download to download and check 
the ISO images?


I wasn't able to find anything relevant after a quick check on DuckDuckGo.

I implemented a simple Perl script that implements those steps, but is 
basically forking wget and signify to really get the job done.


Also, the script is not generic enough, since it generates a directory 
tree that might no be what general users might want.


The script is available at 
https://github.com/glasswalk3r/cpan-openbsd-smoker/blob/master/vagrant/get-iso.pl


Would be interested for the community to have a more generic 
implementation and pack it as a OpenBSD package?


It would be great to get some feedback even before starting.

Thanks!