omnibus-software 22.11.239

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +7 -0
  2. data/.expeditor/Version_inspector/README.md +21 -0
  3. data/.expeditor/Version_inspector/SW-Version-update.py +243 -0
  4. data/.expeditor/Version_inspector/manual_prod_list.json +29 -0
  5. data/.expeditor/Version_inspector/prod_default_version.json +103 -0
  6. data/.expeditor/Version_inspector/prod_list.json +194 -0
  7. data/.expeditor/Version_inspector/requirements.txt +4 -0
  8. data/.expeditor/Version_inspector/update_prod_default_version.sh +24 -0
  9. data/.expeditor/Version_inspector/update_prod_list.sh +35 -0
  10. data/.expeditor/config.yml +33 -0
  11. data/.expeditor/determine_version.sh +15 -0
  12. data/.expeditor/push_git_tag.sh +12 -0
  13. data/.expeditor/run_linux_tests.sh +16 -0
  14. data/.expeditor/verify.pipeline.yml +52 -0
  15. data/.github/CODEOWNERS +5 -0
  16. data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +29 -0
  17. data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +40 -0
  18. data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +17 -0
  19. data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +11 -0
  20. data/.github/dependabot.yml +9 -0
  21. data/.github/lock.yml +1 -0
  22. data/.gitignore +17 -0
  23. data/CODE_OF_CONDUCT.md +1 -0
  24. data/CONTRIBUTING.md +1 -0
  25. data/Dockerfile +21 -0
  26. data/Gemfile +10 -0
  27. data/LICENSE +201 -0
  28. data/README.md +99 -0
  29. data/Rakefile +56 -0
  30. data/VERSION +1 -0
  31. data/config/patches/bash/race-condition.patch +15 -0
  32. data/config/patches/bzip2/aix_makefile.patch +11 -0
  33. data/config/patches/bzip2/makefile_no_bins.patch +77 -0
  34. data/config/patches/bzip2/makefile_take_env_vars.patch +31 -0
  35. data/config/patches/bzip2/soname_install_dir.patch +11 -0
  36. data/config/patches/curl/curl-aix-disable-alpn.patch +22 -0
  37. data/config/patches/curl/curl-freebsd-hostcheck.patch +10 -0
  38. data/config/patches/erlang/epmd-require-explicitly-adding-loopback-address.patch +84 -0
  39. data/config/patches/erlang/updated-epmd-require-explicitly-adding-loopback-address.patch +75 -0
  40. data/config/patches/expat/configure_xlc_visibility.patch +58 -0
  41. data/config/patches/expat/configure_xlc_visibility_2.4.7.patch +59 -0
  42. data/config/patches/figlet/aix-figlet-cdefs.patch +48 -0
  43. data/config/patches/gdbm/v1.8.3-Makefile.in.patch +32 -0
  44. data/config/patches/git/aix-endian-fix.patch +20 -0
  45. data/config/patches/gtar/aix_extra_case.patch +13 -0
  46. data/config/patches/keepalived/keepalived-1.2.9_opscode_centos_5.patch +15 -0
  47. data/config/patches/libedit/freebsd-vi-fix.patch +24 -0
  48. data/config/patches/libedit/openbsd-weak-alias-fix.patch +48 -0
  49. data/config/patches/libedit/solaris.patch +36 -0
  50. data/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +83 -0
  51. data/config/patches/libffi/libffi-3.3-arm64.patch +9608 -0
  52. data/config/patches/libxslt/libxslt-solaris-configure.patch +19 -0
  53. data/config/patches/libxslt/libxslt-windows-relocate.patch +12 -0
  54. data/config/patches/libyaml/windows-configure.patch +26 -0
  55. data/config/patches/libzmq/zeromq-4.0.11_mingw_inet_pton.patch +37 -0
  56. data/config/patches/libzmq/zeromq-aix-4.2.2-LARGE_FILES.patch +56 -0
  57. data/config/patches/libzmq/zeromq-aix-4.2.2-atomic-counter-fetch_and_add.patch +59 -0
  58. data/config/patches/logrotate/logrotate_basedir_override.patch +17 -0
  59. data/config/patches/m4/m4-1.4.18-glibc-change-work-around.patch +115 -0
  60. data/config/patches/make/deb-make-glob.patch +31 -0
  61. data/config/patches/ncurses/ncurses-5.9-gcc-5.patch +46 -0
  62. data/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch +11 -0
  63. data/config/patches/ncurses/ncurses-clang.patch +43 -0
  64. data/config/patches/ncurses/patch-aa +23 -0
  65. data/config/patches/ncurses/patch-ab +44 -0
  66. data/config/patches/ncurses/patch-ac +40 -0
  67. data/config/patches/ncurses/patch-ad +13 -0
  68. data/config/patches/ncurses/patch-cxx_cursesf.h +22 -0
  69. data/config/patches/ncurses/patch-cxx_cursesm.h +22 -0
  70. data/config/patches/ncurses/patch-ncurses_tinfo_lib__baudrate.c +24 -0
  71. data/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +28 -0
  72. data/config/patches/openssl/openssl-1.0.1j-windows-relocate-dll.patch +20 -0
  73. data/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +20 -0
  74. data/config/patches/openssl/openssl-1.0.2x-darwin-arm64.patch +54 -0
  75. data/config/patches/openssl/openssl-1.1.0f-do-not-install-docs.patch +11 -0
  76. data/config/patches/openssl/openssl-3.0.1-do-not-install-docs.patch +22 -0
  77. data/config/patches/openssl-fips/openssl-fips-fix-compiler-flags-table-for-msys.patch +11 -0
  78. data/config/patches/perl/perl-5.18.1-remove_lnsl.patch +441 -0
  79. data/config/patches/perl/perl-5.22.1-remove_lnsl.patch +512 -0
  80. data/config/patches/perl/perl-5.30.0-remove_lnsl.patch +518 -0
  81. data/config/patches/perl/perl-5.32.1-remove_lnsl.patch +456 -0
  82. data/config/patches/perl/perl-5.34.0-remove_lnsl.patch +516 -0
  83. data/config/patches/pkg-config/openbsd-charset.patch +19 -0
  84. data/config/patches/popt/v1.16.ppc64le-configure.patch +18 -0
  85. data/config/patches/redis/password-from-environment.patch +19 -0
  86. data/config/patches/ruby/patch-configure +103 -0
  87. data/config/patches/ruby/remove_nano.patch +10 -0
  88. data/config/patches/ruby/ruby-2.6.7_c99.patch +12 -0
  89. data/config/patches/ruby/ruby-3.0.1-configure.patch +281 -0
  90. data/config/patches/ruby/ruby-3.0.2-configure.patch +251 -0
  91. data/config/patches/ruby/ruby-aix-atomic.patch +11 -0
  92. data/config/patches/ruby/ruby-aix-configure_26_and_later.patch +19 -0
  93. data/config/patches/ruby/ruby-aix-vm-core.patch +14 -0
  94. data/config/patches/ruby/ruby-fast-load_26.patch +16 -0
  95. data/config/patches/ruby/ruby-fast-load_31.patch +16 -0
  96. data/config/patches/ruby/ruby-faster-load_26.patch +11 -0
  97. data/config/patches/ruby/ruby-faster-load_27.patch +11 -0
  98. data/config/patches/ruby/ruby-mkmf.patch +29 -0
  99. data/config/patches/ruby/ruby-no-stack-protector-strong.patch +11 -0
  100. data/config/patches/ruby/ruby-no-stack-protector.patch +13 -0
  101. data/config/patches/ruby/ruby-win32_warning_removal.patch +12 -0
  102. data/config/patches/ruby/ruby_aix_openssl.patch +10 -0
  103. data/config/patches/ruby/ruby_aix_ssl_EAGAIN.patch +19 -0
  104. data/config/patches/ruby/rvm-cflags.patch +27 -0
  105. data/config/patches/stunnel/stunnel-on-windows.patch +42 -0
  106. data/config/patches/zlib/zlib-windows-relocate.patch +20 -0
  107. data/config/software/autoconf.rb +46 -0
  108. data/config/software/automake.rb +49 -0
  109. data/config/software/bash.rb +72 -0
  110. data/config/software/berkshelf-no-depselector.rb +46 -0
  111. data/config/software/berkshelf.rb +34 -0
  112. data/config/software/binutils.rb +47 -0
  113. data/config/software/bundler.rb +38 -0
  114. data/config/software/bzip2.rb +55 -0
  115. data/config/software/cacerts.rb +50 -0
  116. data/config/software/chef-gem.rb +35 -0
  117. data/config/software/chef.rb +112 -0
  118. data/config/software/cmake.rb +94 -0
  119. data/config/software/config_guess.rb +37 -0
  120. data/config/software/cpanminus.rb +49 -0
  121. data/config/software/curl.rb +103 -0
  122. data/config/software/delivery-cli.rb +89 -0
  123. data/config/software/dep-selector-libgecode.rb +48 -0
  124. data/config/software/elasticsearch.rb +61 -0
  125. data/config/software/elixir.rb +35 -0
  126. data/config/software/erlang.rb +134 -0
  127. data/config/software/expat.rb +63 -0
  128. data/config/software/fakeroot.rb +41 -0
  129. data/config/software/ffi-yajl.rb +46 -0
  130. data/config/software/figlet-fonts.rb +31 -0
  131. data/config/software/figlet.rb +44 -0
  132. data/config/software/gcc.rb +60 -0
  133. data/config/software/gdbm.rb +54 -0
  134. data/config/software/gecode.rb +62 -0
  135. data/config/software/gem-permissions.rb +43 -0
  136. data/config/software/git-windows.rb +96 -0
  137. data/config/software/git.rb +138 -0
  138. data/config/software/gmp.rb +48 -0
  139. data/config/software/go-uninstall.rb +33 -0
  140. data/config/software/go.rb +116 -0
  141. data/config/software/google-protobuf.rb +45 -0
  142. data/config/software/gtar.rb +62 -0
  143. data/config/software/help2man.rb +40 -0
  144. data/config/software/highline-gem.rb +37 -0
  145. data/config/software/ibm-jre.rb +59 -0
  146. data/config/software/inspec.rb +43 -0
  147. data/config/software/jre-from-jdk.rb +67 -0
  148. data/config/software/keepalived.rb +68 -0
  149. data/config/software/libarchive.rb +71 -0
  150. data/config/software/libedit.rb +73 -0
  151. data/config/software/libffi.rb +68 -0
  152. data/config/software/libgcc.rb +52 -0
  153. data/config/software/libiconv.rb +55 -0
  154. data/config/software/libintl-perl.rb +56 -0
  155. data/config/software/liblzma.rb +59 -0
  156. data/config/software/libossp-uuid.rb +45 -0
  157. data/config/software/libsodium.rb +40 -0
  158. data/config/software/libtool.rb +56 -0
  159. data/config/software/libuuid.rb +45 -0
  160. data/config/software/libxml2.rb +63 -0
  161. data/config/software/libxslt.rb +64 -0
  162. data/config/software/libyajl2-gem.rb +44 -0
  163. data/config/software/libyaml.rb +50 -0
  164. data/config/software/libzmq.rb +93 -0
  165. data/config/software/logrotate.rb +61 -0
  166. data/config/software/lua.rb +46 -0
  167. data/config/software/m4.rb +40 -0
  168. data/config/software/make.rb +43 -0
  169. data/config/software/makedepend.rb +44 -0
  170. data/config/software/mpc.rb +44 -0
  171. data/config/software/mpfr.rb +45 -0
  172. data/config/software/musl.rb +107 -0
  173. data/config/software/mysql2.rb +50 -0
  174. data/config/software/ncurses.rb +159 -0
  175. data/config/software/nginx.rb +55 -0
  176. data/config/software/nodejs-binary.rb +90 -0
  177. data/config/software/nodejs.rb +58 -0
  178. data/config/software/nokogiri.rb +92 -0
  179. data/config/software/omnibus-ctl.rb +42 -0
  180. data/config/software/openresty.rb +94 -0
  181. data/config/software/opensearch.rb +54 -0
  182. data/config/software/openssl-customization.rb +81 -0
  183. data/config/software/openssl-fips.rb +81 -0
  184. data/config/software/openssl.rb +185 -0
  185. data/config/software/patch.rb +46 -0
  186. data/config/software/patchelf.rb +66 -0
  187. data/config/software/pcre.rb +53 -0
  188. data/config/software/perl-extutils-embed.rb +37 -0
  189. data/config/software/perl-extutils-makemaker.rb +46 -0
  190. data/config/software/perl-thread-queue.rb +40 -0
  191. data/config/software/perl.rb +78 -0
  192. data/config/software/perl_pg_driver.rb +45 -0
  193. data/config/software/pg-gem.rb +36 -0
  194. data/config/software/pkg-config-lite.rb +46 -0
  195. data/config/software/pkg-config.rb +66 -0
  196. data/config/software/popt.rb +54 -0
  197. data/config/software/postgresql.rb +70 -0
  198. data/config/software/preparation.rb +31 -0
  199. data/config/software/python.rb +79 -0
  200. data/config/software/rabbitmq.rb +58 -0
  201. data/config/software/rb-readline.rb +33 -0
  202. data/config/software/rbnacl-libsodium.rb +42 -0
  203. data/config/software/rbzmq.rb +44 -0
  204. data/config/software/rebar.rb +42 -0
  205. data/config/software/redis-gem.rb +36 -0
  206. data/config/software/redis.rb +51 -0
  207. data/config/software/relx.rb +39 -0
  208. data/config/software/rsync.rb +55 -0
  209. data/config/software/ruby-cleanup.rb +254 -0
  210. data/config/software/ruby-msys2-devkit.rb +77 -0
  211. data/config/software/ruby-windows-devkit-bash.rb +41 -0
  212. data/config/software/ruby-windows-devkit.rb +84 -0
  213. data/config/software/ruby.rb +306 -0
  214. data/config/software/rubygems.rb +73 -0
  215. data/config/software/runit.rb +67 -0
  216. data/config/software/rust-uninstall.rb +32 -0
  217. data/config/software/rust.rb +97 -0
  218. data/config/software/sequel-gem.rb +36 -0
  219. data/config/software/server-jre.rb +125 -0
  220. data/config/software/server-open-jre.rb +112 -0
  221. data/config/software/setuptools.rb +48 -0
  222. data/config/software/shebang-cleanup.rb +101 -0
  223. data/config/software/sqitch.rb +87 -0
  224. data/config/software/stunnel.rb +86 -0
  225. data/config/software/util-macros.rb +42 -0
  226. data/config/software/version-manifest.rb +33 -0
  227. data/config/software/xproto.rb +42 -0
  228. data/config/software/zlib.rb +85 -0
  229. data/config/templates/git/config.mak.erb +31 -0
  230. data/config/templates/rubygems/register_devtools.rb.erb +33 -0
  231. data/config/templates/runit/runsvdir-start.erb +42 -0
  232. data/docker-compose.yml +15 -0
  233. data/lib/omnibus-software/version.rb +3 -0
  234. data/lib/omnibus-software.rb +115 -0
  235. data/omnibus-software.gemspec +20 -0
  236. data/test/Gemfile +10 -0
  237. data/test/config/projects/test.rb +14 -0
  238. data/test/generate_steps.rb +55 -0
  239. data/test/omnibus-build.sh +50 -0
  240. data/test/omnibus.rb +55 -0
  241. metadata +296 -0
