2016-08-08 09:23:12 +00:00
|
|
|
# encoding: utf-8
|
2016-04-18 03:30:50 +00:00
|
|
|
#
|
2018-10-10 12:17:10 +00:00
|
|
|
# Copyright:: Copyright 2016-2018, Chef Software Inc.
|
2016-08-08 09:23:12 +00:00
|
|
|
# License:: Apache License, Version 2.0
|
2016-04-18 03:30:50 +00:00
|
|
|
#
|
2016-08-08 09:23:12 +00:00
|
|
|
# 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
|
2016-04-18 03:30:50 +00:00
|
|
|
#
|
2016-08-08 09:23:12 +00:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2016-09-21 17:58:54 +00:00
|
|
|
require_relative '../../../lib/inspec/version.rb'
|
|
|
|
|
2016-08-08 09:23:12 +00:00
|
|
|
name 'inspec'
|
2016-08-08 17:41:02 +00:00
|
|
|
friendly_name 'InSpec'
|
2016-08-08 09:23:12 +00:00
|
|
|
maintainer 'Chef Software, Inc <maintainers@chef.io>'
|
2018-10-10 12:17:10 +00:00
|
|
|
homepage 'https://github.com/inspec/inspec'
|
2016-04-18 03:30:50 +00:00
|
|
|
|
2016-08-08 09:23:12 +00:00
|
|
|
license 'Apache-2.0'
|
|
|
|
license_file '../LICENSE'
|
2016-04-18 03:30:50 +00:00
|
|
|
|
2016-08-08 17:41:02 +00:00
|
|
|
# Defaults to C:/opscode/inspec on Windows
|
|
|
|
# and /opt/inspec on all other platforms.
|
|
|
|
if windows?
|
|
|
|
install_dir "#{default_root}/opscode/#{name}"
|
|
|
|
else
|
|
|
|
install_dir "#{default_root}/#{name}"
|
|
|
|
end
|
2016-04-18 03:30:50 +00:00
|
|
|
|
2016-09-21 17:58:54 +00:00
|
|
|
build_version Inspec::VERSION
|
2016-04-18 03:30:50 +00:00
|
|
|
build_iteration 1
|
|
|
|
|
2018-12-21 03:17:07 +00:00
|
|
|
override 'ruby', version: '2.5.3'
|
2017-11-03 20:23:56 +00:00
|
|
|
# RubyGems 2.7.0 caused issues in the Jenkins pipelines, trouble installing bundler.
|
|
|
|
# This issue is not evident in 2.6.x, hence the pin.
|
|
|
|
override 'rubygems', version: '2.6.14'
|
2017-03-03 21:42:39 +00:00
|
|
|
|
2018-05-16 19:04:23 +00:00
|
|
|
# grab the current train release from rubygems.org
|
|
|
|
train_stable = /^train \((.*)\)/.match(`gem list ^train$ --remote`)[1]
|
|
|
|
override 'train', version: "v#{train_stable}"
|
|
|
|
|
2016-08-08 09:23:12 +00:00
|
|
|
dependency 'preparation'
|
2016-08-08 17:41:02 +00:00
|
|
|
|
2016-08-08 09:23:12 +00:00
|
|
|
dependency 'inspec'
|
2016-04-18 03:30:50 +00:00
|
|
|
|
2016-08-08 17:41:02 +00:00
|
|
|
# Mark all directories world readable.
|
|
|
|
dependency 'gem-permissions'
|
|
|
|
# Redirect all gem bat files and rb files to point to embedded ruby.
|
|
|
|
dependency 'shebang-cleanup'
|
|
|
|
# Ensure our SSL cert files are accessible to ruby.
|
|
|
|
dependency 'openssl-customization'
|
|
|
|
# Remove all .dll.a and .a files needed for static linkage.
|
|
|
|
dependency 'clean-static-libs'
|
|
|
|
|
2018-10-29 20:01:45 +00:00
|
|
|
dependency 'ruby-cleanup'
|
|
|
|
|
2016-08-08 17:41:02 +00:00
|
|
|
package :rpm do
|
|
|
|
signing_passphrase ENV['OMNIBUS_RPM_SIGNING_PASSPHRASE']
|
2018-10-10 12:17:10 +00:00
|
|
|
unless rhel? && platform_version.satisfies?('< 6')
|
|
|
|
compression_level 1
|
|
|
|
compression_type :xz
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
package :deb do
|
|
|
|
compression_level 1
|
|
|
|
compression_type :xz
|
2016-08-08 17:41:02 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
package :pkg do
|
|
|
|
identifier 'com.getchef.pkg.inspec'
|
|
|
|
signing_identity 'Developer ID Installer: Chef Software, Inc. (EU3VF8YLX2)'
|
|
|
|
end
|
|
|
|
compress :dmg
|
|
|
|
|
|
|
|
package :msi do
|
|
|
|
fast_msi true
|
|
|
|
upgrade_code 'DFCD452F-31E5-4236-ACD1-253F4720250B'
|
|
|
|
wix_light_extension 'WixUtilExtension'
|
2017-07-24 20:02:43 +00:00
|
|
|
signing_identity 'E05FF095D07F233B78EB322132BFF0F035E11B5B', machine_store: true
|
2016-08-08 17:41:02 +00:00
|
|
|
end
|
|
|
|
|
2016-08-08 09:23:12 +00:00
|
|
|
exclude '**/.git'
|
|
|
|
exclude '**/bundler/git'
|