Sha256: 5efa978cfc3472e9f725e11305c9dfcf62338464a86e54959c900c9a6c7d44ed

Contents?: true

Size: 1.95 KB

Versions: 8

Compression:

Stored size: 1.95 KB

Contents

#
# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name "ohai"
if platform == 'windows'
  dependency "ruby-windows" #includes rubygems
  dependency "ruby-windows-devkit"
else
  dependency "ruby"
  dependency "rubygems"
  dependency "yajl"
end

dependency "bundler"

default_version "master"

source :git => "git://github.com/opscode/ohai"

relative_path "ohai"

env =
  case platform
  when "solaris2"
    {
      "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
      "LDFLAGS" => "-R#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include"
    }
  when "aix"
    {
      "LDFLAGS" => "-Wl,-blibpath:#{install_dir}/embedded/lib:/usr/lib:/lib -L#{install_dir}/embedded/lib",
      "CFLAGS" => "-I#{install_dir}/embedded/include"
    }
  else
    {
      "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
      "LDFLAGS" => "-Wl,-rpath #{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include"
    }
  end

build do

  # install chef first so that ohai gets installed into /opt/chef/bin/ohai
  rake "gem", :env => env.merge({"PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}"})

  gem ["install pkg/ohai*.gem",
      "-n #{install_dir}/bin",
      "--no-rdoc --no-ri"].join(" "), :env => env.merge({"PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}"})

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
omnibus-3.2.2 spec/data/complicated/config/software/ohai.rb
omnibus-3.2.1 spec/data/complicated/config/software/ohai.rb
omnibus-3.2.0 spec/data/complicated/config/software/ohai.rb
omnibus-3.2.0.rc.3 spec/data/complicated/config/software/ohai.rb
omnibus-3.2.0.rc.2 spec/data/complicated/config/software/ohai.rb
omnibus-3.2.0.rc.1 spec/data/complicated/config/software/ohai.rb
omnibus-3.1.1 spec/data/complicated/config/software/ohai.rb
omnibus-3.1.0 spec/data/complicated/config/software/ohai.rb