@@ -0,0 +1,125 @@
1
+ #
2
+ # Copyright 2013-2014 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
+ # expeditor/ignore: deprecated 2021-04
17
+
18
+ name "server-jre"
19
+ default_version "8u202"
20
+
21
+ unless _64_bit?
22
+ raise "Server-jre can only be installed on x86_64 systems."
23
+ end
24
+
25
+ license "Oracle-Binary"
26
+ license_file "LICENSE"
27
+ #
28
+ # October 2016 (ssd):
29
+ # Unfortunately http://java.com/license/ redirects to https://java.com/license/
30
+ # which then redirects to http://www.oracle.com/technetwork/java/javase/terms/license/
31
+ # triggering a bad redirect error.
32
+ #
33
+ license_file "http://www.oracle.com/technetwork/java/javase/terms/license/"
34
+ skip_transitive_dependency_licensing true
35
+
36
+ whitelist_file "jre/bin/javaws"
37
+ whitelist_file "jre/bin/policytool"
38
+ whitelist_file "jre/lib"
39
+ whitelist_file "jre/plugin"
40
+ whitelist_file "jre/bin/appletviewer"
41
+
42
+ license_warning = "By including the JRE, you accept the terms of the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX, which can be found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html"
43
+ license_cookie = "gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"
44
+
45
+ # This is the final release of the Oracle Java under the 'Oracle Binary Code License Agreement'
46
+ version "8u202" do
47
+ source url: "https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/server-jre-8u202-linux-x64.tar.gz",
48
+ sha256: "61292e9d9ef84d9702f0e30f57b208e8fbd9a272d87cd530aece4f5213c98e4e",
49
+ cookie: license_cookie,
50
+ warning: license_warning,
51
+ unsafe: true
52
+
53
+ relative_path "jdk1.8.0_202"
54
+ end
55
+
56
+ version "8u162" do
57
+ # https://www.oracle.com/webfolder/s/digest/8u162checksum.html
58
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/server-jre-8u162-linux-x64.tar.gz",
59
+ sha256: "6942684acb6001748a01fc090a18f52ebd8cbfcf7be27ec6131981906bfa8b53",
60
+ cookie: license_cookie,
61
+ warning: license_warning,
62
+ unsafe: true
63
+
64
+ relative_path "jdk1.8.0_162"
65
+ end
66
+
67
+ version "8u151" do
68
+ # https://www.oracle.com/webfolder/s/digest/8u151checksum.html
69
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/server-jre-8u151-linux-x64.tar.gz",
70
+ sha256: "123b1d755416aa7579abc03f01ab946e612e141b6f7564130f2ada00ed913f1d",
71
+ cookie: license_cookie,
72
+ warning: license_warning,
73
+ unsafe: true
74
+
75
+ relative_path "jdk1.8.0_151"
76
+ end
77
+
78
+ version "8u144" do
79
+ # https://www.oracle.com/webfolder/s/digest/8u144checksum.html
80
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/server-jre-8u144-linux-x64.tar.gz",
81
+ sha256: "8ba6f1c692518beb0c727c6e1fb8c30a5dfcc38f8ef9f4f7c7c114c01c747ebc",
82
+ cookie: license_cookie,
83
+ warning: license_warning,
84
+ unsafe: true
85
+
86
+ relative_path "jdk1.8.0_144"
87
+ end
88
+
89
+ version "8u121" do
90
+ # https://www.oracle.com/webfolder/s/digest/8u121checksum.html
91
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/server-jre-8u121-linux-x64.tar.gz",
92
+ sha256: "c25a60d02475499109f2bd6aa483721462aa7bfbb86b23ca6ac59be472747e5d",
93
+ cookie: license_cookie,
94
+ warning: license_warning,
95
+ unsafe: true
96
+
97
+ relative_path "jdk1.8.0_121"
98
+ end
99
+
100
+ version "8u111" do
101
+ # https://www.oracle.com/webfolder/s/digest/8u111checksum.html
102
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u111-b14/server-jre-8u111-linux-x64.tar.gz",
103
+ sha256: "53442420cd9534ded4beca16c32c1d109cf5add637db764c86660c6eea1d88d4",
104
+ cookie: license_cookie,
105
+ warning: license_warning,
106
+ unsafe: true
107
+
108
+ relative_path "jdk1.8.0_111"
109
+ end
110
+
111
+ version "8u91" do
112
+ # https://www.oracle.com/webfolder/s/digest/8u91checksum.html
113
+ source url: "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/server-jre-8u91-linux-x64.tar.gz",
114
+ md5: "c8aefc3b97328d6f5197315fa6507bbf",
115
+ cookie: license_cookie,
116
+ warning: license_warning,
117
+ unsafe: true
118
+
119
+ relative_path "jdk1.8.0_91"
120
+ end
121
+
122
+ build do
123
+ mkdir "#{install_dir}/embedded/jre"
124
+ sync "#{project_dir}/", "#{install_dir}/embedded/jre"
125
+ end
@@ -0,0 +1,112 @@
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
+ dependency "zlib"
17
+ dependency "patchelf"
18
+
19
+ name "server-open-jre"
20
+ default_version "11.0.17+8"
21
+
22
+ unless _64_bit?
23
+ raise "Server-open-jre can only be installed on x86_64 systems."
24
+ end
25
+
26
+ license "GPL-2.0 (with the Classpath Exception)"
27
+
28
+ license_file "http://openjdk.java.net/legal/gplv2+ce.html"
29
+ skip_transitive_dependency_licensing true
30
+
31
+ whitelist_file "jre/bin/javaws"
32
+ whitelist_file "jre/bin/policytool"
33
+ whitelist_file "jre/lib"
34
+ whitelist_file "jre/plugin"
35
+ whitelist_file "jre/bin/appletviewer"
36
+
37
+ license_warning = "By including the JRE, you accept the terms of AdoptOpenJRE."
38
+
39
+ # version_list: url=https://github.com/adoptium/temurin11-binaries/releases filter=*.tar.gz
40
+
41
+ version "11.0.17+8" do
42
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jre_x64_linux_hotspot_11.0.17_8.tar.gz",
43
+ sha256: "752616097e09d7f60a3ad8bd312f90eaf50ac72577e55df229fe6e8091148f79",
44
+ warning: license_warning,
45
+ unsafe: true
46
+ end
47
+
48
+ version "11.0.16.1+1" do
49
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.16.1%2B1/OpenJDK11U-jre_x64_linux_hotspot_11.0.16.1_1.tar.gz",
50
+ sha256: "1ffe1a682e8179e35238bf3f93aba0cb185850e202c676f41d38cb0561883eda",
51
+ warning: license_warning,
52
+ unsafe: true
53
+ end
54
+
55
+ version "11.0.15+10" do
56
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jre_x64_linux_hotspot_11.0.15_10.tar.gz",
57
+ sha256: "22831fd097dfb39e844cb34f42064ff26a0ada9cd13621d7b8bca8e9b9d3a5ee",
58
+ warning: license_warning,
59
+ unsafe: true
60
+ end
61
+
62
+ version "11.0.14.1+1" do
63
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jre_x64_linux_hotspot_11.0.14.1_1.tar.gz",
64
+ sha256: "b5a6960bc6bb0b1a967e307f908ea9b06ad7adbbd9df0b8954ab51374faa8a98",
65
+ warning: license_warning,
66
+ unsafe: true
67
+ end
68
+
69
+ version "11.0.13+8" do
70
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jre_x64_linux_hotspot_11.0.13_8.tar.gz",
71
+ sha256: "fb0a27e6e1f26a1ee79daa92e4cfe3ec0d676acfe114d99dd84b3414f056e8a0",
72
+ warning: license_warning,
73
+ unsafe: true
74
+ end
75
+
76
+ version "11.0.12+7" do
77
+ source url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.12%2B7/OpenJDK11U-jre_x64_linux_hotspot_11.0.12_7.tar.gz",
78
+ sha256: "e813e270b7ea0a13f9c400ce5abd4cb811aacbd536b8909e6c7f0e346f78348c",
79
+ warning: license_warning,
80
+ unsafe: true
81
+ end
82
+
83
+ version "11.0.11+9" do
84
+ source url: "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz",
85
+ sha256: "144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548",
86
+ warning: license_warning,
87
+ unsafe: true
88
+ end
89
+
90
+ version "11.0.10+9" do
91
+ source url: "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.10_9.tar.gz",
92
+ sha256: "25fdcf9427095ac27c8bdfc82096ad2e615693a3f6ea06c700fca7ffb271131a",
93
+ warning: license_warning,
94
+ unsafe: true
95
+ end
96
+
97
+ relative_path "jdk-#{version}-jre"
98
+
99
+ build do
100
+ mkdir "#{install_dir}/embedded/open-jre"
101
+ sync "#{project_dir}/", "#{install_dir}/embedded/open-jre"
102
+
103
+ # Since we are using a precompiled-jre, it will look for zlib in the following path:
104
+ # vagrant@default-ubuntu-1604:~$ chrpath jdk-11.0.4+11-jre/bin/java
105
+ # jdk-11.0.4+11-jre/bin/java: RPATH=$ORIGIN/../lib/jli:$ORIGIN/../lib
106
+ # This errors since it cannot find the libz.so.1 file that is installed
107
+ # as a part of the omnibus environment.
108
+ # We need to change the RPATH of the binary to be able to find omnibus installed zlib.
109
+
110
+ new_rpath = "#{install_dir}/embedded/open-jre/lib/jli:#{install_dir}/embedded/lib:$ORIGIN/../lib"
111
+ command "#{install_dir}/embedded/bin/patchelf --set-rpath #{new_rpath} #{install_dir}/embedded/open-jre/bin/*"
112
+ end
@@ -0,0 +1,48 @@
1
+ #
2
+ # Copyright 2013-2014 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
+ # expeditor/ignore: deprecated 2021-04
17
+
18
+ name "setuptools"
19
+ default_version "0.7.7"
20
+
21
+ license "Python Software Foundation"
22
+ license_file "https://raw.githubusercontent.com/pypa/setuptools/master/LICENSE"
23
+ skip_transitive_dependency_licensing true
24
+
25
+ dependency "python"
26
+
27
+ version "0.9.8" do
28
+ source md5: "243076241781935f7fcad370195a4291"
29
+ end
30
+
31
+ version "0.7.7" do
32
+ source md5: "0d7bc0e1a34b70a97e706ef74aa7f37f"
33
+ end
34
+
35
+ version "20.0" do
36
+ source md5: "fb22b2474ca037e0b08f3c3b293e02e6"
37
+ end
38
+
39
+ source url: "https://pypi.python.org/packages/source/s/setuptools/setuptools-#{version}.tar.gz"
40
+
41
+ relative_path "setuptools-#{version}"
42
+
43
+ build do
44
+ env = with_standard_compiler_flags(with_embedded_path)
45
+
46
+ command "#{install_dir}/embedded/bin/python setup.py install" \
47
+ " --prefix=#{install_dir}/embedded", env: env
48
+ end
@@ -0,0 +1,101 @@
1
+ #
2
+ # Copyright 2012-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
+ #
18
+ # Use this software definition to fix the shebangs of binaries under embedded/bin
19
+ # to point to the embedded ruby.
20
+ #
21
+ # expeditor/ignore: logic only
22
+
23
+ name "shebang-cleanup"
24
+
25
+ default_version "0.0.2"
26
+
27
+ license :project_license
28
+ skip_transitive_dependency_licensing true
29
+
30
+ build do
31
+ if windows?
32
+ block "Update batch files to point at embedded ruby" do
33
+ load_gemspec = if Gem::VERSION >= "2"
34
+ require "rubygems/package"
35
+ Gem::Package.method(:new)
36
+ else
37
+ require "rubygems/format"
38
+ Gem::Format.method(:from_file_by_path)
39
+ end
40
+ Dir["#{install_dir.tr("\\", "/")}/embedded/lib/ruby/gems/**/cache/*.gem"].each do |gem_file|
41
+ load_gemspec.call(gem_file).spec.executables.each do |bin|
42
+ if File.exist?("#{install_dir}/bin/#{bin}")
43
+ File.open("#{install_dir}/bin/#{bin}.bat", "w") do |f|
44
+ f.puts <<~EOF
45
+ @ECHO OFF
46
+ "%~dp0..\\embedded\\bin\\ruby.exe" "%~dpn0" %*
47
+ EOF
48
+ end
49
+ end
50
+ if File.exist?("#{install_dir}/embedded/bin/#{bin}")
51
+ File.open("#{install_dir}/embedded/bin/#{bin}.bat", "w") do |f|
52
+ f.puts <<~EOF
53
+ @ECHO OFF
54
+ "%~dp0ruby.exe" "%~dpn0" %*
55
+ EOF
56
+ end
57
+ end
58
+ # Rubocop is silly and yells at you for structuring the
59
+ # last if statement the way it is.
60
+ next
61
+ end
62
+ end
63
+
64
+ # Fix gem.bat and bundle.bat
65
+ %w{gem bundle}.each do |binstub|
66
+ File.open("#{install_dir}/embedded/bin/#{binstub}.bat", "w") do |f|
67
+ f.puts <<~EOF
68
+ @ECHO OFF
69
+ "%~dp0ruby.exe" "%~dpn0" %*
70
+ EOF
71
+ end
72
+ end
73
+ end
74
+ else
75
+ block "Update shebangs to point to embedded Ruby" do
76
+ # Fix the shebang for binaries with shebangs that have:
77
+ # #!/usr/bin/env ruby
78
+ Dir.glob("#{install_dir}/embedded/bin/*") do |bin_file|
79
+ update_shebang = false
80
+ rest_of_the_file = ""
81
+
82
+ File.open(bin_file) do |f|
83
+ shebang = f.readline
84
+ if shebang.start_with?("#!") &&
85
+ shebang.include?("ruby") &&
86
+ !shebang.include?("#{install_dir}/embedded/bin/ruby")
87
+ rest_of_the_file = f.read
88
+ update_shebang = true
89
+ end
90
+ end
91
+
92
+ if update_shebang
93
+ File.open(bin_file, "w+") do |f|
94
+ f.puts("#!#{install_dir}/embedded/bin/ruby")
95
+ f.puts(rest_of_the_file)
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,87 @@
1
+ #
2
+ # Copyright 2014 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 "sqitch"
18
+ default_version "1.3.0"
19
+
20
+ license "MIT"
21
+ license_file "https://raw.githubusercontent.com/theory/sqitch/master/README.md"
22
+
23
+ dependency "perl"
24
+ dependency "cpanminus"
25
+
26
+ # install a LGPL-licensed version of libintl-perl:
27
+ dependency "libintl-perl"
28
+
29
+ # version_list: url=https://github.com/theory/#{name}/releases/download/v#{version}/ filter=app-sqitch-*.tar.gz
30
+
31
+ version("1.3.0") { source sha256: "7d07635ec77a7faf3c50281c76ec833c68702f14470996cb2203a8bc6abc5bf2" }
32
+ version("1.2.1") { source sha256: "020835a13429effd8fda12d5627604ecf99293775918f4f8ba9ccc5ed796e5e7" }
33
+ version("1.1.0") { source sha256: "ee146cd75d6300837e6ca559bb0bde247d42123c96b2c5d4b2800f38d3e3d1ab" }
34
+ version("0.9999") { source sha256: "f5bfa80206738ab8a70358a3b0557661c7459e11ec07dece23ecafa1f34372b3" }
35
+ version("0.973") { source sha256: "95fc7f18fff786c5d2579133e2e3ac56779e54bb3a06a1af1117054e9f49ab32" }
36
+
37
+ if version >= "1.1.0"
38
+ source url: "https://github.com/theory/#{name}/releases/download/v#{version}/app-sqitch-v#{version}.tar.gz"
39
+ relative_path "App-Sqitch-v#{version}"
40
+ else
41
+ source url: "https://github.com/theory/#{name}/releases/download/v#{version}/app-sqitch-#{version}.tar.gz"
42
+ relative_path "App-Sqitch-#{version}"
43
+ end
44
+
45
+ # See https://github.com/theory/sqitch for more
46
+ build do
47
+ env = with_standard_compiler_flags(with_embedded_path)
48
+ # Lists-MoreUtils-XS does not build on RHEL 5 or SUSE 11 currently.
49
+ # This option is used by the Lists-MoreUtils build configuration to
50
+ # decide whether to use the -XS package or a pure perl
51
+ # implementation.
52
+ env["PERL_MM_OPT"] = "PUREPERL_ONLY=1"
53
+ command "perl Build.PL", env: env
54
+ command "./Build installdeps --cpan_client 'cpanm -v --notest'", env: env
55
+ command "./Build", env: env
56
+ command "./Build install", env: env
57
+
58
+ # Here is another licensing fun. Some of the dependencies of sqitch
59
+ # unfortunately have GPL3 and LGPL3 licenses which are requiring us to remove
60
+ # them from our packages after installing sqitch. Here we are uninstalling
61
+ # them without breaking the licensing information collection.
62
+ %w{Test-MockModule}.each do |package_name|
63
+ module_name = package_name.gsub("-", "::")
64
+
65
+ # Here we run cpanm --uninstall with a different PERL_CPANM_HOME. The reason
66
+ # for this is to keep the licensing information for sqitch intact. The way
67
+ # license_scout works is to look into PERL_CPANM_HOME/latest-build (by
68
+ # default ~/.cpanm/latest-build) which contains the modules installed during
69
+ # the last install. This directory is a symlink that points to the directory
70
+ # contains the information about the latest build. Without changing
71
+ # PERL_CPANM_HOME we would overwrite the link and will not be able to
72
+ # collect the dependencies installed to our package while doing the actual
73
+ # sqitch install.
74
+ Dir.mktmpdir do |tmpdir|
75
+ command "cpanm --force --uninstall #{module_name}", env: env.merge({
76
+ "PERL_CPANM_HOME" => tmpdir,
77
+ })
78
+ end
79
+
80
+ # Here we are removing the problematic package from the original
81
+ # PERL_CPANM_HOME cache directory. This ensures that we do not add
82
+ # licensing information about these components to our package.
83
+ cpanm_root = File.expand_path("~/.cpanm/latest-build")
84
+ delete "#{cpanm_root}/#{package_name}*"
85
+ end
86
+
87
+ end
@@ -0,0 +1,86 @@
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 "stunnel"
18
+ default_version "5.49"
19
+ # Pin stunnel to 5.49 as it's the last version that supports FIPS with standard builds.
20
+
21
+ license "GPL-2.0"
22
+ license_file "COPYING"
23
+ skip_transitive_dependency_licensing true
24
+
25
+ dependency "openssl"
26
+
27
+ # version_list: url=https://www.stunnel.org/downloads/ filter=*.tar.gz
28
+
29
+ if version < "5.65"
30
+ source url: "https://www.stunnel.org/archive/5.x/stunnel-#{version}.tar.gz"
31
+ else
32
+ source url: "https://www.stunnel.org/downloads/stunnel-#{version}.tar.gz"
33
+ end
34
+ relative_path "stunnel-#{version}"
35
+ version("5.65") { source sha256: "60c500063bd1feff2877f5726e38278c086f96c178f03f09d264a2012d6bf7fc" }
36
+ version("5.64") { source sha256: "eebe53ed116ba43b2e786762b0c2b91511e7b74857ad4765824e7199e6faf883" }
37
+ version("5.63") { source sha256: "c74c4e15144a3ae34b8b890bb31c909207301490bd1e51bfaaa5ffeb0a994617" }
38
+ version("5.59") { source sha256: "137776df6be8f1701f1cd590b7779932e123479fb91e5192171c16798815ce9f" }
39
+ version("5.49") { source sha256: "3d6641213a82175c19f23fde1c3d1c841738385289eb7ca1554f4a58b96d955e" }
40
+ version("5.39") { source sha256: "288c087a50465390d05508068ac76c8418a21fae7275febcc63f041ec5b04dee" }
41
+
42
+ build do
43
+ env = with_standard_compiler_flags(with_embedded_path)
44
+
45
+ patch source: "stunnel-on-windows.patch", plevel: 1, env: env if windows?
46
+
47
+ configure_args = [
48
+ "--with-ssl=#{install_dir}/embedded",
49
+ "--prefix=#{install_dir}/embedded",
50
+ ]
51
+ configure_args << "--enable-fips" if fips_mode?
52
+
53
+ configure(*configure_args, env: env)
54
+
55
+ if windows?
56
+ # src/mingw.mk hardcodes and assumes SSL is at /opt so we patch and use
57
+ # an env variable to redirect it to the correct location
58
+ env["WIN32_SSL_DIR_PATCHED"] = "#{install_dir}/embedded"
59
+
60
+ mingw = ENV["MSYSTEM"].downcase
61
+ target = (mingw == "mingw32" ? "mingw" : mingw)
62
+ # Starting omnibus-toolchain version 1.1.115 we do not build msys2 as a part of omnibus-toolchain anymore, but pre install it in image
63
+ # so here we set the path to default install of msys2 first and default to OMNIBUS_TOOLCHAIN_INSTALL_DIR for backward compatibility
64
+ msys_path = ENV["MSYS2_INSTALL_DIR"] ? "#{ENV["MSYS2_INSTALL_DIR"]}" : "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin"
65
+
66
+ make target, env: env, cwd: "#{project_dir}/src"
67
+
68
+ block "copy required windows files" do
69
+ copy_files = [
70
+ "#{project_dir}/bin/#{target}/stunnel.exe",
71
+ "#{project_dir}/bin/#{target}/tstunnel.exe",
72
+ "#{msys_path}/#{mingw}/bin/libssp-0.dll",
73
+ ]
74
+ copy_files.each do |file|
75
+ if File.exist?(file)
76
+ copy file, "#{install_dir}/embedded/bin/#{File.basename(file)}"
77
+ else
78
+ raise "Cannot find required file for Windows: #{file}"
79
+ end
80
+ end
81
+ end
82
+ else
83
+ make env: env
84
+ make "install", env: env
85
+ end
86
+ end
@@ -0,0 +1,42 @@
1
+ #
2
+ # Copyright 2014 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 "util-macros"
18
+ default_version "1.19.3"
19
+
20
+ # version_list: url=https://www.x.org/releases/individual/util/ filter=util-macros-*.tar.gz
21
+
22
+ version("1.19.3") { source sha256: "624bb6c3a4613d18114a7e3849a3d70f2d7af9dc6eabeaba98060d87e3aef35b" }
23
+ version("1.19.0") { source sha256: "0d4df51b29023daf2f63aebf3ebc638ea88efedfd560ab5866741ab3f92acaa1" }
24
+ version("1.18.0") { source sha256: "cf4ab0e17bfee0f7689cdcff8c7d7f164c9a710f851f91c488f5cd81fac9c0aa" }
25
+
26
+ source url: "https://www.x.org/releases/individual/util/util-macros-#{version}.tar.gz"
27
+
28
+ license "MIT"
29
+ license_file "COPYING"
30
+ skip_transitive_dependency_licensing true
31
+
32
+ relative_path "util-macros-#{version}"
33
+
34
+ build do
35
+ env = with_standard_compiler_flags(with_embedded_path)
36
+
37
+ command "./configure" \
38
+ " --prefix=#{install_dir}/embedded", env: env
39
+
40
+ make "-j #{workers}", env: env
41
+ make "-j #{workers} install", env: env
42
+ end
@@ -0,0 +1,33 @@
1
+ #
2
+ # Copyright 2012-2014 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
+ # expeditor/ignore: logic only
17
+
18
+ name "version-manifest"
19
+ description "generates a version manifest file"
20
+ default_version "0.0.1"
21
+
22
+ license :project_license
23
+ skip_transitive_dependency_licensing true
24
+
25
+ build do
26
+ block do
27
+ File.open("#{install_dir}/version-manifest.txt", "w") do |f|
28
+ f.puts "#{project.name} #{project.build_version}"
29
+ f.puts ""
30
+ f.puts Omnibus::Reports.pretty_version_map(project)
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,42 @@
1
+ #
2
+ # Copyright 2014 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 "xproto"
18
+ default_version "7.0.31"
19
+
20
+ # version_list: url=https://www.x.org/releases/individual/proto/ filter=xproto-*.tar.gz
21
+
22
+ version("7.0.31") { source sha256: "6d755eaae27b45c5cc75529a12855fed5de5969b367ed05003944cf901ed43c7" }
23
+ version("7.0.28") { source sha256: "6cabc8ce3fa2b1a2427871167b62c24d5b08a58bd3e81ed7aaf08f2bf6dbcfed" }
24
+ version("7.0.25") { source sha256: "e3dc634103f923a2276289745eb7b702b18cfc885ea4b2382bd35a8cc3d935cb" }
25
+
26
+ source url: "https://www.x.org/releases/individual/proto/xproto-#{version}.tar.gz"
27
+
28
+ license "MIT"
29
+ license_file "COPYING"
30
+ skip_transitive_dependency_licensing true
31
+
32
+ relative_path "xproto-#{version}"
33
+
34
+ build do
35
+ env = with_standard_compiler_flags(with_embedded_path)
36
+
37
+ command "./configure" \
38
+ " --prefix=#{install_dir}/embedded", env: env
39
+
40
+ make "-j #{workers}", env: env
41
+ make "-j #{workers} install", env: env
42
+ end