Guest User

Untitled

a guest
Apr 4th, 2019
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $FreeBSD: head/net/cloud-init/Makefile 476313 2018-08-03 17:36:44Z zi $
  2.  
  3. PORTNAME=       cloud-init
  4. PORTVERSION=    18.3
  5. PORTREVISION=   2
  6. CATEGORIES=     net python
  7. PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
  8.  
  9. MAINTAINER=     ports@FreeBSD.org
  10. COMMENT=        Init scripts for use on cloud images
  11.  
  12. LICENSE=        GPLv3
  13. LICENSE_FILE=   ${WRKSRC}/LICENSE
  14.  
  15. RUN_DEPENDS=    dmidecode>0:sysutils/dmidecode \
  16.                 sudo>0:security/sudo \
  17.                 ${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto@${PY_FLAVOR} \
  18.                 ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
  19.                 ${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR} \
  20.                 ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
  21.                 ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
  22.                 ${PYTHON_PKGNAMEPREFIX}serial>0:comms/py-serial@${PY_FLAVOR} \
  23.                 ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
  24.                 ${PYTHON_PKGNAMEPREFIX}oauthlib>0:security/py-oauthlib@${PY_FLAVOR} \
  25.                 ${PYTHON_PKGNAMEPREFIX}jsonpatch>0:devel/py-jsonpatch@${PY_FLAVOR} \
  26.                 ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah@${PY_FLAVOR} \
  27.                 ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \
  28.                 ${PYTHON_PKGNAMEPREFIX}jsonpointer>0:devel/py-jsonpointer@${PY_FLAVOR}
  29.  
  30. ETCDIR=         ${PREFIX}/etc/cloud
  31.  
  32. USE_GITHUB=     yes
  33. GH_ACCOUNT=     goneri
  34. GH_PROJECT=     cloud-init
  35. GH_TAGNAME=     bfdaf3c
  36.  
  37. USES=           python:2.7 shebangfix
  38. SHEBANG_FILES=  tools/validate-yaml.py tools/read-dependencies \
  39.                 tools/read-version
  40. USE_PYTHON=     autoplist distutils
  41.  
  42. PYDISTUTILS_INSTALLARGS+=       "--init-system=sysvinit_freebsd"
  43.  
  44. ONLY_FOR_ARCHS=         amd64 i386
  45. ONLY_FOR_ARCHS_REASON=  currently depends on dmidecode which is x86-only
  46.  
  47. post-patch:
  48.         ${REINPLACE_CMD} -e 's|"etc"|"${STAGEDIR}${PREFIX}/etc"|g' ${WRKSRC}/setup.py
  49.         ${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/cloudinit/settings.py
  50.         @${RM} ${WRKSRC}/sysvinit/freebsd/*.orig
  51.  
  52. post-build:
  53.         (cd ${WRKSRC} && ${MV} sysvinit/freebsd/cloudconfig config/cloud.cfg)
  54.  
  55. .include <bsd.port.mk>
RAW Paste Data