...
 
Commits (3)
#
# Copyright:: Copyright (c) 2019 Cinc Project
# 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 "chef-zero"
default_version "stable/cinc"
license "Apache-2.0"
license_file "LICENSE"
source git: "https://gitlab.com/cinc-project/chef-zero.git"
relative_path "chef-zero"
dependency "ruby"
dependency "rubygems"
dependency "bundler"
build do
env = with_standard_compiler_flags(with_embedded_path)
bundle "install --without development chef pedant debug test", env: env
gem "build chef-zero.gemspec", env: env
gem "install chef-zero*.gem" \
" --no-document", env: env
end
#
# Copyright 2012-2019, Chef Software Inc.
# Copyright 2019, Cinc Project
# Copyright 2019-2020, Cinc Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -54,7 +54,6 @@ dependency "bundler"
dependency "ohai"
dependency "appbundler"
dependency "libarchive" # for archive resource
dependency "chef-zero"
build do
env = with_standard_compiler_flags(with_embedded_path)
......@@ -92,7 +91,7 @@ build do
block do
if Dir.exist?("#{project_dir}/chef-bin")
# Chef >= 15
appbundle "chef", lockdir: project_dir, gem: "inspec-core-bin", without: excluded_groups, env: env
appbundle "chef", lockdir: project_dir, gem: "cinc-auditor-core-bin", without: excluded_groups, env: env
appbundle "chef", lockdir: project_dir, gem: "chef-bin", without: excluded_groups, env: env
appbundle "chef", lockdir: project_dir, gem: "chef", without: excluded_groups, env: env
appbundle "chef", lockdir: project_dir, gem: "ohai", without: excluded_groups, env: env
......@@ -114,7 +113,7 @@ build do
end
copy "#{project_dir}/cinc/cinc-wrapper", "#{install_dir}/bin/"
%w(chef-apply chef-client chef-shell chef-solo).each do |bin|
%w(chef-apply chef-client chef-shell chef-solo inspec).each do |bin|
link "#{install_dir}/bin/cinc-wrapper", "#{install_dir}/bin/#{bin}"
end
end