Created attachment 234264 [details] [patch] firstboot-cloudsetup v1.0 A shell script for provisioning FreeBSD hosts on OpenNebula at first boot [1]. This script was originally written to be used for VPS hosts at Ungleich, a Swiss VPS hoster with a strong focus on IPv6. This script works as a lightweight replacement for the original OpenNebula scripts, which also have FreeBSD support, but depend on bash, Python and Ruby. [2] I believe this script should be able to work on any OpenNebula hosts, but I don't have access to other hosts to try this out. The port passes `port test` and respects %%DATADIR%%, not tested in Poudriere though. I am not affiliated with Ungleich. [1] https://git.sr.ht/~jornane/cloudsetup [2] https://github.com/OpenNebula/addon-context-linux
hello can you provide a git format-patch ? if no, no problem I will deal with it, if yes, then great as it would ease giving you credit ;)
Created attachment 234267 [details] [patch] firstboot-cloudsetup v1.0
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d6e3986a57795cd8fa0680cce25a2fe04859703 commit 3d6e3986a57795cd8fa0680cce25a2fe04859703 Author: Jørn Åne de Jong <git@jornane.no> AuthorDate: 2022-05-27 14:39:58 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-05-27 15:19:25 +0000 sysutils/firstboot-cloudsetup: Add new port Configure network and user data from cloud configuration at first boot. The configuration is written before the netif service is started. Compatible with OpenNebula. PR: 264286 sysutils/Makefile | 1 + sysutils/firstboot-cloudsetup/Makefile (new) | 20 ++++++++++++++++++++ sysutils/firstboot-cloudsetup/distinfo (new) | 3 +++ sysutils/firstboot-cloudsetup/pkg-descr (new) | 5 +++++ sysutils/firstboot-cloudsetup/pkg-plist (new) | 10 ++++++++++ 5 files changed, 39 insertions(+)
pushed with small changes: Next time, please make a patch which is relative to the ports tree when providing a git format-patch WWW is supposed to be in pkg-descr I also added a post-patch to ensure the rc script do not hardcode PREFIX