climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [1/4] CLIMATE-461 - Remove old RCMET VM
Date Wed, 11 Jun 2014 14:50:12 GMT
Repository: climate
Updated Branches:
  refs/heads/master d5f05012f -> 2a0a56951


http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/LICENSE
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/LICENSE b/rcmet/src/main/vm/src/cookbooks/build-essential/LICENSE
deleted file mode 100644
index 11069ed..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
-                              Apache License
-                        Version 2.0, January 2004
-                     http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-   "License" shall mean the terms and conditions for use, reproduction,
-   and distribution as defined by Sections 1 through 9 of this document.
-
-   "Licensor" shall mean the copyright owner or entity authorized by
-   the copyright owner that is granting the License.
-
-   "Legal Entity" shall mean the union of the acting entity and all
-   other entities that control, are controlled by, or are under common
-   control with that entity. For the purposes of this definition,
-   "control" means (i) the power, direct or indirect, to cause the
-   direction or management of such entity, whether by contract or
-   otherwise, or (ii) ownership of fifty percent (50%) or more of the
-   outstanding shares, or (iii) beneficial ownership of such entity.
-
-   "You" (or "Your") shall mean an individual or Legal Entity
-   exercising permissions granted by this License.
-
-   "Source" form shall mean the preferred form for making modifications,
-   including but not limited to software source code, documentation
-   source, and configuration files.
-
-   "Object" form shall mean any form resulting from mechanical
-   transformation or translation of a Source form, including but
-   not limited to compiled object code, generated documentation,
-   and conversions to other media types.
-
-   "Work" shall mean the work of authorship, whether in Source or
-   Object form, made available under the License, as indicated by a
-   copyright notice that is included in or attached to the work
-   (an example is provided in the Appendix below).
-
-   "Derivative Works" shall mean any work, whether in Source or Object
-   form, that is based on (or derived from) the Work and for which the
-   editorial revisions, annotations, elaborations, or other modifications
-   represent, as a whole, an original work of authorship. For the purposes
-   of this License, Derivative Works shall not include works that remain
-   separable from, or merely link (or bind by name) to the interfaces of,
-   the Work and Derivative Works thereof.
-
-   "Contribution" shall mean any work of authorship, including
-   the original version of the Work and any modifications or additions
-   to that Work or Derivative Works thereof, that is intentionally
-   submitted to Licensor for inclusion in the Work by the copyright owner
-   or by an individual or Legal Entity authorized to submit on behalf of
-   the copyright owner. For the purposes of this definition, "submitted"
-   means any form of electronic, verbal, or written communication sent
-   to the Licensor or its representatives, including but not limited to
-   communication on electronic mailing lists, source code control systems,
-   and issue tracking systems that are managed by, or on behalf of, the
-   Licensor for the purpose of discussing and improving the Work, but
-   excluding communication that is conspicuously marked or otherwise
-   designated in writing by the copyright owner as "Not a Contribution."
-
-   "Contributor" shall mean Licensor and any individual or Legal Entity
-   on behalf of whom a Contribution has been received by Licensor and
-   subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
-   this License, each Contributor hereby grants to You a perpetual,
-   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-   copyright license to reproduce, prepare Derivative Works of,
-   publicly display, publicly perform, sublicense, and distribute the
-   Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
-   this License, each Contributor hereby grants to You a perpetual,
-   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-   (except as stated in this section) patent license to make, have made,
-   use, offer to sell, sell, import, and otherwise transfer the Work,
-   where such license applies only to those patent claims licensable
-   by such Contributor that are necessarily infringed by their
-   Contribution(s) alone or by combination of their Contribution(s)
-   with the Work to which such Contribution(s) was submitted. If You
-   institute patent litigation against any entity (including a
-   cross-claim or counterclaim in a lawsuit) alleging that the Work
-   or a Contribution incorporated within the Work constitutes direct
-   or contributory patent infringement, then any patent licenses
-   granted to You under this License for that Work shall terminate
-   as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
-   Work or Derivative Works thereof in any medium, with or without
-   modifications, and in Source or Object form, provided that You
-   meet the following conditions:
-
-   (a) You must give any other recipients of the Work or
-       Derivative Works a copy of this License; and
-
-   (b) You must cause any modified files to carry prominent notices
-       stating that You changed the files; and
-
-   (c) You must retain, in the Source form of any Derivative Works
-       that You distribute, all copyright, patent, trademark, and
-       attribution notices from the Source form of the Work,
-       excluding those notices that do not pertain to any part of
-       the Derivative Works; and
-
-   (d) If the Work includes a "NOTICE" text file as part of its
-       distribution, then any Derivative Works that You distribute must
-       include a readable copy of the attribution notices contained
-       within such NOTICE file, excluding those notices that do not
-       pertain to any part of the Derivative Works, in at least one
-       of the following places: within a NOTICE text file distributed
-       as part of the Derivative Works; within the Source form or
-       documentation, if provided along with the Derivative Works; or,
-       within a display generated by the Derivative Works, if and
-       wherever such third-party notices normally appear. The contents
-       of the NOTICE file are for informational purposes only and
-       do not modify the License. You may add Your own attribution
-       notices within Derivative Works that You distribute, alongside
-       or as an addendum to the NOTICE text from the Work, provided
-       that such additional attribution notices cannot be construed
-       as modifying the License.
-
-   You may add Your own copyright statement to Your modifications and
-   may provide additional or different license terms and conditions
-   for use, reproduction, or distribution of Your modifications, or
-   for any such Derivative Works as a whole, provided Your use,
-   reproduction, and distribution of the Work otherwise complies with
-   the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
-   any Contribution intentionally submitted for inclusion in the Work
-   by You to the Licensor shall be under the terms and conditions of
-   this License, without any additional terms or conditions.
-   Notwithstanding the above, nothing herein shall supersede or modify
-   the terms of any separate license agreement you may have executed
-   with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
-   names, trademarks, service marks, or product names of the Licensor,
-   except as required for reasonable and customary use in describing the
-   origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
-   agreed to in writing, Licensor provides the Work (and each
-   Contributor provides its Contributions) on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-   implied, including, without limitation, any warranties or conditions
-   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-   PARTICULAR PURPOSE. You are solely responsible for determining the
-   appropriateness of using or redistributing the Work and assume any
-   risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
-   whether in tort (including negligence), contract, or otherwise,
-   unless required by applicable law (such as deliberate and grossly
-   negligent acts) or agreed to in writing, shall any Contributor be
-   liable to You for damages, including any direct, indirect, special,
-   incidental, or consequential damages of any character arising as a
-   result of this License or out of the use or inability to use the
-   Work (including but not limited to damages for loss of goodwill,
-   work stoppage, computer failure or malfunction, or any and all
-   other commercial damages or losses), even if such Contributor
-   has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
-   the Work or Derivative Works thereof, You may choose to offer,
-   and charge a fee for, acceptance of support, warranty, indemnity,
-   or other liability obligations and/or rights consistent with this
-   License. However, in accepting such obligations, You may act only
-   on Your own behalf and on Your sole responsibility, not on behalf
-   of any other Contributor, and only if You agree to indemnify,
-   defend, and hold each Contributor harmless for any liability
-   incurred by, or claims asserted against, such Contributor by reason
-   of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work.
-
-   To apply the Apache License to your work, attach the following
-   boilerplate notice, with the fields enclosed by brackets "[]"
-   replaced with your own identifying information. (Don't include
-   the brackets!)  The text should be enclosed in the appropriate
-   comment syntax for the file format. We also recommend that a
-   file or class name and description of purpose be included on the
-   same "printed page" as the copyright notice for easier
-   identification within third-party archives.
-
-Copyright [yyyy] [name of copyright owner]
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/README.md
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/README.md b/rcmet/src/main/vm/src/cookbooks/build-essential/README.md
deleted file mode 100644
index 218adf0..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/README.md
+++ /dev/null
@@ -1,124 +0,0 @@
-Description
-===========
-
-Installs packages required for compiling C software from source. Use
-this cookbook if you wish to compile C programs, or install RubyGems
-with native extensions.
-
-Requirements
-============
-
-## Platform
-
-Supported platforms by platform family:
-
-* Linux (debian, rhel, fedora)
-* Darwin (`mac_os_x` 10.6+)
-
-Attributes
-==========
-
-* `node['build_essential']['compiletime']` - Whether the resources in
-the default recipe should be configured at the "Compile" phase of the
-Chef run. Defaults to false, see __Usage__ for more information.
-* `node['build_essential']['osx']['gcc_installer_url']` - The URL of
-  the OS X GCC package installer (.pkg).
-* `node['build_essential']['osx']['gcc_installer_checksum']` - The
-  SHA256 checksum of the OS X GCC installer.
-
-Recipes
-=======
-
-This cookbook has one recipe, default.
-
-On Linux platforms (see __Platform__ above for a supported list of
-families), packages required to build C source projects are installed.
-This includes GCC, make, autconf and others. On Debian-family
-distributions, the apt-cache may need to be updated, especially during
-compile time installation. See __Usage__ for further information.
-
-On Mac OS X, the GCC standalone installer by Kenneth Reitz is
-installed. Note that this is *not* the Xcode CLI package, as that does
-not include all programs and headers required to build some common
-GNU-style C projects, such as those that are available from projects
-such as MacPorts or Homebrew. Changing the attributes for the GCC
-installer URL and checksum to the Xcode values may work, but this is
-untested.
-
-Usage
-=====
-
-Simply include the `build-essential` and the required tools will be
-installed to the system, and later recipes will be able to compile
-software from C source code.
-
-For RubyGems that include native C extensions you wish to use with
-Chef, you should do two things.
-
-0. Ensure that the C libraries, include files and other assorted "dev"
-type packages are installed. You should do this in the compile phase
-after the build-essential recipe.
-1. Use the `chef_gem` resource in your recipes. This requires Chef version 0.10.10+.
-2. Set the `compiletime` attribute in roles where such recipes are
-required. This will ensure that the build tools are available to
-compile the RubyGems' extensions, as `chef_gem` happens during the
-compile phase, too.
-
-Example installation of a devel package at compile-time in a recipe:
-
-    package "mypackage-dev" do
-      action :nothing
-    end.run_action(:install)
-
-Example use of `chef_gem`:
-
-    chef_gem "mygem"
-
-Example role:
-
-    name "myapp"
-    run_list(
-      "recipe[build-essential]",
-      "recipe[myapp]"
-    )
-    default_attributes(
-      "build_essential" => {
-        "compiletime" => true
-      }
-    )
-
-The compile time option (via the attribute) is to ensure that the
-proper packages are available at the right time in the Chef run. It is
-recommended that the build-essential recipe appear early in the run
-list.
-
-The Chef wiki has documentation on
-[the anatomy of a chef run](http://wiki.opscode.com/display/chef/Anatomy+of+a+Chef+Run).
-
-Limitations
-===========
-
-It is not in the scope of this cookbook to handle installing the
-required headers for individual software projects in order to compile
-them, or to compile RubyGems with native C extensions. You should
-create a cookbook for handling that.
-
-License and Author
-==================
-
-Author:: Joshua Timberman (<joshua@opscode.com>)
-Author:: Seth Chisamore (<schisamo@opscode.com>)
-
-Copyright 2009-2011, Opscode, Inc. (<legal@opscode.com>)
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/attributes/default.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/attributes/default.rb b/rcmet/src/main/vm/src/cookbooks/build-essential/attributes/default.rb
deleted file mode 100644
index 3695e8d..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/attributes/default.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Cookbook Name:: build-essential
-# Attributes:: default
-#
-# Copyright 2008-2012, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-default['build_essential']['compiletime'] = false
-
-case platform
-when "mac_os_x"
-  case
-  when Chef::VersionConstraint.new("~> 10.7.0").include?(platform_version),
-       Chef::VersionConstraint.new("~> 10.8.0").include?(platform_version)
-    default['build_essential']['osx']['gcc_installer_url'] = "https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg"
-    default['build_essential']['osx']['gcc_installer_checksum'] = "df36aa87606feb99d0db9ac9a492819e"
-  when Chef::VersionConstraint.new("~> 10.6.0").include?(platform_version)
-    default['build_essential']['osx']['gcc_installer_url'] = "https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.6.pkg"
-    default['build_essential']['osx']['gcc_installer_checksum'] = "d1db5bab6a3f6b9f3b5577a130baeefa"
-  end
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.json
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.json b/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.json
deleted file mode 100644
index c626b13..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
-  "name": "build-essential",
-  "description": "Installs C compiler / build tools",
-  "long_description": "",
-  "maintainer": "Opscode, Inc.",
-  "maintainer_email": "cookbooks@opscode.com",
-  "license": "Apache 2.0",
-  "platforms": {
-    "fedora": ">= 0.0.0",
-    "redhat": ">= 0.0.0",
-    "centos": ">= 0.0.0",
-    "ubuntu": ">= 0.0.0",
-    "debian": ">= 0.0.0",
-    "amazon": ">= 0.0.0",
-    "mac_os_x": ">= 10.6.0"
-  },
-  "dependencies": {
-  },
-  "recommendations": {
-  },
-  "suggestions": {
-  },
-  "conflicting": {
-  },
-  "providing": {
-  },
-  "replacing": {
-  },
-  "attributes": {
-  },
-  "groupings": {
-  },
-  "recipes": {
-    "build-essential": "Installs packages required for compiling C software from source."
-  },
-  "version": "1.1.2"
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.rb b/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.rb
deleted file mode 100644
index 23df6aa..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/metadata.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-maintainer        "Opscode, Inc."
-maintainer_email  "cookbooks@opscode.com"
-license           "Apache 2.0"
-description       "Installs C compiler / build tools"
-version           "1.1.2"
-recipe            "build-essential", "Installs packages required for compiling C software from source."
-
-%w{ fedora redhat centos ubuntu debian amazon }.each do |os|
-  supports os
-end
-
-supports "mac_os_x", ">= 10.6.0"

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/build-essential/recipes/default.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/build-essential/recipes/default.rb b/rcmet/src/main/vm/src/cookbooks/build-essential/recipes/default.rb
deleted file mode 100644
index 8b5629d..0000000
--- a/rcmet/src/main/vm/src/cookbooks/build-essential/recipes/default.rb
+++ /dev/null
@@ -1,79 +0,0 @@
-#
-# Cookbook Name:: build-essential
-# Recipe:: default
-#
-# Copyright 2008-2009, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-require 'chef/shell_out'
-
-compiletime = node['build_essential']['compiletime']
-
-case node['os']
-when "linux"
-
-  # on apt-based platforms when first provisioning we need to force
-  # apt-get update at compiletime if we are going to try to install at compiletime
-  if node['platform_family'] == "debian"
-    execute "apt-get update" do
-      action :nothing
-      # tip: to suppress this running every time, just use the apt cookbook
-      not_if do
-        ::File.exists?('/var/lib/apt/periodic/update-success-stamp') &&
-        ::File.mtime('/var/lib/apt/periodic/update-success-stamp') > Time.now - 86400*2
-      end
-    end.run_action(:run) if compiletime
-  end
-
-  packages = case node['platform_family']
-    when "debian"
-      %w{build-essential binutils-doc}
-    when "rhel", "fedora"
-      %w{gcc gcc-c++ kernel-devel make}
-    end
-
-  packages.each do |pkg|
-    r = package pkg do
-      action ( compiletime ? :nothing : :install )
-    end
-    r.run_action(:install) if compiletime
-  end
-
-  %w{autoconf flex bison}.each do |pkg|
-    r = package pkg do
-      action ( compiletime ? :nothing : :install )
-    end
-    r.run_action(:install) if compiletime
-  end
-when "darwin"
-  result = Chef::ShellOut.new("pkgutil --pkgs").run_command
-  installed = result.stdout.split("\n").include?("com.apple.pkg.gcc4.2Leo")
-  pkg_filename = File.basename(node['build_essential']['osx']['gcc_installer_url'])
-  pkg_path = "#{Chef::Config[:file_cache_path]}/#{pkg_filename}"
-
-  r = remote_file pkg_path do
-    source node['build_essential']['osx']['gcc_installer_url']
-    checksum node['build_essential']['osx']['gcc_installer_checksum']
-    action ( compiletime ? :nothing : :create )
-    not_if { installed }
-  end
-  r.run_action(:create) if compiletime
-
-  r = execute "sudo installer -pkg \"#{pkg_path}\" -target /" do
-    action ( compiletime ? :nothing : :run )
-    not_if { installed }
-  end
-  r.run_action(:run) if compiletime
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/CHANGELOG.md b/rcmet/src/main/vm/src/cookbooks/python/CHANGELOG.md
deleted file mode 100644
index 5396d10..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/CHANGELOG.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## v1.0.8:
-
-* [COOK-1016] - python package needs separate names for centos/rhel 5.x vs 6.x
-* [COOK-1048] - installation of pip does not honor selected python version
-* [COOK-1282] - catch Chef::Exceptions::ShellCommandFailed for chef 0.10.8 compatibility
-* [COOK-1311] - virtualenv should have options attribute
-* [COOK-1320] - pip provider doesn't catch correct exception
-* [COOK-1415] - use plain 'python' binary instead of versioned one for
-  default interpreter
-
-## v1.0.6:
-
-* [COOK-1036] - correctly grep for python-module version
-* [COOK-1046] - run pip inside the virtualenv
-
-## v1.0.4:
-
-* [COOK-960] - add timeout to python_pip
-* [COOK-651] - 'install_path' not correctly resolved when using python::source
-* [COOK-650] - Add ability to specify version when installing distribute.
-* [COOK-553] - FreeBSD support in the python cookbook

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/CONTRIBUTING
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/CONTRIBUTING b/rcmet/src/main/vm/src/cookbooks/python/CONTRIBUTING
deleted file mode 100644
index 89ac873..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/CONTRIBUTING
+++ /dev/null
@@ -1,29 +0,0 @@
-If you would like to contribute, please open a ticket in JIRA:
-
-* http://tickets.opscode.com
-
-Create the ticket in the COOK project and use the cookbook name as the
-component.
-
-For all code contributions, we ask that contributors sign a
-contributor license agreement (CLA). Instructions may be found here:
-
-* http://wiki.opscode.com/display/chef/How+to+Contribute
-
-When contributing changes to individual cookbooks, please do not
-modify the version number in the metadata.rb. Also please do not
-update the CHANGELOG.md for a new version. Not all changes to a
-cookbook may be merged and released in the same versions. Opscode will
-handle the version updates during the release process. You are welcome
-to correct typos or otherwise make updates to documentation in the
-README.
-
-If a contribution adds new platforms or platform versions, indicate
-such in the body of the commit message(s), and update the relevant
-COOK ticket. When writing commit messages, it is helpful for others if
-you indicate the COOK ticket. For example:
-
-    git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
-
-In the ticket itself, it is also helpful if you include log output of
-a successful Chef run, but this is not absolutely required.

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/LICENSE
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/LICENSE b/rcmet/src/main/vm/src/cookbooks/python/LICENSE
deleted file mode 100644
index 11069ed..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
-                              Apache License
-                        Version 2.0, January 2004
-                     http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-   "License" shall mean the terms and conditions for use, reproduction,
-   and distribution as defined by Sections 1 through 9 of this document.
-
-   "Licensor" shall mean the copyright owner or entity authorized by
-   the copyright owner that is granting the License.
-
-   "Legal Entity" shall mean the union of the acting entity and all
-   other entities that control, are controlled by, or are under common
-   control with that entity. For the purposes of this definition,
-   "control" means (i) the power, direct or indirect, to cause the
-   direction or management of such entity, whether by contract or
-   otherwise, or (ii) ownership of fifty percent (50%) or more of the
-   outstanding shares, or (iii) beneficial ownership of such entity.
-
-   "You" (or "Your") shall mean an individual or Legal Entity
-   exercising permissions granted by this License.
-
-   "Source" form shall mean the preferred form for making modifications,
-   including but not limited to software source code, documentation
-   source, and configuration files.
-
-   "Object" form shall mean any form resulting from mechanical
-   transformation or translation of a Source form, including but
-   not limited to compiled object code, generated documentation,
-   and conversions to other media types.
-
-   "Work" shall mean the work of authorship, whether in Source or
-   Object form, made available under the License, as indicated by a
-   copyright notice that is included in or attached to the work
-   (an example is provided in the Appendix below).
-
-   "Derivative Works" shall mean any work, whether in Source or Object
-   form, that is based on (or derived from) the Work and for which the
-   editorial revisions, annotations, elaborations, or other modifications
-   represent, as a whole, an original work of authorship. For the purposes
-   of this License, Derivative Works shall not include works that remain
-   separable from, or merely link (or bind by name) to the interfaces of,
-   the Work and Derivative Works thereof.
-
-   "Contribution" shall mean any work of authorship, including
-   the original version of the Work and any modifications or additions
-   to that Work or Derivative Works thereof, that is intentionally
-   submitted to Licensor for inclusion in the Work by the copyright owner
-   or by an individual or Legal Entity authorized to submit on behalf of
-   the copyright owner. For the purposes of this definition, "submitted"
-   means any form of electronic, verbal, or written communication sent
-   to the Licensor or its representatives, including but not limited to
-   communication on electronic mailing lists, source code control systems,
-   and issue tracking systems that are managed by, or on behalf of, the
-   Licensor for the purpose of discussing and improving the Work, but
-   excluding communication that is conspicuously marked or otherwise
-   designated in writing by the copyright owner as "Not a Contribution."
-
-   "Contributor" shall mean Licensor and any individual or Legal Entity
-   on behalf of whom a Contribution has been received by Licensor and
-   subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
-   this License, each Contributor hereby grants to You a perpetual,
-   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-   copyright license to reproduce, prepare Derivative Works of,
-   publicly display, publicly perform, sublicense, and distribute the
-   Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
-   this License, each Contributor hereby grants to You a perpetual,
-   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-   (except as stated in this section) patent license to make, have made,
-   use, offer to sell, sell, import, and otherwise transfer the Work,
-   where such license applies only to those patent claims licensable
-   by such Contributor that are necessarily infringed by their
-   Contribution(s) alone or by combination of their Contribution(s)
-   with the Work to which such Contribution(s) was submitted. If You
-   institute patent litigation against any entity (including a
-   cross-claim or counterclaim in a lawsuit) alleging that the Work
-   or a Contribution incorporated within the Work constitutes direct
-   or contributory patent infringement, then any patent licenses
-   granted to You under this License for that Work shall terminate
-   as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
-   Work or Derivative Works thereof in any medium, with or without
-   modifications, and in Source or Object form, provided that You
-   meet the following conditions:
-
-   (a) You must give any other recipients of the Work or
-       Derivative Works a copy of this License; and
-
-   (b) You must cause any modified files to carry prominent notices
-       stating that You changed the files; and
-
-   (c) You must retain, in the Source form of any Derivative Works
-       that You distribute, all copyright, patent, trademark, and
-       attribution notices from the Source form of the Work,
-       excluding those notices that do not pertain to any part of
-       the Derivative Works; and
-
-   (d) If the Work includes a "NOTICE" text file as part of its
-       distribution, then any Derivative Works that You distribute must
-       include a readable copy of the attribution notices contained
-       within such NOTICE file, excluding those notices that do not
-       pertain to any part of the Derivative Works, in at least one
-       of the following places: within a NOTICE text file distributed
-       as part of the Derivative Works; within the Source form or
-       documentation, if provided along with the Derivative Works; or,
-       within a display generated by the Derivative Works, if and
-       wherever such third-party notices normally appear. The contents
-       of the NOTICE file are for informational purposes only and
-       do not modify the License. You may add Your own attribution
-       notices within Derivative Works that You distribute, alongside
-       or as an addendum to the NOTICE text from the Work, provided
-       that such additional attribution notices cannot be construed
-       as modifying the License.
-
-   You may add Your own copyright statement to Your modifications and
-   may provide additional or different license terms and conditions
-   for use, reproduction, or distribution of Your modifications, or
-   for any such Derivative Works as a whole, provided Your use,
-   reproduction, and distribution of the Work otherwise complies with
-   the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
-   any Contribution intentionally submitted for inclusion in the Work
-   by You to the Licensor shall be under the terms and conditions of
-   this License, without any additional terms or conditions.
-   Notwithstanding the above, nothing herein shall supersede or modify
-   the terms of any separate license agreement you may have executed
-   with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
-   names, trademarks, service marks, or product names of the Licensor,
-   except as required for reasonable and customary use in describing the
-   origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
-   agreed to in writing, Licensor provides the Work (and each
-   Contributor provides its Contributions) on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-   implied, including, without limitation, any warranties or conditions
-   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-   PARTICULAR PURPOSE. You are solely responsible for determining the
-   appropriateness of using or redistributing the Work and assume any
-   risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
-   whether in tort (including negligence), contract, or otherwise,
-   unless required by applicable law (such as deliberate and grossly
-   negligent acts) or agreed to in writing, shall any Contributor be
-   liable to You for damages, including any direct, indirect, special,
-   incidental, or consequential damages of any character arising as a
-   result of this License or out of the use or inability to use the
-   Work (including but not limited to damages for loss of goodwill,
-   work stoppage, computer failure or malfunction, or any and all
-   other commercial damages or losses), even if such Contributor
-   has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
-   the Work or Derivative Works thereof, You may choose to offer,
-   and charge a fee for, acceptance of support, warranty, indemnity,
-   or other liability obligations and/or rights consistent with this
-   License. However, in accepting such obligations, You may act only
-   on Your own behalf and on Your sole responsibility, not on behalf
-   of any other Contributor, and only if You agree to indemnify,
-   defend, and hold each Contributor harmless for any liability
-   incurred by, or claims asserted against, such Contributor by reason
-   of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work.
-
-   To apply the Apache License to your work, attach the following
-   boilerplate notice, with the fields enclosed by brackets "[]"
-   replaced with your own identifying information. (Don't include
-   the brackets!)  The text should be enclosed in the appropriate
-   comment syntax for the file format. We also recommend that a
-   file or class name and description of purpose be included on the
-   same "printed page" as the copyright notice for easier
-   identification within third-party archives.
-
-Copyright [yyyy] [name of copyright owner]
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/README.md
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/README.md b/rcmet/src/main/vm/src/cookbooks/python/README.md
deleted file mode 100644
index 38ace13..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/README.md
+++ /dev/null
@@ -1,176 +0,0 @@
-Description
-===========
-
-Installs and configures Python.  Also includes LWRPs for managing python packages with `pip` and `virtualenv` isolated Python environments.
-
-Requirements
-============
-
-Platform
---------
-
-* Debian, Ubuntu
-* CentOS, Red Hat, Fedora
-
-Cookbooks
----------
-
-* build-essential
-* yum
-
-NOTE: The `yum` cookbook is a dependency of the cookbook, and will be used to install [EPEL](http://fedoraproject.org/wiki/EPEL) on RedHet/CentOS 5.x systems to provide the Python 2.6 packages.
-
-Attributes
-==========
-
-See `attributes/default.rb` for default values.
-
-* `node["python"]["install_method"]` - method to install python with, default `package`.
-
-The file also contains the following attributes:
-
-* platform specific locations and settings.
-* source installation settings
-
-Resource/Provider
-=================
-
-This cookbook includes LWRPs for managing:
-
-* pip packages
-* virtualenv isolated Python environments
-
-`python_pip`
-------------
-
-Install packages using the new hotness in Python package management...[`pip`](http://pypi.python.org/pypi/pip).  Yo dawg...easy_install is so 2009, you better ask your local Pythonista if you don't know! The usage semantics are like that of any normal package provider.
-
-# Actions
-
-- :install: Install a pip package - if version is provided, install that specific version
-- :upgrade: Upgrade a pip package - if version is provided, upgrade to that specific version
-- :remove: Remove a pip package
-- :purge: Purge a pip package (this usually entails removing configuration files as well as the package itself).  With pip packages this behaves the same as `:remove`
-
-# Attribute Parameters
-
-- package_name: name attribute. The name of the pip package to install
-- version: the version of the package to install/upgrade.  If no version is given latest is assumed.
-- virtualenv: virtualenv environment to install pip package into
-- options: Add additional options to the underlying pip package command
-- timeout: timeout in seconds for the command to execute. Useful for pip packages that may take a long time to install. Default 900 seconds.
-
-# Example
-
-    # install latest gunicorn into system path
-    python_pip "gunicorn" do
-      action :install
-    end
-
-    # target a virtualenv
-    python_pip "gunicorn" do
-      virtualenv "/home/ubunut/my_ve"
-      action :install
-    end
-
-    # install Django 1.1.4
-    python_pip "django" do
-      version "1.1.4"
-      action :install
-    end
-
-    # use this provider with the core package resource
-    package "django" do
-      provider Chef::Provider::PythonPip
-      action :install
-    end
-
-`python_virtualenv`
--------------------
-
-[`virtualenv`](http://pypi.python.org/pypi/virtualenv) is a great tool that creates isolated python environments.  Think of it as RVM without all those hipsters and tight jeans.
-
-# Actions
-
-- :create: creates a new virtualenv
-- :delete: deletes an existing virtualenv
-
-# Attribute Parameters
-
-- path: name attribute. The path where the virtualenv will be created
-- interpreter: The Python interpreter to use. default is `python2.6`
-- owner: The owner for the virtualenv
-- group: The group owner of the file (string or id)
-- options : Command line options (string)
-
-# Example
-
-    # create a 2.6 virtualenv owned by ubuntu user
-    python_virtualenv "/home/ubuntu/my_cool_ve" do
-      owner "ubuntu"
-      group "ubuntu"
-      action :create
-    end
-
-    # create a Python 2.4 virtualenv
-    python_virtualenv "/home/ubuntu/my_old_ve" do
-      interpreter "python2.4"
-      owner "ubuntu"
-      group "ubuntu"
-      action :create
-    end
-
-    # create a Python 2.6 virtualenv with access to the global packages owned by ubuntu user
-    python_virtualenv "/home/ubuntu/my_old_ve" do
-      owner "ubuntu"
-      group "ubuntu"
-      options "--system-site-packages"
-      action :create
-    end
-
-Usage
-=====
-
-default
--------
-
-Include default recipe in a run list, to get `python`, `pip` and `virtualenv`. Installs python by package or source depending on the platform.
-
-package
--------
-
-Installs Python from packages.
-
-source
-------
-
-Installs Python from source.
-
-pip
----
-
-Installs `pip` from source.
-
-virtualenv
-----------
-
-Installs virtualenv using the `python_pip` resource.
-
-License and Author
-==================
-
-Author:: Seth Chisamore (<schisamo@opscode.com>)
-
-Copyright:: 2011, Opscode, Inc
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/attributes/default.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/attributes/default.rb b/rcmet/src/main/vm/src/cookbooks/python/attributes/default.rb
deleted file mode 100644
index 794d873..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/attributes/default.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Author:: Seth Chisamore (<schisamo@opscode.com>)
-# Cookbook Name:: python
-# Attribute:: default
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-default['python']['install_method'] = 'package'
-
-if python['install_method'] == 'package'
-  default['python']['prefix_dir']         = '/usr'
-else
-  default['python']['prefix_dir']         = '/usr/local'
-end
-
-case platform
-when "redhat","centos","scientific","fedora","suse","amazon"
-  set['python']['pip']['prefix_dir']  = '/usr'
-when "debian","ubuntu"
-  set['python']['pip']['prefix_dir']  = '/usr/local'
-else
-  set['python']['pip']['prefix_dir']  = '/usr/local'
-end
-
-default['python']['url'] = 'http://www.python.org/ftp/python'
-default['python']['version'] = '2.7.1'
-default['python']['checksum'] = '80e387bcf57eae8ce26726753584fd63e060ec11682d1145af921e85fd612292'
-default['python']['configure_options'] = %W{--prefix=#{python['prefix_dir']}}
-

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/metadata.json
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/metadata.json b/rcmet/src/main/vm/src/cookbooks/python/metadata.json
deleted file mode 100644
index 5b9dbf0..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/metadata.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
-  "name": "python",
-  "description": "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments.",
-  "long_description": "",
-  "maintainer": "Opscode, Inc.",
-  "maintainer_email": "cookbooks@opscode.com",
-  "license": "Apache 2.0",
-  "platforms": {
-    "debian": ">= 0.0.0",
-    "ubuntu": ">= 0.0.0",
-    "centos": ">= 0.0.0",
-    "redhat": ">= 0.0.0",
-    "fedora": ">= 0.0.0",
-    "freebsd": ">= 0.0.0"
-  },
-  "dependencies": {
-    "build-essential": ">= 0.0.0",
-    "yum": ">= 0.0.0"
-  },
-  "recommendations": {
-  },
-  "suggestions": {
-  },
-  "conflicting": {
-  },
-  "providing": {
-  },
-  "replacing": {
-  },
-  "attributes": {
-  },
-  "groupings": {
-  },
-  "recipes": {
-    "python": "Installs python, pip, and virtualenv",
-    "python::package": "Installs python using packages.",
-    "python::source": "Installs python from source.",
-    "python::pip": "Installs pip from source.",
-    "python::virtualenv": "Installs virtualenv using the python_pip resource."
-  },
-  "version": "1.0.8"
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/metadata.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/metadata.rb b/rcmet/src/main/vm/src/cookbooks/python/metadata.rb
deleted file mode 100644
index efca7b9..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/metadata.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-maintainer        "Opscode, Inc."
-maintainer_email  "cookbooks@opscode.com"
-license           "Apache 2.0"
-description       "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments."
-version           "1.0.8"
-
-depends           "build-essential"
-depends           "yum"
-
-recipe "python", "Installs python, pip, and virtualenv"
-recipe "python::package", "Installs python using packages."
-recipe "python::source", "Installs python from source."
-recipe "python::pip", "Installs pip from source."
-recipe "python::virtualenv", "Installs virtualenv using the python_pip resource."
-
-%w{ debian ubuntu centos redhat fedora freebsd }.each do |os|
-  supports os
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/providers/pip.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/providers/pip.rb b/rcmet/src/main/vm/src/cookbooks/python/providers/pip.rb
deleted file mode 100644
index 1c58e5e..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/providers/pip.rb
+++ /dev/null
@@ -1,167 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Provider:: pip
-#
-# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-require 'chef/mixin/shell_out'
-require 'chef/mixin/language'
-include Chef::Mixin::ShellOut
-
-# the logic in all action methods mirror that of
-# the Chef::Provider::Package which will make
-# refactoring into core chef easy
-
-action :install do
-  # If we specified a version, and it's not the current version, move to the specified version
-  if @new_resource.version != nil && @new_resource.version != @current_resource.version
-    install_version = @new_resource.version
-  # If it's not installed at all, install it
-  elsif @current_resource.version == nil
-    install_version = candidate_version
-  end
-
-  # Set the timeout (units in seconds)
-  timeout = 900
-  if @new_resource.timeout
-    timeout = @new_resource.timeout
-  end
-
-  if install_version
-    Chef::Log.info("Installing #{@new_resource} version #{install_version}")
-    status = install_package(@new_resource.package_name, install_version, timeout)
-    if status
-      @new_resource.updated_by_last_action(true)
-    end
-  end
-end
-
-action :upgrade do
-  # Set the timeout (units in seconds)
-  timeout = 900
-  if @new_resource.timeout
-    timeout = @new_resource.timeout
-  end
-
-  if @current_resource.version != candidate_version
-    orig_version = @current_resource.version || "uninstalled"
-    Chef::Log.info("Upgrading #{@new_resource} version from #{orig_version} to #{candidate_version}")
-    status = upgrade_package(@new_resource.package_name, candidate_version, timeout)
-    if status
-      @new_resource.updated_by_last_action(true)
-    end
-  end
-end
-
-action :remove do
-  # Set the timeout (units in seconds)
-  timeout = 900
-  if @new_resource.timeout
-    timeout = @new_resource.timeout
-  end
-
-  if removing_package?
-    Chef::Log.info("Removing #{@new_resource}")
-    remove_package(@current_resource.package_name, @new_resource.version, timeout)
-    @new_resource.updated_by_last_action(true)
-  else
-  end
-end
-
-def removing_package?
-  if @current_resource.version.nil?
-    false # nothing to remove
-  elsif @new_resource.version.nil?
-    true # remove any version of a package
-  elsif @new_resource.version == @current_resource.version
-    true # remove the version we have
-  else
-    false # we don't have the version we want to remove
-  end
-end
-
-def expand_options(options)
-  options ? " #{options}" : ""
-end
-
-# these methods are the required overrides of
-# a provider that extends from Chef::Provider::Package
-# so refactoring into core Chef should be easy
-
-def load_current_resource
-  @current_resource = Chef::Resource::PythonPip.new(@new_resource.name)
-  @current_resource.package_name(@new_resource.package_name)
-  @current_resource.version(nil)
-
-  unless current_installed_version.nil?
-    @current_resource.version(current_installed_version)
-  end
-
-  @current_resource
-end
-
-def current_installed_version
-  @current_installed_version ||= begin
-    delimeter = /==/
-
-    version_check_cmd = "#{pip_cmd(@new_resource)} freeze | grep -i '^#{@new_resource.package_name}=='"
-    # incase you upgrade pip with pip!
-    if @new_resource.package_name.eql?('pip')
-      delimeter = /\s/
-      version_check_cmd = "pip --version"
-    end
-    p = shell_out!(version_check_cmd)
-    p.stdout.split(delimeter)[1].strip
-  rescue Chef::Exceptions::ShellCommandFailed
-  rescue Mixlib::ShellOut::ShellCommandFailed
-  end
-end
-
-def candidate_version
-  @candidate_version ||= begin
-    # `pip search` doesn't return versions yet
-    # `pip list` may be coming soon:
-    # https://bitbucket.org/ianb/pip/issue/197/option-to-show-what-version-would-be
-    @new_resource.version||'latest'
-  end
-end
-
-def install_package(name, version, timeout)
-  v = "==#{version}" unless version.eql?('latest')
-  shell_out!("#{pip_cmd(@new_resource)} install#{expand_options(@new_resource.options)} #{name}#{v}", :timeout => timeout)
-end
-
-def upgrade_package(name, version, timeout)
-  v = "==#{version}" unless version.eql?('latest')
-  shell_out!("#{pip_cmd(@new_resource)} install --upgrade#{expand_options(@new_resource.options)} #{@new_resource.name}#{v}", :timeout => timeout)
-end
-
-def remove_package(name, version, timeout)
-  shell_out!("#{pip_cmd(@new_resource)} uninstall -y#{expand_options(@new_resource.options)} #{@new_resource.name}", :timeout => timeout)
-end
-
-# TODO remove when provider is moved into Chef core
-# this allows PythonPip to work with Chef::Resource::Package
-def pip_cmd(nr)
-  if (nr.respond_to?("virtualenv") && nr.virtualenv)
-    ::File.join(nr.virtualenv,'/bin/pip')
-  elsif "#{node['python']['install_method']}".eql?("source")
-    ::File.join("#{node['python']['prefix_dir']}","/bin/pip")
-  else
-    'pip'
-  end
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/providers/virtualenv.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/providers/virtualenv.rb b/rcmet/src/main/vm/src/cookbooks/python/providers/virtualenv.rb
deleted file mode 100644
index d10f099..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/providers/virtualenv.rb
+++ /dev/null
@@ -1,68 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Provider:: virtualenv
-#
-# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-require 'chef/mixin/shell_out'
-require 'chef/mixin/language'
-include Chef::Mixin::ShellOut
-
-action :create do
-  unless exists?
-    Chef::Log.info("Creating virtualenv #{@new_resource} at #{@new_resource.path}")
-    execute "#{virtualenv_cmd} --python=#{@new_resource.interpreter} #{@new_resource.options} #{@new_resource.path}" do
-      user new_resource.owner if new_resource.owner
-      group new_resource.group if new_resource.group
-    end
-    new_resource.updated_by_last_action(true)
-  end
-end
-
-action :delete do
-  if exists?
-    Chef::Log.info("Deleting virtualenv #{@new_resource} at #{@new_resource.path}")
-    FileUtils.rm_rf(@new_resource.path)
-    new_resource.updated_by_last_action(true)
-  end
-end
-
-def load_current_resource
-  @current_resource = Chef::Resource::PythonVirtualenv.new(@new_resource.name)
-  @current_resource.path(@new_resource.path)
-
-  if exists?
-    cstats = ::File.stat(@current_resource.path)
-    @current_resource.owner(cstats.uid)
-    @current_resource.group(cstats.gid)
-  end
-  @current_resource
-end
-
-def virtualenv_cmd()
-  if "#{node['python']['install_method']}".eql?("source")
-    ::File.join("#{node['python']['prefix_dir']}","/bin/virtualenv")
-  else
-    "virtualenv"
-  end
-end
-
-private
-def exists?
-  ::File.exist?(@current_resource.path) && ::File.directory?(@current_resource.path) \
-    && ::File.exists?("#{@current_resource.path}/bin/activate")
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/recipes/default.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/recipes/default.rb b/rcmet/src/main/vm/src/cookbooks/python/recipes/default.rb
deleted file mode 100644
index 47e2a20..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/recipes/default.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Recipe:: default
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-include_recipe "python::#{node['python']['install_method']}"
-include_recipe "python::pip"
-include_recipe "python::virtualenv"
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/recipes/package.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/recipes/package.rb b/rcmet/src/main/vm/src/cookbooks/python/recipes/package.rb
deleted file mode 100644
index 95dcce0..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/recipes/package.rb
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Recipe:: package
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# COOK-1016 Handle RHEL/CentOS namings of python packages, by installing EPEL repo & package
-# This implementation was determined a stopgap measure until CHEF-2410 is implemented and widespread.
-if node['platform'] == 'centos' || node['platform'] == 'redhat'
-  major_version = node['platform_version'].split('.').first.to_i
-  if major_version == 5
-    include_recipe 'yum::epel'
-  else
-    # Do nothing.
-  end
-end
-
-python_pkgs = if node['platform'] == 'centos' || node['platform'] == 'redhat'
-                major_version = node['platform_version'].split('.').first.to_i
-                if major_version == 6
-                  ["python", "python-devel"]
-                else
-                  ["python26", "python26-devel"]
-                end
-              else
-                value_for_platform(
-                                   ["debian","ubuntu"] => {
-                                     "default" => ["python","python-dev"]
-                                   },
-                                   ["fedora","amazon"] => {
-                                     "default" => ["python","python-devel"]
-                                   },
-                                   ["freebsd"] => {
-                                     "default" => ["python"]
-                                   },
-                                   "default" => ["python","python-dev"]
-                                   )
-              end
-
-python_pkgs.each do |pkg|
-  package pkg do
-    action :install
-  end
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/recipes/pip.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/recipes/pip.rb b/rcmet/src/main/vm/src/cookbooks/python/recipes/pip.rb
deleted file mode 100644
index ecb97c2..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/recipes/pip.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Recipe:: pip
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-python_bindir = "#{node['python']['prefix_dir']}/bin"
-pip_bindir    = "#{node['python']['pip']['prefix_dir']}/bin"
-
-# Ubuntu's python-setuptools, python-pip and python-virtualenv packages
-# are broken...this feels like Rubygems!
-# http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python
-# https://bitbucket.org/ianb/pip/issue/104/pip-uninstall-on-ubuntu-linux
-remote_file "#{Chef::Config[:file_cache_path]}/distribute_setup.py" do
-  source "http://python-distribute.org/distribute_setup.py"
-  mode "0644"
-  not_if { ::File.exists?("#{pip_bindir}/pip") }
-end
-
-bash "install-pip" do
-  cwd Chef::Config[:file_cache_path]
-  code <<-EOF
-  #{python_bindir}/python distribute_setup.py
-  #{pip_bindir}/easy_install pip
-  EOF
-  not_if { ::File.exists?("#{pip_bindir}/pip") }
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/recipes/source.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/recipes/source.rb b/rcmet/src/main/vm/src/cookbooks/python/recipes/source.rb
deleted file mode 100644
index b4e3dd6..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/recipes/source.rb
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Recipe:: source
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-configure_options = node['python']['configure_options'].join(" ")
-
-packages = value_for_platform(
-    ["centos","redhat","fedora"] => 
-        {"default" => ["openssl-devel","bzip2-devel","zlib-devel","expat-devel","db4-devel","sqlite-devel","ncurses-devel","readline-devel"]},
-    "default" => 
-        ["libssl-dev","libbz2-dev","zlib1g-dev","libexpat1-dev","libdb4.8-dev","libsqlite3-dev","libncursesw5-dev","libncurses5-dev","libreadline-dev"]
-  )
-
-packages.each do |dev_pkg|
-  package dev_pkg
-end
-
-version = node['python']['version']
-install_path = "#{node['python']['prefix_dir']}/lib/python#{version.split(/(^\d+\.\d+)/)[1]}"
-
-remote_file "#{Chef::Config[:file_cache_path]}/Python-#{version}.tar.bz2" do
-  source "#{node['python']['url']}/#{version}/Python-#{version}.tar.bz2"
-  checksum node['python']['checksum']
-  mode "0644"
-  not_if { ::File.exists?(install_path) }
-end
-
-bash "build-and-install-python" do
-  cwd Chef::Config[:file_cache_path]
-  code <<-EOF
-  tar -jxvf Python-#{version}.tar.bz2
-  (cd Python-#{version} && ./configure #{configure_options})
-  (cd Python-#{version} && make && make install)
-  EOF
-  not_if { ::File.exists?(install_path) }
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/recipes/virtualenv.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/recipes/virtualenv.rb b/rcmet/src/main/vm/src/cookbooks/python/recipes/virtualenv.rb
deleted file mode 100644
index 4c28f80..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/recipes/virtualenv.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Recipe:: virtualenv
-#
-# Copyright 2011, Opscode, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-include_recipe "python::pip"
-
-python_pip "virtualenv" do
-  action :install
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/resources/pip.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/resources/pip.rb b/rcmet/src/main/vm/src/cookbooks/python/resources/pip.rb
deleted file mode 100644
index 6b1780c..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/resources/pip.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Resource:: pip
-#
-# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-actions :install, :upgrade, :remove, :purge
-
-attribute :package_name, :kind_of => String, :name_attribute => true
-attribute :version, :default => nil
-attribute :timeout, :default => nil
-attribute :virtualenv, :kind_of => String
-attribute :options, :kind_of => String

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/python/resources/virtualenv.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/python/resources/virtualenv.rb b/rcmet/src/main/vm/src/cookbooks/python/resources/virtualenv.rb
deleted file mode 100644
index 6f14820..0000000
--- a/rcmet/src/main/vm/src/cookbooks/python/resources/virtualenv.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Author:: Seth Chisamore <schisamo@opscode.com>
-# Cookbook Name:: python
-# Resource:: virtualenv
-#
-# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-actions :create, :delete
-
-attribute :path, :kind_of => String, :name_attribute => true
-attribute :interpreter, :default => 'python'
-attribute :owner, :regex => Chef::Config[:user_valid_regex]
-attribute :group, :regex => Chef::Config[:group_valid_regex]
-attribute :options, :kind_of => String

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/vagrant_main/recipes/default.rb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/vagrant_main/recipes/default.rb b/rcmet/src/main/vm/src/cookbooks/vagrant_main/recipes/default.rb
deleted file mode 100644
index 7eed825..0000000
--- a/rcmet/src/main/vm/src/cookbooks/vagrant_main/recipes/default.rb
+++ /dev/null
@@ -1,56 +0,0 @@
-# APT Package Management --------------------------------------------
-# Install the APT package management tool, and then install any
-# packages that we will need to have to complete the buildout.
-#
-include_recipe "apt"
-include_recipe "build-essential"
-gem_package "ruby-shadow" do
-  action :install
-end
-
-# User Creation -----------------------------------------------------
-# Create a user account for the 'rcmet' user
-#
-user "rcmet" do
-  comment "RCMET user"
-  uid 1001
-  #gid "users"
-  home "/usr/local/rcmet"
-  shell "/bin/bash"
-  #password "1bob1bob"
-end
-
-directory "/usr/local/rcmet" do
-  mode "0777"
-end
-
-
-# Python Environment Setup ------------------------------------------
-# Install Python and package management tools 'pip' and 'virtualenv'.
-# Then create a virtual environment in  the 'rcmet' user's home 
-# directory, into which all RCMET python code and dependencies can be 
-# installed.
-#
-include_recipe "python"
-
-python_virtualenv "/usr/local/rcmet/python-env" do
-  owner "rcmet"
-  group "rcmet"
-  action :create
-end
-
-# Apache Web Server Configuration -----------------------------------
-# Install the Apache2 HTTPD Web Server, and configure a virtual host
-# for the RCMET web application.
-#
-include_recipe "apache2"
-
-execute "disable-default-site" do
-  command "sudo a2dissite default"
-  notifies :reload, resources(:service => "apache2"), :delayed
-end
-
-web_app "rcmet" do
-  template "rcmet.conf.erb"
-  notifies :reload, resources(:service => "apache2"), :delayed
-end

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/project.conf.erb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/project.conf.erb b/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/project.conf.erb
deleted file mode 100644
index 16176b4..0000000
--- a/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/project.conf.erb
+++ /dev/null
@@ -1,3 +0,0 @@
-<VirtualHost *:80>
-    DocumentRoot <%= @node[:vagrant][:directory] %>
-</VirtualHost>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/rcmet.conf.erb
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/rcmet.conf.erb b/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/rcmet.conf.erb
deleted file mode 100644
index 9283347..0000000
--- a/rcmet/src/main/vm/src/cookbooks/vagrant_main/templates/default/rcmet.conf.erb
+++ /dev/null
@@ -1,3 +0,0 @@
-<VirtualHost *:80>
-    DocumentRoot <%= @node[:vagrant][:directory] %>/env/www
-</VirtualHost>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/climate/blob/2c1ca77e/rcmet/src/main/vm/src/scripts/ncl/wget-download.sh
----------------------------------------------------------------------
diff --git a/rcmet/src/main/vm/src/scripts/ncl/wget-download.sh b/rcmet/src/main/vm/src/scripts/ncl/wget-download.sh
deleted file mode 100644
index 5444fab..0000000
--- a/rcmet/src/main/vm/src/scripts/ncl/wget-download.sh
+++ /dev/null
@@ -1,263 +0,0 @@
-#!/bin/bash
-#
-# ESG Federation download script
-#
-# Template version
-version=0.4.3
-# Generated by Gateway: ESG-NCAR
-#
-# Script generated user OpenID: https://www.earthsystemgrid.org/myopenid/ahart
-#
-
-CACHE_FILE=.md5_results
-
-##############################################################################
-#
-# Your download selection includes data secured using ESG
-# certificate-based security.  In order to access the download URLs
-# you must first obtain a credentials file from your home Gateway's
-# MyProxy server.
-#
-# If you don't already have a myproxy client you can download the
-# MyProxyLogon Java client from
-#   http://www.earthsystemgrid.org//webstart/myProxyLogon/MyProxyLogon-ESG.jar
-#
-# Then execute it as follows:
-#  $ java -jar MyProxyLogon-ESG.jar -h vetswebprod.ucar.edu -p 7512 -u <username>
-#
-# Further information is available at
-#   http://www.earthsystemgrid.org//help/download-help.htm
-#
-##############################################################################
-
-##############################################################################
-#
-# Script defaults
-#
-
-# ESG_HOME should point to the directory containing ESG credentials.
-#   Default is $HOME/.esg.
-ESG_HOME=${ESG_HOME:-$HOME/.esg}
-ESG_CREDENTIALS=${X509_USER_PROXY:-$ESG_HOME/credentials.pem}
-ESG_CERT_DIR=${X509_CERT_DIR:-$ESG_HOME/certificates}
-COOKIE_JAR=$ESG_HOME/cookies
-CERT_EXPIRATION_WARNING=$((60 * 60 * 1))	#One hour (in seconds)
-
-# Configure checking of server SSL certificates.
-#   Disabling server certificate checking can resolve problems with myproxy
-#   servers being out of sync with datanodes.
-CHECK_SERVER_CERT=${CHECK_SERVER_CERT:-Yes}
-
-
-
-usage() {
-    echo "Usage: $(basename $0) [flags]"
-    echo "Flags is one of:"
-    sed -n '/^while getopts/,/^done/  s/^\([^)]*\)[^#]*#\(.*$\)/\1 \2/p' $0
-}
-#defaults
-debug=0
-clean_work=1
-
-#parse flags
-while getopts ':c:pdvqo:' OPT; do
-    case $OPT in
-    	c) ESG_CREDENTIALS="$OPTARG";;	#<cert> : use this certificate for authentication.
-        p) clean_work=0;;       #	: preserve data that failed checksum
-        o) output="$OPTARG";;   #<file>	: Write output for DML in the given file
-        d) debug=1;;            #	: display debug information
-        v) verbose=1;;          #       : be more verbose
-        q) quiet=1;;            #	: be less verbose
-        \?) echo "Unknown option '$OPTARG'" >&2 && usage && exit 1;;
-        \:) echo "Missing parameter for flag '$OPTARG'" >&2 && usage && exit 1;;
-    esac
-done
-shift $(($OPTIND - 1))
-
-if [[ "$output" ]]; then
-    #check and prepare the file
-    if [[ -f "$output" ]]; then
-        read -p "Overwrite existing file $output? (y/N) " answ
-        case $answ in y|Y|yes|Yes);; *) echo "Aborting then..."; exit 0;; esac
-    fi
-    : > "$output" || { echo "Can't write file $output"; break; }
-fi
-
-##############################################################################
-
-# Retrieve ESG credentials (not done yet)
-get_credentials() {
-    cat <<EOF
-Your download selection includes data secured using ESG
-certificate-based security.  In order to access the download URLs
-you must first obtain a credentials file from your home Gateway's
-MyProxy server at vetswebprod.ucar.edu:7512
-
-If you don't already have a myproxy client you can download the
-MyProxyLogon Java client from
-  http://www.earthsystemgrid.org//webstart/myProxyLogon/MyProxyLogon-ESG.jar
-
-Then execute it as follows:
- $ java -jar MyProxyLogon-ESG.jar -u <username> -h vetswebprod.ucar.edu -p 7512
-Further information is available at
-  http://www.earthsystemgrid.org//help/download-help.htm
-
-EOF
-	exit 1
-}
-
-# check the certificate validity
-check_cert() {
-    #chek openssl and certificate
-    if (which openssl &>/dev/null); then
-        if ! openssl x509 -checkend 0 -noout -in $ESG_CERT; then
-            echo "The Certificate has expired, please renew."
-            return 1
-        else
-            if ! openssl x509 -checkend $CERT_EXPIRATION_WARNING -noout -in $ESG_CERT; then
-                echo "The certificate expires in less than $((CERT_EXPIRATION_WARNING / 60 / 60)) hour(s), please renew."
-                return 2
-            fi
-        fi
-    fi
-}
-
-#
-# Detect ESG credentials
-#
-find_credentials() {
-
-    if [[ -f "$ESG_CREDENTIALS" ]]; then
-    	# file found, proceed.
-    	ESG_CERT="$ESG_CREDENTIALS"
-    	ESG_KEY="$ESG_CREDENTIALS"
-    elif [[ -f "$X509_USER_CERT" && -f "$X509_USER_KEY" ]]; then
-    	# second try, use these certificates.
-        ESG_CERT="$X509_USER_CERT"
-        ESG_KEY="$X509_USER_KEY"
-    else
-	    # If credentials are not present exit
-    	echo "No ESG Credentials found in $ESG_CREDENTIALS" >&2
-    	    get_credentials
-	fi
-
-
-    #chek openssl and certificate
-    if (which openssl &>/dev/null); then
-    	if ( openssl version | grep 'OpenSSL 1\.0' ); then
-        	echo '** WARNING: ESGF Host certificate checking might not be compatible with OpenSSL 1.0+'
-    	fi
-        check_cert || { (($?==1)); exit 1; }
-    fi
-    
-    if [[ $CHECK_SERVER_CERT == "Yes" ]]; then
-    	[[ -d "$ESG_CERT_DIR" ]] || { echo "CA certs not found. Aborting."; exit 1; }
-    	PKI_WGET_OPTS="--ca-directory=$ESG_CERT_DIR"
-    fi
-
-    #some wget version complain if there's no file present
-    [[ -f $COOKIE_JAR ]] || touch $COOKIE_JAR
-
-    PKI_WGET_OPTS="$PKI_WGET_OPTS --certificate=$ESG_CERT --private-key=$ESG_KEY --save-cookies=$COOKIE_JAR --load-cookies=$COOKIE_JAR"
-
-}
-
-check_chksum() {
-    local file="$1"
-    local chk_type=$2
-    local chk_value=$3
-    local local_chksum
-
-    case $chk_type in
-        md5) local_chksum=$(md5sum $file | cut -f1 -d" ");;
-        *) echo "Can't verify checksum." && return 0;;
-    esac
-
-    #verify
-    ((debug)) && echo "local:$local_chksum vs remote:$chk_value"
-    diff -q <(echo $local_chksum) <(echo $chk_value) >/dev/null
-}
-
-download() {
-    wget="wget -c $PKI_WGET_OPTS"
-    ((quiet)) && wget="$wget -q" || { ((!verbose)) && wget="$wget -nv"; }
-    
-    while read line
-    do
-        # read csv here document into proper variables
-        eval $(awk -F "' '" '{$0=substr($0,2,length($0)-2); $3=tolower($3); print "file=\""$1"\";url=\""$2"\";chksum_type=\""$3"\";chksum=\""$4"\""}' <(echo $line) )
-
-        #Process the file
-        echo -n "$file ..."
-
-        #are we just writing a file?
-        if [ "$output" ]; then
-            echo "$file - $url" >> $output
-            echo ""
-            continue
-        fi
-
-        while : ; do
-                #if we have the file, check if it's already processed.
-                [ -f $file ] && cached="$(grep $file $CACHE_FILE)" || unset cached
-
-                #check it wasn't modified
-                if [[ -n "$cached" && "$(stat -c %Y $file)" == $(echo "$cached" | cut -d ' ' -f2) ]]; then
-                    echo "Already downloaded and verified"
-                    break
-                fi
-
-                # (if we had the file size, we could check before trying to complete)
-                echo "Downloading"
-                $wget -O "$file" $url || { failed=1; break; }
-
-                #check if file is there
-                if [[ -f $file ]]; then
-                        ((debug)) && echo file found
-                        if ! check_chksum "$file" $chksum_type $chksum; then
-                                echo "  $chksum_type failed!"
-                                if ((clean_work)); then
-                                        rm $file
-                                        #try again
-                                        echo -n "  re-downloading..."
-                                        continue
-                                else
-                                        echo "  don't use -p or remove manually."
-                                fi
-                        else
-                                echo "  $chksum_type ok. done!"
-                                echo $file $(stat -c %Y $file) $chksum >> $CACHE_FILE
-                        fi
-                fi
-                #done!
-                break
-        done
-        
-        if ((failed)); then
-            echo "download failed"
-            # most common failure is certificate expiration, so check this
-            check_cert
-            unset failed
-        fi
-        
-    done <<EOF--dataset.file.url.chksum_type.chksum
-'ncl_ncarg-6.1.0.Linux_Debian_x86_64_gcc432.tar.gz' 'http://www.earthsystemgrid.org//download/fileTokenDownload.htm?fileAccessPointId=425ef002-12f9-4087-8df0-dfd60304469a&authzToken=3648d4cf-d81c-474d-9779-bd0d6f91b832&gateway=ESG-NCAR' '' ''
-'ncl_ncarg-6.1.0.Linux_Debian_x86_64_gcc445.tar.gz' 'http://www.earthsystemgrid.org//download/fileTokenDownload.htm?fileAccessPointId=afb26ae5-6a93-4801-b0fb-7bad630e922f&authzToken=c866c5c8-ea30-4682-b1ce-1040e2fa377c&gateway=ESG-NCAR' '' ''
-EOF--dataset.file.url.chksum_type.chksum
-
-}
-
-
-#
-# MAIN
-#
-echo "Running $(basename $0) version: $version"
-
-find_credentials
-#do we have old results? Create the file if not
-[ ! -f $CACHE_FILE ] && echo "#filename mtime checksum" > $CACHE_FILE
-
-download
-
-#remove duplicates (if any)
-{ rm $CACHE_FILE && tac | awk '!x[$1]++' | tac > $CACHE_FILE; } < $CACHE_FILE


Mime
View raw message