packaging 0.118.0 → 0.119.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packaging/platforms.rb +16 -0
- data/lib/packaging/sign/ips.rb +13 -0
- data/lib/packaging/sign.rb +1 -0
- data/tasks/nightly_repos.rake +1 -2
- data/tasks/sign.rake +2 -7
- metadata +19 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9b826603e9021b617f6ebd794189aefc48eac9d35d0dbd41bdc507340a64472
|
4
|
+
data.tar.gz: 95f34b49c2c1ad926fcbb79730a667dead2f333fde651f10b7a219e5f0a4ca82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c53db3d79e10b84fd1db3bab50b26de971712b25aba0843c21cbc056165b71c7612c8d44fd42b3fbcfd909006fd02fcf31adaafa4b1f763deacba1773c20889e
|
7
|
+
data.tar.gz: 8628225fecfe6afb175fcff7efb70edb724fe7b6fd96cf6d2ddbc232ffb7e3b88e9008b2b5b04badb0b15cf231aa55a15d510a29d5a604907025949da73021cf
|
data/lib/packaging/platforms.rb
CHANGED
@@ -36,6 +36,14 @@ module Pkg
|
|
36
36
|
signature_format: 'v4',
|
37
37
|
repo: true,
|
38
38
|
},
|
39
|
+
'7' => {
|
40
|
+
architectures: ['aarch64'],
|
41
|
+
source_architecture: 'SRPMS',
|
42
|
+
package_format: 'rpm',
|
43
|
+
source_package_formats: ['src.rpm'],
|
44
|
+
signature_format: 'v4',
|
45
|
+
repo: true,
|
46
|
+
},
|
39
47
|
},
|
40
48
|
|
41
49
|
'debian' => {
|
@@ -117,6 +125,14 @@ module Pkg
|
|
117
125
|
signature_format: 'v4',
|
118
126
|
repo: true,
|
119
127
|
},
|
128
|
+
'40' => {
|
129
|
+
architectures: ['x86_64'],
|
130
|
+
source_architecture: 'SRPMS',
|
131
|
+
package_format: 'rpm',
|
132
|
+
source_package_formats: ['src.rpm'],
|
133
|
+
signature_format: 'v4',
|
134
|
+
repo: true,
|
135
|
+
},
|
120
136
|
},
|
121
137
|
|
122
138
|
'osx' => {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Pkg::Sign::Ips
|
2
|
+
module_function
|
3
|
+
|
4
|
+
def sign(ips_dir = 'pkg')
|
5
|
+
packages = Dir["#{ips_dir}/**/*.p5p"]
|
6
|
+
return if packages.empty?
|
7
|
+
|
8
|
+
Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
|
9
|
+
packages.each do |p5p_package|
|
10
|
+
Pkg::Util::Gpg.sign_file(p5p_package)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/packaging/sign.rb
CHANGED
data/tasks/nightly_repos.rake
CHANGED
@@ -39,8 +39,7 @@ namespace :pl do
|
|
39
39
|
Pkg::Rpm::Repo.sign_repos('repos')
|
40
40
|
Pkg::Deb::Repo.sign_repos('repos', 'Apt repository for signed builds')
|
41
41
|
Pkg::Sign::Dmg.sign('repos') unless Dir['repos/apple/**/*.dmg'].empty?
|
42
|
-
|
43
|
-
# Pkg::Sign::Ips.sign('repos') unless Dir['repos/solaris/11/**/*.p5p'].empty?
|
42
|
+
Pkg::Sign::Ips.sign('repos') unless Dir['repos/solaris/11/**/*.p5p'].empty?
|
44
43
|
Pkg::Sign::Msi.sign('repos') unless Dir['repos/windows/**/*.msi'].empty?
|
45
44
|
end
|
46
45
|
|
data/tasks/sign.rake
CHANGED
@@ -45,13 +45,8 @@ namespace :pl do
|
|
45
45
|
desc "Sign ips package, defaults to PL key, pass GPG_KEY to override"
|
46
46
|
task :sign_ips, :root_dir do |_t, args|
|
47
47
|
ips_dir = args.root_dir || $DEFAULT_DIRECTORY
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
|
52
|
-
packages.each do |p5p_package|
|
53
|
-
Pkg::Util::Gpg.sign_file p5p_package
|
54
|
-
end
|
48
|
+
next if Dir["#{ips_dir}/**/*.p5p"].empty?
|
49
|
+
Pkg::Sign::Ips.sign(ips_dir)
|
55
50
|
end
|
56
51
|
|
57
52
|
desc "Sign built gems, defaults to PL key, pass GPG_KEY to override or edit build_defaults"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.119.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet By Perforce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: apt_stage_artifacts
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: artifactory
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,6 +166,7 @@ files:
|
|
180
166
|
- lib/packaging/sign.rb
|
181
167
|
- lib/packaging/sign/deb.rb
|
182
168
|
- lib/packaging/sign/dmg.rb
|
169
|
+
- lib/packaging/sign/ips.rb
|
183
170
|
- lib/packaging/sign/msi.rb
|
184
171
|
- lib/packaging/sign/rpm.rb
|
185
172
|
- lib/packaging/tar.rb
|
@@ -306,28 +293,28 @@ signing_key:
|
|
306
293
|
specification_version: 4
|
307
294
|
summary: Puppet by Perforce packaging automation
|
308
295
|
test_files:
|
309
|
-
- spec/lib/packaging_spec.rb
|
310
|
-
- spec/lib/packaging/repo_spec.rb
|
311
|
-
- spec/lib/packaging/config_spec.rb
|
312
|
-
- spec/lib/packaging/sign_spec.rb
|
313
|
-
- spec/lib/packaging/artifactory_spec.rb
|
314
|
-
- spec/lib/packaging/tar_spec.rb
|
315
|
-
- spec/lib/packaging/platforms_spec.rb
|
316
296
|
- spec/lib/packaging/deb/repo_spec.rb
|
297
|
+
- spec/lib/packaging/repo_spec.rb
|
298
|
+
- spec/lib/packaging/rpm/repo_spec.rb
|
299
|
+
- spec/lib/packaging/deb_spec.rb
|
317
300
|
- spec/lib/packaging/util/net_spec.rb
|
318
|
-
- spec/lib/packaging/util/
|
301
|
+
- spec/lib/packaging/util/os_spec.rb
|
319
302
|
- spec/lib/packaging/util/ship_spec.rb
|
303
|
+
- spec/lib/packaging/util/version_spec.rb
|
320
304
|
- spec/lib/packaging/util/jenkins_spec.rb
|
321
|
-
- spec/lib/packaging/util/execution_spec.rb
|
322
|
-
- spec/lib/packaging/util/file_spec.rb
|
323
305
|
- spec/lib/packaging/util/git_tag_spec.rb
|
324
|
-
- spec/lib/packaging/util/
|
325
|
-
- spec/lib/packaging/util/gpg_spec.rb
|
306
|
+
- spec/lib/packaging/util/execution_spec.rb
|
326
307
|
- spec/lib/packaging/util/rake_utils_spec.rb
|
327
|
-
- spec/lib/packaging/util/
|
308
|
+
- spec/lib/packaging/util/git_spec.rb
|
328
309
|
- spec/lib/packaging/util/misc_spec.rb
|
310
|
+
- spec/lib/packaging/util/file_spec.rb
|
311
|
+
- spec/lib/packaging/util/gpg_spec.rb
|
312
|
+
- spec/lib/packaging/platforms_spec.rb
|
313
|
+
- spec/lib/packaging/config_spec.rb
|
314
|
+
- spec/lib/packaging/sign_spec.rb
|
315
|
+
- spec/lib/packaging/tar_spec.rb
|
316
|
+
- spec/lib/packaging/gem_spec.rb
|
329
317
|
- spec/lib/packaging/paths_spec.rb
|
330
318
|
- spec/lib/packaging/retrieve_spec.rb
|
331
|
-
- spec/lib/packaging/
|
332
|
-
- spec/lib/
|
333
|
-
- spec/lib/packaging/gem_spec.rb
|
319
|
+
- spec/lib/packaging/artifactory_spec.rb
|
320
|
+
- spec/lib/packaging_spec.rb
|