Commit accf3b39a32575dc9ef126d444b3b25c54148e4f

Authored by Jacob Vosmaer
1 parent 1ed69564

Add git software definition

config/projects/gitlab.rb
... ... @@ -28,6 +28,7 @@ build_iteration 1
28 28 # creates required build directories
29 29 dependency "preparation"
30 30  
  31 +dependency "git"
31 32 dependency "gitlab-shell"
32 33 dependency "gitlab-webui"
33 34 dependency "chef-gem"
... ...
config/software/git.rb 0 → 100644
... ... @@ -0,0 +1,33 @@
  1 +name "git"
  2 +version "1.0.0"
  3 +
  4 +dependency "zlib"
  5 +dependency "openssl"
  6 +dependency "curl"
  7 +
  8 +source :url => "https://git-core.googlecode.com/files/git-1.8.5.3.tar.gz",
  9 + :md5 => "57b966065882f83ef5879620a1e329ca"
  10 +
  11 +relative_path 'git-1.8.5.3'
  12 +
  13 +env = {
  14 + "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
  15 + "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
  16 + "LD_RUN_PATH" => "#{install_dir}/embedded/lib",
  17 + "NO_PERL" => "1",
  18 + "NO_EXPAT" => "1",
  19 + "NO_TCLTK" => "1",
  20 + "NO_GETTEXT" => "1",
  21 + "NO_PYTHON" => "1"
  22 +}
  23 +
  24 +build do
  25 + command ["./configure",
  26 + "--prefix=#{install_dir}/embedded",
  27 + "--with-curl=#{install_dir}/embedded",
  28 + "--with-ssl=#{install_dir}/embedded",
  29 + "--with-zlib=#{install_dir}/embedded"].join(" "), :env => env
  30 +
  31 + command "make -j #{max_build_jobs}", :env => env
  32 + command "make install"
  33 +end
... ...