├── CODEOWNERS
├── docker
├── .gitignore
├── .rspec
├── Gemfile
├── distelli-manifest.yml
├── puppet-bolt
│ ├── spec
│ │ └── dockerfile_spec.rb
│ └── Dockerfile
├── Makefile
└── README.md
├── ext
├── project_data.yaml
└── build_defaults.yaml
├── resources
├── files
│ ├── paths.d
│ │ └── 50-bolt
│ ├── posix
│ │ └── bolt_env_wrapper
│ ├── windows
│ │ ├── PuppetBolt
│ │ │ └── PuppetBolt.psd1
│ │ └── bolt.bat
│ └── install-tarballs
│ │ ├── remove_all.rb
│ │ └── extract_all.rb
├── windows
│ └── wix
│ │ ├── icon
│ │ └── puppet.ico
│ │ ├── ui
│ │ ├── bitmaps
│ │ │ ├── up.ico
│ │ │ ├── info.ico
│ │ │ ├── new.ico
│ │ │ ├── bannrbmp.bmp
│ │ │ ├── dlgbmp-pe.bmp
│ │ │ ├── exclamic.ico
│ │ │ └── dlgbmp-foss.bmp
│ │ ├── PuppetBoltWarningDlg.wxs
│ │ ├── PuppetBoltInstallDirDlg.wxs
│ │ ├── PuppetBoltLicenseAgreementDlg.wxs.erb
│ │ ├── PuppetBoltWelcomeDlg.wxs
│ │ └── WixUI_PuppetBoltInstallDir.wxs
│ │ ├── icon.wxs.erb
│ │ ├── include
│ │ └── textstyles.wxi
│ │ ├── componentgroup.wxs.erb
│ │ ├── wixvariables.wxs.erb
│ │ ├── directorylist.wxs.erb
│ │ ├── project.wxs.erb
│ │ ├── sequences.wxs.erb
│ │ ├── properties.wxs.erb
│ │ ├── customactions.wxs.erb
│ │ ├── shortcuts.wxs.erb
│ │ ├── registryEntries.wxs.erb
│ │ ├── powershell.wxs.erb
│ │ ├── tarball.vbs
│ │ └── license
│ │ └── LICENSE.rtf
├── rubygems-prune
│ ├── rubygems_plugin.rb
│ └── rubygems
│ │ └── commands
│ │ └── prune_command.rb
├── redhat
│ ├── pe-plan-executor.sysconfig
│ ├── pe-plan-executor.logrotate
│ └── pe-plan-executor.init
└── systemd
│ ├── pe-plan-executor.logrotate
│ └── pe-plan-executor.service
├── configs
├── platforms
│ ├── debian-12-amd64.rb
│ ├── osx-11-x86_64.rb
│ ├── osx-12-x86_64.rb
│ ├── fedora-40-x86_64.rb
│ ├── osx-13-x86_64.rb
│ ├── osx-14-x86_64.rb
│ ├── el-7-x86_64.rb
│ ├── el-8-x86_64.rb
│ ├── el-9-x86_64.rb
│ ├── sles-12-x86_64.rb
│ ├── sles-15-x86_64.rb
│ ├── ubuntu-18.04-amd64.rb
│ ├── debian-11-amd64.rb
│ ├── ubuntu-20.04-amd64.rb
│ ├── ubuntu-22.04-amd64.rb
│ └── windows-2012r2-x64.rb
├── components
│ ├── bolt.json
│ ├── puppet-runtime.json
│ ├── gem-prune.rb
│ ├── bolt-create-ruby-tarballs.rb
│ ├── bolt-runtime.rb
│ └── bolt.rb
└── projects
│ └── puppet-bolt.rb
├── .gitignore
├── Rakefile
├── Gemfile
├── README.md
├── generate.rb
└── LICENSE
/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @puppetlabs/skeletor
2 |
--------------------------------------------------------------------------------
/docker/.gitignore:
--------------------------------------------------------------------------------
1 | TEST-rspec.xml
2 |
--------------------------------------------------------------------------------
/ext/project_data.yaml:
--------------------------------------------------------------------------------
1 | build_defaults.yaml
--------------------------------------------------------------------------------
/resources/files/paths.d/50-bolt:
--------------------------------------------------------------------------------
1 | /opt/puppetlabs/bin
2 |
--------------------------------------------------------------------------------
/configs/platforms/debian-12-amd64.rb:
--------------------------------------------------------------------------------
1 | platform "debian-12-amd64" do |plat|
2 | plat.inherit_from_default
3 | end
--------------------------------------------------------------------------------
/configs/platforms/osx-11-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "osx-11-x86_64" do |plat|
2 | plat.inherit_from_default
3 | end
4 |
--------------------------------------------------------------------------------
/configs/platforms/osx-12-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "osx-12-x86_64" do |plat|
2 | plat.inherit_from_default
3 | end
4 |
--------------------------------------------------------------------------------
/configs/platforms/fedora-40-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform 'fedora-40-x86_64' do |plat|
2 | plat.inherit_from_default
3 | end
--------------------------------------------------------------------------------
/configs/components/bolt.json:
--------------------------------------------------------------------------------
1 | {"url":"https://github.com/puppetlabs/bolt.git","ref":"b47e2057ea70fc64412e3465493fa043e650b9e1"}
2 |
--------------------------------------------------------------------------------
/resources/windows/wix/icon/puppet.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/icon/puppet.ico
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/*
2 | output/*
3 | .bundle
4 | Gemfile.lock
5 | vanagon_hosts.log
6 | ext/packaging/*
7 | ext/build_metadata*.json
8 |
--------------------------------------------------------------------------------
/docker/.rspec:
--------------------------------------------------------------------------------
1 | --require pupperware/spec_helper
2 | --format RspecJunitFormatter
3 | --out TEST-rspec.xml
4 | --format documentation
5 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/up.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/up.ico
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/info.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/info.ico
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/new.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/new.ico
--------------------------------------------------------------------------------
/resources/rubygems-prune/rubygems_plugin.rb:
--------------------------------------------------------------------------------
1 | require 'rubygems/command_manager'
2 |
3 | Gem::CommandManager.instance.register_command :prune
4 |
--------------------------------------------------------------------------------
/resources/redhat/pe-plan-executor.sysconfig:
--------------------------------------------------------------------------------
1 | # You may specify parameters to the PE Plan Executor here
2 | #PE_PLAN_EXECUTOR_OPTIONS=--loglevel=debug
3 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/bannrbmp.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/bannrbmp.bmp
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/dlgbmp-pe.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/dlgbmp-pe.bmp
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/exclamic.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/exclamic.ico
--------------------------------------------------------------------------------
/configs/components/puppet-runtime.json:
--------------------------------------------------------------------------------
1 | {"location":"https://builds.delivery.puppetlabs.net/puppet-runtime/202505060/artifacts/","version":"202505060"}
2 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/bitmaps/dlgbmp-foss.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/puppetlabs/bolt-vanagon/main/resources/windows/wix/ui/bitmaps/dlgbmp-foss.bmp
--------------------------------------------------------------------------------
/configs/platforms/osx-13-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform 'osx-13-x86_64' do |plat|
2 | plat.inherit_from_default
3 | plat.output_dir File.join('apple', '13', 'puppet8', 'x86_64')
4 | end
--------------------------------------------------------------------------------
/configs/platforms/osx-14-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform 'osx-14-x86_64' do |plat|
2 | plat.inherit_from_default
3 | plat.output_dir File.join('apple', '14', 'puppet8', 'x86_64')
4 | end
--------------------------------------------------------------------------------
/configs/platforms/el-7-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "el-7-x86_64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with("yum install -y #{packages.join(' ')}")
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/el-8-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "el-8-x86_64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with("yum install -y #{packages.join(' ')}")
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/el-9-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "el-9-x86_64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with("yum install -y #{packages.join(' ')}")
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/sles-12-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "sles-12-x86_64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with("zypper -n install -y #{packages.join(' ')}")
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/sles-15-x86_64.rb:
--------------------------------------------------------------------------------
1 | platform "sles-15-x86_64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with("zypper -n install -y #{packages.join(' ')}")
5 | end
6 |
--------------------------------------------------------------------------------
/docker/Gemfile:
--------------------------------------------------------------------------------
1 | source ENV['GEM_SOURCE'] || "https://rubygems.org"
2 |
3 | gem 'rspec'
4 | gem 'rspec_junit_formatter'
5 | gem 'pupperware',
6 | :git => 'https://github.com/puppetlabs/pupperware.git',
7 | :ref => 'main',
8 | :glob => 'gem/*.gemspec'
9 |
--------------------------------------------------------------------------------
/configs/platforms/ubuntu-18.04-amd64.rb:
--------------------------------------------------------------------------------
1 | platform "ubuntu-18.04-amd64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/debian-11-amd64.rb:
--------------------------------------------------------------------------------
1 | platform "debian-11-amd64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/ubuntu-20.04-amd64.rb:
--------------------------------------------------------------------------------
1 | platform "ubuntu-20.04-amd64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
5 | end
6 |
--------------------------------------------------------------------------------
/configs/platforms/ubuntu-22.04-amd64.rb:
--------------------------------------------------------------------------------
1 | platform "ubuntu-22.04-amd64" do |plat|
2 | plat.inherit_from_default
3 | packages = %w(git)
4 | plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
5 | end
6 |
--------------------------------------------------------------------------------
/configs/components/gem-prune.rb:
--------------------------------------------------------------------------------
1 | component 'gem-prune' do |pkg, settings, platform|
2 | pkg.build_requires 'bolt-runtime'
3 |
4 | pkg.add_source('file://resources/rubygems-prune')
5 |
6 | pkg.build do
7 | "GEM_PATH=\"#{settings[:gem_home]}\" RUBYOPT=\"-Irubygems-prune\" #{settings[:host_gem]} prune"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/docker/distelli-manifest.yml:
--------------------------------------------------------------------------------
1 | pe-and-platform/puppet-bolt:
2 | PreBuild:
3 | - make lint
4 | Build:
5 | - make build PUPPERWARE_ANALYTICS_STREAM=production
6 | - make test
7 | AfterBuildSuccess:
8 | - docker login -u "$DISTELLI_DOCKER_USERNAME" -p "$DISTELLI_DOCKER_PW" "$DISTELLI_DOCKER_ENDPOINT"
9 | - make publish
10 |
--------------------------------------------------------------------------------
/resources/systemd/pe-plan-executor.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/puppetlabs/plan-executor/*.log {
2 | daily
3 | missingok
4 | rotate 30
5 | compress
6 | notifempty
7 | sharedscripts
8 | postrotate
9 | systemctl is-active --quiet pe-plan-executor.service && systemctl kill --signal=HUP --kill-who=main pe-plan-executor.service
10 | endscript
11 | }
12 |
--------------------------------------------------------------------------------
/resources/redhat/pe-plan-executor.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/puppetlabs/plan-executor/*.log {
2 | daily
3 | missingok
4 | rotate 30
5 | compress
6 | notifempty
7 | sharedscripts
8 | postrotate
9 | if [ -s /var/run/puppetlabs/plan-executor/plan-executor.pid ]; then kill -HUP `cat /var/run/puppetlabs/plan-executor/plan-executor.pid`; fi
10 | endscript
11 | }
12 |
--------------------------------------------------------------------------------
/resources/windows/wix/icon.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/resources/windows/wix/include/textstyles.wxi:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | require 'packaging'
2 | Pkg::Util::RakeUtils.load_packaging_tasks
3 |
4 | namespace :package do
5 | desc "Bootstrap isn't needed since we're using packaging as a gem"
6 | task :bootstrap do
7 | puts "this method isn't needed since we're using packaging as a gem"
8 | end
9 | desc "Implode isn't needed since we're using packaging as a gem"
10 | task :implode do
11 | puts "this method isn't needed since we're using packaging as a gem"
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/ext/build_defaults.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | project: 'puppet-bolt'
3 | gem_name: 'bolt'
4 | build_gem: TRUE
5 | sign_tar: FALSE
6 | vanagon_project: TRUE
7 | repo_name: 'puppet-enterprise-tools'
8 | nonfinal_repo_name: 'puppet-nightly'
9 | build_tar: FALSE
10 | deb_targets: 'xenial-amd64 bionic-amd64'
11 | rpm_targets: 'el-6-x86_64 el-7-x86_64 el-8-x86_64 sles-12-x86_64'
12 | osx_signing_cert: "Developer ID Installer: PUPPET LABS, INC. (VKGLGN2B6Y)"
13 | osx_signing_keychain: "/Users/jenkins/Library/Keychains/signing.keychain"
14 | osx_signing_server: 'osx-signer.delivery.puppetlabs.net'
15 |
--------------------------------------------------------------------------------
/resources/files/posix/bolt_env_wrapper:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # avoid influences from already pre-configured other ruby environments
4 | env \
5 | -u GEM_HOME \
6 | -u GEM_PATH \
7 | -u DLN_LIBRARY_PATH \
8 | -u RUBYLIB \
9 | -u RUBYLIB_PREFIX \
10 | -u RUBYOPT \
11 | -u RUBYPATH \
12 | -u RUBYSHELL \
13 | -u LD_LIBRARY_PATH \
14 | -u LD_PRELOAD \
15 | BOLT_ORIG_GEM_PATH="$GEM_PATH" \
16 | BOLT_ORIG_GEM_HOME="$GEM_HOME" \
17 | BOLT_ORIG_RUBYLIB="$RUBYLIB" \
18 | BOLT_ORIG_RUBYLIB_PREFIX="$RUBYLIB_PREFIX" \
19 | BOLT_ORIG_RUBYOPT="$RUBYOPT" \
20 | BOLT_ORIG_RUBYPATH="$RUBYPATH" \
21 | BOLT_ORIG_RUBYSHELL="$RUBYSHELL" \
22 | /opt/puppetlabs/bolt/bin/bolt "$@"
23 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | def location_for(place)
4 | if place =~ /^(git[:@][^#]*)#(.*)/
5 | [{ :git => $1, :branch => $2, :require => false }]
6 | elsif place =~ /^file:\/\/(.*)/
7 | ['>= 0', { :path => File.expand_path($1), :require => false }]
8 | elsif place =~ /(\d+\.\d+\.\d+)/
9 | [ place, { :require => false }]
10 | end
11 | end
12 |
13 | gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'] || "~> 0.7")
14 | gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || "~> 0.1")
15 | gem 'vanagon', *location_for(ENV['VANAGON_LOCATION'] || '~> 0.24')
16 | gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.105')
17 | gem 'json'
18 | gem 'rake'
19 |
--------------------------------------------------------------------------------
/resources/systemd/pe-plan-executor.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=PE Plan Executor
3 | After=syslog.target network.target
4 |
5 | [Service]
6 | User=pe-bolt-server
7 | Group=pe-bolt-server
8 | EnvironmentFile=-/etc/sysconfig/pe-plan-executor-service
9 | EnvironmentFile=-/etc/default/pe-plan-executor-service
10 | Environment=GEM_PATH=/opt/puppetlabs/server/apps/bolt-server/lib/ruby:/opt/puppetlabs/puppet/lib/ruby/gems/2.5.0:/opt/puppetlabs/puppet/lib/ruby/vendor_gems
11 | ExecStart=/opt/puppetlabs/server/apps/bolt-server/bin/puma -C /opt/puppetlabs/server/apps/bolt-server/config/plan_executor_config.rb -e production
12 | Restart=always
13 | #set default privileges to -rw-r-----
14 | UMask=027
15 | KillMode=process
16 |
17 | [Install]
18 | WantedBy=multi-user.target
19 |
--------------------------------------------------------------------------------
/resources/files/windows/PuppetBolt/PuppetBolt.psd1:
--------------------------------------------------------------------------------
1 | @{
2 | ModuleToProcess = 'PuppetBolt.psm1'
3 | ModuleVersion = '0.1.0'
4 | GUID = 'CF5DDF2B-F69B-4A2B-B7E4-B9A981D7415D'
5 | Author = "Puppet, Inc"
6 | CompanyName = "Puppet, Inc"
7 | Copyright = '(c) 2017 Puppet, Inc. All rights reserved'
8 | CmdletsToExport = @()
9 | VariablesToExport = @()
10 | AliasesToExport = @()
11 | PrivateData = @{
12 | PSData = @{
13 | # Tags = @()
14 | LicenseUri = 'https://github.com/puppetlabs/bolt/blob/main/LICENSE'
15 | ProjectUri = 'https://github.com/puppetlabs/bolt'
16 | # IconUri = ''
17 | ReleaseNotes = 'https://puppet.com/docs/bolt/latest/bolt_release_notes.html'
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/resources/files/install-tarballs/remove_all.rb:
--------------------------------------------------------------------------------
1 | require 'pathname'
2 | require 'fileutils'
3 |
4 | script_dir = __dir__
5 | install_dir = File.expand_path(File.join(script_dir, '..', '..'))
6 |
7 | def logmessage(message)
8 | puts message
9 | end
10 |
11 | def ruby_api_version(ruby_version)
12 | gem_ver = Gem::Version.new(ruby_version)
13 | gem_ver.segments[0..1].join('.') + '.0'
14 | end
15 |
16 | # Remove the ruby and puppet cache, but not the actual runtime for the ruby we're _actually_ using
17 | # right now. We need that!
18 | dirs_to_delete = ["lib/ruby/gems"]
19 |
20 | dirs_to_delete.each { |dir| logmessage("'#{dir}' is scheduled for deletion") }
21 | dirs_to_delete.each do |dir|
22 | absolute_dir = File.join(install_dir, dir)
23 | logmessage("Attempting to delete '#{absolute_dir}'...")
24 | FileUtils.rm_rf(absolute_dir)
25 | end
26 |
--------------------------------------------------------------------------------
/resources/files/windows/bolt.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | REM This is the parent directory of the directory containing this script (resolves to :install_root/Bolt)
3 | SET BOLT_BASEDIR=%~dp0..
4 | REM Avoid the nasty \..\ littering the paths.
5 | SET BOLT_BASEDIR=%BOLT_BASEDIR:\bin\..=%
6 |
7 | REM Add bolt's bindirs to the PATH
8 | SET PATH=%BOLT_BASEDIR%\bin;%PATH%
9 |
10 | REM Set the RUBY LOAD_PATH using the RUBYLIB environment variable
11 | SET RUBYLIB=%BOLT_BASEDIR%\lib;%RUBYLIB%
12 |
13 | REM Translate all slashes to / style to avoid issue #11930
14 | SET RUBYLIB=%RUBYLIB:\=/%
15 |
16 | REM Set SSL variables to ensure trusted locations are used
17 | SET SSL_CERT_FILE=%BOLT_BASEDIR%\ssl\cert.pem
18 | SET SSL_CERT_DIR=%BOLT_BASEDIR%\ssl\certs
19 | SET OPENSSL_CONF=%BOLT_BASEDIR%\ssl\openssl.cnf
20 | SET OPENSSL_CONF_INCLUDE=%BOLT_BASEDIR%\ssl
21 | SET OPENSSL_MODULES=%BOLT_BASEDIR%\lib\ossl-modules
22 | SET OPENSSL_ENGINES=%BOLT_BASEDIR%\lib\engines-3
23 |
24 | ruby -S -- bolt %*
25 |
--------------------------------------------------------------------------------
/resources/windows/wix/componentgroup.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/resources/windows/wix/wixvariables.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/resources/rubygems-prune/rubygems/commands/prune_command.rb:
--------------------------------------------------------------------------------
1 | require 'rubygems/command'
2 | require 'fileutils'
3 |
4 | class Gem::Commands::PruneCommand < Gem::Command
5 | def initialize
6 | super('prune', 'Prune installed gems of any specs, tests or examples.', :dry_run => false)
7 |
8 | add_option('--[no-]dry-run', 'Do not remove files, only report would would be removed') do |value, options|
9 | options[:dry_run] = value
10 | end
11 | end
12 |
13 | def execute
14 | file_count = Gem::Specification.map { |gem| prune_gem(gem) }.reduce(0, :+)
15 |
16 | if options[:dry_run]
17 | say "\nWould have removed #{file_count} files"
18 | else
19 | say "\nRemoved #{file_count} files"
20 | end
21 | end
22 |
23 | def prune_gem(gem)
24 | say "Checking #{gem.name}-#{gem.version}..."
25 |
26 | ['spec', 'test', 'examples', 'features'].map { |dir| prune_gem_dir(gem, dir) }.reduce(0, :+)
27 | end
28 |
29 | def prune_gem_dir(gem, dir)
30 | path = File.join(gem.full_gem_path, dir)
31 |
32 | return 0 if gem.require_paths.include?(dir)
33 | return 0 unless File.directory?(path)
34 |
35 | file_count = Dir.glob(File.join(path, '**', '*')).length
36 |
37 | if options[:dry_run]
38 | say " Would have removed #{path}"
39 | else
40 | FileUtils.remove_entry_secure(path)
41 | end
42 |
43 | file_count
44 | end
45 | end
46 |
--------------------------------------------------------------------------------
/configs/platforms/windows-2012r2-x64.rb:
--------------------------------------------------------------------------------
1 | platform "windows-2012r2-x64" do |plat|
2 | plat.vmpooler_template "win-2012r2-x86_64"
3 |
4 | plat.servicetype "windows"
5 |
6 | # We need to ensure we install chocolatey prior to adding any nuget repos. Otherwise, everything will fall over
7 | plat.add_build_repository "https://artifactory.delivery.puppetlabs.net/artifactory/generic/buildsources/windows/chocolatey/install-chocolatey.ps1"
8 | plat.add_build_repository "https://artifactory.delivery.puppetlabs.net/artifactory/api/nuget/nuget"
9 |
10 | # C:\tools is likely added by mingw, however because we also want to use that
11 | # dir for vsdevcmd.bat we create it for safety
12 | plat.provision_with "mkdir -p C:/tools"
13 | # We don't want to install any packages from the chocolatey repo by accident
14 | plat.provision_with "C:/ProgramData/chocolatey/bin/choco.exe upgrade -y chocolatey"
15 | plat.provision_with "C:/ProgramData/chocolatey/bin/choco.exe sources remove -name chocolatey"
16 |
17 | plat.provision_with "C:/ProgramData/chocolatey/bin/choco.exe install -y Wix310 -version 3.10.2 -debug -x86"
18 |
19 | plat.install_build_dependencies_with "C:/ProgramData/chocolatey/bin/choco.exe install -y"
20 |
21 | plat.make "/usr/bin/make"
22 | plat.patch "TMP=/var/tmp /usr/bin/patch.exe --binary"
23 |
24 | plat.platform_triple "x86_64-w64-mingw32"
25 |
26 | plat.package_type "msi"
27 | plat.output_dir "windows"
28 | end
--------------------------------------------------------------------------------
/resources/windows/wix/directorylist.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
13 |
14 |
15 |
16 |
17 | <%= @platform.generate_service_bin_dirs(self.get_services, self) %>
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/docker/puppet-bolt/spec/dockerfile_spec.rb:
--------------------------------------------------------------------------------
1 | require 'rspec/core'
2 | SPEC_DIRECTORY = File.dirname(__FILE__)
3 |
4 | describe 'puppet-bolt container' do
5 | include Pupperware::SpecHelpers
6 |
7 | before(:all) do
8 | @image = ENV['PUPPET_TEST_DOCKER_IMAGE']
9 | if @image.nil?
10 | error_message = <<-MSG
11 | * * * * *
12 | PUPPET_TEST_DOCKER_IMAGE environment variable must be set so we
13 | know which image to test against!
14 | * * * * *
15 | MSG
16 | fail error_message
17 | end
18 | end
19 |
20 | it 'should run the image' do
21 | result = run_command("docker run --detach #{@image}")
22 | container = result[:stdout].chomp
23 | wait_on_container_exit(container)
24 | expect(get_container_exit_code(container)).to eq(0)
25 | emit_log(container)
26 | teardown_container(container)
27 | end
28 |
29 | it 'should run a bolt command and analytics should be disabled' do
30 | result = run_command("docker run -i #{@image} command run whoami -t localhost --log-level debug 2>&1")
31 | expect(result[:stdout]).to match(/root/)
32 | expect(result[:stdout]).to match(/Analytics opt-out is set, analytics will be disabled/)
33 | end
34 |
35 | it 'should support logging UTF-8 characters' do
36 | result = run_command("docker run -i #{@image} command run 'echo Hello! 😆' -t localhost --log-level debug 2>&1")
37 | expect(result[:stdout]).to match(/Hello! 😆/)
38 | expect(result[:stdout]).to match(/Successful on 1 target/)
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Bolt Vanagon Project
2 |
3 | This project uses [vanagon](https://github.com/puppetlabs/vanagon) to generate
4 | installable packages for Puppet [Bolt](https://github.com/puppetlabs/bolt).
5 |
6 | Not all Bolt dependencies are configured here:
7 |
8 | - Dependencies shared between this and other Puppet vanagon projects are loaded from
9 | [puppet-runtime](https://github.com/puppetlabs/puppet-runtime)'s bolt-runtime and pe-bolt-server
10 | projects.
11 | - Dependencies specific to Bolt are configured in this project.
12 |
13 | ## Updating rubygem versions
14 |
15 | A script has been provided to help updating versions of existing gems. Run as
16 | ```
17 | ./generate.rb /path/to/bolt/Gemfile.lock
18 | ```
19 |
20 | It will skip gems that are not currently managed (i.e. don't have a `rubygem-*.rb` file) to avoid
21 | adding gems provided by bolt-runtime or that are unneeded. New gems must be manually added, which
22 | can be as simple as `touch configs/components/rubygem-.rb`.
23 |
24 | Gems that have not yet been mirrored internally will also not be updated. The script will provide
25 | the command to run to update them in the `release-new` HipChat room. For example
26 | ```
27 | Could not update foo, please mirror with: !mirrorsource https://rubygems.org/downloads/foo-0.0.1.gem
28 | ```
29 | After mirroring gems, rerun the script to update their component configs.
30 |
31 | ## Run the project
32 |
33 | ```
34 | bundle install
35 | bundle exec build puppet-bolt el-7-x86_64
36 | ```
37 |
38 | If the packaging works, it will place a package in the `output/` folder.
39 |
--------------------------------------------------------------------------------
/docker/puppet-bolt/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu:22.04
2 |
3 | ARG version="3.0.0"
4 | ARG vcs_ref
5 | ARG build_date
6 |
7 | ENV BOLT_VERSION="$version"
8 | ENV UBUNTU_CODENAME="jammy"
9 | ENV BOLT_DISABLE_ANALYTICS="true"
10 | ENV LANG="C.UTF-8"
11 |
12 | LABEL org.label-schema.maintainer="Puppet Release Team " \
13 | org.label-schema.vendor="Puppet" \
14 | org.label-schema.url="https://github.com/puppetlabs/bolt-vanagon" \
15 | org.label-schema.name="Puppet Bolt" \
16 | org.label-schema.license="Apache-2.0" \
17 | org.label-schema.version=$BOLT_VERSION \
18 | org.label-schema.vcs-url="https://github.com/puppetlabs/bolt-vanagon" \
19 | org.label-schema.vcs-ref="vcs_ref" \
20 | org.label-schema.build-date="build_date" \
21 | org.label-schema.schema-version="1.0" \
22 | org.label-schema.dockerfile="/Dockerfile"
23 |
24 | RUN apt-get update && \
25 | apt-get install --no-install-recommends -y wget ca-certificates lsb-release && \
26 | wget -q http://apt.puppetlabs.com/puppet-tools-release-"$UBUNTU_CODENAME".deb && \
27 | dpkg -i puppet-tools-release-"$UBUNTU_CODENAME".deb && \
28 | rm puppet-tools-release-"$UBUNTU_CODENAME".deb && \
29 | apt-get update && \
30 | apt-get install --no-install-recommends -y puppet-bolt="$BOLT_VERSION"-1"$UBUNTU_CODENAME" && \
31 | apt-get remove --purge -y wget && \
32 | apt-get autoremove -y && \
33 | apt-get clean && \
34 | rm -rf /var/lib/apt/lists/*
35 |
36 | ENV PATH=/opt/puppetlabs/bin:$PATH
37 |
38 | ENTRYPOINT ["/opt/puppetlabs/bin/bolt"]
39 | CMD ["help"]
40 |
41 | COPY Dockerfile /
42 |
--------------------------------------------------------------------------------
/generate.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | require 'bundler'
4 | require 'net/http'
5 |
6 | lockfile = ARGV.first
7 | if lockfile.nil?
8 | warn 'Usage: generate.rb /path/to/Gemfile.lock'
9 | exit 1
10 | end
11 |
12 | unless File.exist? lockfile
13 | warn "Lockfile #{lockfile} does not exist"
14 | exit 1
15 | end
16 |
17 | unless File.readable? lockfile
18 | warn "Lockfile #{lockfile} could not be read"
19 | exit 1
20 | end
21 |
22 | bundle = Bundler::LockfileParser.new(Bundler.read_file(lockfile))
23 |
24 | http = Net::HTTP.start('artifactory.delivery.puppetlabs.net', use_ssl: true)
25 |
26 | mirrors_needed = false
27 |
28 | bundle.specs.each do |s|
29 | filename = "configs/components/rubygem-#{s.name}.rb"
30 | unless File.exist? filename
31 | puts "Skipping unmanaged gem #{s.name}"
32 | next
33 | end
34 |
35 | # Get MD5 of file, or warn if file is not mirrored
36 | resp = http.head("/artifactory/generic__buildsources/buildsources/#{s.name}-#{s.version}.gem")
37 | case resp
38 | when Net::HTTPSuccess
39 | sum = resp['X-Checksum-Md5']
40 |
41 | File.write filename, <<-CONTENT
42 | component "rubygem-#{s.name}" do |pkg, settings, platform|
43 | pkg.version "#{s.version}"
44 | pkg.md5sum "#{sum}"
45 | instance_eval File.read('configs/components/_base-rubygem.rb')
46 | end
47 | CONTENT
48 | else
49 | mirrors_needed = true
50 | warn "Could not update #{s.name}, please mirror with: !mirrorsource https://rubygems.org/downloads/#{s.name}-#{s.version}.gem"
51 | end
52 | end
53 |
54 | warn "Some gems need mirroring, please run the provided commands in the 'release-new' HipChat room" if mirrors_needed
55 |
56 |
--------------------------------------------------------------------------------
/resources/windows/wix/project.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
18 |
19 | Installer"
23 | Comments="<%= @homepage %>"
24 | Compressed="yes"
25 | Platform="<%= @platform.architecture %>" />
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/resources/windows/wix/sequences.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 | CMDLINE_INSTALLDIR
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | CMDLINE_INSTALLDIR
23 |
24 |
25 | NOT REMOVE
26 | NOT REMOVE
27 |
28 | REMOVE~="ALL" OR MaintenanceMode="Remove"
29 | REMOVE~="ALL" OR MaintenanceMode="Remove"
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/resources/windows/wix/properties.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
26 |
27 |
30 |
31 |
35 |
36 |
37 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/configs/components/bolt-create-ruby-tarballs.rb:
--------------------------------------------------------------------------------
1 | component "bolt-create-ruby-tarballs" do |pkg, settings, platform|
2 | # We only create the tarballs on Windows right now
3 | if platform.is_windows?
4 | pkg.add_source("file://resources/files/install-tarballs/extract_all.rb")
5 | pkg.add_source("file://resources/files/install-tarballs/remove_all.rb")
6 | pkg.directory "#{settings[:datadir]}/install-tarballs"
7 | # Unlike other examples, where the path would be '../' we use the current workding directory. This is because
8 | # even though we add a source as above, because it is not a gem or tar etc., the component has nothing to extract therefore
9 | # we don't end up in a component directory
10 | pkg.install_file "extract_all.rb", "#{settings[:datadir]}/install-tarballs/extract_all.rb"
11 | pkg.install_file "remove_all.rb", "#{settings[:datadir]}/install-tarballs/remove_all.rb"
12 |
13 | pkg.build do
14 | build_commands = []
15 |
16 | # Create the destination directory incase it doesn't exist already
17 | build_commands << "mkdir -p #{settings[:datadir]}/install-tarballs"
18 | build_commands << "pushd #{settings[:prefix]}"
19 |
20 | # Tar up the base ruby. This will exclude the ruby runtime as we need that for the extraction
21 | dirs = [
22 | "lib/ruby/gems",
23 | ]
24 | build_commands << "#{platform.tar} --create --gzip --file share/install-tarballs/ruby-#{settings[:ruby_version]}.tgz --directory=. " + dirs.join(" ")
25 |
26 | # We delete the source directories AFTER tarring to make debugging easier if something goes wrong.
27 | dirs.each { |dir| build_commands << "rm -rf #{dir}"}
28 |
29 | build_commands << "popd"
30 |
31 | build_commands
32 | end
33 | end
34 | end
35 |
--------------------------------------------------------------------------------
/configs/components/bolt-runtime.rb:
--------------------------------------------------------------------------------
1 | component 'bolt-runtime' do |pkg, settings, platform|
2 | # The JSON name intentionally differs from the component, because automation to update
3 | # the puppet-runtime ref relies on the puppet-runtime name.
4 | unless settings[:puppet_runtime_version] && settings[:puppet_runtime_location] && settings[:puppet_runtime_basename]
5 | raise "Expected to find :puppet_runtime_version, :puppet_runtime_location, and :puppet_runtime_basename settings; Please set these in your project file before including puppet-runtime as a component."
6 | end
7 |
8 | pkg.version settings[:puppet_runtime_version]
9 |
10 | tarball_name = "#{settings[:puppet_runtime_basename]}.tar.gz"
11 | pkg.url File.join(settings[:puppet_runtime_location], tarball_name)
12 | pkg.sha1sum File.join(settings[:puppet_runtime_location], "#{tarball_name}.sha1")
13 |
14 | pkg.install_only true
15 |
16 | if platform.is_windows?
17 | # We need to make sure we're setting permissions correctly for the executables
18 | # in the ruby bindir since preserving permissions in archives in windows is
19 | # ... weird, and we need to be able to use cygwin environment variable use
20 | # so cmd.exe was not working as expected.
21 | install_command = [
22 | "gunzip -c #{tarball_name} | tar -k -C /cygdrive/c/ -xf -",
23 | "chmod 755 #{settings[:ruby_bindir].sub(/C:/, '/cygdrive/c')}/*"
24 | ]
25 | elsif platform.is_macos?
26 | # We can't untar into '/' because of SIP on macOS; Just copy the contents
27 | # of these directories instead:
28 | install_command = [
29 | "tar -xzf #{tarball_name}",
30 | 'rsync -ka opt/ /opt/'
31 | ]
32 | else
33 | install_command = ["gunzip -c #{tarball_name} | #{platform.tar} -k -C / -xf -"]
34 | end
35 |
36 | pkg.install do
37 | install_command
38 | end
39 | end
40 |
--------------------------------------------------------------------------------
/resources/windows/wix/customactions.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
12 |
13 |
18 |
23 |
24 |
25 |
29 |
30 |
37 |
38 |
39 |
43 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/resources/windows/wix/shortcuts.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
28 |
36 |
39 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/PuppetBoltWarningDlg.wxs:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/resources/windows/wix/registryEntries.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
13 |
14 |
17 |
18 |
21 |
22 |
27 |
28 |
29 |
30 |
36 |
37 |
41 |
42 |
45 |
46 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/PuppetBoltInstallDirDlg.wxs:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/configs/components/bolt.rb:
--------------------------------------------------------------------------------
1 | component "bolt" do |pkg, settings, platform|
2 | pkg.load_from_json('configs/components/bolt.json')
3 |
4 | # Install the bolt runtime for access to rubygem-r10k:
5 | pkg.build_requires 'bolt-runtime'
6 |
7 | # We need to run r10k before building the gem.
8 | pkg.build do
9 | ["#{settings[:ruby_bindir]}/r10k puppetfile install --verbose" ]
10 | end
11 |
12 | pkg.build do
13 | ["#{settings[:host_gem]} build bolt.gemspec"]
14 | end
15 |
16 | pkg.install do
17 | ["#{settings[:gem_install]} bolt-*.gem"]
18 | end
19 |
20 | if platform.is_windows?
21 | pkg.install { ["#{settings[:ruby_bindir]}/rake.bat pwsh:generate_module"] }
22 |
23 | pkg.add_source("file://resources/files/windows/bolt.bat", sum: "60ead805dc78855d4a1a13230c141daa")
24 | pkg.install_file "../bolt.bat", "#{settings[:link_bindir]}/bolt.bat"
25 |
26 | # PowerShell Module
27 | pkg.directory "#{settings[:datadir]}/PowerShell/Modules/PuppetBolt"
28 | pkg.install_file "pwsh_module/PuppetBolt/PuppetBolt.psm1", "#{settings[:datadir]}/PowerShell/Modules/PuppetBolt/PuppetBolt.psm1"
29 | pkg.install_file "pwsh_module/PuppetBolt/PuppetBolt.psd1", "#{settings[:datadir]}/PowerShell/Modules/PuppetBolt/PuppetBolt.psd1"
30 |
31 | # Add topic guides to the PowerShell Module
32 | pkg.directory "#{settings[:datadir]}/PowerShell/Modules/PuppetBolt/en-US"
33 | pkg.install { ["/usr/bin/cp pwsh_module/PuppetBolt/en-US/* #{settings[:datadir]}/PowerShell/Modules/PuppetBolt/en-US"] }
34 | else
35 | pkg.add_source("file://resources/files/posix/bolt_env_wrapper", sum: "644f069f275f44af277b20a2d0d279c6")
36 | bolt_exe = File.join(settings[:link_bindir], 'bolt')
37 | pkg.install_file "../bolt_env_wrapper", bolt_exe, mode: "0755"
38 |
39 | if File.directory?("/etc/bash_completion.d")
40 | pkg.install_file "resources/bolt_bash_completion.sh", "/etc/bash_completion.d/bolt.sh", mode: "0644"
41 | end
42 |
43 | if platform.is_macos?
44 | pkg.add_source 'file://resources/files/paths.d/50-bolt', sum: '4abf75aebbbfbbefc4fe0173c57ed0b2'
45 | pkg.install_file('../50-bolt', '/etc/paths.d/50-bolt')
46 | else
47 | pkg.link bolt_exe, File.join(settings[:main_bin], 'bolt')
48 | end
49 | end
50 | end
51 |
--------------------------------------------------------------------------------
/docker/Makefile:
--------------------------------------------------------------------------------
1 | NAMESPACE ?= puppet
2 | git_describe = $(shell git describe)
3 | vcs_ref := $(shell git rev-parse HEAD)
4 | build_date := $(shell date -u +%FT%T)
5 | hadolint_available := $(shell hadolint --help > /dev/null 2>&1; echo $$?)
6 | hadolint_command := hadolint --ignore DL3008 --ignore DL3018 --ignore DL4000 --ignore DL4001
7 | hadolint_container := hadolint/hadolint:latest
8 | pwd := $(shell pwd)
9 |
10 | # Check if ref is set in environment variable
11 | # REF is set by the CJC build-and-puahs-bolt-docker-image.sh script and
12 | # is expected to be the Git Tag that represents the
13 | # bolt release version.
14 | ifeq ("${REF}","")
15 | version := $(shell echo $(git_describe) | sed 's/-.*//')
16 | else
17 | version:= "${REF}"
18 | endif
19 | $(info VERSION is $(version))
20 | # # Alow bundler args to be configured with environment variables
21 | # # Add defaults based on running from Makefile dir.
22 | ifeq ("${BUNDLE_PATH}","")
23 | export BUNDLE_PATH=$(pwd)/.bundle/gems
24 | endif
25 | $(info BUNDLE_PATH is "${BUNDLE_PATH}")
26 |
27 | ifeq ("${BUNDLE_BIN}","")
28 | export BUNDLE_BIN=$(pwd)/.bundle/bin
29 | endif
30 | $(info BUNDLE_BIN is "${BUNDLE_BIN}")
31 |
32 | ifeq ("${GEMFILE}","")
33 | export GEMFILE=$(pwd)/Gemfile
34 | endif
35 | $(info GEMFILE is "${GEMFILE}")
36 |
37 | dockerfile := Dockerfile
38 |
39 | prep:
40 | @git fetch --unshallow > /dev/null 2>&1 ||:
41 | @git fetch origin 'refs/tags/*:refs/tags/*'
42 |
43 | lint:
44 | ifeq ($(hadolint_available),0)
45 | @$(hadolint_command) puppet-bolt/$(dockerfile)
46 | else
47 | @docker pull $(hadolint_container)
48 | @docker run --rm -v $(PWD)/puppet-bolt/$(dockerfile):/Dockerfile -i $(hadolint_container) $(hadolint_command) Dockerfile
49 | endif
50 |
51 | build: prep
52 | @docker build --pull --build-arg vcs_ref=$(vcs_ref) --build-arg build_date=$(build_date) --build-arg version=$(version) --file puppet-bolt/$(dockerfile) --tag $(NAMESPACE)/puppet-bolt:$(version) puppet-bolt
53 | ifeq ($(IS_LATEST),true)
54 | @docker tag $(NAMESPACE)/puppet-bolt:$(version) $(NAMESPACE)/puppet-bolt:latest
55 | endif
56 |
57 | test: prep
58 | @bundle install --path $$BUNDLE_PATH --gemfile $$GEMFILE
59 | @PUPPET_TEST_DOCKER_IMAGE=$(NAMESPACE)/puppet-bolt:$(version) \
60 | bundle exec rspec puppet-bolt/spec
61 |
62 | publish: prep
63 | @docker push $(NAMESPACE)/puppet-bolt:$(version)
64 | ifeq ($(IS_LATEST),true)
65 | @docker push $(NAMESPACE)/puppet-bolt:latest
66 | endif
67 |
68 | .PHONY: lint build test publish
69 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/PuppetBoltLicenseAgreementDlg.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/PuppetBoltWelcomeDlg.wxs:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
42 |
43 |
44 | NOT Installed OR PATCH
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/resources/files/install-tarballs/extract_all.rb:
--------------------------------------------------------------------------------
1 | # Idea from https://stackoverflow.com/questions/856891/unzip-zip-tar-tag-gz-files-with-ruby
2 | # Altered using https://github.com/puppetlabs/puppet/blob/983154f7e29a2a50d416d889a6fed012b9b12399/lib/puppet/module_tool/tar/mini.rb
3 | #
4 | # WARNING - This extraction blindly assumes the tarballs are sane and correct. Unlike the `.../module_tool/tar/mini.rb` implementation, this
5 | # script does not do any checks:
6 | # - Symlinks within the tar will throw an error
7 | # - We assume that all files in the tar have relative paths. If there is an absolute path in the tarball it will 'escape' the intended extract directory
8 | # - Avoids extra disk IO (e.g. expand_path) as the tarballs will have 30,000+ files inside
9 |
10 | require 'fileutils'
11 | require 'rubygems/package'
12 | require 'zlib'
13 |
14 | TAR_LONGLINK = '././@LongLink'
15 |
16 | def logmessage(message)
17 | puts message if ENV['BOLT_DEBUG']
18 | end
19 |
20 | # From lib/puppet/module_tool/tar/mini.rb
21 | EXECUTABLE = 0755
22 | NOT_EXECUTABLE = 0644
23 | USER_EXECUTE = 0100
24 |
25 | def sanitized_mode(old_mode)
26 | # From lib/puppet/module_tool/tar/mini.rb
27 | old_mode & USER_EXECUTE != 0 ? EXECUTABLE : NOT_EXECUTABLE
28 | end
29 |
30 | def unpack(sourcefile, destdir, _)
31 | Gem::Package::TarReader.new( Zlib::GzipReader.open sourcefile ) do |tar|
32 | dest = nil
33 | tar.each do |entry|
34 | if entry.full_name == TAR_LONGLINK
35 | dest = File.join destdir, entry.read.strip
36 | next
37 | end
38 | dest ||= File.join(destdir, entry.full_name)
39 | if entry.directory? || (entry.header.typeflag == '' && entry.full_name.end_with?('/'))
40 | # Due to the size of the tarballs, logging consumes a ton of time. Just ignore it for now
41 | # logmessage("dir #{dest}")
42 | File.delete dest if File.file? dest
43 | # set_dir_mode! from mini.rb will always set this to EXECUTABLE so just use that - ref
44 | FileUtils.mkdir_p dest, :mode => EXECUTABLE, :verbose => false
45 | elsif entry.file? || (entry.header.typeflag == '' && !entry.full_name.end_with?('/'))
46 | # Due to the size of the tarballs, logging consumes a ton of time. Just ignore it for now
47 | # logmessage "file #{dest}"
48 | FileUtils.rm_rf dest if File.directory? dest
49 | File.open dest, "wb" do |f|
50 | f.print entry.read
51 | end
52 | FileUtils.chmod sanitized_mode(entry.header.mode), dest, :verbose => false
53 | # There should be NO symlinks on our tarballs so just ignore them
54 | # elsif entry.header.typeflag == '2' #Symlink!
55 | # File.symlink entry.header.linkname, dest
56 | else
57 | logmessage("Unkown tar entry: #{entry.full_name} type: #{entry.header.typeflag}.")
58 | end
59 | dest = nil
60 | end
61 | end
62 | end
63 |
64 | script_dir = __dir__
65 | dest_dir = File.expand_path(File.join(script_dir, '..', '..'))
66 |
67 | Dir.glob(File.join(script_dir, '*.tgz')) do |targz_filename|
68 | logmessage("Extracting #{targz_filename} to #{dest_dir} ...")
69 | unpack(targz_filename, dest_dir, nil)
70 | end
71 |
--------------------------------------------------------------------------------
/configs/projects/puppet-bolt.rb:
--------------------------------------------------------------------------------
1 | project "puppet-bolt" do |proj|
2 | proj.license "See components"
3 | proj.vendor "Puppet, Inc. "
4 | proj.homepage "https://www.puppet.com"
5 | proj.identifier "com.puppetlabs"
6 |
7 | # bolt inherits most build settings from puppetlabs/puppet-runtime:
8 | # - Modifications to global settings like flags and target directories should be made in puppet-runtime.
9 | # - Settings included in this file should apply only to local components in this repository.
10 | runtime_details = JSON.parse(File.read('configs/components/puppet-runtime.json'))
11 |
12 | settings[:puppet_runtime_version] = runtime_details['version']
13 | settings[:puppet_runtime_location] = runtime_details['location']
14 | settings[:puppet_runtime_basename] = "bolt-runtime-#{runtime_details['version']}.#{platform.name}"
15 |
16 | settings_uri = File.join(runtime_details['location'], "#{proj.settings[:puppet_runtime_basename]}.settings.yaml")
17 | metadata_uri = File.join(runtime_details['location'], "#{proj.settings[:puppet_runtime_basename]}.json")
18 | sha1sum_uri = "#{settings_uri}.sha1"
19 | proj.inherit_yaml_settings(settings_uri, sha1sum_uri, metadata_uri: metadata_uri)
20 |
21 | proj.description 'Stand alone task runner'
22 | proj.version_from_git
23 |
24 | if platform.is_windows?
25 | # WiX config
26 | proj.setting(:company_name, "Puppet, Inc.")
27 | proj.setting(:pl_company_name, "Puppet Labs")
28 | proj.setting(:company_id, "PuppetLabs")
29 | proj.setting(:product_id, "Bolt")
30 | proj.setting(:shortcut_name, "Puppet Bolt")
31 | proj.setting(:upgrade_code, "5F2FFC54-3620-429C-B90E-D16E0348A1E7")
32 | proj.setting(:product_name, "Puppet Bolt")
33 | proj.setting(:base_dir, "ProgramFiles64Folder")
34 | proj.setting(:links, {
35 | :HelpLink => "http://puppet.com/services/customer-support",
36 | :CommunityLink => "https://puppet.com/community",
37 | :ForgeLink => "http://forge.puppet.com",
38 | :NextStepLink => "https://puppet.com/docs/bolt/",
39 | :ManualLink => "https://puppet.com/docs/bolt/",
40 | })
41 | proj.setting(:LicenseRTF, "wix/license/LICENSE.rtf")
42 | proj.setting(:install_root, File.join("C:", proj.base_dir, proj.company_id, proj.product_id))
43 | proj.setting(:link_bindir, File.join(proj.install_root, "bin"))
44 |
45 | module_directory = File.join(proj.datadir.sub(/^.*:\//, ''), 'PowerShell', 'Modules')
46 | proj.extra_file_to_sign File.join(module_directory, 'PuppetBolt', 'PuppetBolt.psm1')
47 | proj.extra_file_to_sign File.join(module_directory, 'PuppetBolt', 'PuppetBolt.psd1')
48 | proj.signing_hostname 'msi-signer-prod-1.delivery.puppetlabs.net'
49 | proj.signing_username 'jenkins'
50 | proj.signing_command '/usr/local/bin/sign-file'
51 | else
52 | proj.setting(:link_bindir, "/opt/puppetlabs/bin")
53 | proj.setting(:main_bin, "/usr/local/bin")
54 | end
55 |
56 | proj.component "bolt-runtime"
57 | proj.component "bolt"
58 | proj.component "bolt-create-ruby-tarballs"
59 |
60 | proj.component "gem-prune"
61 |
62 | proj.directory proj.prefix
63 | proj.directory proj.link_bindir
64 |
65 |
66 | if platform.is_fedora?
67 | proj.package_override("# Disable check-rpaths since /opt/* is not a valid path\n%global __brp_check_rpaths \%{nil}")
68 | proj.package_override("# Disable the removal of la files, they are still required\n%global __brp_remove_la_files \%{nil}")
69 | end
70 |
71 | if platform.name =~ /^el-(8)-.*/
72 | # Disable build-id generation since it's currently generating conflicts
73 | # with system libgcc and libstdc++
74 | proj.package_override("# Disable build-id generation to avoid conflicts\n%global _build_id_links none")
75 | end
76 | end
77 |
--------------------------------------------------------------------------------
/resources/redhat/pe-plan-executor.init:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # PE Plan Executor Bolt plan executor API
3 | #
4 | # chkconfig: - 98 02
5 | #
6 | # description: Service to expose bolt plans API
7 | # processname: plan-executor
8 | # config: /etc/sysconfig/pe-plan-executor
9 |
10 | # Source function library.
11 | . /etc/rc.d/init.d/functions
12 |
13 | #set default privileges to -rw-r-----
14 | umask 027
15 |
16 | [ -f /etc/sysconfig/pe-plan-executor ] && . /etc/sysconfig/pe-plan-executor
17 |
18 | prefix='/opt/puppetlabs/server/apps/bolt-server'
19 | export GEM_PATH="${prefix}/lib/ruby:/opt/puppetlabs/puppet/lib/ruby/gems/2.5.0:/opt/puppetlabs/puppet/lib/ruby/vendor_gems"
20 | exec="${prefix}/bin/puma"
21 | prog="plan-executor"
22 | desc="PE Plan Executor"
23 | # We reuse the bolt-server user for this service
24 | owner="pe-bolt-server"
25 |
26 | lockfile=/var/lock/subsys/$prog
27 | piddir=/var/run/puppetlabs/$prog
28 | pidfile="${piddir}/${prog}.pid"
29 | logdir=/var/log/puppetlabs/$prog
30 | pid=$(cat $pidfile 2> /dev/null)
31 | RETVAL=0
32 |
33 | [ -x $exec ] || exit 5
34 |
35 | if status | grep -q -- '-p' 2>/dev/null; then
36 | daemonopts="--pidfile $pidfile"
37 | pidopts="-p $pidfile"
38 | USEINITFUNCTIONS=true
39 | fi
40 |
41 | start() {
42 | echo -n $"Starting PE Plan Executor: "
43 | mkdir -p $piddir $logdir
44 | daemon $daemonopts --user=$owner $exec -C "${prefix}/config/plan_executor_config.rb" -e production -d --pidfile $pidfile ${PE_BOLT_SERVER_OPTIONS}
45 | RETVAL=$?
46 | echo
47 | [ $RETVAL = 0 ] && touch ${lockfile}
48 | return $RETVAL
49 | }
50 |
51 | stop() {
52 | echo -n $"Stopping PE Plan Executor: "
53 | if [ "$USEINITFUNCTIONS" = "true" ]; then
54 | killproc $pidopts $exec
55 | RETVAL=$?
56 | else
57 | if [ -n "${pid}" ]; then
58 | kill -TERM $pid >/dev/null 2>&1
59 | RETVAL=$?
60 | fi
61 | fi
62 | echo
63 | [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
64 | return $RETVAL
65 | }
66 |
67 | reload() {
68 | echo -n $"Reloading PE Plan Executor: "
69 | if [ "$USEINITFUNCTIONS" = "true" ]; then
70 | killproc $pidopts $exec -HUP
71 | RETVAL=$?
72 | else
73 | if [ -n "${pid}" ]; then
74 | kill -HUP $pid >/dev/null 2>&1
75 | RETVAL=$?
76 | else
77 | RETVAL=0
78 | fi
79 | fi
80 | echo
81 | return $RETVAL
82 | }
83 |
84 | restart() {
85 | stop
86 | start
87 | }
88 |
89 | rh_status() {
90 | if [ "$USEINITFUNCTIONS" = "true" ]; then
91 | status $pidopts $exec
92 | RETVAL=$?
93 | return $RETVAL
94 | else
95 | if [ -n "${pid}" ]; then
96 | if `ps -p $pid | grep $pid > /dev/null 2>&1`; then
97 | echo "${desc} (pid ${pid}) is running..."
98 | RETVAL=0
99 | return $RETVAL
100 | fi
101 | fi
102 | if [ -f "${pidfile}" ] ; then
103 | echo "${desc} dead but pid file exists"
104 | RETVAL=1
105 | return $RETVAL
106 | fi
107 | if [ -f "${lockfile}" ]; then
108 | echo "${desc} dead but subsys locked"
109 | RETVAL=2
110 | return $RETVAL
111 | fi
112 | echo "${desc} is stopped"
113 | RETVAL=3
114 | return $RETVAL
115 | fi
116 | }
117 |
118 | rh_status_q() {
119 | rh_status >/dev/null 2>&1
120 | }
121 |
122 | case "$1" in
123 | start)
124 | start
125 | ;;
126 | stop)
127 | stop
128 | ;;
129 | restart)
130 | restart
131 | ;;
132 | reload|force-reload)
133 | reload
134 | ;;
135 | condrestart|try-restart)
136 | rh_status_q || exit 0
137 | restart
138 | ;;
139 | status)
140 | rh_status
141 | ;;
142 | *)
143 | echo $"Usage: $0 {start|stop|status|restart|condrestart}"
144 | exit 1
145 | esac
146 |
147 | exit $RETVAL
148 |
--------------------------------------------------------------------------------
/resources/windows/wix/powershell.wxs.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
14 |
15 |
16 |
20 |
24 |
25 |
26 |
30 |
34 |
35 |
36 |
40 |
44 |
45 |
46 |
50 |
54 |
55 |
56 |
60 |
64 |
65 |
66 |
70 |
74 |
75 |
76 |
80 |
84 |
85 |
86 |
90 |
94 |
95 |
96 |
100 |
104 |
105 |
106 |
110 |
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/resources/windows/wix/ui/WixUI_PuppetBoltInstallDir.wxs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | 1
60 | "1"]]>
61 |
62 | 1
63 |
64 | = 600 AND NOT Installed]]>
65 | = 600 AND Installed AND PATCH]]>
66 |
67 |
68 | = 600]]>
69 |
70 | LicenseAccepted = "1"
71 |
72 | NOT Installed
73 | Installed AND PATCH
74 |
75 | 1
76 | 1
77 | NOT WIXUI_DONTVALIDATEPATH
78 | "1"]]>
79 | WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"
80 | 1
81 | 1
82 |
83 | NOT Installed
84 | Installed AND NOT PATCH
85 | = 600 AND Installed AND PATCH]]>
86 |
87 |
88 | 1
89 |
90 | 1
91 | 1
92 | 1
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/docker/README.md:
--------------------------------------------------------------------------------
1 | # Puppet-bolt container
2 |
3 | Puppet Bolt it available as a docker image. This document covers some possible ways to use the container.
4 |
5 | ## Building and Test
6 |
7 | A makefile is provided for building and testing the puppet-bolt container. Execute `make build` to build the latest or `make test` to run the tests.
8 |
9 | ## Completely stand-alone
10 |
11 | When running Bolt from the container, the `localhost` target is the container environment (not the docker host environment). The following example shows running a command against the localhost target in the container.
12 | ```
13 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt$ docker run puppet-bolt command run 'cat /etc/os-release' -t localhost
14 | Started on localhost...
15 | Finished on localhost:
16 | STDOUT:
17 | NAME="Ubuntu"
18 | VERSION="16.04.6 LTS (Xenial Xerus)"
19 | ID=ubuntu
20 | ID_LIKE=debian
21 | PRETTY_NAME="Ubuntu 16.04.6 LTS"
22 | VERSION_ID="16.04"
23 | HOME_URL="http://www.ubuntu.com/"
24 | SUPPORT_URL="http://help.ubuntu.com/"
25 | BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
26 | VERSION_CODENAME=xenial
27 | UBUNTU_CODENAME=xenial
28 | Successful on 1 node: localhost
29 | Ran on 1 node in 0.00 seconds
30 | ```
31 | In order to pass connection information and custom module content we need to share data from the host with the container. The following sections describe some ways to accomplish sharing data with the puppet Bolt container.
32 |
33 | ## Pass Inventory as an environment variable
34 |
35 | In the case where no custom module content is required for the Bolt action you wish to execute with the container and the only information you need is how to connect to targets you can pass inventory as an enviornment variable. The following inventory has all the information needed to connect to the example target.
36 |
37 | ```yaml
38 | ---
39 | nodes:
40 | - name: pnz2rzpxfzp95hh.delivery.puppetlabs.net
41 | alias: docker-example
42 | config:
43 | transport: ssh
44 | ssh:
45 | user: root
46 | password: secret-password
47 | host-key-check: false
48 | ```
49 | The following invocation shows an example of running the built-in `facts` task against the target listed in inventory.
50 | ```
51 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt$ docker run --env "BOLT_INVENTORY=$(cat Boltdir/inventory.yaml)" puppet-bolt task run facts -t docker-example
52 | Started on pnz2rzpxfzp95hh.delivery.puppetlabs.net...
53 | Finished on pnz2rzpxfzp95hh.delivery.puppetlabs.net:
54 | {
55 | "os": {
56 | "name": "CentOS",
57 | "release": {
58 | "full": "7.2",
59 | "major": "7",
60 | "minor": "2"
61 | },
62 | "family": "RedHat"
63 | }
64 | }
65 | Successful on 1 node: pnz2rzpxfzp95hh.delivery.puppetlabs.net
66 | Ran on 1 node in 0.55 seconds
67 | ```
68 | ## Mount Bolt project directory from host
69 |
70 | This section describes making a Bolt project directory (Boltdir) available to the container. The directory structure and relevant file content is listed below:
71 | ```
72 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt$ tree
73 | .
74 | └── Boltdir
75 | ├── bolt.yaml
76 | ├── inventory.yaml
77 | ├── keys
78 | │ └── id_rsa-acceptance
79 | └── site-modules
80 | └── docker_task
81 | └── tasks
82 | └── init.sh
83 |
84 | 5 directories, 4 files
85 | ```
86 | **bolt.yaml**
87 |
88 | Bolt configuration file
89 | ```yaml
90 | ---
91 | log:
92 | console:
93 | level: notice
94 | ```
95 | **inventory.yaml**
96 |
97 | Store information about targets. Note the absolute path to the private key is the path in the container not the host.
98 | ```yaml
99 | ---
100 | nodes:
101 | - name: pnz2rzpxfzp95hh.delivery.puppetlabs.net
102 | alias: docker-example
103 | config:
104 | transport: ssh
105 | ssh:
106 | user: root
107 | private-key: /Boltdir/keys/id_rsa-acceptance
108 | host-key-check: false
109 | ```
110 | **init.sh**
111 |
112 | Example shell task that echos a `message` parameter.
113 | ```bash
114 | #!/bin/bash
115 | echo "Message: ${PT_message}"
116 | ```
117 | In order to execute the task with docker and provide all the information provided in the Bolt project directory it is possible to mount the Boltdir on the host with the following invocation:
118 | ```
119 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt$ docker run --mount type=bind,source=/home/cas/working_dir/docker_bolt/Boltdir,destination=/Boltdir puppet-bolt task run docker_task message=hi -t docker-example
120 | Started on pnz2rzpxfzp95hh.delivery.puppetlabs.net...
121 | Finished on pnz2rzpxfzp95hh.delivery.puppetlabs.net:
122 | Message: hi
123 | {
124 | }
125 | Successful on 1 node: pnz2rzpxfzp95hh.delivery.puppetlabs.net
126 | Ran on 1 node in 0.56 seconds
127 | ```
128 |
129 | The `--mount` flag maps the local directory to the root directory in the container (the working directory), the container is tagged as `puppet-bolt` and the rest of the invocation are all native to Bolt.
130 |
131 | ## Building on top of the puppet-bolt image
132 |
133 | You can also extend the puppet-bolt image and copy in data that will always be available for that image. In order to illustrate this we can add a Dockerfile to the directory structure defined in the previous example with the following content:
134 | ```
135 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt$ tree
136 | .
137 | └── Boltdir
138 | ├── bolt.yaml
139 | ├── Dockerfile
140 | ├── inventory.yaml
141 | ├── keys
142 | │ └── id_rsa-acceptance
143 | └── site-modules
144 | └── docker_task
145 | └── tasks
146 | └── init.sh
147 |
148 | 5 directories, 5 files
149 | ```
150 |
151 | **Dockerfile**
152 |
153 | ```Dockerfile
154 | FROM puppet-bolt
155 |
156 | COPY . /Boltdir
157 | ```
158 | The following invocation shows building a container image with our custom module content and tagging it `my-extended-puppet-bolt`.
159 | ```
160 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt/Boltdir$ docker build . -t my-extended-puppet-bolt
161 | Sending build context to Docker daemon 10.75kB
162 | Step 1/2 : FROM puppet-bolt
163 | ---> 5d8d2c1166fc
164 | Step 2/2 : COPY . /Boltdir
165 | ---> 03162d29a1ee
166 | Successfully built 03162d29a1ee
167 | Successfully tagged my-extended-puppet-bolt:latest
168 | ```
169 | You can now run that container with the custom module content and connection information available inside the container. For example:
170 | ```
171 | cas@cas-ThinkPad-T460p:~/working_dir/docker_bolt/Boltdir$ docker run my-extended-puppet-bolt task run docker_task message=hi -t docker-example
172 | Started on pnz2rzpxfzp95hh.delivery.puppetlabs.net...
173 | Finished on pnz2rzpxfzp95hh.delivery.puppetlabs.net:
174 | Message: hi
175 | {
176 | }
177 | Successful on 1 node: pnz2rzpxfzp95hh.delivery.puppetlabs.net
178 | Ran on 1 node in 0.56 seconds
179 | ```
--------------------------------------------------------------------------------
/resources/windows/wix/tarball.vbs:
--------------------------------------------------------------------------------
1 | On Error Resume Next
2 |
3 | ' This VBScript file is imported into the Binary table
4 |
5 | ' Example INSTALLDIR property. Its value is 'C:\Program Files\Puppet Labs\Bolt\'.
6 | ' As this is deferred, use the CustomActionData property instead
7 | Dim InstallDir : InstallDir = Session.Property("CustomActionData")
8 |
9 | ' https://docs.microsoft.com/en-us/windows/desktop/msi/session-message
10 | Const msiMessageTypeError = &H01000000
11 | Const msiMessageTypeWarning = &H02000000
12 | Const msiMessageTypeInfo = &H04000000
13 |
14 | ' https://docs.microsoft.com/en-us/windows/desktop/msi/return-values-of-jscript-and-vbscript-custom-actions
15 | Const IDOK = 1
16 | Const IDABORT = 3
17 |
18 | Dim wshShell : Set wshShell = CreateObject("WScript.Shell")
19 | Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
20 | ' https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/getspecialfolder-method
21 | Dim systemPath : systemPath = fso.getSpecialFolder(1)
22 | Dim comspec : comspec = systemPath & "\cmd.exe"
23 |
24 | Sub Log (Message, IsError)
25 | ' Logs through cscript
26 | If IsObject(WScript) Then
27 | If IsObject(WScript.StdErr) And IsError = True Then
28 | WScript.StdErr.WriteLine(Message)
29 | ElseIf IsObject(WScript.StdOut) Then
30 | WScript.StdOut.WriteLine(Message)
31 | End If
32 | End If
33 | ' Logs through MSI
34 | If IsObject(Session) Then
35 | ' https://docs.microsoft.com/en-us/windows/desktop/msi/installer-createrecord
36 | Dim logRecord : Set logRecord = Installer.CreateRecord(1) ' 1 entry
37 | logRecord.StringData(1) = Message ' Set Index 1
38 | Dim kind : kind = msiMessageTypeInfo
39 | If IsError = True Then kind = msiMessageTypeError
40 | Session.Message kind, logRecord
41 | End If
42 | End Sub
43 |
44 | ' Executes command, sending its stdout / stderr to the WScript host
45 | Function ExecuteCommand(Command)
46 | Dim output: output = ""
47 | Log "Executing Command : " & Command, False
48 |
49 | Dim winPath : winPath = fso.getSpecialFolder(0)
50 | Dim tempFilePath : tempFilePath = winPath & "\Installer\" & fso.GetTempName()
51 | Dim tempBatFile : tempBatFile = winPath & "\Installer\" & fso.GetTempName() + ".bat"
52 |
53 | ' Open the temp .bat file for writing
54 | ' Unfortunately due to the strange double quoting behaviour in wshShell.Run we create a temporary
55 | ' Batch file with the command we want, and then call the batch file. Note that we explicitly call
56 | ' EXIT /B so that we avoid the case where someone malicious modifies the BAT file while being run.
57 | ' Remember that cmd.exe reads and executes BAT files line-by-line. The EXIT statement tells cmd
58 | ' to exit even if there's malicious code following.
59 | Dim outFile : Set outFile = fso.OpenTextFile(tempBatFile, 2, true)
60 | outFile.WriteLine(Command & " > """ & tempFilePath & """ 2>&1 && EXIT /B %ERRORLEVEL%")
61 | outFile.Close()
62 | Set outFile = Nothing
63 | ' https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/d5fk67ky%28v%3dvs.84%29
64 | ' intWindows Style - 0 - Hides the window and activates another window.
65 | ' bWaitOnReturn - True - waits for program termination
66 | Dim exitCode : exitCode = wshShell.Run(comspec & " /c CALL " & tempBatFile & " 2>&1", 0, True)
67 | fso.DeleteFile(tempBatFile)
68 | If fso.FileExists(tempFilePath) Then
69 | Set outFile = fso.OpenTextFile(tempFilePath)
70 | Log "--- Output", false
71 | Do While Not outFile.AtEndOfStream
72 | Log outFile.ReadLine(), false
73 | Loop
74 | outFile.Close()
75 | Log "---", false
76 | fso.DeleteFile(tempFilePath)
77 | End If
78 |
79 | If exitCode <> 0 Then
80 | Log "Execution Failed With Code: " & exitCode, True
81 | ExecuteCommand = False
82 | else
83 | ExecuteCommand = True
84 | End If
85 | End Function
86 |
87 | Function GetRubyDirectory(RootDirectory)
88 | GetRubyDirectory = ""
89 | ' Find a ruby environment with the PDK gem
90 | Dim RubyFolder : Set RubyFolder = fso.GetFolder(RootDirectory)
91 | For Each RubyVerSubfolder in RubyFolder.SubFolders
92 | Dim RubyFullVersion : RubyFullVersion = RubyVerSubfolder.Name
93 | Dim arrRubyVersion : arrRubyVersion = Split(RubyFullVersion, ".")
94 | Dim RubyMinorVersion : RubyMinorVersion = arrRubyVersion(0) + "." + arrRubyVersion(1) + ".0"
95 | Dim GemFolderPath : GemFolderPath = RubyVerSubfolder.Path + "\lib\ruby\gems\" + RubyMinorVersion + "\gems"
96 |
97 | if fso.FolderExists(GemFolderPath) Then
98 | Dim FoundPDK : FoundPDK = false
99 | For Each GemFolder in fso.GetFolder(GemFolderPath).SubFolders
100 | FoundPDK = FoundPDK OR Left(GemFolder.Name,4) = "pdk-"
101 | Next
102 | If FoundPDK Then
103 | GetRubyDirectory = RubyFullVersion
104 | End If
105 | End If
106 | Next
107 | End Function
108 |
109 | ' Mainline
110 | Function RunRubyScriptFile(ScriptFileName)
111 | Log "InstallDir is " + InstallDir, false
112 |
113 | ' Based on equivalent PowerShell script at;
114 | ' https://github.com/puppetlabs/pdk-vanagon/blob/07a4ee7c29ba630ffbec6d87388688b6de90fbfd/resources/files/windows/PuppetDevelopmentKit/PuppetDevelopmentKit.psm1
115 | Dim BOLT_BASEDIR
116 | Dim RUBY_DIR
117 | Dim SSL_CERT_FILE
118 | Dim SSL_CERT_DIR
119 |
120 | BOLT_BASEDIR = fso.GetFolder(InstallDir).ShortPath
121 |
122 | Log "BOLT_BASEDIR is " + BOLT_BASEDIR, false
123 | RUBY_DIR = BOLT_BASEDIR + "\lib\ruby\"
124 | SSL_CERT_FILE = BOLT_BASEDIR + "\ssl\cert.pem"
125 | SSL_CERT_DIR = BOLT_BASEDIR + "\ssl\certs"
126 |
127 | Log "BOLT_BASEDIR is " + BOLT_BASEDIR, false
128 | Log "RUBY_DIR is " + RUBY_DIR, false
129 | Log "SSL_CERT_FILE is " + SSL_CERT_FILE, false
130 | Log "SSL_CERT_DIR is " + SSL_CERT_DIR, false
131 |
132 | Dim RubyPath : RubyPath = BOLT_BASEDIR + "\bin\ruby.exe"
133 | Dim ProcessEnv : Set ProcessEnv = wshShell.Environment( "PROCESS" )
134 |
135 | Log "Creating process level environment variables...", false
136 | ProcessEnv("BOLT_BASEDIR") = BOLT_BASEDIR
137 | ProcessEnv("RUBY_DIR") = RUBY_DIR
138 | ProcessEnv("SSL_CERT_FILE") = SSL_CERT_FILE
139 | ProcessEnv("SSL_CERT_DIR") = SSL_CERT_DIR
140 | ProcessEnv("PDK_DEBUG") = "True"
141 |
142 | Dim ExtractScript : ExtractScript = BOLT_BASEDIR + "\share\install-tarballs\" + ScriptFileName
143 | If Not(fso.FileExists(ExtractScript)) Then
144 | Log "Extract script " & ExtractScript & " could not be found", true
145 | RunRubyScriptFile = IDABORT
146 | Exit Function
147 | End If
148 |
149 | ' Note Returning values back to the MSI Engine only works with Binary type Custom Actions
150 | if ExecuteCommand("""" & RubyPath & """ -S -- """ & ExtractScript & """") Then
151 | Log "Completed with success", false
152 | RunRubyScriptFile = IDOK
153 | Else
154 | Log "Completed with error", true
155 | RunRubyScriptFile = IDABORT
156 | End If
157 | End Function
158 |
159 | Function ExtractTarballs()
160 | ExtractTarballs = RunRubyScriptFile("extract_all.rb")
161 | End Function
162 |
163 | Function RemoveTarballs()
164 | RemoveTarballs = RunRubyScriptFile("remove_all.rb")
165 | End Function
166 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/resources/windows/wix/license/LICENSE.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf400
2 | {\fonttbl\f0\fswiss\fcharset0 ArialMT;\f1\fswiss\fcharset0 Helvetica;}
3 | {\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red0\green0\blue255;}
4 | {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;\csgenericrgb\c0\c0\c100000;}
5 | \margl1440\margr1440\vieww12540\viewh16140\viewkind1
6 | \deftab720
7 | \pard\pardeftab720\partightenfactor0
8 |
9 | \f0\b\fs28 \cf0 \expnd0\expndtw0\kerning0
10 | License Summary:\
11 |
12 | \fs20 \
13 | \pard\pardeftab720\li360\fi-360\partightenfactor0
14 |
15 | \b0 \cf0 Bolt - Apache 2.0 License (Copyright (c) 2017 Puppet, Inc.)\
16 | Ruby - Ruby License (Copyright (c) Yukihiro Matsumoto)\
17 | WiX Toolset - Microsoft Reciprocal License (MS-RL)\
18 | \pard\pardeftab720\partightenfactor0
19 | \cf0 openssl - Openssl Dual License\
20 | \pard\pardeftab720\partightenfactor0
21 | \cf0 addressable - Apache 2.0 License (Copyright (c) 2012 Bob Aman)\
22 | bindata - BSD 2-clause License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (C) 2007-2012 Dion Mendel. All rights reserved.)\cf0 \outl0\strokewidth0 \
23 | builder - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2003-2012 Jim Weirich)\cf0 \outl0\strokewidth0 \
24 | CFPropertyList - MIT License (Copyright (c) 2010 Christian Kruse)\
25 | concurrent-ruby - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) Jerry D'Antonio)\cf0 \outl0\strokewidth0 \
26 | connection_pool - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2011 Mike Perham)\cf0 \outl0\strokewidth0 \
27 | deep_merge - MIT License (Copyright (c) 2008-2016 Steve Midgley, Daniel DeLeo)\
28 | Fast Gettext - MIT License\
29 | ffi - BSD 3-clause License (Copyright (c) 2008-2016, Ruby FFI project contributors All rights reserved.)\
30 | gettext - Ruby License\
31 | gssapi - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2010 Dan Wanek)\cf0 \outl0\strokewidth0 \
32 | gyoku - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2010 Daniel Harrington)\cf0 \outl0\strokewidth0 \
33 | hiera-eyaml - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2013 Tom Poulton)\cf0 \outl0\strokewidth0 \
34 | highline - Ruby License\
35 | locale - Ruby License\
36 | logging - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2007-2016 Tim Pease)\cf0 \outl0\strokewidth0 \
37 | multi_json - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2010-2013 Michael Bleigh, Josh Kalderimis, Erik Michaels-Ober, Pavel Pravosud)\cf0 \outl0\strokewidth0 \
38 | net-http-persistent - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2010 Eric Hodel, Aaron Patterson)\cf0 \outl0\strokewidth0 \
39 | net-scp - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2008 Jamis Buck)\cf0 \outl0\strokewidth0 \
40 | net-ssh - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2008 Jamis Buck)\cf0 \outl0\strokewidth0 \
41 | nori - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2011 Daniel Harrington)\cf0 \outl0\strokewidth0 \
42 | optimist - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright © 2008-2014 William Morgan, Copyright © 2014 Red Hat, Inc)\cf0 \outl0\strokewidth0 \
43 | Orchestrator Client - Apache 2.0 License (Copyright (c) 2016 Puppet, Inc.)\
44 | public_suffx - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2009-2018 Simone Carletti)\cf0 \outl0\strokewidth0 \
45 | rake - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) Jim Weirich)\cf0 \outl0\strokewidth0 \
46 | rubyntlm - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2013 Paul Morton, Matt Zukowski, Kohei Kajimoto)\cf0 \outl0\strokewidth0 \
47 | ruby_smb - BSD 3-clause License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2014, Rapid7, Inc.)\cf0 \outl0\strokewidth0 \
48 | terminal-table - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2008-2017 TJ Holowaychuk)\cf0 \outl0\strokewidth0 \
49 | text - MIT License (Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher)\
50 | unicode-display_width - MIT License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2011, 2015-2017 Jan Lelis)\cf0 \outl0\strokewidth0 \
51 | win32-dir - Artistic 2.0\
52 | win32-process - Artistic 2.0\
53 | win32-security - Artistic 2.0\
54 | win32-service - Artistic 2.0\
55 | windows_error - BSD 3-clause License (\cf2 \outl0\strokewidth0 \strokec2 Copyright (c) 2015, Rapid7, Inc.)\cf0 \outl0\strokewidth0 \
56 | winrm - Apache 2.0 License\
57 | winrm-fs - Apache 2.0 License\
58 | \pard\pardeftab720\qc\partightenfactor0
59 | \cf0 \
60 | \pard\pardeftab720\partightenfactor0
61 |
62 | \f1\b\fs28 \cf0 Apache 2.0
63 | \f0 License Terms:
64 | \f1 \
65 | \pard\pardeftab720\qc\partightenfactor0
66 |
67 | \f0 \cf0 \
68 | \pard\pardeftab720\partightenfactor0
69 |
70 | \b0\fs20 \cf0 Apache License\
71 | Version 2.0, January 2004\
72 | \pard\pardeftab720\partightenfactor0
73 | {\field{\*\fldinst{HYPERLINK "http://www.apache.org/licenses/"}}{\fldrslt \cf3 \ul \ulc3 http://www.apache.org/licenses/}}\
74 | \pard\pardeftab720\partightenfactor0
75 | \cf3 \ul \ulc3 \
76 | \pard\pardeftab720\partightenfactor0
77 | \cf0 \ulnone TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\
78 | \
79 | 1. Definitions.\
80 | \
81 | "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\
82 | \
83 | "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\
84 | \
85 | "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\
86 | \
87 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\
88 | \
89 | "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation, source, and configuration files.\
90 | \
91 | "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\
92 | \
93 | "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\
94 | \
95 | "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\
96 | \
97 | "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\
98 | \
99 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\
100 | \
101 | 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\
102 | \
103 | 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license plies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\
104 | \
105 | 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\
106 | \
107 | (a) You must give any other recipients of the Work or\
108 | Derivative Works a copy of this License; and\
109 | \
110 | (b) You must cause any modified files to carry prominent notices\
111 | stating that You changed the files; and\
112 | \
113 | (c) You must retain, in the Source form of any Derivative Works\
114 | that You distribute, all copyright, patent, trademark, and\
115 | attribution notices from the Source form of the Work,\
116 | excluding those notices that do not pertain to any part of\
117 | the Derivative Works; and\
118 | \
119 | (d) If the Work includes a "NOTICE" text file as part of its\
120 | distribution, then any Derivative Works that You distribute\
121 | must include a readable copy of the attribution notices\
122 | contained within such NOTICE file, excluding those notices\
123 | that do not pertain to any part of the Derivative Works, in\
124 | at least one of the following places: within a NOTICE text\
125 | file distributed as part of the Derivative Works; within the\
126 | Source form or documentation, if provided along with the\
127 | Derivative Works; or, within a display generated by the\
128 | Derivative Works, if and wherever such third-party notices\
129 | normally appear. The contents of the NOTICE file are for\
130 | informational purposes only and do not modify the License.\
131 | You may add Your own attribution notices within Derivative\
132 | Works that You distribute, alongside or as an addendum to the\
133 | NOTICE text from the Work, provided that such additional\
134 | attribution notices cannot be construed as modifying the\
135 | License.\
136 | \
137 | You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\
138 | \
139 | 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\
140 | \
141 | 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\
142 | \
143 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\
144 | \
145 | 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\
146 | \
147 | 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\
148 | \
149 | END OF TERMS AND CONDITIONS\
150 | \
151 | APPENDIX: How to apply the Apache License to your work.\
152 | \
153 | To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.\
154 | \
155 | Copyright [yyyy] [name of copyright owner]\
156 | \
157 | Licensed under the Apache License, Version 2.0 (the "License");\
158 | you may not use this file except in compliance with the License.\
159 | You may obtain a copy of the License at\
160 | \
161 | {\field{\*\fldinst{HYPERLINK "http://www.apache.org/licenses/LICENSE-2.0"}}{\fldrslt \cf3 \ul \ulc3 http://www.apache.org/licenses/LICENSE-2.0}}\
162 | \pard\pardeftab720\partightenfactor0
163 | \cf3 \ul \ulc3 \
164 | \pard\pardeftab720\partightenfactor0
165 | \cf0 \ulnone Unless required by applicable law or agreed to in writing, software\
166 | distributed under the License is distributed on an "AS IS" BASIS,\
167 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\
168 | implied. See the License for the specific language governing\
169 | permissions and limitations under the License.\
170 | \
171 | \
172 | \pard\pardeftab720\partightenfactor0
173 |
174 | \b\fs28 \cf0 Ruby License Terms:\
175 | \
176 | \pard\pardeftab720\partightenfactor0
177 |
178 | \b0\fs20 \cf0 Ruby is copyrighted free software by Yukihiro Matsumoto .\
179 | You can redistribute it and/or modify it under either the terms of the GPL\
180 | (see COPYING.txt file), or the conditions below:\
181 | \
182 | 1. You may make and give away verbatim copies of the source form of the\
183 | software without restriction, provided that you duplicate all of the\
184 | original copyright notices and associated disclaimers.\
185 | \
186 | 2. You may modify your copy of the software in any way, provided that\
187 | you do at least ONE of the following:\
188 | \
189 | a) place your modifications in the Public Domain or otherwise\
190 | make them Freely Available, such as by posting said\
191 | modifications to Usenet or an equivalent medium, or by allowing\
192 | the author to include your modifications in the software.\
193 | \
194 | b) use the modified software only within your corporation or\
195 | organization.\
196 | \
197 | c) rename any non-standard executables so the names do not conflict\
198 | with standard executables, which must also be provided.\
199 | \
200 | d) make other distribution arrangements with the author.\
201 | \
202 | 3. You may distribute the software in object code or executable\
203 | form, provided that you do at least ONE of the following:\
204 | \
205 | a) distribute the executables and library files of the software,\
206 | together with instructions (in the manual page or equivalent)\
207 | on where to get the original distribution.\
208 | \
209 | b) accompany the distribution with the machine-readable source of\
210 | the software.\
211 | \
212 | c) give non-standard executables non-standard names, with\
213 | instructions on where to get the original software distribution.\
214 | \
215 | d) make other distribution arrangements with the author.\
216 | \
217 | 4. You may modify and include the part of the software into any other\
218 | software (possibly commercial). But some files in the distribution\
219 | are not written by the author, so that they are not under this terms.\
220 | \
221 | They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some\
222 | files under the ./missing directory. See each file for the copying\
223 | condition.\
224 | \
225 | 5. The scripts and library files supplied as input to or produced as \
226 | output from the software do not automatically fall under the\
227 | copyright of the software, but belong to whomever generated them, \
228 | and may be sold commercially, and may be aggregated with this\
229 | software.\
230 | \
231 | 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR\
232 | IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED\
233 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\
234 | PURPOSE.\
235 | \
236 | \pard\pardeftab720\partightenfactor0
237 |
238 | \b\fs28 \cf0 Microsoft Reciprocal License (MS-RL)\
239 | \
240 | \pard\pardeftab720\partightenfactor0
241 |
242 | \b0\fs20 \cf0 This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.\
243 | \
244 | 1. Definitions\
245 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.\
246 | A "contribution" is the original software, or any additions or changes to the software.\
247 | A "contributor" is any person that distributes its contribution under this license.\
248 | "Licensed patents" are a contributor's patent claims that read directly on its contribution.\
249 | \
250 | 2. Grant of Rights\
251 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.\
252 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.\
253 | \
254 | 3. Conditions and Limitations\
255 | (A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose.\
256 | (B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.\
257 | (C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.\
258 | (D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.\
259 | (E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.\
260 | (F) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.\
261 | \
262 | \pard\pardeftab720\partightenfactor0
263 |
264 | \b\fs28 \cf0 Openssl Dual License Terms:\
265 | \
266 | \pard\pardeftab720\partightenfactor0
267 |
268 | \b0\fs20 \cf0 LICENSE ISSUES\
269 | ==============\
270 | \
271 | The OpenSSL toolkit stays under a dual license, i.e. both the conditions of\
272 | the OpenSSL License and the original SSLeay license apply to the toolkit.\
273 | See below for the actual license texts.\
274 | \
275 | OpenSSL License\
276 | ---------------\
277 | \
278 | ====================================================================\
279 | Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved.\
280 | \
281 | Redistribution and use in source and binary forms, with or without\
282 | modification, are permitted provided that the following conditions\
283 | are met:\
284 | \
285 | 1. Redistributions of source code must retain the above copyright\
286 | notice, this list of conditions and the following disclaimer.\
287 | \
288 | 2. Redistributions in binary form must reproduce the above copyright\
289 | notice, this list of conditions and the following disclaimer in\
290 | the documentation and/or other materials provided with the\
291 | distribution.\
292 | \
293 | 3. All advertising materials mentioning features or use of this\
294 | software must display the following acknowledgment:\
295 | "This product includes software developed by the OpenSSL Project\
296 | for use in the OpenSSL Toolkit. (http://www.openssl.org/)"\
297 | \
298 | 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to\
299 | endorse or promote products derived from this software without\
300 | prior written permission. For written permission, please contact\
301 | openssl-core@openssl.org.\
302 | \
303 | 5. Products derived from this software may not be called "OpenSSL"\
304 | nor may "OpenSSL" appear in their names without prior written\
305 | permission of the OpenSSL Project.\
306 | \
307 | 6. Redistributions of any form whatsoever must retain the following\
308 | acknowledgment:\
309 | "This product includes software developed by the OpenSSL Project\
310 | for use in the OpenSSL Toolkit (http://www.openssl.org/)"\
311 | \
312 | THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY\
313 | EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\
314 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\
315 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR\
316 | ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\
317 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\
318 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\
319 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\
320 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\
321 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\
322 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\
323 | OF THE POSSIBILITY OF SUCH DAMAGE.\
324 | ====================================================================\
325 | \
326 | This product includes cryptographic software written by Eric Young\
327 | (eay@cryptsoft.com). This product includes software written by Tim\
328 | Hudson (tjh@cryptsoft.com).\
329 | \
330 | \pard\pardeftab720\partightenfactor0
331 |
332 | \b\fs28 \cf0 Original SSLeay License\
333 | \
334 | \pard\pardeftab720\partightenfactor0
335 |
336 | \b0\fs20 \cf0 Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)\
337 | All rights reserved.\
338 | \
339 | This package is an SSL implementation written\
340 | by Eric Young (eay@cryptsoft.com).\
341 | The implementation was written so as to conform with Netscapes SSL.\
342 | \
343 | This library is free for commercial and non-commercial use as long as\
344 | the following conditions are aheared to. The following conditions\
345 | apply to all code found in this distribution, be it the RC4, RSA,\
346 | lhash, DES, etc., code; not just the SSL code. The SSL documentation\
347 | included with this distribution is covered by the same copyright terms\
348 | except that the holder is Tim Hudson (tjh@cryptsoft.com).\
349 | \
350 | Copyright remains Eric Young's, and as such any Copyright notices in\
351 | the code are not to be removed.\
352 | If this package is used in a product, Eric Young should be given attribution\
353 | as the author of the parts of the library used.\
354 | This can be in the form of a textual message at program startup or\
355 | in documentation (online or textual) provided with the package.\
356 | \
357 | Redistribution and use in source and binary forms, with or without\
358 | modification, are permitted provided that the following conditions\
359 | are met:\
360 | 1. Redistributions of source code must retain the copyright\
361 | notice, this list of conditions and the following disclaimer.\
362 | 2. Redistributions in binary form must reproduce the above copyright\
363 | notice, this list of conditions and the following disclaimer in the\
364 | documentation and/or other materials provided with the distribution.\
365 | 3. All advertising materials mentioning features or use of this software\
366 | must display the following acknowledgement:\
367 | "This product includes cryptographic software written by\
368 | Eric Young (eay@cryptsoft.com)"\
369 | The word 'cryptographic' can be left out if the rouines from the library\
370 | being used are not cryptographic related :-).\
371 | 4. If you include any Windows specific code (or a derivative thereof) from\
372 | the apps directory (application code) you must include an acknowledgement:\
373 | "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"\
374 | \
375 | THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND\
376 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\
377 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\
378 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\
379 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\
380 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\
381 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\
382 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\
383 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\
384 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\
385 | SUCH DAMAGE.\
386 | \
387 | The licence and distribution terms for any publically available version or\
388 | derivative of this code cannot be changed. i.e. this code cannot simply be\
389 | copied and put under another distribution licence\
390 | [including the GNU Public Licence.]\
391 | \
392 | \pard\pardeftab720\partightenfactor0
393 |
394 | \b\fs28 \cf0 MIT License:\
395 | \
396 | \pard\pardeftab720\partightenfactor0
397 |
398 | \b0\fs20 \cf0 The MIT License\
399 | \
400 | Permission is hereby granted, free of charge, to any person obtaining a copy\
401 | of this software and associated documentation files (the "Software"), to deal\
402 | in the Software without restriction, including without limitation the rights\
403 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
404 | copies of the Software, and to permit persons to whom the Software is\
405 | furnished to do so, subject to the following conditions:\
406 | \
407 | The above copyright notice and this permission notice shall be included in\
408 | all copies or substantial portions of the Software.\
409 | \
410 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\
411 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\
412 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\
413 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\
414 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\
415 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\
416 | THE SOFTWARE.\
417 | \
418 | \pard\pardeftab720\partightenfactor0
419 |
420 | \b\fs28 \cf0 \kerning1\expnd0\expndtw0 Artistic 2.0 License Terms:
421 | \b0\fs20 \
422 | \
423 | Artistic License 2.0\
424 | \
425 | Copyright (c) 2000-2006, The Perl Foundation.\
426 | \
427 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\
428 | \
429 | Preamble\
430 | This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software.\
431 | \
432 | You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement.\
433 | \
434 | Definitions\
435 | "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package.\
436 | \
437 | "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures.\
438 | \
439 | "You" and "your" means any person who would like to copy, distribute, or modify the Package.\
440 | \
441 | "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version.\
442 | \
443 | "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization.\
444 | \
445 | "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees.\
446 | \
447 | "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder.\
448 | \
449 | "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder.\
450 | \
451 | "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future.\
452 | \
453 | "Source" form means the source code, documentation source, and configuration files for the Package.\
454 | \
455 | "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form.\
456 | \
457 | Permission for Use and Modification Without Distribution\
458 | (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version.\
459 | \
460 | Permissions for Redistribution of the Standard Version\
461 | (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package.\
462 | \
463 | (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License.\
464 | \
465 | Distribution of Modified Versions of the Package as Source\
466 | (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following:\
467 | \
468 | (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version.\
469 | (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version.\
470 | (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under\
471 | (i) the Original License or\
472 | (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed.\
473 | \
474 | Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source\
475 | (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license.\
476 | \
477 | (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version.\
478 | \
479 | Aggregating or Linking the Package\
480 | (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation.\
481 | \
482 | (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package.\
483 | \
484 | Items That are Not Considered Part of a Modified Version\
485 | (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license.\
486 | \
487 | General Provisions\
488 | (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.\
489 | \
490 | (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.\
491 | \
492 | (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.\
493 | \
494 | (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.\
495 | \
496 | (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
497 | \pard\pardeftab720\partightenfactor0
498 | \cf0 \expnd0\expndtw0\kerning0
499 | \
500 | \pard\pardeftab720\partightenfactor0
501 |
502 | \b\fs28 \cf0 GPLv2 License Terms:\
503 | \
504 | \pard\pardeftab720\partightenfactor0
505 |
506 | \b0\fs20 \cf0 GNU GENERAL PUBLIC LICENSE\
507 | Version 2, June 1991\
508 | \
509 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\
510 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\
511 | Everyone is permitted to copy and distribute verbatim copies\
512 | of this license document, but changing it is not allowed.\
513 | \
514 | Preamble\
515 | \
516 | The licenses for most software are designed to take away your\
517 | freedom to share and change it. By contrast, the GNU General Public\
518 | License is intended to guarantee your freedom to share and change free\
519 | software--to make sure the software is free for all its users. This\
520 | General Public License applies to most of the Free Software\
521 | Foundation's software and to any other program whose authors commit to\
522 | using it. (Some other Free Software Foundation software is covered by\
523 | the GNU Lesser General Public License instead.) You can apply it to\
524 | your programs, too.\
525 | \
526 | When we speak of free software, we are referring to freedom, not\
527 | price. Our General Public Licenses are designed to make sure that you\
528 | have the freedom to distribute copies of free software (and charge for\
529 | this service if you wish), that you receive source code or can get it\
530 | if you want it, that you can change the software or use pieces of it\
531 | in new free programs; and that you know you can do these things.\
532 | \
533 | To protect your rights, we need to make restrictions that forbid\
534 | anyone to deny you these rights or to ask you to surrender the rights.\
535 | These restrictions translate to certain responsibilities for you if you\
536 | distribute copies of the software, or if you modify it.\
537 | \
538 | For example, if you distribute copies of such a program, whether\
539 | gratis or for a fee, you must give the recipients all the rights that\
540 | you have. You must make sure that they, too, receive or can get the\
541 | source code. And you must show them these terms so they know their\
542 | rights.\
543 | \
544 | We protect your rights with two steps: (1) copyright the software, and\
545 | (2) offer you this license which gives you legal permission to copy,\
546 | distribute and/or modify the software.\
547 | \
548 | Also, for each author's protection and ours, we want to make certain\
549 | that everyone understands that there is no warranty for this free\
550 | software. If the software is modified by someone else and passed on, we\
551 | want its recipients to know that what they have is not the original, so\
552 | that any problems introduced by others will not reflect on the original\
553 | authors' reputations.\
554 | \
555 | Finally, any free program is threatened constantly by software\
556 | patents. We wish to avoid the danger that redistributors of a free\
557 | program will individually obtain patent licenses, in effect making the\
558 | program proprietary. To prevent this, we have made it clear that any\
559 | patent must be licensed for everyone's free use or not licensed at all.\
560 | \
561 | The precise terms and conditions for copying, distribution and\
562 | modification follow.\
563 | \
564 | GNU GENERAL PUBLIC LICENSE\
565 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\
566 | \
567 | 0. This License applies to any program or other work which contains\
568 | a notice placed by the copyright holder saying it may be distributed\
569 | under the terms of this General Public License. The "Program", below,\
570 | refers to any such program or work, and a "work based on the Program"\
571 | means either the Program or any derivative work under copyright law:\
572 | that is to say, a work containing the Program or a portion of it,\
573 | either verbatim or with modifications and/or translated into another\
574 | language. (Hereinafter, translation is included without limitation in\
575 | the term "modification".) Each licensee is addressed as "you".\
576 | \
577 | Activities other than copying, distribution and modification are not\
578 | covered by this License; they are outside its scope. The act of\
579 | running the Program is not restricted, and the output from the Program\
580 | is covered only if its contents constitute a work based on the\
581 | Program (independent of having been made by running the Program).\
582 | Whether that is true depends on what the Program does.\
583 | \
584 | 1. You may copy and distribute verbatim copies of the Program's\
585 | source code as you receive it, in any medium, provided that you\
586 | conspicuously and appropriately publish on each copy an appropriate\
587 | copyright notice and disclaimer of warranty; keep intact all the\
588 | notices that refer to this License and to the absence of any warranty;\
589 | and give any other recipients of the Program a copy of this License\
590 | along with the Program.\
591 | \
592 | You may charge a fee for the physical act of transferring a copy, and\
593 | you may at your option offer warranty protection in exchange for a fee.\
594 | \
595 | 2. You may modify your copy or copies of the Program or any portion\
596 | of it, thus forming a work based on the Program, and copy and\
597 | distribute such modifications or work under the terms of Section 1\
598 | above, provided that you also meet all of these conditions:\
599 | \
600 | a) You must cause the modified files to carry prominent notices\
601 | stating that you changed the files and the date of any change.\
602 | \
603 | b) You must cause any work that you distribute or publish, that in\
604 | whole or in part contains or is derived from the Program or any\
605 | part thereof, to be licensed as a whole at no charge to all third\
606 | parties under the terms of this License.\
607 | \
608 | c) If the modified program normally reads commands interactively\
609 | when run, you must cause it, when started running for such\
610 | interactive use in the most ordinary way, to print or display an\
611 | announcement including an appropriate copyright notice and a\
612 | notice that there is no warranty (or else, saying that you provide\
613 | a warranty) and that users may redistribute the program under\
614 | these conditions, and telling the user how to view a copy of this\
615 | License. (Exception: if the Program itself is interactive but\
616 | does not normally print such an announcement, your work based on\
617 | the Program is not required to print an announcement.)\
618 | \
619 | These requirements apply to the modified work as a whole. If\
620 | identifiable sections of that work are not derived from the Program,\
621 | and can be reasonably considered independent and separate works in\
622 | themselves, then this License, and its terms, do not apply to those\
623 | sections when you distribute them as separate works. But when you\
624 | distribute the same sections as part of a whole which is a work based\
625 | on the Program, the distribution of the whole must be on the terms of\
626 | this License, whose permissions for other licensees extend to the\
627 | entire whole, and thus to each and every part regardless of who wrote it.\
628 | \
629 | Thus, it is not the intent of this section to claim rights or contest\
630 | your rights to work written entirely by you; rather, the intent is to\
631 | exercise the right to control the distribution of derivative or\
632 | collective works based on the Program.\
633 | \
634 | In addition, mere aggregation of another work not based on the Program\
635 | with the Program (or with a work based on the Program) on a volume of\
636 | a storage or distribution medium does not bring the other work under\
637 | the scope of this License.\
638 | \
639 | 3. You may copy and distribute the Program (or a work based on it,\
640 | under Section 2) in object code or executable form under the terms of\
641 | Sections 1 and 2 above provided that you also do one of the following:\
642 | \
643 | a) Accompany it with the complete corresponding machine-readable\
644 | source code, which must be distributed under the terms of Sections\
645 | 1 and 2 above on a medium customarily used for software interchange; or,\
646 | \
647 | b) Accompany it with a written offer, valid for at least three\
648 | years, to give any third party, for a charge no more than your\
649 | cost of physically performing source distribution, a complete\
650 | machine-readable copy of the corresponding source code, to be\
651 | distributed under the terms of Sections 1 and 2 above on a medium\
652 | customarily used for software interchange; or,\
653 | \
654 | c) Accompany it with the information you received as to the offer\
655 | to distribute corresponding source code. (This alternative is\
656 | allowed only for noncommercial distribution and only if you\
657 | received the program in object code or executable form with such\
658 | an offer, in accord with Subsection b above.)\
659 | \
660 | The source code for a work means the preferred form of the work for\
661 | making modifications to it. For an executable work, complete source\
662 | code means all the source code for all modules it contains, plus any\
663 | associated interface definition files, plus the scripts used to\
664 | control compilation and installation of the executable. However, as a\
665 | special exception, the source code distributed need not include\
666 | anything that is normally distributed (in either source or binary\
667 | form) with the major components (compiler, kernel, and so on) of the\
668 | operating system on which the executable runs, unless that component\
669 | itself accompanies the executable.\
670 | \
671 | If distribution of executable or object code is made by offering\
672 | access to copy from a designated place, then offering equivalent\
673 | access to copy the source code from the same place counts as\
674 | distribution of the source code, even though third parties are not\
675 | compelled to copy the source along with the object code.\
676 | \
677 | 4. You may not copy, modify, sublicense, or distribute the Program\
678 | except as expressly provided under this License. Any attempt\
679 | otherwise to copy, modify, sublicense or distribute the Program is\
680 | void, and will automatically terminate your rights under this License.\
681 | However, parties who have received copies, or rights, from you under\
682 | this License will not have their licenses terminated so long as such\
683 | parties remain in full compliance.\
684 | \
685 | 5. You are not required to accept this License, since you have not\
686 | signed it. However, nothing else grants you permission to modify or\
687 | distribute the Program or its derivative works. These actions are\
688 | prohibited by law if you do not accept this License. Therefore, by\
689 | modifying or distributing the Program (or any work based on the\
690 | Program), you indicate your acceptance of this License to do so, and\
691 | all its terms and conditions for copying, distributing or modifying\
692 | the Program or works based on it.\
693 | \
694 | 6. Each time you redistribute the Program (or any work based on the\
695 | Program), the recipient automatically receives a license from the\
696 | original licensor to copy, distribute or modify the Program subject to\
697 | these terms and conditions. You may not impose any further\
698 | restrictions on the recipients' exercise of the rights granted herein.\
699 | You are not responsible for enforcing compliance by third parties to\
700 | this License.\
701 | \
702 | 7. If, as a consequence of a court judgment or allegation of patent\
703 | infringement or for any other reason (not limited to patent issues),\
704 | conditions are imposed on you (whether by court order, agreement or\
705 | otherwise) that contradict the conditions of this License, they do not\
706 | excuse you from the conditions of this License. If you cannot\
707 | distribute so as to satisfy simultaneously your obligations under this\
708 | License and any other pertinent obligations, then as a consequence you\
709 | may not distribute the Program at all. For example, if a patent\
710 | license would not permit royalty-free redistribution of the Program by\
711 | all those who receive copies directly or indirectly through you, then\
712 | the only way you could satisfy both it and this License would be to\
713 | refrain entirely from distribution of the Program.\
714 | \
715 | If any portion of this section is held invalid or unenforceable under\
716 | any particular circumstance, the balance of the section is intended to\
717 | apply and the section as a whole is intended to apply in other\
718 | circumstances.\
719 | \
720 | It is not the purpose of this section to induce you to infringe any\
721 | patents or other property right claims or to contest validity of any\
722 | such claims; this section has the sole purpose of protecting the\
723 | integrity of the free software distribution system, which is\
724 | implemented by public license practices. Many people have made\
725 | generous contributions to the wide range of software distributed\
726 | through that system in reliance on consistent application of that\
727 | system; it is up to the author/donor to decide if he or she is willing\
728 | to distribute software through any other system and a licensee cannot\
729 | impose that choice.\
730 | \
731 | This section is intended to make thoroughly clear what is believed to\
732 | be a consequence of the rest of this License.\
733 | \
734 | 8. If the distribution and/or use of the Program is restricted in\
735 | certain countries either by patents or by copyrighted interfaces, the\
736 | original copyright holder who places the Program under this License\
737 | may add an explicit geographical distribution limitation excluding\
738 | those countries, so that distribution is permitted only in or among\
739 | countries not thus excluded. In such case, this License incorporates\
740 | the limitation as if written in the body of this License.\
741 | \
742 | 9. The Free Software Foundation may publish revised and/or new versions\
743 | of the General Public License from time to time. Such new versions will\
744 | be similar in spirit to the present version, but may differ in detail to\
745 | address new problems or concerns.\
746 | \
747 | Each version is given a distinguishing version number. If the Program\
748 | specifies a version number of this License which applies to it and "any\
749 | later version", you have the option of following the terms and conditions\
750 | either of that version or of any later version published by the Free\
751 | Software Foundation. If the Program does not specify a version number of\
752 | this License, you may choose any version ever published by the Free Software\
753 | Foundation.\
754 | \
755 | 10. If you wish to incorporate parts of the Program into other free\
756 | programs whose distribution conditions are different, write to the author\
757 | to ask for permission. For software which is copyrighted by the Free\
758 | Software Foundation, write to the Free Software Foundation; we sometimes\
759 | make exceptions for this. Our decision will be guided by the two goals\
760 | of preserving the free status of all derivatives of our free software and\
761 | of promoting the sharing and reuse of software generally.\
762 | \
763 | NO WARRANTY\
764 | \
765 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\
766 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\
767 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\
768 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\
769 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\
770 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\
771 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\
772 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\
773 | REPAIR OR CORRECTION.\
774 | \
775 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\
776 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\
777 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\
778 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\
779 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\
780 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\
781 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\
782 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\
783 | POSSIBILITY OF SUCH DAMAGES.\
784 | \
785 | END OF TERMS AND CONDITIONS\
786 | \
787 | How to Apply These Terms to Your New Programs\
788 | \
789 | If you develop a new program, and you want it to be of the greatest\
790 | possible use to the public, the best way to achieve this is to make it\
791 | free software which everyone can redistribute and change under these terms.\
792 | \
793 | To do so, attach the following notices to the program. It is safest\
794 | to attach them to the start of each source file to most effectively\
795 | convey the exclusion of warranty; and each file should have at least\
796 | the "copyright" line and a pointer to where the full notice is found.\
797 | \
798 | \
799 | Copyright (C) \
800 | \
801 | This program is free software; you can redistribute it and/or modify\
802 | it under the terms of the GNU General Public License as published by\
803 | the Free Software Foundation; either version 2 of the License, or\
804 | (at your option) any later version.\
805 | \
806 | This program is distributed in the hope that it will be useful,\
807 | but WITHOUT ANY WARRANTY; without even the implied warranty of\
808 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\
809 | GNU General Public License for more details.\
810 | \
811 | You should have received a copy of the GNU General Public License along\
812 | with this program; if not, write to the Free Software Foundation, Inc.,\
813 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\
814 | \
815 | Also add information on how to contact you by electronic and paper mail.\
816 | \
817 | If the program is interactive, make it output a short notice like this\
818 | when it starts in an interactive mode:\
819 | \
820 | Gnomovision version 69, Copyright (C) year name of author\
821 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\
822 | This is free software, and you are welcome to redistribute it\
823 | under certain conditions; type `show c' for details.\
824 | \
825 | The hypothetical commands `show w' and `show c' should show the appropriate\
826 | parts of the General Public License. Of course, the commands you use may\
827 | be called something other than `show w' and `show c'; they could even be\
828 | mouse-clicks or menu items--whatever suits your program.\
829 | \
830 | You should also get your employer (if you work as a programmer) or your\
831 | school, if any, to sign a "copyright disclaimer" for the program, if\
832 | necessary. Here is a sample; alter the names:\
833 | \
834 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program\
835 | `Gnomovision' (which makes passes at compilers) written by James Hacker.\
836 | \
837 | , 1 April 1989\
838 | Ty Coon, President of Vice\
839 | \
840 | This General Public License does not permit incorporating your program into\
841 | proprietary programs. If your program is a subroutine library, you may\
842 | consider it more useful to permit linking proprietary applications with the\
843 | library. If this is what you want to do, use the GNU Lesser General\
844 | Public License instead of this License.\
845 | \
846 | \pard\pardeftab720\partightenfactor0
847 |
848 | \b\fs28 \cf0 The 3-Clause BSD License\
849 | \
850 | \pard\pardeftab720\partightenfactor0
851 |
852 | \b0\fs20 \cf0 Note: This license has also been called the "New BSD License" or "Modified BSD License". See also the 2-clause BSD License.\
853 | \
854 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\
855 | \
856 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\
857 | \
858 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\
859 | \
860 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\
861 | \
862 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}
--------------------------------------------------------------------------------