net/cloud-init: sync with upstream
Taken from: FreeBSD
This commit is contained in:
parent
42387a9a05
commit
f3a1aebd29
2 changed files with 18 additions and 1 deletions
|
|
@ -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 @@ CONFLICTS_INSTALL= cloud-init-devel
|
|||
# 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:
|
||||
|
|
|
|||
11
net/cloud-init/files/extra-cloudinit_distros_freebsd.py
Normal file
11
net/cloud-init/files/extra-cloudinit_distros_freebsd.py
Normal file
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue