mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
0d35359389
- Bump PORTREVISION
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cloud-init
|
|
PORTVERSION= 18.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= net python
|
|
MASTER_SITES= http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
COMMENT= Init scripts for use on cloud images
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= dmidecode>0:sysutils/dmidecode \
|
|
sudo>0:security/sudo \
|
|
${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}serial>0:comms/py-serial@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}oauthlib>0:security/py-oauthlib@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}jsonpatch>0:devel/py-jsonpatch@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}jsonpointer>0:devel/py-jsonpointer@${PY_FLAVOR}
|
|
|
|
ETCDIR= ${PREFIX}/etc/cloud
|
|
|
|
USES= python:2.7 shebangfix
|
|
SHEBANG_FILES= tools/validate-yaml.py tools/read-dependencies \
|
|
tools/read-version
|
|
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
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|"etc"|"${STAGEDIR}${PREFIX}/etc"|g' ${WRKSRC}/setup.py
|
|
${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/cloudinit/settings.py
|
|
@${RM} ${WRKSRC}/sysvinit/freebsd/*.orig
|
|
|
|
post-build:
|
|
(cd ${WRKSRC} && ${MV} sysvinit/freebsd/cloudconfig config/cloud.cfg)
|
|
|
|
.include <bsd.port.mk>
|