From 4395098476ce112d65461ddc8566f39fa2d3469c Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 24 Jan 2014 11:24:52 +0100 Subject: [PATCH] Add gitlab-shell software definition --- config/software/gitlab-shell.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) create mode 100644 config/software/gitlab-shell.rb diff --git a/config/software/gitlab-shell.rb b/config/software/gitlab-shell.rb new file mode 100644 index 0000000..fd493b9 --- /dev/null +++ b/config/software/gitlab-shell.rb @@ -0,0 +1,13 @@ +name "gitlab-shell" +version "v1.8.0" + +dependency "ruby" +dependency "rsync" + +source :git => "https://gitlab.com/gitlab-org/gitlab-shell.git" + +build do + command "sed -i 's|^#!/usr/bin/env ruby|#!#{install_dir}/embedded/bin/ruby|' $(grep -r -l '#!/usr/bin/env ruby' .)" + command "mkdir -p #{install_dir}/embedded/services/gitlab-shell" + command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/services/gitlab-shell/" +end -- libgit2 0.21.2