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
This commit is contained in:
Jørn Åne de Jong
2022-05-27 17:19:25 +02:00
committed by Baptiste Daroussin
parent 41781257b4
commit 3d6e3986a5
5 changed files with 39 additions and 0 deletions
+1
View File
@@ -368,6 +368,7 @@
SUBDIR += filevercmp
SUBDIR += filewatcherd
SUBDIR += finfo
SUBDIR += firstboot-cloudsetup
SUBDIR += firstboot-freebsd-update
SUBDIR += firstboot-growfs
SUBDIR += firstboot-pkgs
+20
View File
@@ -0,0 +1,20 @@
PORTNAME= cloudsetup
PORTVERSION= 1.0
CATEGORIES= sysutils
MASTER_SITES= https://git.sr.ht/~jornane/${PORTNAME}/archive/
PKGNAMEPREFIX= firstboot-
MAINTAINER= jornane@icloud.com
COMMENT= Configure network and user when the system first boots
LICENSE= BSD3CLAUSE
WRKSRC= work/${PORTNAME}-${DISTNAME}
NO_BUILD= yes
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g" \
${WRKSRC}/firstboot_cloudsetup.rc
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1653658894
SHA256 (cloudsetup-1.0.tar.gz) = b13c1bb680b741116ec830bfad7b09d01f6dec014b37dda2e2d5f3351ccf07e6
SIZE (cloudsetup-1.0.tar.gz) = 6805
+5
View File
@@ -0,0 +1,5 @@
Configure network and user data from cloud configuration at first boot.
The configuration is written before the netif service is started.
Compatible with OpenNebula.
WWW: https://git.sr.ht/~jornane/${PORTNAME}
+10
View File
@@ -0,0 +1,10 @@
etc/rc.d/firstboot_cloudsetup
sbin/cloudsetup
%%DATADIR%%/cloudsetup-network
%%DATADIR%%/cloudsetup-user
%%DATADIR%%/functions.sh
%%DATADIR%%/netconf-network.sh
%%DATADIR%%/netconf-resolv.sh
%%DATADIR%%/netconf-routing.sh
%%DATADIR%%/show-context.sh
%%DATADIR%%/userconf-sshkey.sh