Add a cloud init package for FreeBSD on Azure

Submitted by:	decui@microsoft.com
Differential Revision:	https://reviews.freebsd.org/D10566
This commit is contained in:
Baptiste Daroussin 2017-05-17 20:01:10 +00:00
parent cb223abb13
commit c224b288e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441117
6 changed files with 1284 additions and 0 deletions

View File

@ -73,6 +73,7 @@
SUBDIR += citrix_ica
SUBDIR += cjdns
SUBDIR += cloud-init
SUBDIR += cloud-init-azure
SUBDIR += clusterit
SUBDIR += cnd
SUBDIR += coda6_client

View File

@ -0,0 +1,57 @@
# $FreeBSD$
PORTNAME= cloud-init
PORTVERSION= 0.7.9
CATEGORIES= net python
MASTER_SITES= http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX?= -azure
MAINTAINER= honzhan@microsoft.com
COMMENT= Init scripts for use on cloud images
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= dmidecode>0:sysutils/dmidecode \
e2fsprogs>0:sysutils/e2fsprogs \
python>0:lang/python \
${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 \
${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah \
${PYTHON_PKGNAMEPREFIX}prettytable>0:devel/py-prettytable \
${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six \
${PYTHON_PKGNAMEPREFIX}serial>0:comms/py-serial \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests \
${PYTHON_PKGNAMEPREFIX}oauthlib>0:security/py-oauthlib \
${PYTHON_PKGNAMEPREFIX}jsonpatch>0:devel/py-jsonpatch \
${PYTHON_PKGNAMEPREFIX}jsonpointer>0:devel/py-jsonpointer
ETCDIR= ${PREFIX}/etc/cloud
USES= python:2.7 shebangfix
SHEBANG_FILES= tools/validate-yaml.py tools/read-dependencies \
tools/read-version tools/hacking.py
USE_PYTHON= autoplist distutils
PYDISTUTILS_INSTALLARGS+= "--init-system=sysvinit_freebsd"
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= currently depends on dmidecode which is x86-only
PLIST_DIRS= /var/lib/cloud
post-patch:
${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s,/etc/,${PREFIX}/etc/,g" \
${WRKSRC}/cloudinit/settings.py
post-build:
@cd ${WRKSRC} ; ${MV} config/cloud.cfg-freebsd config/cloud.cfg
post-install:
${MKDIR} ${STAGEDIR}/var/lib/cloud
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1495051158
SHA256 (cloud-init-0.7.9.tar.gz) = 76edb80bf1bdbda68f8014bc057a303ae438a139bdf394e825e548d6ae39d472
SIZE (cloud-init-0.7.9.tar.gz) = 602188

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
Package provides configuration and customization of Azure instance.
WWW: https://launchpad.net/cloud-init

View File

@ -0,0 +1,7 @@
==========================================================
To enable cloud-init, add the following line to rc.conf:
cloudinit_enable="YES"
This will make sure cloud-init is started at boot.
==========================================================