diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-05-20 15:23:58 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-24 00:27:57 -0400 |
| commit | 5c44b0cd308822caed3f4003d1752a3f0e9df92b (patch) | |
| tree | b658321e8b4740a9f29e0e1d1f0cf94a8e401b53 /meta-openstack/recipes-devtools/ruby | |
| parent | 0d658f5accb7faab1d95daa41502a26b84fac354 (diff) | |
| download | meta-cloud-services-5c44b0cd308822caed3f4003d1752a3f0e9df92b.tar.gz | |
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 <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/ruby')
| -rw-r--r-- | meta-openstack/recipes-devtools/ruby/net-ssh/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch | 32 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/ruby/net-ssh_git.bb | 27 |
2 files changed, 59 insertions, 0 deletions
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 @@ | |||
| 1 | From b0d2d6650bb4924f4dfc3b429835b9ba19f1067e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
| 3 | Date: Wed, 14 May 2014 09:29:35 -0400 | ||
| 4 | Subject: [PATCH] gemspec: don't force the use of gem-private_key.pem | ||
| 5 | |||
| 6 | This will have security implications but it doesn't affect | ||
| 7 | core functionality and allows the build to complete when | ||
| 8 | this certificate is not available. | ||
| 9 | |||
| 10 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
| 11 | --- | ||
| 12 | net-ssh.gemspec | 4 +++- | ||
| 13 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/net-ssh.gemspec b/net-ssh.gemspec | ||
| 16 | index edbbeaa..856bc1e 100644 | ||
| 17 | --- a/net-ssh.gemspec | ||
| 18 | +++ b/net-ssh.gemspec | ||
| 19 | @@ -180,7 +180,9 @@ Gem::Specification.new do |s| | ||
| 20 | s.require_paths = ["lib"] | ||
| 21 | s.rubyforge_project = "net-ssh" | ||
| 22 | s.rubygems_version = "1.8.23" | ||
| 23 | - s.signing_key = "/mnt/gem/gem-private_key.pem" | ||
| 24 | + if File.exists?("/mnt/gem/gem-private_key.pem") | ||
| 25 | + s.signing_key = "/mnt/gem/gem-private_key.pem" | ||
| 26 | + end | ||
| 27 | s.summary = "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol." | ||
| 28 | |||
| 29 | if s.respond_to? :specification_version then | ||
| 30 | -- | ||
| 31 | 1.8.3.2 | ||
| 32 | |||
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 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2014 Wind River Systems, Inc. | ||
| 3 | # | ||
| 4 | SUMMARY = "Ruby implementation of the SSH2 client protocol." | ||
| 5 | DESCRIPTION = "Net::SSH is a pure-Ruby implementation of the SSH2 \ | ||
| 6 | client protocol. It allows you to write programs that invoke and \ | ||
| 7 | interact with processes on remote servers, via SSH2." | ||
| 8 | |||
| 9 | LICENSE = "MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6c99c0cc0901fbc3607fe997f9898d69" | ||
| 11 | |||
| 12 | PR = "r0" | ||
| 13 | |||
| 14 | BPV = "2.9.1" | ||
| 15 | PV = "${BPV}" | ||
| 16 | SRCREV = "9f8607984d8e904f211cc5edb39ab2a2ca94008e" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | SRC_URI = " \ | ||
| 21 | git://github.com/net-ssh/net-ssh.git \ | ||
| 22 | file://gemspec-don-t-force-the-use-of-gem-private_key.pem.patch \ | ||
| 23 | " | ||
| 24 | |||
| 25 | inherit ruby | ||
| 26 | |||
| 27 | BBCLASSEXTEND = "native" | ||
