From nobody Fri May 27 15:19:38 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6D3831B42540; Fri, 27 May 2022 15:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L8pPk2ftVz3kdl; Fri, 27 May 2022 15:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653664778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gZl1EwtGLhsJI/CjWJibbLFwrEgkXFX5BxZdihpALx4=; b=cX0miQy38XXDE7HLYY/JvhU9VdWDJKj+q9rNrdOSR8/rT5vHeVe783u4xcHcR0NKK19ITf EZ3Rw7/33rioFwhlvnrlELnp+xQhC4JQWuq3nXIbHZjDXAltT1r+7N9geQ1xz2xkIKhbUc ZtrEkPjt/TztqDZSHblmITUJUHnUZ1idaG579YiIaz6Z8JnMo6hjC4svMtHgQqQOfRxohl xLUyTVgDfxp4qG0ce5p2hxEikcbM3qe3lsEb8rU+ymit6jVoQOmJbE+nuASW8pL9nfo8qV z+r9OQ/G5CNJ9qX8mvCE8pgbON7Q6bAxvoxwBFI720aVkpfp/lw0fiiIK5t4ZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 372AD24B17; Fri, 27 May 2022 15:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24RFJc9V002479; Fri, 27 May 2022 15:19:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24RFJcCi002478; Fri, 27 May 2022 15:19:38 GMT (envelope-from git) Date: Fri, 27 May 2022 15:19:38 GMT Message-Id: <202205271519.24RFJcCi002478@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 3d6e3986a577 - main - sysutils/firstboot-cloudsetup: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d6e3986a57795cd8fa0680cce25a2fe04859703 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653664778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gZl1EwtGLhsJI/CjWJibbLFwrEgkXFX5BxZdihpALx4=; b=Tf7wxJiCSpOKqOpc2HpTJiieAlgHbjb0E72s+3umc/JnqGsDBFnTZzmzVK4qRYYmuBx+Lx 0nLeGEzIrV5jguKFxiNr0Y0c/vkrI+mDVVx7eRs3lXGozQMTfvg2wMxtrTR0GwDc65PBJg Ozfe5Y0QHfzmJVbEhRIbHuRmNculUf3Vj4TjzRRSk+EOXyTotBBAAs4QbNkfu9uSutrLYq uSLs8MZ74SYEm353eG/mWOqlkGzjeOw9gTgGiUDotYbmtnwDSoGzToOEPO2UMh3iRCn/DB atkUP+6PoP3pskRdoWOMksKAmGCRIQw8TRB0kf5EwToK8dJcxUxI0fX4bWSDYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653664778; a=rsa-sha256; cv=none; b=AbHvOteY7l/eVBVhy2llbfUa8++OyYTjfPm0jSTO7KIXZWc0y7xap3W1lgeRobPcc+Xsgk 2ydVGfU1DzRcX/AEj8oVBE5eMhlnXpCEa7Y7zd2SUqd/IeB3WWEC9bXaNA38u3knJwaGCN IW8btJ+yNBl0IzfA5NDAsmeb24GPIiFUJ7A/TTpmOsGaehtAiEVbo9dCpt83Du4LbjMkTn dCbmfeM4OT9iQ5T+z7TOh7c76RFPeUDWoR/STS9FX0ZN3GQHiQ//QYhoVksprGaFAgMy14 6DpdZqDEiacnBMxvp6f64u3Lq7D6JClBwp1tFOb7bMCToo5M8tgY60FvmWVBbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d6e3986a57795cd8fa0680cce25a2fe04859703 commit 3d6e3986a57795cd8fa0680cce25a2fe04859703 Author: Jørn Åne de Jong AuthorDate: 2022-05-27 14:39:58 +0000 Commit: Baptiste Daroussin 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 | 20 ++++++++++++++++++++ sysutils/firstboot-cloudsetup/distinfo | 3 +++ sysutils/firstboot-cloudsetup/pkg-descr | 5 +++++ sysutils/firstboot-cloudsetup/pkg-plist | 10 ++++++++++ 5 files changed, 39 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index b2019a0ff14d..3c7dfe366ae3 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -368,6 +368,7 @@ SUBDIR += filevercmp SUBDIR += filewatcherd SUBDIR += finfo + SUBDIR += firstboot-cloudsetup SUBDIR += firstboot-freebsd-update SUBDIR += firstboot-growfs SUBDIR += firstboot-pkgs diff --git a/sysutils/firstboot-cloudsetup/Makefile b/sysutils/firstboot-cloudsetup/Makefile new file mode 100644 index 000000000000..5d6539c0fdcc --- /dev/null +++ b/sysutils/firstboot-cloudsetup/Makefile @@ -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 diff --git a/sysutils/firstboot-cloudsetup/distinfo b/sysutils/firstboot-cloudsetup/distinfo new file mode 100644 index 000000000000..7d0c06dde937 --- /dev/null +++ b/sysutils/firstboot-cloudsetup/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1653658894 +SHA256 (cloudsetup-1.0.tar.gz) = b13c1bb680b741116ec830bfad7b09d01f6dec014b37dda2e2d5f3351ccf07e6 +SIZE (cloudsetup-1.0.tar.gz) = 6805 diff --git a/sysutils/firstboot-cloudsetup/pkg-descr b/sysutils/firstboot-cloudsetup/pkg-descr new file mode 100644 index 000000000000..e73cc9a11b6f --- /dev/null +++ b/sysutils/firstboot-cloudsetup/pkg-descr @@ -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} diff --git a/sysutils/firstboot-cloudsetup/pkg-plist b/sysutils/firstboot-cloudsetup/pkg-plist new file mode 100644 index 000000000000..0cd35542b2f6 --- /dev/null +++ b/sysutils/firstboot-cloudsetup/pkg-plist @@ -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