From 5c44b0cd308822caed3f4003d1752a3f0e9df92b Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 20 May 2014 15:23:58 -0400 Subject: Ruby/chef solo: Add recipes-devtools/ruby/net-ssh_git.bb Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. It allows you to write programs that invoke and interact with processes on remote servers, via SSH2. Signed-off-by: Mark Asselstine Signed-off-by: Amy Fong --- ...on-t-force-the-use-of-gem-private_key.pem.patch | 32 ++++++++++++++++++++++ .../recipes-devtools/ruby/net-ssh_git.bb | 27 ++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 meta-openstack/recipes-devtools/ruby/net-ssh/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch create mode 100644 meta-openstack/recipes-devtools/ruby/net-ssh_git.bb (limited to 'meta-openstack/recipes-devtools/ruby') diff --git a/meta-openstack/recipes-devtools/ruby/net-ssh/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch b/meta-openstack/recipes-devtools/ruby/net-ssh/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch new file mode 100644 index 0000000..ff2b35a --- /dev/null +++ b/meta-openstack/recipes-devtools/ruby/net-ssh/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch @@ -0,0 +1,32 @@ +From b0d2d6650bb4924f4dfc3b429835b9ba19f1067e Mon Sep 17 00:00:00 2001 +From: Mark Asselstine +Date: Wed, 14 May 2014 09:29:35 -0400 +Subject: [PATCH] gemspec: don't force the use of gem-private_key.pem + +This will have security implications but it doesn't affect +core functionality and allows the build to complete when +this certificate is not available. + +Signed-off-by: Mark Asselstine +--- + net-ssh.gemspec | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/net-ssh.gemspec b/net-ssh.gemspec +index edbbeaa..856bc1e 100644 +--- a/net-ssh.gemspec ++++ b/net-ssh.gemspec +@@ -180,7 +180,9 @@ Gem::Specification.new do |s| + s.require_paths = ["lib"] + s.rubyforge_project = "net-ssh" + s.rubygems_version = "1.8.23" +- s.signing_key = "/mnt/gem/gem-private_key.pem" ++ if File.exists?("/mnt/gem/gem-private_key.pem") ++ s.signing_key = "/mnt/gem/gem-private_key.pem" ++ end + s.summary = "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol." + + if s.respond_to? :specification_version then +-- +1.8.3.2 + diff --git a/meta-openstack/recipes-devtools/ruby/net-ssh_git.bb b/meta-openstack/recipes-devtools/ruby/net-ssh_git.bb new file mode 100644 index 0000000..f2591ff --- /dev/null +++ b/meta-openstack/recipes-devtools/ruby/net-ssh_git.bb @@ -0,0 +1,27 @@ +# +# Copyright (C) 2014 Wind River Systems, Inc. +# +SUMMARY = "Ruby implementation of the SSH2 client protocol." +DESCRIPTION = "Net::SSH is a pure-Ruby implementation of the SSH2 \ +client protocol. It allows you to write programs that invoke and \ +interact with processes on remote servers, via SSH2." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6c99c0cc0901fbc3607fe997f9898d69" + +PR = "r0" + +BPV = "2.9.1" +PV = "${BPV}" +SRCREV = "9f8607984d8e904f211cc5edb39ab2a2ca94008e" + +S = "${WORKDIR}/git" + +SRC_URI = " \ + git://github.com/net-ssh/net-ssh.git \ + file://gemspec-don-t-force-the-use-of-gem-private_key.pem.patch \ + " + +inherit ruby + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf