View | Details | Raw Unified | Return to bug 242391
Collapse All | Expand All

(-)sysutils/py-azure-cli/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	azure-cli
3
PORTNAME=	azure-cli
4
PORTVERSION=	2.0.77
4
PORTVERSION=	2.0.77
5
PORTREVISION=	1
5
CATEGORIES=	sysutils python
6
CATEGORIES=	sysutils python
6
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
(-)sysutils/py-azure-cli/files/patch-azure_cli_command__modules_storage_azcopy_util.py (+20 lines)
Line 0 Link Here
1
--- azure/cli/command_modules/storage/azcopy/util.py.orig	2019-12-04 23:30:55 UTC
2
+++ azure/cli/command_modules/storage/azcopy/util.py
3
@@ -41,6 +41,8 @@ class AzCopy(object):
4
                 file_url = base_url.format('linux', 'tar.gz')
5
             elif self.system == 'Darwin':
6
                 file_url = base_url.format('darwin', 'zip')
7
+            elif self.system == 'FreeBSD':
8
+                raise CLIError('Azcopy ({}) binary not available, follow instructions at https://wiki.freebsd.org/Ports/sysutils/py-azure-cli'.format(self.system))
9
             else:
10
                 raise CLIError('Azcopy ({}) does not exist.'.format(self.system))
11
             try:
12
@@ -163,7 +165,7 @@ def _get_default_install_location():
13
         if not home_dir:
14
             return None
15
         install_location = os.path.join(home_dir, r'.azcopy\azcopy.exe')
16
-    elif system in ('Linux', 'Darwin'):
17
+    elif system in ('Linux', 'Darwin', 'FreeBSD'):
18
         install_location = os.path.expanduser(os.path.join('~', 'bin/azcopy'))
19
     else:
20
         install_location = None

Return to bug 242391