Page MenuHomeFreeBSD

D47338.id146129.diff
No OneTemporary

D47338.id146129.diff

diff --git a/net/cloud-init-devel/Makefile b/net/cloud-init-devel/Makefile
--- a/net/cloud-init-devel/Makefile
+++ b/net/cloud-init-devel/Makefile
@@ -1,7 +1,7 @@
PORTNAME= cloud-init
DISTVERSION= 23.4-319
DISTVERSIONSUFFIX= -gec384da45
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= -devel
@@ -51,6 +51,12 @@
# Standard bsd.port.mk variables
ETCDIR= ${PREFIX}/etc/cloud
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1400000
+EXTRA_PATCHES= ${PATCHDIR}/extra-cloudinit_distros_freebsd.py
+.endif
+
NO_ARCH= yes
post-patch:
diff --git a/net/cloud-init-devel/files/extra-cloudinit_distros_freebsd.py b/net/cloud-init-devel/files/extra-cloudinit_distros_freebsd.py
new file mode 100644
--- /dev/null
+++ b/net/cloud-init-devel/files/extra-cloudinit_distros_freebsd.py
@@ -0,0 +1,11 @@
+--- cloudinit/distros/freebsd.py.orig 2024-10-30 12:25:07 UTC
++++ cloudinit/distros/freebsd.py
+@@ -35,7 +35,7 @@ class Distro(cloudinit.distros.bsd.BSD):
+ pkg_cmd_update_prefix = ["pkg", "update"]
+ pkg_cmd_upgrade_prefix = ["pkg", "upgrade"]
+ prefer_fqdn = True # See rc.conf(5) in FreeBSD
+- home_dir = "/usr/home"
++ home_dir = "/home"
+ # FreeBSD has the following dhclient lease path:
+ # /var/db/dhclient.leases.<iface_name>
+ dhclient_lease_directory = "/var/db"
diff --git a/net/cloud-init/Makefile b/net/cloud-init/Makefile
--- a/net/cloud-init/Makefile
+++ b/net/cloud-init/Makefile
@@ -1,6 +1,6 @@
PORTNAME= cloud-init
DISTVERSION= 24.1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -41,6 +41,12 @@
# Standard bsd.port.mk variables
ETCDIR= ${PREFIX}/etc/cloud
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000
+EXTRA_PATCHES= ${PATCHDIR}/extra-cloudinit_distros_freebsd.py
+.endif
+
NO_ARCH= yes
post-patch:
diff --git a/net/cloud-init/files/extra-cloudinit_distros_freebsd.py b/net/cloud-init/files/extra-cloudinit_distros_freebsd.py
new file mode 100644
--- /dev/null
+++ b/net/cloud-init/files/extra-cloudinit_distros_freebsd.py
@@ -0,0 +1,11 @@
+--- cloudinit/distros/freebsd.py.orig 2024-10-25 15:58:28 UTC
++++ cloudinit/distros/freebsd.py
+@@ -35,7 +35,7 @@ class Distro(cloudinit.distros.bsd.BSD):
+ pkg_cmd_update_prefix = ["pkg", "update"]
+ pkg_cmd_upgrade_prefix = ["pkg", "upgrade"]
+ prefer_fqdn = True # See rc.conf(5) in FreeBSD
+- home_dir = "/usr/home"
++ home_dir = "/home"
+ # FreeBSD has the following dhclient lease path:
+ # /var/db/dhclient.leases.<iface_name>
+ dhclient_lease_directory = "/var/db"

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 31, 8:51 PM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27421119
Default Alt Text
D47338.id146129.diff (2 KB)

Event Timeline