git: 9277c8e5b28c - main - net/cloud-init: Update 22.4

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 12 Dec 2022 21:44:15 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9277c8e5b28c8cbb78c1de167960821b95403ab1

commit 9277c8e5b28c8cbb78c1de167960821b95403ab1
Author:     Andrey Fesenko <andrey@bsdnir.info>
AuthorDate: 2022-12-12 06:45:35 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-12-12 21:40:13 +0000

    net/cloud-init: Update 22.4
    
    ChangeLog:
    https://github.com/canonical/cloud-init/blob/ubuntu/bionic-22.4.x/ChangeLog
    
    PR:             268322
    Reported by:    andrey@bsdnir.info (maintainer)
---
 net/cloud-init/Makefile                                    |  7 +++----
 net/cloud-init/distinfo                                    |  6 +++---
 net/cloud-init/files/patch-cloudinit_distros_networking.py | 10 ++++++++++
 3 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/net/cloud-init/Makefile b/net/cloud-init/Makefile
index 1a011e4369fe..a1cd023dc2ee 100644
--- a/net/cloud-init/Makefile
+++ b/net/cloud-init/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cloud-init
-DISTVERSION=	22.3.4
+DISTVERSION=	22.4.2
 CATEGORIES=	net python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -28,14 +28,13 @@ RUN_DEPENDS=	sudo>0:security/sudo \
 USES=		python:3.6+ shebangfix
 USE_GITHUB=	yes
 GH_ACCOUNT=	canonical
+USE_PYTHON=	autoplist distutils
+PYDISTUTILS_INSTALLARGS+=	"--init-system=sysvinit_freebsd"
 
 SHEBANG_FILES=	tools/validate-yaml.py tools/read-dependencies \
 		tools/read-version tools/hook-hotplug
-USE_PYTHON=	autoplist distutils
 ETCDIR=		${PREFIX}/etc/cloud
 
-PYDISTUTILS_INSTALLARGS+=	"--init-system=sysvinit_freebsd"
-
 NO_ARCH=	yes
 
 post-patch:
diff --git a/net/cloud-init/distinfo b/net/cloud-init/distinfo
index 20c534a25724..338c72431a08 100644
--- a/net/cloud-init/distinfo
+++ b/net/cloud-init/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1666819675
-SHA256 (canonical-cloud-init-22.3.4_GH0.tar.gz) = e601a3ce278d6b5c0d0cfbffe2c9a4fa71a5e4ff8589b0f63b6868d1177e0eaa
-SIZE (canonical-cloud-init-22.3.4_GH0.tar.gz) = 1425504
+TIMESTAMP = 1670787766
+SHA256 (canonical-cloud-init-22.4.2_GH0.tar.gz) = 9542bc57138f50bcbbb47283c8fc57762d0dfb4bdd0829a02c2104c26ca5e1ac
+SIZE (canonical-cloud-init-22.4.2_GH0.tar.gz) = 1511043
diff --git a/net/cloud-init/files/patch-cloudinit_distros_networking.py b/net/cloud-init/files/patch-cloudinit_distros_networking.py
new file mode 100644
index 000000000000..811534c5f298
--- /dev/null
+++ b/net/cloud-init/files/patch-cloudinit_distros_networking.py
@@ -0,0 +1,10 @@
+--- cloudinit/distros/networking.py.orig	2022-12-11 19:43:15 UTC
++++ cloudinit/distros/networking.py
+@@ -190,6 +190,7 @@ class BSDNetworking(Networking):
+         self.ifc = ifconfig.Ifconfig()
+         self.ifs = {}
+         self._update_ifs()
++        super().__init__()
+ 
+     def _update_ifs(self):
+         ifconf = subp.subp(["ifconfig", "-a"])