Index: Mk/Uses/azurepy.mk =================================================================== --- /dev/null +++ Mk/Uses/azurepy.mk @@ -0,0 +1,34 @@ +# $FreeBSD$ +# +# Shared namespace for py-azure-* ports +# Feature: azurepy +# Usage: USES= azurepy +# MAINTAINER: dbaio@FreeBSD.org + +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}azure-cli-base>=0:sysutils/py-azure-cli-base@${PY_FLAVOR} + +POST_PLIST= trim-backports-namespace + +.if !target(post-install) +post-install: + @${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/__init__.py* + @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/__pycache__ +.endif + +trim-backports-namespace: + @${REINPLACE_CMD} -e '/azure\/__init__.py*/d' \ + -e '/azure\/cli\/__init__.py*/d' \ + -e '/azure\/cli\/command_modules\/__init__.py*/d' \ + -e '/azure\/mgmt\/__init__.py*/d' \ + -e '/azure\/__pycache__*/d' \ + -e '/azure\/cli\/__pycache__*/d' \ + -e '/azure\/cli\/command_modules\/__pycache__*/d' \ + -e '/azure\/mgmt\/__pycache__*/d' \ + ${TMPPLIST} + Index: sysutils/py-azure-cli-base/Makefile =================================================================== --- /dev/null +++ sysutils/py-azure-cli-base/Makefile @@ -0,0 +1,61 @@ +# $FreeBSD$ + +PORTNAME= azure-cli-base +PORTVERSION= 1 +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Shared namespace for py-azure-* ports + +LICENSE= MIT + +NO_FETCH= yes +NO_BUILD= yes +NO_ARCH= yes +USES= python +USE_PYTHON= flavors + +.include + +.if ${PYTHON_MAJOR_VER} == 2 +PLIST_FILES= ${PYTHON_SITELIBDIR}/azure/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/__init__.pyc \ + ${PYTHON_SITELIBDIR}/azure/__init__.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/cli/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/cli/__init__.pyc \ + ${PYTHON_SITELIBDIR}/azure/cli/__init__.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.pyc \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__init__.pyc \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__init__.${PYTHON_PYOEXTENSION} + +.else +PLIST_FILES= ${PYTHON_SITELIBDIR}/azure/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHON_SITELIBDIR}/azure/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/cli/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/cli/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHON_SITELIBDIR}/azure/cli/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHON_SITELIBDIR}/azure/cli/command_modules/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.${PYTHON_PYOEXTENSION} \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__init__.py \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHON_SITELIBDIR}/azure/mgmt/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.${PYTHON_PYOEXTENSION} +.endif + +do-install: + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt + ${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + +.include Index: sysutils/py-azure-cli-base/files/__init__.py =================================================================== --- /dev/null +++ sysutils/py-azure-cli-base/files/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import pkg_resources +pkg_resources.declare_namespace(__name__) Index: sysutils/py-azure-cli-base/pkg-descr =================================================================== --- /dev/null +++ sysutils/py-azure-cli-base/pkg-descr @@ -0,0 +1,8 @@ +Shared namespace for py-azure-* ports + +py-azure-cli-base provides common files that are shared among all py-azure-* +ports: + azure/__init__.py + azure/cli/__init__.py + azure/cli/command_modules/__init__.py + azure/mgmt/__init__.py Index: sysutils/py-azure-cli-core/Makefile =================================================================== --- /dev/null +++ sysutils/py-azure-cli-core/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= azure-cli-core +PORTVERSION= 2.0.52 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Microsoft Azure Command-Line Tools Core Module + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}adal>=1.2.0:net-mgmt/py-adal@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}argcomplete>=1.8.0:devel/py-argcomplete@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-telemetry>=0:devel/py-azure-cli-telemetry@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorama>=0.3.9:devel/py-colorama@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}humanfriendly>=4.7:textproc/py-humanfriendly@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jmespath>=0:devel/py-jmespath@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}knack>=0.5.1:devel/py-knack@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}msrest>=0.4.4:net-mgmt/py-msrest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}msrestazure>=0.4.25:net-mgmt/py-msrestazure@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}paramiko>=2.0.8:security/py-paramiko@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip>=0:devel/py-pip@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyjwt>=0:www/py-pyjwt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>=17.1.0:security/py-openssl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=3.13:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.18.4:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tabulate>=0.7.7:devel/py-tabulate@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-resource>=2.0.0:devel/py-azure-mgmt-resource@${PY_FLAVOR} \ + ${PY_ENUM34} + +USES= azurepy python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 3400 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}antlr4-python2-runtime>=0:devel/py-antlr4-python2-runtime@${PY_FLAVOR} +.else +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}antlr4-python3-runtime>=0:devel/py-antlr4-python3-runtime@${PY_FLAVOR} +.endif + +.include Index: sysutils/py-azure-cli-core/distinfo =================================================================== --- /dev/null +++ sysutils/py-azure-cli-core/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1544744653 +SHA256 (azure-cli-core-2.0.52.tar.gz) = f9eb10745b612025685a1c13cf6d5db680f87d9e4e7ae271a24c1ed951ebc74e +SIZE (azure-cli-core-2.0.52.tar.gz) = 92927 Index: sysutils/py-azure-cli-core/pkg-descr =================================================================== --- /dev/null +++ sysutils/py-azure-cli-core/pkg-descr @@ -0,0 +1,6 @@ +The Azure CLI is a command-line tool providing a great experience for managing +Azure resources. The CLI is designed to make scripting easy, query data, +support long-running operations, and more. Try it today and find out what the +CLI has to offer! + +WWW: https://pypi.org/project/azure-cli-core/ Index: sysutils/py-azure-cli-vm/Makefile =================================================================== --- /dev/null +++ sysutils/py-azure-cli-vm/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= azure-cli-vm +PORTVERSION= 2.2.9 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Microsoft Azure Command-Line Tools VM Command Module + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-mgmt-msi>=0.2.0:devel/py-azure-mgmt-msi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-authorization>=0.50.0:devel/py-azure-mgmt-authorization@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-compute>=4.3.1:devel/py-azure-mgmt-compute@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-keyvault>=1.1.0:devel/py-azure-mgmt-keyvault@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-keyvault>=1.1.0:devel/py-azure-keyvault@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-network>=2.2.1:devel/py-azure-mgmt-network@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-multiapi-storage>=0.2.2:devel/py-azure-multiapi-storage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-mgmt-marketplaceordering>=0.1.0:devel/py-azure-mgmt-marketplaceordering@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-core>=0:sysutils/py-azure-cli-core@${PY_FLAVOR} + +USES= azurepy python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include Index: sysutils/py-azure-cli-vm/distinfo =================================================================== --- /dev/null +++ sysutils/py-azure-cli-vm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1544744771 +SHA256 (azure-cli-vm-2.2.9.tar.gz) = 84e8166e77754fe5b9caf2b6fde53b447f280b4245dc090b280115164dba7bd8 +SIZE (azure-cli-vm-2.2.9.tar.gz) = 100898 Index: sysutils/py-azure-cli-vm/pkg-descr =================================================================== --- /dev/null +++ sysutils/py-azure-cli-vm/pkg-descr @@ -0,0 +1,8 @@ +This package is for the ‘vm’ module. i.e. ‘az vm’. + +The Azure CLI is a command-line tool providing a great experience for managing +Azure resources. The CLI is designed to make scripting easy, query data, +support long-running operations, and more. Try it today and find out what the +CLI has to offer! + +WWW: https://pypi.org/project/azure-cli-vm/ Index: sysutils/py-azure-cli/Makefile =================================================================== --- /dev/null +++ sysutils/py-azure-cli/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= azure-cli +PORTVERSION= 2.0.52 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Microsoft Azure Command-Line Tools + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= bash:shells/bash \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-core>=2.0.49:sysutils/py-azure-cli-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-profile>=2.1.2:sysutils/py-azure-cli-profile@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-resource>=2.1.6:sysutils/py-azure-cli-resource@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-monitor>=0.2.7:sysutils/py-azure-cli-monitor@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}azure-cli-vm>=2.2.9:sysutils/py-azure-cli-vm@${PY_FLAVOR} + +USES= azurepy python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e "s#python#${PYTHON_CMD}#g" ${WRKSRC}/az + +.include Index: sysutils/py-azure-cli/distinfo =================================================================== --- /dev/null +++ sysutils/py-azure-cli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1544744738 +SHA256 (azure-cli-2.0.52.tar.gz) = 337f2559f860c4310f6a90b74c7e991e0fe1b23cabc920711638466e9c42927b +SIZE (azure-cli-2.0.52.tar.gz) = 7444 Index: sysutils/py-azure-cli/pkg-descr =================================================================== --- /dev/null +++ sysutils/py-azure-cli/pkg-descr @@ -0,0 +1,6 @@ +The Azure CLI is a command-line tool providing a great experience for managing +Azure resources. The CLI is designed to make scripting easy, query data, +support long-running operations, and more. Try it today and find out what the +CLI has to offer! + +WWW: https://pypi.org/project/azure-cli/