omnibus-software 23.7.295 → 3002.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omnibus-software might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/omnibus-software.rb +87 -102
- metadata +13 -273
- data/.buildkite/hooks/pre-command +0 -9
- data/.expeditor/Version_inspector/README.md +0 -21
- data/.expeditor/Version_inspector/SW-Version-update.py +0 -243
- data/.expeditor/Version_inspector/manual_prod_list.json +0 -29
- data/.expeditor/Version_inspector/prod_default_version.json +0 -103
- data/.expeditor/Version_inspector/prod_list.json +0 -194
- data/.expeditor/Version_inspector/requirements.txt +0 -4
- data/.expeditor/Version_inspector/update_prod_default_version.sh +0 -24
- data/.expeditor/Version_inspector/update_prod_list.sh +0 -35
- data/.expeditor/config.yml +0 -44
- data/.expeditor/determine_version.sh +0 -15
- data/.expeditor/push_git_tag.sh +0 -12
- data/.expeditor/run_linux_tests.sh +0 -16
- data/.expeditor/software_upload.pipeline.yml +0 -17
- data/.expeditor/verify.pipeline.yml +0 -52
- data/.github/CODEOWNERS +0 -5
- data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +0 -29
- data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +0 -40
- data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +0 -17
- data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +0 -11
- data/.github/dependabot.yml +0 -9
- data/.github/lock.yml +0 -1
- data/.gitignore +0 -17
- data/CHANGELOG.md +0 -18
- data/CODE_OF_CONDUCT.md +0 -1
- data/CONTRIBUTING.md +0 -1
- data/Dockerfile +0 -21
- data/Gemfile +0 -10
- data/LICENSE +0 -201
- data/README.md +0 -99
- data/Rakefile +0 -56
- data/VERSION +0 -1
- data/config/patches/bash/race-condition.patch +0 -15
- data/config/patches/bash/updated_race-condition.patch +0 -15
- data/config/patches/bzip2/aix_makefile.patch +0 -11
- data/config/patches/bzip2/makefile_no_bins.patch +0 -77
- data/config/patches/bzip2/makefile_take_env_vars.patch +0 -31
- data/config/patches/bzip2/soname_install_dir.patch +0 -11
- data/config/patches/curl/curl-aix-disable-alpn.patch +0 -22
- data/config/patches/curl/curl-freebsd-hostcheck.patch +0 -10
- data/config/patches/erlang/epmd-require-explicitly-adding-loopback-address.patch +0 -84
- data/config/patches/erlang/updated-epmd-require-explicitly-adding-loopback-address.patch +0 -75
- data/config/patches/expat/configure_xlc_visibility.patch +0 -58
- data/config/patches/expat/configure_xlc_visibility_2.4.7.patch +0 -59
- data/config/patches/figlet/aix-figlet-cdefs.patch +0 -48
- data/config/patches/gdbm/v1.8.3-Makefile.in.patch +0 -32
- data/config/patches/git/aix-endian-fix.patch +0 -20
- data/config/patches/gtar/aix_extra_case.patch +0 -13
- data/config/patches/keepalived/keepalived-1.2.9_opscode_centos_5.patch +0 -15
- data/config/patches/libedit/freebsd-vi-fix.patch +0 -24
- data/config/patches/libedit/openbsd-weak-alias-fix.patch +0 -48
- data/config/patches/libedit/solaris.patch +0 -36
- data/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +0 -83
- data/config/patches/libffi/libffi-3.3-arm64.patch +0 -9608
- data/config/patches/libxslt/libxslt-solaris-configure.patch +0 -19
- data/config/patches/libxslt/libxslt-windows-relocate.patch +0 -12
- data/config/patches/libyaml/windows-configure.patch +0 -26
- data/config/patches/libzmq/zeromq-4.0.11_mingw_inet_pton.patch +0 -37
- data/config/patches/libzmq/zeromq-aix-4.2.2-LARGE_FILES.patch +0 -56
- data/config/patches/libzmq/zeromq-aix-4.2.2-atomic-counter-fetch_and_add.patch +0 -59
- data/config/patches/logrotate/logrotate_basedir_override.patch +0 -17
- data/config/patches/m4/m4-1.4.18-glibc-change-work-around.patch +0 -115
- data/config/patches/make/deb-make-glob.patch +0 -31
- data/config/patches/ncurses/ncurses-5.9-gcc-5.patch +0 -46
- data/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch +0 -11
- data/config/patches/ncurses/ncurses-clang.patch +0 -43
- data/config/patches/ncurses/patch-aa +0 -23
- data/config/patches/ncurses/patch-ab +0 -44
- data/config/patches/ncurses/patch-ac +0 -40
- data/config/patches/ncurses/patch-ad +0 -13
- data/config/patches/ncurses/patch-cxx_cursesf.h +0 -22
- data/config/patches/ncurses/patch-cxx_cursesm.h +0 -22
- data/config/patches/ncurses/patch-ncurses_tinfo_lib__baudrate.c +0 -24
- data/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +0 -28
- data/config/patches/openssl/openssl-1.0.1j-windows-relocate-dll.patch +0 -44
- data/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +0 -20
- data/config/patches/openssl/openssl-1.0.2x-darwin-arm64.patch +0 -54
- data/config/patches/openssl/openssl-1.1.0f-do-not-install-docs.patch +0 -11
- data/config/patches/openssl/openssl-3.0.1-do-not-install-docs.patch +0 -22
- data/config/patches/openssl-fips/openssl-fips-fix-compiler-flags-table-for-msys.patch +0 -11
- data/config/patches/perl/perl-5.18.1-remove_lnsl.patch +0 -441
- data/config/patches/perl/perl-5.22.1-remove_lnsl.patch +0 -512
- data/config/patches/perl/perl-5.30.0-remove_lnsl.patch +0 -518
- data/config/patches/perl/perl-5.32.1-remove_lnsl.patch +0 -456
- data/config/patches/perl/perl-5.34.0-remove_lnsl.patch +0 -516
- data/config/patches/pkg-config/openbsd-charset.patch +0 -19
- data/config/patches/popt/v1.16.ppc64le-configure.patch +0 -18
- data/config/patches/redis/password-from-environment.patch +0 -19
- data/config/patches/ruby/patch-configure +0 -103
- data/config/patches/ruby/remove_nano.patch +0 -10
- data/config/patches/ruby/ruby-2.6.7_c99.patch +0 -12
- data/config/patches/ruby/ruby-3.0.1-configure.patch +0 -281
- data/config/patches/ruby/ruby-3.0.2-configure.patch +0 -251
- data/config/patches/ruby/ruby-3.0.5-configure.patch +0 -260
- data/config/patches/ruby/ruby-aix-atomic.patch +0 -11
- data/config/patches/ruby/ruby-aix-configure_26_and_later.patch +0 -19
- data/config/patches/ruby/ruby-aix-vm-core.patch +0 -14
- data/config/patches/ruby/ruby-fast-load_26.patch +0 -16
- data/config/patches/ruby/ruby-fast-load_31.patch +0 -16
- data/config/patches/ruby/ruby-faster-load_26.patch +0 -11
- data/config/patches/ruby/ruby-faster-load_27.patch +0 -11
- data/config/patches/ruby/ruby-mkmf.patch +0 -29
- data/config/patches/ruby/ruby-no-stack-protector-strong.patch +0 -11
- data/config/patches/ruby/ruby-no-stack-protector.patch +0 -13
- data/config/patches/ruby/ruby-win32_warning_removal.patch +0 -12
- data/config/patches/ruby/ruby_aix_openssl.patch +0 -10
- data/config/patches/ruby/ruby_aix_ssl_EAGAIN.patch +0 -19
- data/config/patches/ruby/rvm-cflags.patch +0 -27
- data/config/patches/stunnel/stunnel-on-windows.patch +0 -42
- data/config/patches/zlib/zlib-windows-relocate.patch +0 -20
- data/config/software/autoconf.rb +0 -46
- data/config/software/automake.rb +0 -49
- data/config/software/bash.rb +0 -81
- data/config/software/berkshelf-no-depselector.rb +0 -46
- data/config/software/berkshelf.rb +0 -34
- data/config/software/binutils.rb +0 -47
- data/config/software/bundler.rb +0 -38
- data/config/software/bzip2.rb +0 -57
- data/config/software/cacerts.rb +0 -52
- data/config/software/chef-gem.rb +0 -35
- data/config/software/chef.rb +0 -113
- data/config/software/cmake.rb +0 -100
- data/config/software/config_guess.rb +0 -37
- data/config/software/cpanminus.rb +0 -50
- data/config/software/curl.rb +0 -105
- data/config/software/delivery-cli.rb +0 -89
- data/config/software/dep-selector-libgecode.rb +0 -48
- data/config/software/elasticsearch.rb +0 -67
- data/config/software/elixir.rb +0 -35
- data/config/software/erlang.rb +0 -134
- data/config/software/expat.rb +0 -66
- data/config/software/fakeroot.rb +0 -41
- data/config/software/ffi-yajl.rb +0 -46
- data/config/software/figlet-fonts.rb +0 -31
- data/config/software/figlet.rb +0 -44
- data/config/software/gcc.rb +0 -60
- data/config/software/gdbm.rb +0 -54
- data/config/software/gecode.rb +0 -64
- data/config/software/gem-permissions.rb +0 -43
- data/config/software/git-windows.rb +0 -98
- data/config/software/git.rb +0 -142
- data/config/software/gmp.rb +0 -50
- data/config/software/go-uninstall.rb +0 -33
- data/config/software/go.rb +0 -123
- data/config/software/google-protobuf.rb +0 -45
- data/config/software/gtar.rb +0 -64
- data/config/software/help2man.rb +0 -40
- data/config/software/highline-gem.rb +0 -37
- data/config/software/ibm-jre.rb +0 -59
- data/config/software/inspec.rb +0 -43
- data/config/software/jre-from-jdk.rb +0 -67
- data/config/software/keepalived.rb +0 -68
- data/config/software/libarchive.rb +0 -74
- data/config/software/libedit.rb +0 -76
- data/config/software/libffi.rb +0 -71
- data/config/software/libgcc.rb +0 -52
- data/config/software/libiconv.rb +0 -57
- data/config/software/libintl-perl.rb +0 -59
- data/config/software/liblzma.rb +0 -63
- data/config/software/libossp-uuid.rb +0 -47
- data/config/software/libsodium.rb +0 -42
- data/config/software/libtool.rb +0 -58
- data/config/software/libuuid.rb +0 -44
- data/config/software/libxml2.rb +0 -65
- data/config/software/libxslt.rb +0 -68
- data/config/software/libyajl2-gem.rb +0 -44
- data/config/software/libyaml.rb +0 -52
- data/config/software/libzmq.rb +0 -93
- data/config/software/logrotate.rb +0 -64
- data/config/software/lua.rb +0 -48
- data/config/software/m4.rb +0 -40
- data/config/software/make.rb +0 -46
- data/config/software/makedepend.rb +0 -47
- data/config/software/mpc.rb +0 -48
- data/config/software/mpfr.rb +0 -48
- data/config/software/musl.rb +0 -107
- data/config/software/mysql2.rb +0 -50
- data/config/software/ncurses.rb +0 -162
- data/config/software/nginx.rb +0 -57
- data/config/software/nodejs-binary.rb +0 -93
- data/config/software/nodejs.rb +0 -58
- data/config/software/nokogiri.rb +0 -92
- data/config/software/omnibus-ctl.rb +0 -42
- data/config/software/openresty.rb +0 -96
- data/config/software/opensearch.rb +0 -59
- data/config/software/openssl-customization.rb +0 -81
- data/config/software/openssl-fips.rb +0 -85
- data/config/software/openssl.rb +0 -199
- data/config/software/patch.rb +0 -48
- data/config/software/patchelf.rb +0 -70
- data/config/software/pcre.rb +0 -55
- data/config/software/perl-extutils-embed.rb +0 -38
- data/config/software/perl-extutils-makemaker.rb +0 -47
- data/config/software/perl-thread-queue.rb +0 -41
- data/config/software/perl.rb +0 -80
- data/config/software/perl_pg_driver.rb +0 -46
- data/config/software/pg-gem.rb +0 -36
- data/config/software/pkg-config-lite.rb +0 -48
- data/config/software/pkg-config.rb +0 -68
- data/config/software/popt.rb +0 -59
- data/config/software/postgresql.rb +0 -71
- data/config/software/preparation.rb +0 -31
- data/config/software/python.rb +0 -83
- data/config/software/rabbitmq.rb +0 -58
- data/config/software/rb-readline.rb +0 -33
- data/config/software/rbnacl-libsodium.rb +0 -42
- data/config/software/rbzmq.rb +0 -44
- data/config/software/rebar.rb +0 -42
- data/config/software/redis-gem.rb +0 -36
- data/config/software/redis.rb +0 -54
- data/config/software/relx.rb +0 -39
- data/config/software/rsync.rb +0 -57
- data/config/software/ruby-cleanup.rb +0 -271
- data/config/software/ruby-msys2-devkit.rb +0 -72
- data/config/software/ruby-windows-devkit-bash.rb +0 -43
- data/config/software/ruby-windows-devkit.rb +0 -84
- data/config/software/ruby.rb +0 -315
- data/config/software/rubygems.rb +0 -73
- data/config/software/runit.rb +0 -68
- data/config/software/rust-uninstall.rb +0 -32
- data/config/software/rust.rb +0 -97
- data/config/software/sequel-gem.rb +0 -36
- data/config/software/server-jre.rb +0 -132
- data/config/software/server-open-jre.rb +0 -146
- data/config/software/setuptools.rb +0 -48
- data/config/software/shebang-cleanup.rb +0 -101
- data/config/software/sqitch.rb +0 -92
- data/config/software/stunnel.rb +0 -88
- data/config/software/util-macros.rb +0 -44
- data/config/software/version-manifest.rb +0 -33
- data/config/software/xproto.rb +0 -43
- data/config/software/zlib.rb +0 -88
- data/config/templates/git/config.mak.erb +0 -31
- data/config/templates/rubygems/register_devtools.rb.erb +0 -33
- data/config/templates/runit/runsvdir-start.erb +0 -42
- data/docker-compose.yml +0 -15
- data/lib/omnibus-software/version.rb +0 -3
- data/omnibus-software.gemspec +0 -20
- data/scripts/internal_sources.rb +0 -78
- data/scripts/internal_sources.yml +0 -419
- data/test/Gemfile +0 -10
- data/test/config/projects/test.rb +0 -14
- data/test/generate_steps.rb +0 -65
- data/test/omnibus-build.sh +0 -55
- data/test/omnibus.rb +0 -59
@@ -1,96 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "openresty"
|
18
|
-
license "BSD-2-Clause"
|
19
|
-
license_file "README.markdown"
|
20
|
-
skip_transitive_dependency_licensing true
|
21
|
-
default_version "1.21.4.1"
|
22
|
-
|
23
|
-
dependency "pcre"
|
24
|
-
dependency "openssl"
|
25
|
-
dependency "zlib"
|
26
|
-
dependency "lua" if ppc64? || ppc64le? || s390x?
|
27
|
-
|
28
|
-
# versions_list: https://openresty.org/download/ filter=*.tar.gz
|
29
|
-
version("1.21.4.1") { source sha256: "0c5093b64f7821e85065c99e5d4e6cc31820cfd7f37b9a0dec84209d87a2af99" }
|
30
|
-
version("1.21.4.1rc1") { source sha256: "1cb216bc57a253149cb5c4b815bfe00e1c0713e7355774bbc26cf306d2ff632f" }
|
31
|
-
version("1.19.9.1") { source sha256: "576ff4e546e3301ce474deef9345522b7ef3a9d172600c62057f182f3a68c1f6" }
|
32
|
-
version("1.19.3.2") { source sha256: "ce40e764990fbbeb782e496eb63e214bf19b6f301a453d13f70c4f363d1e5bb9" }
|
33
|
-
version("1.19.3.1") { source sha256: "f36fcd9c51f4f9eb8aaab8c7f9e21018d5ce97694315b19cacd6ccf53ab03d5d" }
|
34
|
-
version("1.17.8.2") { source sha256: "2f321ab11cb228117c840168f37094ee97f8f0316eac413766305409c7e023a0" }
|
35
|
-
version("1.15.8.1") { source sha256: "89a1238ca177692d6903c0adbea5bdf2a0b82c383662a73c03ebf5ef9f570842" }
|
36
|
-
version("1.13.6.2") { source sha256: "946e1958273032db43833982e2cec0766154a9b5cb8e67868944113208ff2942" }
|
37
|
-
version("1.11.2.5") { source sha256: "f8cc203e8c0fcd69676f65506a3417097fc445f57820aa8e92d7888d8ad657b9" }
|
38
|
-
|
39
|
-
source url: "https://openresty.org/download/openresty-#{version}.tar.gz"
|
40
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
41
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
42
|
-
|
43
|
-
relative_path "openresty-#{version}"
|
44
|
-
|
45
|
-
build do
|
46
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
47
|
-
env["PATH"] += "#{env["PATH"]}:/usr/sbin:/sbin"
|
48
|
-
|
49
|
-
configure = [
|
50
|
-
"./configure",
|
51
|
-
"--prefix=#{install_dir}/embedded",
|
52
|
-
"--sbin-path=#{install_dir}/embedded/sbin/nginx",
|
53
|
-
"--conf-path=#{install_dir}/embedded/conf/nginx.conf",
|
54
|
-
"--with-http_ssl_module",
|
55
|
-
"--with-debug",
|
56
|
-
"--with-http_stub_status_module",
|
57
|
-
# Building Nginx with non-system OpenSSL
|
58
|
-
# http://www.ruby-forum.com/topic/207287#902308
|
59
|
-
"--with-ld-opt=\"-L#{install_dir}/embedded/lib -Wl,-rpath,#{install_dir}/embedded/lib -lssl -lcrypto -ldl -lz\"",
|
60
|
-
"--with-cc-opt=\"-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include\"",
|
61
|
-
# Options inspired by the OpenResty Cookbook
|
62
|
-
"--with-md5-asm",
|
63
|
-
"--with-sha1-asm",
|
64
|
-
"--with-pcre-jit",
|
65
|
-
"--without-http_ssi_module",
|
66
|
-
"--without-mail_smtp_module",
|
67
|
-
"--without-mail_imap_module",
|
68
|
-
"--without-mail_pop3_module",
|
69
|
-
"--with-http_v2_module",
|
70
|
-
"--with-ipv6",
|
71
|
-
# AIO support define in Openresty cookbook. Requires Kernel >= 2.6.22
|
72
|
-
# Ubuntu 10.04 reports: 2.6.32-38-server #83-Ubuntu SMP
|
73
|
-
# However, they require libatomic-ops-dev and libaio
|
74
|
-
# '--with-file-aio',
|
75
|
-
# '--with-libatomic'
|
76
|
-
]
|
77
|
-
|
78
|
-
# Currently LuaJIT doesn't support POWER correctly so use Lua51 there instead
|
79
|
-
if ppc64? || ppc64le? || s390x?
|
80
|
-
# 1.13 breaks these; discover a workaround
|
81
|
-
if version.satisfies?(">= 1.13")
|
82
|
-
exit("ppc64? || ppc64le? || s390x? unsupported for 1.13 and greater")
|
83
|
-
else
|
84
|
-
configure << "--with-lua51=#{install_dir}/embedded/lib"
|
85
|
-
end
|
86
|
-
else
|
87
|
-
configure << "--with-luajit"
|
88
|
-
end
|
89
|
-
|
90
|
-
command configure.join(" "), env: env
|
91
|
-
|
92
|
-
make "-j #{workers}", env: env
|
93
|
-
make "install", env: env
|
94
|
-
|
95
|
-
touch "#{install_dir}/embedded/nginx/logs/.gitkeep"
|
96
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2020 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "opensearch"
|
18
|
-
default_version "2.4.1"
|
19
|
-
|
20
|
-
dependency "server-open-jre"
|
21
|
-
license "Apache-2.0"
|
22
|
-
license_file "LICENSE.txt"
|
23
|
-
skip_transitive_dependency_licensing true
|
24
|
-
|
25
|
-
source url: "https://artifacts.opensearch.org/releases/bundle/opensearch/#{version}/opensearch-#{version}-linux-x64.tar.gz"
|
26
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
27
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
28
|
-
relative_path "opensearch-#{version}"
|
29
|
-
|
30
|
-
# versions_list:https://opensearch.org/docs/latest/version-history/
|
31
|
-
version("2.4.1") { source sha256: "f2b71818ad84cdab1b736211efbdd79d33835a92d46f66a237fa1182d012410d" }
|
32
|
-
version("2.4.0") { source sha256: "82bee5f68ea3d74a7d835d35f1479509b8497d01c1ae758a4737f5ea799e38e8" }
|
33
|
-
version("2.3.0") { source sha256: "696500b3126d2f2ad7216456cff1c58e8ea89402d76e0544a2e547549cf910ca" }
|
34
|
-
version("2.2.0") { source sha256: "4480c15682ddcd10cebb8a1103f4efafa789d7aee9d4c8c9201cd9864d5ed58c" }
|
35
|
-
version("2.1.0") { source sha256: "bccd737e0f4e4554d3918f011a1e379ebda9e53473c70b4264aa28ce719611e3" }
|
36
|
-
version("2.0.1") { source sha256: "8366dc71c839935330dbe841b415b37f28573de5ae7718e75f2e1c50756e0d99" }
|
37
|
-
version("2.0.0") { source sha256: "bec706d221052cb962ed0e6973d28e1058f21ef3dfc054c97c991bb279b0564e" }
|
38
|
-
version("1.3.2") { source sha256: "14199251a8aae2068fd54aa39c778ff29dcc8be33d57f36a8cc2d19e07ff4149" }
|
39
|
-
version("1.2.4") { source sha256: "d40f2696623b6766aa235997e2847a6c661a226815d4ba173292a219754bd8a8" }
|
40
|
-
|
41
|
-
target_path = "#{install_dir}/embedded/opensearch"
|
42
|
-
|
43
|
-
build do
|
44
|
-
mkdir "#{target_path}"
|
45
|
-
|
46
|
-
delete "#{project_dir}/config"
|
47
|
-
|
48
|
-
# OpenSearch includes a compatible jdk but its files fail the omnibus health check.
|
49
|
-
# It isn't needed since we use the omnibus built server-open-jre so it can be deleted.
|
50
|
-
delete "#{project_dir}/jdk"
|
51
|
-
|
52
|
-
# Delete the opensearch-knn plugin because it causes health check failures
|
53
|
-
delete "#{project_dir}/plugins/opensearch-knn"
|
54
|
-
|
55
|
-
sync "#{project_dir}/", "#{target_path}"
|
56
|
-
# Dropping a VERSION file here allows additional software definitions
|
57
|
-
# to read it to determine ES plugin compatibility.
|
58
|
-
command "echo #{version} > #{target_path}/VERSION"
|
59
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Copyright (c) 2014-2017, Chef Software Inc.
|
3
|
-
# License:: Apache License, Version 2.0
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
|
18
|
-
# This software makes sure that SSL_CERT_FILE environment variable is pointed
|
19
|
-
# to the bundled CA certificates that ship with omnibus. With this, Chef
|
20
|
-
# tools can be used with https URLs out of the box.
|
21
|
-
# expeditor/ignore: logic only
|
22
|
-
|
23
|
-
name "openssl-customization"
|
24
|
-
|
25
|
-
license :project_license
|
26
|
-
skip_transitive_dependency_licensing true
|
27
|
-
|
28
|
-
source path: "#{project.files_path}/#{name}"
|
29
|
-
|
30
|
-
dependency "ruby"
|
31
|
-
|
32
|
-
build do
|
33
|
-
block "Add OpenSSL customization file" do
|
34
|
-
# gets directories for RbConfig::CONFIG and sanitizes them.
|
35
|
-
def get_sanitized_rbconfig(config)
|
36
|
-
ruby = windows_safe_path("#{install_dir}/embedded/bin/ruby")
|
37
|
-
|
38
|
-
config_dir = Bundler.with_clean_env do
|
39
|
-
command_output = `#{ruby} -rrbconfig -e "puts RbConfig::CONFIG['#{config}']"`.strip
|
40
|
-
windows_safe_path(command_output)
|
41
|
-
end
|
42
|
-
|
43
|
-
if config_dir.nil? || config_dir.empty?
|
44
|
-
raise "could not determine embedded ruby's RbConfig::CONFIG['#{config}']"
|
45
|
-
end
|
46
|
-
|
47
|
-
config_dir
|
48
|
-
end
|
49
|
-
|
50
|
-
if windows?
|
51
|
-
embedded_ruby_site_dir = get_sanitized_rbconfig("sitelibdir")
|
52
|
-
embedded_ruby_lib_dir = get_sanitized_rbconfig("rubylibdir")
|
53
|
-
|
54
|
-
source_ssl_env_hack = File.join(project_dir, "windows", "ssl_env_hack.rb")
|
55
|
-
destination_ssl_env_hack = File.join(embedded_ruby_site_dir, "ssl_env_hack.rb")
|
56
|
-
|
57
|
-
create_directory(embedded_ruby_site_dir)
|
58
|
-
|
59
|
-
copy(source_ssl_env_hack, destination_ssl_env_hack)
|
60
|
-
|
61
|
-
# Unfortunately there is no patch on windows, but luckily we only need to append a line to the openssl.rb
|
62
|
-
# to pick up our script which find the CA bundle in omnibus installations and points SSL_CERT_FILE to it
|
63
|
-
# if it's not already set
|
64
|
-
source_openssl_rb = File.join(embedded_ruby_lib_dir, "openssl.rb")
|
65
|
-
File.open(source_openssl_rb, "r+") do |f|
|
66
|
-
unpatched_openssl_rb = f.read
|
67
|
-
f.rewind
|
68
|
-
f.write("\nrequire 'ssl_env_hack'\n")
|
69
|
-
f.write(unpatched_openssl_rb)
|
70
|
-
end
|
71
|
-
else
|
72
|
-
embedded_ruby_lib_dir = get_sanitized_rbconfig("rubylibdir")
|
73
|
-
source_openssl_rb = File.join(embedded_ruby_lib_dir, "openssl.rb")
|
74
|
-
File.open(source_openssl_rb, "r+") do |f|
|
75
|
-
unpatched_openssl_rb = f.read
|
76
|
-
f.rewind
|
77
|
-
f.write(unpatched_openssl_rb)
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2014-2019 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "openssl-fips"
|
18
|
-
default_version "2.0.16"
|
19
|
-
|
20
|
-
license "OpenSSL"
|
21
|
-
license_file "https://www.openssl.org/source/license.html"
|
22
|
-
skip_transitive_dependency_licensing true
|
23
|
-
|
24
|
-
# HAHAHA According to the FIPS manual, you need to "securely" fetch the source
|
25
|
-
# such as asking some humans to mail you a CD-ROM or something.
|
26
|
-
# You are then supposed to manually verify the PGP signatures.
|
27
|
-
# When making an "official" build - make sure you go do that...
|
28
|
-
source url: "https://www.openssl.org/source/old/fips/openssl-fips-#{version}.tar.gz", extract: :lax_tar
|
29
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", extract: :lax_tar,
|
30
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
31
|
-
|
32
|
-
version("2.0.16") {
|
33
|
-
source sha256: "a3cd13d0521d22dd939063d3b4a0d4ce24494374b91408a05bdaca8b681c63d4", \
|
34
|
-
url: "https://www.openssl.org/source/openssl-fips-#{version}.tar.gz", extract: :lax_tar
|
35
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", extract: :lax_tar,
|
36
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
37
|
-
}
|
38
|
-
version("2.0.14") { source sha256: "8ea069ec39f9c49d85b9831b16daa29936b4527446998336cf93e575f07626c0" }
|
39
|
-
version("2.0.11") { source sha256: "a6532875956d357a05838ca2c9865b8eecac211543e4246512684b17acbbdfac" }
|
40
|
-
version("2.0.10") { source sha256: "a42ccf5f08a8b510c0c78da1ba889532a0ce24e772b576604faf09b4d6a0f771" }
|
41
|
-
version("2.0.9") { source md5: "c8256051d7a76471c6ad4fb771404e60" }
|
42
|
-
|
43
|
-
relative_path "openssl-fips-#{version}"
|
44
|
-
|
45
|
-
build do
|
46
|
-
# According to the FIPS manual, this is the only environment you are allowed
|
47
|
-
# to build it in, to ensure security.
|
48
|
-
env = {}
|
49
|
-
env["FIPSDIR"] = "#{install_dir}/embedded"
|
50
|
-
|
51
|
-
if windows?
|
52
|
-
default_env = with_standard_compiler_flags(with_embedded_path)
|
53
|
-
|
54
|
-
if windows_arch_i386?
|
55
|
-
# Patch Makefile.org to update the compiler flags/options table for mingw.
|
56
|
-
patch source: "openssl-fips-fix-compiler-flags-table-for-msys.patch", env: default_env
|
57
|
-
|
58
|
-
platform = "mingw"
|
59
|
-
else
|
60
|
-
platform = "mingw64"
|
61
|
-
end
|
62
|
-
|
63
|
-
configure_command = ["perl.exe ./Configure #{platform}"]
|
64
|
-
configure_command << "--prefix=#{install_dir}/embedded"
|
65
|
-
elsif ppc64? && rhel?
|
66
|
-
# you have to specify on el ppc64 (big-endian only) otherwise it has won't
|
67
|
-
# compile
|
68
|
-
configure_command = ["perl ./Configure linux-ppc64"]
|
69
|
-
configure_command << "--prefix=#{install_dir}/embedded"
|
70
|
-
elsif s390x?
|
71
|
-
configure_command = ["perl ./Configure linux64-s390x"]
|
72
|
-
configure_command << "--prefix=#{install_dir}/embedded"
|
73
|
-
# Unfortunately openssl-fips is not supported on s390x, so we have to tell it to
|
74
|
-
# compile solely in C
|
75
|
-
configure_command << "no-asm"
|
76
|
-
else
|
77
|
-
configure_command = ["./config"]
|
78
|
-
end
|
79
|
-
|
80
|
-
command configure_command.join(" "), env: env, in_msys_bash: true
|
81
|
-
|
82
|
-
# Cannot use -j with openssl :(.
|
83
|
-
make env: env
|
84
|
-
make "install", env: env
|
85
|
-
end
|
data/config/software/openssl.rb
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Copyright (c) Chef Software Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "openssl"
|
18
|
-
|
19
|
-
license "OpenSSL"
|
20
|
-
license_file "LICENSE"
|
21
|
-
skip_transitive_dependency_licensing true
|
22
|
-
|
23
|
-
dependency "cacerts"
|
24
|
-
dependency "openssl-fips" if fips_mode?
|
25
|
-
|
26
|
-
default_version "1.0.2zg" # do_not_auto_update
|
27
|
-
|
28
|
-
# Openssl builds engines as libraries into a special directory. We need to include
|
29
|
-
# that directory in lib_dirs so omnibus can sign them during macOS deep signing.
|
30
|
-
lib_dirs lib_dirs.concat(["#{install_dir}/embedded/lib/engines"])
|
31
|
-
lib_dirs lib_dirs.concat(["#{install_dir}/embedded/lib/engines-1.1"]) if version.start_with?("1.1")
|
32
|
-
if version.start_with?("3.")
|
33
|
-
lib_dirs lib_dirs.concat(["#{install_dir}/embedded/lib/engines-3"])
|
34
|
-
lib_dirs lib_dirs.concat(["#{install_dir}/embedded/lib/ossl-modules"])
|
35
|
-
end
|
36
|
-
|
37
|
-
# 1.0.2u was the last public release of 1.0.2. Subsequent releases come from a support contract with OpenSSL Software Services
|
38
|
-
if version.satisfies?("< 1.1.0")
|
39
|
-
source url: "https://s3.amazonaws.com/chef-releng/openssl/openssl-#{version}.tar.gz", extract: :lax_tar
|
40
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", extract: :lax_tar,
|
41
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
42
|
-
else
|
43
|
-
# As of 2020-09-09 even openssl-1.0.0.tar.gz can be downloaded from /source/openssl-VERSION.tar.gz
|
44
|
-
# However, the latest releases are not in /source/old/VERSION/openssl-VERSION.tar.gz.
|
45
|
-
# Let's stick with the simpler one for now.
|
46
|
-
source url: "https://www.openssl.org/source/openssl-#{version}.tar.gz", extract: :lax_tar
|
47
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", extract: :lax_tar,
|
48
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
49
|
-
end
|
50
|
-
|
51
|
-
version("3.0.5") { source sha256: "aa7d8d9bef71ad6525c55ba11e5f4397889ce49c2c9349dcea6d3e4f0b024a7a" }
|
52
|
-
version("3.0.4") { source sha256: "2831843e9a668a0ab478e7020ad63d2d65e51f72977472dc73efcefbafc0c00f" }
|
53
|
-
version("3.0.3") { source sha256: "ee0078adcef1de5f003c62c80cc96527721609c6f3bb42b7795df31f8b558c0b" }
|
54
|
-
version("3.0.1") { source sha256: "c311ad853353bce796edad01a862c50a8a587f62e7e2100ef465ab53ec9b06d1" } # only ruby 3.1 supports openssl-3.0.1
|
55
|
-
|
56
|
-
version("1.1.1t") { source sha256: "8dee9b24bdb1dcbf0c3d1e9b02fb8f6bf22165e807f45adeb7c9677536859d3b" }
|
57
|
-
version("1.1.1q") { source sha256: "d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca" }
|
58
|
-
version("1.1.1p") { source sha256: "bf61b62aaa66c7c7639942a94de4c9ae8280c08f17d4eac2e44644d9fc8ace6f" }
|
59
|
-
version("1.1.1o") { source sha256: "9384a2b0570dd80358841464677115df785edb941c71211f75076d72fe6b438f" }
|
60
|
-
version("1.1.1m") { source sha256: "f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" }
|
61
|
-
version("1.1.1l") { source sha256: "0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1" }
|
62
|
-
|
63
|
-
version("1.0.2zg") { source sha256: "09f8372eaede77ec8e6945e2d2d8eeb1b91662980cf23fe95f627b377162296c" }
|
64
|
-
version("1.0.2zb") { source sha256: "b7d8f8c895279caa651e7f3de9a7b87b8dd01a452ca3d9327f45a9ef31d0c518" }
|
65
|
-
version("1.0.2za") { source sha256: "86ec5d2ecb53839e9ec999db7f8715d0eb7e534d8a1d8688ef25280fbeee2ff8" }
|
66
|
-
version("1.0.2ze") { source sha256: "796624c593c361c695bd16314bc6f944184f5d2ff87efcf0bfa0545aa84c4d88" }
|
67
|
-
version("1.0.2zf") { source sha256: "85d2242b7d11a33d5f239f1f34a1ff7eb37431a554b7df99c52c646b70b14b2e" }
|
68
|
-
|
69
|
-
relative_path "openssl-#{version}"
|
70
|
-
|
71
|
-
build do
|
72
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
73
|
-
if aix?
|
74
|
-
env["M4"] = "/opt/freeware/bin/m4"
|
75
|
-
elsif mac_os_x? && arm?
|
76
|
-
env["CFLAGS"] << " -Qunused-arguments"
|
77
|
-
elsif windows?
|
78
|
-
# XXX: OpenSSL explicitly sets -march=i486 and expects that to be honored.
|
79
|
-
# It has OPENSSL_IA32_SSE2 controlling whether it emits optimized SSE2 code
|
80
|
-
# and the 32-bit calling convention involving XMM registers is... vague.
|
81
|
-
# Do not enable SSE2 generally because the hand optimized assembly will
|
82
|
-
# overwrite registers that mingw expects to get preserved.
|
83
|
-
env["CFLAGS"] = "-I#{install_dir}/embedded/include"
|
84
|
-
env["CPPFLAGS"] = env["CFLAGS"]
|
85
|
-
env["CXXFLAGS"] = env["CFLAGS"]
|
86
|
-
end
|
87
|
-
|
88
|
-
configure_args = [
|
89
|
-
"--prefix=#{install_dir}/embedded",
|
90
|
-
"no-unit-test",
|
91
|
-
"no-comp",
|
92
|
-
"no-idea",
|
93
|
-
"no-mdc2",
|
94
|
-
"no-rc5",
|
95
|
-
"no-ssl2",
|
96
|
-
"no-ssl3",
|
97
|
-
"no-zlib",
|
98
|
-
"shared",
|
99
|
-
]
|
100
|
-
|
101
|
-
configure_args += ["--libdir=#{install_dir}/embedded/lib"] if version.satisfies?(">=3.0.1")
|
102
|
-
|
103
|
-
# https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/
|
104
|
-
configure_args += [ "-DOPENSSL_TRUSTED_FIRST_DEFAULT" ] if version.satisfies?(">= 1.0.2zb") && version.satisfies?("< 1.1.0")
|
105
|
-
|
106
|
-
if version.satisfies?("< 3.0.0")
|
107
|
-
configure_args += ["--with-fipsdir=#{install_dir}/embedded", "fips"] if fips_mode?
|
108
|
-
else
|
109
|
-
configure_args += ["-enable-fips"] if fips_mode?
|
110
|
-
end
|
111
|
-
|
112
|
-
configure_cmd =
|
113
|
-
if aix?
|
114
|
-
"perl ./Configure aix64-cc"
|
115
|
-
elsif mac_os_x?
|
116
|
-
intel? ? "./Configure darwin64-x86_64-cc" : "./Configure darwin64-arm64-cc no-asm"
|
117
|
-
elsif smartos?
|
118
|
-
"/bin/bash ./Configure solaris64-x86_64-gcc -static-libgcc"
|
119
|
-
elsif omnios?
|
120
|
-
"/bin/bash ./Configure solaris-x86-gcc"
|
121
|
-
elsif solaris2?
|
122
|
-
platform = sparc? ? "solaris64-sparcv9-gcc" : "solaris64-x86_64-gcc"
|
123
|
-
if version.satisfies?("< 1.1.0")
|
124
|
-
"/bin/bash ./Configure #{platform} -static-libgcc"
|
125
|
-
else
|
126
|
-
"./Configure #{platform} -static-libgcc"
|
127
|
-
end
|
128
|
-
elsif windows?
|
129
|
-
platform = windows_arch_i386? ? "mingw" : "mingw64"
|
130
|
-
"perl.exe ./Configure #{platform}"
|
131
|
-
else
|
132
|
-
prefix =
|
133
|
-
if linux? && ppc64?
|
134
|
-
"./Configure linux-ppc64"
|
135
|
-
elsif linux? && s390x?
|
136
|
-
# With gcc > 4.3 on s390x there is an error building
|
137
|
-
# with inline asm enabled
|
138
|
-
"./Configure linux64-s390x -DOPENSSL_NO_INLINE_ASM"
|
139
|
-
else
|
140
|
-
"./config"
|
141
|
-
end
|
142
|
-
"#{prefix} disable-gost"
|
143
|
-
end
|
144
|
-
|
145
|
-
patch_env = if aix?
|
146
|
-
# This enables omnibus to use 'makedepend'
|
147
|
-
# from fileset 'X11.adt.imake' (AIX install media)
|
148
|
-
env["PATH"] = "/usr/lpp/X11/bin:#{ENV["PATH"]}"
|
149
|
-
penv = env.dup
|
150
|
-
penv["PATH"] = "/opt/freeware/bin:#{env["PATH"]}"
|
151
|
-
penv
|
152
|
-
else
|
153
|
-
env
|
154
|
-
end
|
155
|
-
|
156
|
-
if version.start_with? "1.0"
|
157
|
-
patch source: "openssl-1.0.1f-do-not-build-docs.patch", env: patch_env
|
158
|
-
elsif version.start_with? "1.1"
|
159
|
-
patch source: "openssl-1.1.0f-do-not-install-docs.patch", env: patch_env
|
160
|
-
elsif version.start_with? "3.0"
|
161
|
-
patch source: "openssl-3.0.1-do-not-install-docs.patch", env: patch_env
|
162
|
-
end
|
163
|
-
|
164
|
-
if version.start_with?("1.0.2") && mac_os_x? && arm?
|
165
|
-
patch source: "openssl-1.0.2x-darwin-arm64.patch"
|
166
|
-
end
|
167
|
-
|
168
|
-
if version.start_with?("1.0.2") && windows?
|
169
|
-
# Patch Makefile.org to update the compiler flags/options table for mingw.
|
170
|
-
patch source: "openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch", env: env
|
171
|
-
end
|
172
|
-
|
173
|
-
# Out of abundance of caution, we put the feature flags first and then
|
174
|
-
# the crazy platform specific compiler flags at the end.
|
175
|
-
configure_args << env["CFLAGS"]
|
176
|
-
|
177
|
-
configure_command = configure_args.unshift(configure_cmd).join(" ")
|
178
|
-
|
179
|
-
command configure_command, env: env, in_msys_bash: true
|
180
|
-
|
181
|
-
if version.start_with?("1.0.2") && windows?
|
182
|
-
patch source: "openssl-1.0.1j-windows-relocate-dll.patch", env: env
|
183
|
-
end
|
184
|
-
|
185
|
-
make "depend", env: env
|
186
|
-
# make -j N on openssl is not reliable
|
187
|
-
make env: env
|
188
|
-
if aix?
|
189
|
-
# We have to sudo this because you can't actually run slibclean without being root.
|
190
|
-
# Something in openssl changed in the build process so now it loads the libcrypto
|
191
|
-
# and libssl libraries into AIX's shared library space during the first part of the
|
192
|
-
# compile. This means we need to clear the space since it's not being used and we
|
193
|
-
# can't install the library that is already in use. Ideally we would patch openssl
|
194
|
-
# to make this not be an issue.
|
195
|
-
# Bug Ref: http://rt.openssl.org/Ticket/Display.html?id=2986&user=guest&pass=guest
|
196
|
-
command "sudo /usr/sbin/slibclean", env: env
|
197
|
-
end
|
198
|
-
make "install", env: env
|
199
|
-
end
|
data/config/software/patch.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2015-2018 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "patch"
|
18
|
-
|
19
|
-
dependency "config_guess"
|
20
|
-
|
21
|
-
license "GPL-3.0"
|
22
|
-
license_file "COPYING"
|
23
|
-
skip_transitive_dependency_licensing true
|
24
|
-
|
25
|
-
default_version "2.7.6"
|
26
|
-
|
27
|
-
# version_list: url=https://ftp.gnu.org/gnu/patch/ filter=*.tar.gz
|
28
|
-
|
29
|
-
version("2.7.6") { source sha256: "8cf86e00ad3aaa6d26aca30640e86b0e3e1f395ed99f189b06d4c9f74bc58a4e" }
|
30
|
-
version("2.7.5") { source sha256: "7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f" }
|
31
|
-
version("2.7") { source sha256: "59c29f56faa0a924827e6a60c6accd6e2900eae5c6aaa922268c717f06a62048" }
|
32
|
-
|
33
|
-
source url: "https://ftp.gnu.org/gnu/patch/patch-#{version}.tar.gz"
|
34
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
35
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
36
|
-
|
37
|
-
relative_path "patch-#{version}"
|
38
|
-
|
39
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
40
|
-
|
41
|
-
build do
|
42
|
-
|
43
|
-
update_config_guess(target: "build-aux")
|
44
|
-
|
45
|
-
configure "--disable-xattr", env: env
|
46
|
-
make "-j #{workers}", env: env
|
47
|
-
make "-j #{workers} install", env: env
|
48
|
-
end
|
data/config/software/patchelf.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2019-2020 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
# This software definition installs project called 'patchelf' which can be
|
18
|
-
# used to change rpath of a precompiled binary.
|
19
|
-
|
20
|
-
name "patchelf"
|
21
|
-
|
22
|
-
default_version "0.13.1" # version greater than 0.13.1 require C++17 compiler to build
|
23
|
-
|
24
|
-
license :project_license
|
25
|
-
|
26
|
-
skip_transitive_dependency_licensing true
|
27
|
-
|
28
|
-
# version_list: url=https://github.com/NixOS/patchelf/releases filter=*.tar.gz
|
29
|
-
|
30
|
-
version "0.15.0" do
|
31
|
-
source sha256: "53a8d58ed4e060412b8fdcb6489562b3c62be6f65cee5af30eba60f4423bfa0f"
|
32
|
-
relative_path "patchelf-#{version}"
|
33
|
-
end
|
34
|
-
|
35
|
-
version "0.14.5" do
|
36
|
-
source sha256: "113ada3f1ace08f0a7224aa8500f1fa6b08320d8f7df05ff58585286ec5faa6f"
|
37
|
-
relative_path "patchelf-#{version}"
|
38
|
-
end
|
39
|
-
|
40
|
-
version "0.13.1" do
|
41
|
-
source sha256: "08c0237e89be74d61ddf8f6ff218439cdd62af572d568fb38913b53e222831de"
|
42
|
-
relative_path "patchelf-0.13.1.20211127.72b6d44"
|
43
|
-
end
|
44
|
-
|
45
|
-
version "0.11" do
|
46
|
-
source sha256: "e52378cc2f9379c6e84a04ac100a3589145533a7b0cd26ef23c79dfd8a9038f9"
|
47
|
-
relative_path "patchelf-0.11.20200609.d6b2a72"
|
48
|
-
end
|
49
|
-
|
50
|
-
version "0.10" do
|
51
|
-
source sha256: "b2deabce05c34ce98558c0efb965f209de592197b2c88e930298d740ead09019"
|
52
|
-
relative_path "patchelf-0.10"
|
53
|
-
end
|
54
|
-
|
55
|
-
if version.satisfies?(">= 0.12")
|
56
|
-
source url: "https://github.com/NixOS/patchelf/releases/download/#{version}/patchelf-#{version}.tar.gz"
|
57
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
58
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
59
|
-
else
|
60
|
-
source url: "https://nixos.org/releases/patchelf/patchelf-#{version}/patchelf-#{version}.tar.gz"
|
61
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
62
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
63
|
-
end
|
64
|
-
|
65
|
-
build do
|
66
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
67
|
-
configure "--prefix #{install_dir}/embedded"
|
68
|
-
make env: env
|
69
|
-
make "install", env: env
|
70
|
-
end
|