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:
parent
cb223abb13
commit
c224b288e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441117
@ -73,6 +73,7 @@
|
||||
SUBDIR += citrix_ica
|
||||
SUBDIR += cjdns
|
||||
SUBDIR += cloud-init
|
||||
SUBDIR += cloud-init-azure
|
||||
SUBDIR += clusterit
|
||||
SUBDIR += cnd
|
||||
SUBDIR += coda6_client
|
||||
|
57
net/cloud-init-azure/Makefile
Normal file
57
net/cloud-init-azure/Makefile
Normal 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>
|
3
net/cloud-init-azure/distinfo
Normal file
3
net/cloud-init-azure/distinfo
Normal 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
|
1213
net/cloud-init-azure/files/patch-frbsd-azure.txt
Normal file
1213
net/cloud-init-azure/files/patch-frbsd-azure.txt
Normal file
File diff suppressed because it is too large
Load Diff
3
net/cloud-init-azure/pkg-descr
Normal file
3
net/cloud-init-azure/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Package provides configuration and customization of Azure instance.
|
||||
|
||||
WWW: https://launchpad.net/cloud-init
|
7
net/cloud-init-azure/pkg-message
Normal file
7
net/cloud-init-azure/pkg-message
Normal 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.
|
||||
==========================================================
|
Loading…
Reference in New Issue
Block a user