Sha256: ee122d169efc7eed4ee6dfaee610d00ab413a134d10cc82355fcde0372598558

Contents?: true

Size: 1.74 KB

Versions: 5

Compression:

Stored size: 1.74 KB

Contents

#
# Copyright:: Copyright (c) 2014 Opscode, 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.
#

#
# libyaml 0.1.5 fixes a security vulnerability to 0.1.4.
# Since the rubyinstaller.org doesn't release ruby when a dependency gets
# patched, we are manually patching the dependency until we get a new
# ruby release on windows.
# See: https://github.com/oneclick/rubyinstaller/issues/210
# This component should be removed when libyaml 0.1.5 ships with ruby builds
# of rubyinstaller.org
#
name "libyaml-windows"
default_version "0.1.6"

dependency "ruby-windows"

source :url => "http://packages.openknapsack.org/libyaml/libyaml-0.1.6-x86-windows.tar.lzma",
       :md5 => "8bb5d8e43cf18ec48b4751bdd0111c84"

build do
  temp_directory = File.join(cache_dir, "libyaml-cache")
  # First extract the tar file out of lzma archive.
  command "7z.exe x #{downloaded_file} -o#{temp_directory} -r -y"
  # Now extract the files out of tar archive.
  command "7z.exe x #{File.join(temp_directory, "libyaml-0.1.6-x86-windows.tar")} -o#{temp_directory} -r -y"
  # Now copy over libyaml-0-2.dll to the build dir
  command "cp #{File.join(temp_directory, "bin", "libyaml-0-2.dll")} #{File.join(install_dir, "embedded", "bin", "libyaml-0-2.dll")}"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omnibus-3.2.2 spec/data/complicated/config/software/libyaml-windows.rb
omnibus-3.2.1 spec/data/complicated/config/software/libyaml-windows.rb
omnibus-3.2.0 spec/data/complicated/config/software/libyaml-windows.rb
omnibus-3.2.0.rc.3 spec/data/complicated/config/software/libyaml-windows.rb
omnibus-3.2.0.rc.2 spec/data/complicated/config/software/libyaml-windows.rb