From 591246321ad59a7ba25776ffa121ed65c3051980 Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Mon, 24 Apr 2017 03:03:04 -0700 Subject: [PATCH] Add pyvmomi and terminaltables package for nvmctl --- components/python/python-pyvmomi/Makefile | 52 ++++++++++++++++++ .../debian/python-pyvmomi/copyright | 10 ++++ .../debian/python-pyvmomi/description | 5 ++ .../debian/python-pyvmomi/files | 53 +++++++++++++++++++ .../debian/python-pyvmomi/pkginfo | 7 +++ .../python/python-terminaltables/Makefile | 52 ++++++++++++++++++ .../debian/python-terminaltables/copyright | 10 ++++ .../debian/python-terminaltables/description | 9 ++++ .../debian/python-terminaltables/files | 27 ++++++++++ .../debian/python-terminaltables/pkginfo | 7 +++ make-rules/shared-macros.mk | 4 +- 11 files changed, 234 insertions(+), 2 deletions(-) create mode 100644 components/python/python-pyvmomi/Makefile create mode 100644 components/python/python-pyvmomi/debian/python-pyvmomi/copyright create mode 100644 components/python/python-pyvmomi/debian/python-pyvmomi/description create mode 100644 components/python/python-pyvmomi/debian/python-pyvmomi/files create mode 100644 components/python/python-pyvmomi/debian/python-pyvmomi/pkginfo create mode 100644 components/python/python-terminaltables/Makefile create mode 100644 components/python/python-terminaltables/debian/python-terminaltables/copyright create mode 100644 components/python/python-terminaltables/debian/python-terminaltables/description create mode 100644 components/python/python-terminaltables/debian/python-terminaltables/files create mode 100644 components/python/python-terminaltables/debian/python-terminaltables/pkginfo diff --git a/components/python/python-pyvmomi/Makefile b/components/python/python-pyvmomi/Makefile new file mode 100644 index 0000000..a087c41 --- /dev/null +++ b/components/python/python-pyvmomi/Makefile @@ -0,0 +1,52 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright 2012-2017 Pluribus Networks Inc. +# + +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= pyvmomi +COMPONENT_VERSION= 6.5 +COMPONENT_PROJECT_URL= https://pypi.python.org/packages/44/94/0306e0d5fe8454edcb58eb9ede60be5ec58a46213945877bc79c43baffc3 +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= \ + sha256:fa6a31c747a7d7042a2ad90e7895cab824ba036dcf26ff2f84374e150eac6dfa +COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) +COMPONENT_BUGDB= pyvmomi + +include $(WS_TOP)/make-rules/prep.mk +include $(WS_TOP)/make-rules/setup.py.mk +include $(WS_TOP)/make-rules/deb.mk + +# to make sure that the docs get installed in the right place. +PYTHON_DATA = /usr + +# common targets +build: $(BUILD_64) + +install: $(INSTALL_64) + +test: $(NO_TESTS) + +BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) + +include $(WS_TOP)/make-rules/depend.mk diff --git a/components/python/python-pyvmomi/debian/python-pyvmomi/copyright b/components/python/python-pyvmomi/debian/python-pyvmomi/copyright new file mode 100644 index 0000000..b443c4f --- /dev/null +++ b/components/python/python-pyvmomi/debian/python-pyvmomi/copyright @@ -0,0 +1,10 @@ +Copyright (c) 2016, Pluribus Networks +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/components/python/python-pyvmomi/debian/python-pyvmomi/description b/components/python/python-pyvmomi/debian/python-pyvmomi/description new file mode 100644 index 0000000..89f6b52 --- /dev/null +++ b/components/python/python-pyvmomi/debian/python-pyvmomi/description @@ -0,0 +1,5 @@ +VMware vSphere Python SDK - Python 2.x + pyVmomi is the Python SDK for the VMware vSphere API that allows you to + automate actions on VMware ESX, ESXi, and vCenter servers. + . + This package contains the Python 2.x module. diff --git a/components/python/python-pyvmomi/debian/python-pyvmomi/files b/components/python/python-pyvmomi/debian/python-pyvmomi/files new file mode 100644 index 0000000..b9aaf68 --- /dev/null +++ b/components/python/python-pyvmomi/debian/python-pyvmomi/files @@ -0,0 +1,53 @@ +usr +usr/lib +usr/lib/python2.7 +usr/lib/python2.7/vendor-packages +usr/lib/python2.7/vendor-packages/pyVmomi +usr/lib/python2.7/vendor-packages/pyVmomi/pyVmomiSettings.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/ManagedMethodExecutorHelper.py +usr/lib/python2.7/vendor-packages/pyVmomi/CoreTypes.py +usr/lib/python2.7/vendor-packages/pyVmomi/__init__.py +usr/lib/python2.7/vendor-packages/pyVmomi/VmomiSupport.py +usr/lib/python2.7/vendor-packages/pyVmomi/Iso8601.py +usr/lib/python2.7/vendor-packages/pyVmomi/Differ.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/Cache.py +usr/lib/python2.7/vendor-packages/pyVmomi/__init__.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/ServerObjects.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/StubAdapterAccessorImpl.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/SmsObjects.py +usr/lib/python2.7/vendor-packages/pyVmomi/EamObjects.py +usr/lib/python2.7/vendor-packages/pyVmomi/ManagedMethodExecutorHelper.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/Cache.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/Iso8601.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/pyVmomiSettings.py +usr/lib/python2.7/vendor-packages/pyVmomi/SmsObjects.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/VmomiSupport.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/SoapAdapter.py +usr/lib/python2.7/vendor-packages/pyVmomi/DynamicTypeManagerHelper.py +usr/lib/python2.7/vendor-packages/pyVmomi/PbmObjects.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/ServerObjects.py +usr/lib/python2.7/vendor-packages/pyVmomi/Version.py +usr/lib/python2.7/vendor-packages/pyVmomi/StubAdapterAccessorImpl.py +usr/lib/python2.7/vendor-packages/pyVmomi/Version.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/DynamicTypeManagerHelper.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/QueryTypes.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/EamObjects.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/PbmObjects.py +usr/lib/python2.7/vendor-packages/pyVmomi/CoreTypes.pyc +usr/lib/python2.7/vendor-packages/pyVmomi/QueryTypes.py +usr/lib/python2.7/vendor-packages/pyVmomi/Differ.py +usr/lib/python2.7/vendor-packages/pyVmomi/SoapAdapter.pyc +usr/lib/python2.7/vendor-packages/pyVim +usr/lib/python2.7/vendor-packages/pyVim/task.pyc +usr/lib/python2.7/vendor-packages/pyVim/__init__.py +usr/lib/python2.7/vendor-packages/pyVim/connect.pyc +usr/lib/python2.7/vendor-packages/pyVim/__init__.pyc +usr/lib/python2.7/vendor-packages/pyVim/task.py +usr/lib/python2.7/vendor-packages/pyVim/connect.py +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/dependency_links.txt +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/requires.txt +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/PKG-INFO +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/top_level.txt +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/SOURCES.txt +usr/lib/python2.7/vendor-packages/pyvmomi-6.5.egg-info/zip-safe diff --git a/components/python/python-pyvmomi/debian/python-pyvmomi/pkginfo b/components/python/python-pyvmomi/debian/python-pyvmomi/pkginfo new file mode 100644 index 0000000..224acb1 --- /dev/null +++ b/components/python/python-pyvmomi/debian/python-pyvmomi/pkginfo @@ -0,0 +1,7 @@ +Package: python-pyvmomi +Version: 6.5.0 +Architecture: all +Suggests: python-pyvmomi-doc +Section: python +Priority: optional +Homepage: https://github.com/vmware/pyvmomi diff --git a/components/python/python-terminaltables/Makefile b/components/python/python-terminaltables/Makefile new file mode 100644 index 0000000..c3a793f --- /dev/null +++ b/components/python/python-terminaltables/Makefile @@ -0,0 +1,52 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright 2012-2017 Pluribus Networks Inc. +# + +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= terminaltables +COMPONENT_VERSION= 3.1.0 +COMPONENT_PROJECT_URL= https://pypi.python.org/packages/9b/c4/4a21174f32f8a7e1104798c445dacdc1d4df86f2f26722767034e4de4bff +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= \ + sha256:f3eb0eb92e3833972ac36796293ca0906e998dc3be91fbe1f8615b331b853b81 +COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) +COMPONENT_BUGDB= terminaltables + +include $(WS_TOP)/make-rules/prep.mk +include $(WS_TOP)/make-rules/setup.py.mk +include $(WS_TOP)/make-rules/deb.mk + +# to make sure that the docs get installed in the right place. +PYTHON_DATA = /usr + +# common targets +build: $(BUILD_64) + +install: $(INSTALL_64) + +test: $(NO_TESTS) + +BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) + +include $(WS_TOP)/make-rules/depend.mk diff --git a/components/python/python-terminaltables/debian/python-terminaltables/copyright b/components/python/python-terminaltables/debian/python-terminaltables/copyright new file mode 100644 index 0000000..b443c4f --- /dev/null +++ b/components/python/python-terminaltables/debian/python-terminaltables/copyright @@ -0,0 +1,10 @@ +Copyright (c) 2016, Pluribus Networks +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/components/python/python-terminaltables/debian/python-terminaltables/description b/components/python/python-terminaltables/debian/python-terminaltables/description new file mode 100644 index 0000000..1877aa8 --- /dev/null +++ b/components/python/python-terminaltables/debian/python-terminaltables/description @@ -0,0 +1,9 @@ +Python library for printing tables to the console + Easily draw tables in terminal/console applications from a list of lists of + strings. + . + Supports: multi-line rows, table titles, POSIX and Windows, Wide CJK + (Chinese/Japanese/Korean) characters are displayed correctly, RTL Arabic and + Hebrew characters are aligned correctly, alignment and justification. + Colored text is supported through colorclass, colorama, termcolor, or just + plain ANSI escape codes. diff --git a/components/python/python-terminaltables/debian/python-terminaltables/files b/components/python/python-terminaltables/debian/python-terminaltables/files new file mode 100644 index 0000000..2c70e59 --- /dev/null +++ b/components/python/python-terminaltables/debian/python-terminaltables/files @@ -0,0 +1,27 @@ +usr +usr/lib +usr/lib/python2.7 +usr/lib/python2.7/vendor-packages +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info/dependency_links.txt +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info/PKG-INFO +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info/top_level.txt +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info/SOURCES.txt +usr/lib/python2.7/vendor-packages/terminaltables-3.1.0.egg-info/zip-safe +usr/lib/python2.7/vendor-packages/terminaltables +usr/lib/python2.7/vendor-packages/terminaltables/build.py +usr/lib/python2.7/vendor-packages/terminaltables/width_and_alignment.pyc +usr/lib/python2.7/vendor-packages/terminaltables/__init__.py +usr/lib/python2.7/vendor-packages/terminaltables/other_tables.pyc +usr/lib/python2.7/vendor-packages/terminaltables/__init__.pyc +usr/lib/python2.7/vendor-packages/terminaltables/ascii_table.py +usr/lib/python2.7/vendor-packages/terminaltables/terminal_io.py +usr/lib/python2.7/vendor-packages/terminaltables/github_table.pyc +usr/lib/python2.7/vendor-packages/terminaltables/other_tables.py +usr/lib/python2.7/vendor-packages/terminaltables/github_table.py +usr/lib/python2.7/vendor-packages/terminaltables/build.pyc +usr/lib/python2.7/vendor-packages/terminaltables/terminal_io.pyc +usr/lib/python2.7/vendor-packages/terminaltables/base_table.py +usr/lib/python2.7/vendor-packages/terminaltables/width_and_alignment.py +usr/lib/python2.7/vendor-packages/terminaltables/base_table.pyc +usr/lib/python2.7/vendor-packages/terminaltables/ascii_table.pyc diff --git a/components/python/python-terminaltables/debian/python-terminaltables/pkginfo b/components/python/python-terminaltables/debian/python-terminaltables/pkginfo new file mode 100644 index 0000000..1978df6 --- /dev/null +++ b/components/python/python-terminaltables/debian/python-terminaltables/pkginfo @@ -0,0 +1,7 @@ +Package: python-terminaltables +Source: terminaltables +Version: 3.1.0 +Architecture: all +Section: python +Priority: optional +Homepage: https://github.com/Robpol86/terminaltables diff --git a/make-rules/shared-macros.mk b/make-rules/shared-macros.mk index d76c262..336f6d0 100644 --- a/make-rules/shared-macros.mk +++ b/make-rules/shared-macros.mk @@ -90,8 +90,8 @@ include $(WS_MAKE_RULES)/ips-buildinfo.mk COMPILER = gcc LINKER = gcc BITS = $(shell getconf LONG_BIT) -PYTHON_VERSION = 2.6 -PYTHON_VERSIONS = 2.6 2.7 +PYTHON_VERSION = 2.7 +PYTHON_VERSIONS = 2.7 BASS_O_MATIC = $(WS_TOOLS)/bass-o-matic