net/cloud-init: Add ldconfig to rc.d script

rcorder shows that ldconfig is running after cloudinit in some cases.
This can lead to problems like the following when running it on
OpenStack:

Shared object "libpython2.7.so.1" not found, required by "python2.7"

- Reset maintainer by request of the current maintainer

PR:		224361
Submitted by:	thompsa
Approved by:	maintainer
This commit is contained in:
Tobias Kortkamp 2018-01-01 12:14:13 +00:00
parent 88d7031f31
commit 4fd6b1be12
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457768
2 changed files with 16 additions and 1 deletions

View file

@ -2,11 +2,12 @@
PORTNAME= cloud-init
PORTVERSION= 0.7.6
PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bertjw@regeer.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Init scripts for use on cloud images
LICENSE= GPLv3
@ -39,6 +40,9 @@ PYDISTUTILS_INSTALLARGS+= "--init-system=sysvinit_freebsd"
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= currently depends on dmidecode which is x86-only
post-patch:
@${RM} ${WRKSRC}/sysvinit/freebsd/cloudinit.orig
post-build:
@cd ${WRKSRC} && ${MV} config/cloud.cfg-freebsd config/cloud.cfg

View file

@ -0,0 +1,11 @@
--- sysvinit/freebsd/cloudinit.orig 2018-01-01 11:58:33 UTC
+++ sysvinit/freebsd/cloudinit
@@ -1,7 +1,7 @@
#!/bin/sh
# PROVIDE: cloudinit
-# REQUIRE: FILESYSTEMS NETWORKING cloudinitlocal
+# REQUIRE: FILESYSTEMS NETWORKING cloudinitlocal ldconfig
# BEFORE: cloudconfig cloudfinal
. /etc/rc.subr