summaryrefslogtreecommitdiff
path: root/strata/chef/net-ssh-gateway-1.2.0.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-03 17:51:38 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-03 17:51:38 +0100
commitfda6e93cb5cc1b11b06d35b8468ba7564d3af8cc (patch)
treec653b694c4880df8d378986e830cdd65de23a0ef /strata/chef/net-ssh-gateway-1.2.0.morph
parentad4a5dfa3ec62e6717a11d51e0ea0aaca55a5697 (diff)
downloaddefinitions-baserock/sam/chef-from-git.tar.gz
If you deploy the chef system now and then 'gem install erubis' you seem to end up with a working Chef. Suksess!
Diffstat (limited to 'strata/chef/net-ssh-gateway-1.2.0.morph')
-rw-r--r--strata/chef/net-ssh-gateway-1.2.0.morph12
1 files changed, 10 insertions, 2 deletions
diff --git a/strata/chef/net-ssh-gateway-1.2.0.morph b/strata/chef/net-ssh-gateway-1.2.0.morph
index c6f1e236..9cb0c365 100644
--- a/strata/chef/net-ssh-gateway-1.2.0.morph
+++ b/strata/chef/net-ssh-gateway-1.2.0.morph
@@ -6,9 +6,17 @@ products:
include:
- usr/lib/ruby/gems/2.0.0/doc/.*
configure-commands:
-- ruby ./setup.rb config --prefix="$PREFIX"
+# FIXME: this is a very simplistic way of disabling signing, the gemspec
+# is arbitrary Ruby code and these regexps are certainly inadequate, although
+# they tend to work. Better to fix `gem` so that it will build an unsigned
+# Gem.
+- sed -e '/signing_key =/ d' -e '/cert_chain =/ d' -i net-ssh-gateway.gemspec
+build-commands:
+- gem build net-ssh-gateway.gemspec
install-commands:
-- ruby ./setup.rb install --prefix="$DESTDIR"
+- mkdir -p "$DESTDIR/$PREFIX/lib/ruby/gems/2.0.0"
+- gem install --install-dir "$DESTDIR/$PREFIX/lib/ruby/gems/2.0.0" --bindir "$DESTDIR/$PREFIX/bin"
+ --ignore-dependencies --local ./net-ssh-gateway-1.2.0.gem
x-build-dependencies-rubygem: {}
x-runtime-dependencies-rubygem:
net-ssh: 2.9.1