Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet-agent/, app-admin/puppet-agent/files/
Date: Sat, 22 Sep 2018 21:19:02
Message-Id: 1537651118.a4584b802c811edb1f6e8fa4bf1eddf122c533eb.prometheanfire@gentoo
1 commit: a4584b802c811edb1f6e8fa4bf1eddf122c533eb
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 22 21:16:32 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 22 21:18:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4584b80
7
8 app-admin/puppet-agent: 5.5.6 stable amd64/x86 with cleanup
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-admin/puppet-agent/Manifest | 4 -
13 .../43e2c935252b995134ce353e5e6312cf77aea480.patch | 329 ---------------------
14 app-admin/puppet-agent/metadata.xml | 1 -
15 app-admin/puppet-agent/puppet-agent-1.10.12.ebuild | 111 -------
16 app-admin/puppet-agent/puppet-agent-5.5.3.ebuild | 85 ------
17 app-admin/puppet-agent/puppet-agent-5.5.6.ebuild | 2 +-
18 6 files changed, 1 insertion(+), 531 deletions(-)
19
20 diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest
21 index 2acefe7bf59..cbcfcd9c2cf 100644
22 --- a/app-admin/puppet-agent/Manifest
23 +++ b/app-admin/puppet-agent/Manifest
24 @@ -1,7 +1,3 @@
25 -DIST puppet-agent_1.10.12-1stretch_amd64.deb 15443166 BLAKE2B 74c8465fd8cc98ca114acdc600c3f259072d64765cdd8308092b7177233d44656f429407520ead2e02494951f57f1c79b5dfe8c76b2dd7bba7c1316426746df8 SHA512 1391530be340ad0439260f7bd3df8ad251ffaa02fc2f358e4ff2189b8c64a0b2d0caab9f84b84b26ebe2176decef2a39d3114f6433ba6eacd962ff45e1e04c43
26 -DIST puppet-agent_1.10.12-1stretch_i386.deb 16308082 BLAKE2B 6606c15aac51b28e9e8011168563dff9069b6b065f861c01f4fc768064fe266f83211fbc8fefebfe4bdf81c6220b5daa19f66a9214bd1f2ff53a3b1a2e87128a SHA512 fce0a3ac12afcc293fbdf3cc990407b82592228ed8ed609f4b98c17cea35c8e5ff5f47287880601fa80ac2f7fa608dfe00b3594a906d52bc2bd2e04117ccb856
27 -DIST puppet-agent_5.5.3-1stretch_amd64.deb 17272112 BLAKE2B 5e052f837184b1d1dd5965ccb18e3a52dc88ea6ba85c0c3c5222ffe50e32e0a72a6f14274f5dd6c1bd63b3a160affa8a6b3399ac75e27d9cc2c267a1e1c0e89d SHA512 1629b3535b900081676647f64c17e3c0d23df38525d90d5f3993877d0749d18cf55f72fb20c47e20a63d18c2c7ad95cc0f179449c386ce3b8ec8a6d0f40243e7
28 -DIST puppet-agent_5.5.3-1stretch_i386.deb 18189670 BLAKE2B a8791926a5ce08edad363670ab5269fcef208c3137db4126f33295fd7fdd447620578445eb0a9396e263fed8612981581cef0c5f6d3e51634722c01c79e2c9dc SHA512 83a1f472c4af97a48703ca61a00740fc7806155732bd488d3f9d757f969dca0a19cec014dad0bb5e6d8b5384d32c2d906ad0e8438efeeae5fdd39524cc11f6f8
29 DIST puppet-agent_5.5.4-1stretch_amd64.deb 17273314 BLAKE2B e296cda8219deafe9b36039298823edb6007f42047e90e120fc16e941bb91c8d660e1a7f1341aa9463c67d4a5e05fbd8bf9c072a7768b0e885536efe5956115c SHA512 599aef07bb39b8d209e806ea1539157419de96376113ba88de6160525e96d6fa28f9865d7a89aff96698a0ff4e85ec474dd43ff4ea512b06a64c491c252cd973
30 DIST puppet-agent_5.5.4-1stretch_i386.deb 18195740 BLAKE2B aa1e5b7030de4ec58a389a552c0d2c870875244f6a722c9b87d4aca28261f073b347476aaa313edd4f66fa07621a333c777a3a6b04228aa7d2f35391f4f84df8 SHA512 3e7346ccde7d3bc9e99bb38a2958c9ddda3dd4a5124ced21dc048df41566a0d9e6d9e5250f7c93433c02585fd83031292f8197a7c6537a1563dd6ebec464b979
31 DIST puppet-agent_5.5.6-1stretch_amd64.deb 17279588 BLAKE2B d9614ee1cbec786303ac72fc9b704c90056771c9e3c23a93d6b7cff11f27394fbd277d5ae0d8eca20d9801d31019e7ca381af0cb60b72fc109ce6b2a99ee1124 SHA512 1172d72a1054cf04ab8033ab319313b7da6fd76684738bdb4aa1bc6bd9fa9dc0f2b00d765382023e0e854efbee6adba5b66bd62e2e04a9f153da79bccad427f7
32
33 diff --git a/app-admin/puppet-agent/files/43e2c935252b995134ce353e5e6312cf77aea480.patch b/app-admin/puppet-agent/files/43e2c935252b995134ce353e5e6312cf77aea480.patch
34 deleted file mode 100644
35 index 619c5dd68cb..00000000000
36 --- a/app-admin/puppet-agent/files/43e2c935252b995134ce353e5e6312cf77aea480.patch
37 +++ /dev/null
38 @@ -1,329 +0,0 @@
39 -diff --git a/lib/puppet/provider/package/portage.rb b/lib/puppet/provider/package/portage.rb
40 -index 374667c..12160c6 100644
41 ---- a/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/portage.rb
42 -+++ b/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/portage.rb
43 -@@ -2,14 +2,19 @@
44 - require 'fileutils'
45 -
46 - Puppet::Type.type(:package).provide :portage, :parent => Puppet::Provider::Package do
47 -- desc "Provides packaging support for Gentoo's portage system."
48 -+ desc "Provides packaging support for Gentoo's portage system.
49 -
50 -- has_features :versionable, :reinstallable
51 -+ This provider supports the `install_options` and `uninstall_options` attributes, which allows command-line
52 -+ flags to be passed to emerge. These options should be specified as a string (e.g. '--flag'), a hash
53 -+ (e.g. {'--flag' => 'value'}), or an array where each element is either a string or a hash."
54 -+
55 -+ has_features :install_options, :purgeable, :reinstallable, :uninstall_options, :versionable, :virtual_packages
56 -
57 - {
58 -- :emerge => "/usr/bin/emerge",
59 -- :eix => "/usr/bin/eix",
60 -- :update_eix => "/usr/bin/eix-update",
61 -+ :emerge => '/usr/bin/emerge',
62 -+ :eix => '/usr/bin/eix',
63 -+ :qatom_bin => '/usr/bin/qatom',
64 -+ :update_eix => '/usr/bin/eix-update',
65 - }.each_pair do |name, path|
66 - has_command(name, path) do
67 - environment :HOME => '/'
68 -@@ -24,15 +29,18 @@ def self.instances
69 - result_format = self.eix_result_format
70 - result_fields = self.eix_result_fields
71 -
72 -+ limit = self.eix_limit
73 - version_format = self.eix_version_format
74 - slot_versions_format = self.eix_slot_versions_format
75 -+ installed_versions_format = self.eix_installed_versions_format
76 -+ installable_versions_format = self.eix_install_versions_format
77 - begin
78 -- eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix"
79 -+ eix_file = File.directory?('/var/cache/eix') ? '/var/cache/eix/portage.eix' : '/var/cache/eix'
80 - update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp})
81 -
82 - search_output = nil
83 -- Puppet::Util.withenv :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format do
84 -- search_output = eix *(self.eix_search_arguments + ["--installed"])
85 -+ Puppet::Util.withenv :EIX_LIMIT => limit, :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format, :INSTALLEDVERSIONS => installed_versions_format, :STABLEVERSIONS => installable_versions_format do
86 -+ search_output = eix *(self.eix_search_arguments + ['--installed'])
87 - end
88 -
89 - packages = []
90 -@@ -57,65 +65,123 @@ def self.instances
91 -
92 - def install
93 - should = @resource.should(:ensure)
94 -- name = package_name
95 -- unless should == :present or should == :latest
96 -- # We must install a specific version
97 -- name = package_atom_with_version(should)
98 -+ cmd = %w{}
99 -+ name = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
100 -+ name = qatom[:pfx] + name if qatom[:pfx]
101 -+ name = name + '-' + qatom[:pv] if qatom[:pv]
102 -+ name = name + '-' + qatom[:pr] if qatom[:pr]
103 -+ name = name + qatom[:slot] if qatom[:slot]
104 -+ cmd << '--update' if [:latest].include?(should)
105 -+ cmd += install_options if @resource[:install_options]
106 -+ cmd << name
107 -+ emerge *cmd
108 -+ end
109 -+
110 -+ def uninstall
111 -+ should = @resource.should(:ensure)
112 -+ cmd = %w{--rage-clean}
113 -+ name = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
114 -+ name = qatom[:pfx] + name if qatom[:pfx]
115 -+ name = name + '-' + qatom[:pv] if qatom[:pv]
116 -+ name = name + '-' + qatom[:pr] if qatom[:pr]
117 -+ name = name + qatom[:slot] if qatom[:slot]
118 -+ cmd += uninstall_options if @resource[:uninstall_options]
119 -+ cmd << name
120 -+ if [:purged].include?(should)
121 -+ Puppet::Util.withenv :CONFIG_PROTECT => "-*" do
122 -+ emerge *cmd
123 -+ end
124 -+ else
125 -+ emerge *cmd
126 - end
127 -- emerge name
128 - end
129 -
130 -- # The common package name format.
131 -- def package_name
132 -- @resource[:category] ? "#{@resource[:category]}/#{@resource[:name]}" : @resource[:name]
133 -+ def reinstall
134 -+ self.install
135 - end
136 -
137 -- def package_name_without_slot
138 -- package_name.sub(self.class.slot_pattern, '')
139 -+ def update
140 -+ self.install
141 - end
142 -
143 -- def package_slot
144 -- if match = package_name.match(self.class.slot_pattern)
145 -- match[1]
146 -+ def qatom
147 -+ output_format = self.qatom_output_format
148 -+ result_format = self.qatom_result_format
149 -+ result_fields = self.qatom_result_fields
150 -+ @atom ||= begin
151 -+ search_output = nil
152 -+ package_info = {}
153 -+ # do the search
154 -+ search_output = qatom_bin *([@resource[:name], '--format', output_format])
155 -+ # verify if the search found anything
156 -+ match = result_format.match(search_output)
157 -+ if match
158 -+ result_fields.zip(match.captures) do |field, value|
159 -+ # some fields can be empty or (null) (if we are not passed a category in the package name for instance)
160 -+ if value == '(null)'
161 -+ package_info[field] = nil
162 -+ elsif !value or value.empty?
163 -+ package_info[field] = nil
164 -+ else
165 -+ package_info[field] = value
166 -+ end
167 -+ end
168 -+ end
169 -+ @atom = package_info
170 -+ rescue Puppet::ExecutionFailure => detail
171 -+ raise Puppet::Error.new(detail)
172 - end
173 - end
174 -
175 -- def package_atom_with_version(version)
176 -- if slot = package_slot
177 -- "=#{package_name_without_slot}-#{version}:#{package_slot}"
178 -- else
179 -- "=#{package_name}-#{version}"
180 -- end
181 -+ def qatom_output_format
182 -+ '"[%{CATEGORY}] [%{PN}] [%{PV}] [%[PR]] [%[SLOT]] [%[pfx]] [%[sfx]]"'
183 - end
184 -
185 -- def uninstall
186 -- emerge "--unmerge", package_name
187 -+ def qatom_result_format
188 -+ /^\"\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\](.*)\"$/
189 - end
190 -
191 -- def reinstall
192 -- self.install
193 -+ def qatom_result_fields
194 -+ [:category, :pn, :pv, :pr, :slot, :pfx, :sfx]
195 - end
196 -
197 -- def update
198 -- self.install
199 -+ def self.get_sets
200 -+ @sets ||= begin
201 -+ @sets = emerge *(['--list-sets'])
202 -+ end
203 - end
204 -
205 - def query
206 -+ limit = self.class.eix_limit
207 - result_format = self.class.eix_result_format
208 - result_fields = self.class.eix_result_fields
209 -
210 - version_format = self.class.eix_version_format
211 - slot_versions_format = self.class.eix_slot_versions_format
212 -- search_field = package_name_without_slot.count('/') > 0 ? "--category-name" : "--name"
213 -- search_value = package_name_without_slot
214 -+ installed_versions_format = self.class.eix_installed_versions_format
215 -+ installable_versions_format = self.class.eix_install_versions_format
216 -+ search_field = qatom[:category] ? '--category-name' : '--name'
217 -+ search_value = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
218 -+
219 -+ @eix_result ||= begin
220 -+ # package sets
221 -+ package_sets = []
222 -+ self.class.get_sets.each_line do |package_set|
223 -+ package_sets << package_set.to_s.strip
224 -+ end
225 -
226 -- begin
227 -- eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix"
228 -+ if @resource[:name].match(/^@/)
229 -+ if package_sets.include?(@resource[:name][1..-1].to_s)
230 -+ return({:name => "#{@resource[:name]}", :ensure => '9999', :version_available => nil, :installed_versions => nil, :installable_versions => "9999,"})
231 -+ end
232 -+ end
233 -+
234 -+ eix_file = File.directory?('/var/cache/eix') ? '/var/cache/eix/portage.eix' : '/var/cache/eix'
235 - update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp})
236 -
237 - search_output = nil
238 -- Puppet::Util.withenv :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format do
239 -- search_output = eix *(self.class.eix_search_arguments + ["--exact",search_field,search_value])
240 -+ Puppet::Util.withenv :EIX_LIMIT => limit, :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format, :INSTALLEDVERSIONS => installed_versions_format, :STABLEVERSIONS => installable_versions_format do
241 -+ search_output = eix *(self.class.eix_search_arguments + ['--exact',search_field,search_value])
242 - end
243 -
244 - packages = []
245 -@@ -127,10 +193,19 @@ def query
246 - result_fields.zip(match.captures) do |field, value|
247 - package[field] = value unless !value or value.empty?
248 - end
249 -- if package_slot
250 -- package[:version_available] = eix_get_version_for_slot(package[:slot_versions_available], package_slot)
251 -- package[:ensure] = eix_get_version_for_slot(package[:installed_slots], package_slot)
252 -+ # dev-lang python [3.4.5] [3.5.2] [2.7.12:2.7,3.4.5:3.4] [2.7.12:2.7,3.4.5:3.4,3.5.2:3.5] https://www.python.org/ An interpreted, interactive, object-oriented programming language
253 -+ # version_available is what we CAN install / update to
254 -+ # ensure is what is currently installed
255 -+ # This DOES NOT choose to install/upgrade or not, just provides current info
256 -+ # prefer checking versions to slots as versions are finer grained
257 -+ if qatom[:pv]
258 -+ package[:version_available] = eix_get_version_for_versions(package[:installable_versions], qatom[:pv])
259 -+ package[:ensure] = eix_get_version_for_versions(package[:installed_versions], qatom[:pv])
260 -+ elsif qatom[:slot]
261 -+ package[:version_available] = eix_get_version_for_slot(package[:slot_versions_available], qatom[:slot])
262 -+ package[:ensure] = eix_get_version_for_slot(package[:installed_slots], qatom[:slot])
263 - end
264 -+
265 - package[:ensure] = package[:ensure] ? package[:ensure] : :absent
266 - packages << package
267 - end
268 -@@ -138,10 +213,9 @@ def query
269 -
270 - case packages.size
271 - when 0
272 -- not_found_value = "#{@resource[:category] ? @resource[:category] : "<unspecified category>"}/#{@resource[:name]}"
273 -- raise Puppet::Error.new("No package found with the specified name [#{not_found_value}]")
274 -+ raise Puppet::Error.new("No package found with the specified name [#{@resource[:name]}]")
275 - when 1
276 -- return packages[0]
277 -+ @eix_result = packages[0]
278 - else
279 - raise Puppet::Error.new("More than one package with the specified name [#{search_value}], please use the category parameter to disambiguate")
280 - end
281 -@@ -155,39 +229,73 @@ def latest
282 - end
283 -
284 - private
285 -+ def eix_get_version_for_versions(versions, target)
286 -+ # [2.7.10-r1,2.7.12,3.4.3-r1,3.4.5,3.5.2] 3.5.2
287 -+ return nil if versions.nil?
288 -+ versions = versions.split(',')
289 -+ # [2.7.10-r1 2.7.12 3.4.3-r1 3.4.5 3.5.2]
290 -+ versions.find { |version| version == target }
291 -+ # 3.5.2
292 -+ end
293 -+
294 -+ private
295 - def eix_get_version_for_slot(versions_and_slots, slot)
296 -+ # [2.7.12:2.7 3.4.5:3.4 3.5.2:3.5] 3.5
297 - return nil if versions_and_slots.nil?
298 -- versions_and_slots = versions_and_slots.split(",")
299 -- versions_and_slots.map! { |version_and_slot| version_and_slot.split(":") }
300 -- version_for_slot = versions_and_slots.find { |version_and_slot| version_and_slot.last == slot }
301 -+ versions_and_slots = versions_and_slots.split(',')
302 -+ # [2.7.12:2.7 3.4.5:3.4 3.5.2:3.5]
303 -+ versions_and_slots.map! { |version_and_slot| version_and_slot.split(':') }
304 -+ # [2.7.12: 2.7
305 -+ # 3.4.5: 3.4
306 -+ # 3.5.2: 3.5]
307 -+ version_for_slot = versions_and_slots.find { |version_and_slot| version_and_slot.last == slot[1..-1] }
308 -+ # [3.5.2: 3.5]
309 - version_for_slot.first if version_for_slot
310 -- end
311 --
312 -- def self.slot_pattern
313 -- /:([\w+.\/*=-]+)$/
314 -+ # 3.5.2
315 - end
316 -
317 - def self.eix_search_format
318 -- "'<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] [<installedversions:LASTSLOTVERSIONS>] [<bestslotversions:LASTSLOTVERSIONS>] <homepage> <description>\n'"
319 -+ "'<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] [<installedversions:LASTSLOTVERSIONS>] [<installedversions:INSTALLEDVERSIONS>] [<availableversions:STABLEVERSIONS>] [<bestslotversions:LASTSLOTVERSIONS>] <homepage> <description>\n'"
320 - end
321 -
322 - def self.eix_result_format
323 -- /^(\S+)\s+(\S+)\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+(\S+)\s+(.*)$/
324 -+ /^(\S+)\s+(\S+)\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+(\S+)\s+(.*)$/
325 - end
326 -
327 - def self.eix_result_fields
328 -- [:category, :name, :ensure, :version_available, :installed_slots, :slot_versions_available, :vendor, :description]
329 -+ # ensure:[3.4.5], version_available:[3.5.2], installed_slots:[2.7.12:2.7,3.4.5:3.4], installable_versions:[2.7.10-r1,2.7.12,3.4.3-r1,3.4.5,3.5.2] slot_versions_available:[2.7.12:2.7,3.4.5:3.4,3.5.2:3.5]
330 -+ [:category, :name, :ensure, :version_available, :installed_slots, :installed_versions, :installable_versions, :slot_versions_available, :vendor, :description]
331 - end
332 -
333 - def self.eix_version_format
334 -- "{last}<version>{}"
335 -+ '{last}<version>{}'
336 - end
337 -
338 - def self.eix_slot_versions_format
339 -- "{!first},{}<version>:<slot>"
340 -+ '{!first},{}<version>:<slot>'
341 -+ end
342 -+
343 -+ def self.eix_installed_versions_format
344 -+ '{!first},{}<version>'
345 -+ end
346 -+
347 -+ def self.eix_install_versions_format
348 -+ '{!first}{!last},{}{}{isstable}<version>{}'
349 -+ end
350 -+
351 -+ def self.eix_limit
352 -+ '0'
353 - end
354 -
355 - def self.eix_search_arguments
356 -- ["--nocolor", "--pure-packages", "--format",self.eix_search_format]
357 -+ ['--nocolor', '--pure-packages', '--format', self.eix_search_format]
358 -+ end
359 -+
360 -+ def install_options
361 -+ join_options(@resource[:install_options])
362 -+ end
363 -+
364 -+ def uninstall_options
365 -+ join_options(@resource[:uninstall_options])
366 - end
367 - end
368
369 diff --git a/app-admin/puppet-agent/metadata.xml b/app-admin/puppet-agent/metadata.xml
370 index 423c18e429e..aef6ae7f136 100644
371 --- a/app-admin/puppet-agent/metadata.xml
372 +++ b/app-admin/puppet-agent/metadata.xml
373 @@ -7,7 +7,6 @@
374 </maintainer>
375 <use>
376 <flag name="puppetdb">Adds puppetdb support</flag>
377 - <flag name="experimental">Add patches for things in testing</flag>
378 </use>
379 <longdescription lang="en">
380 Collection of puppet utils, clients and batteries included.
381
382 diff --git a/app-admin/puppet-agent/puppet-agent-1.10.12.ebuild b/app-admin/puppet-agent/puppet-agent-1.10.12.ebuild
383 deleted file mode 100644
384 index 22bc1d19c4a..00000000000
385 --- a/app-admin/puppet-agent/puppet-agent-1.10.12.ebuild
386 +++ /dev/null
387 @@ -1,111 +0,0 @@
388 -# Copyright 1999-2018 Gentoo Foundation
389 -# Distributed under the terms of the GNU General Public License v2
390 -
391 -EAPI=6
392 -inherit eutils systemd unpacker user
393 -
394 -DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
395 -HOMEPAGE="https://puppetlabs.com/"
396 -SRC_BASE="http://apt.puppetlabs.com/pool/stretch/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1stretch"
397 -SRC_URI="
398 - amd64? ( ${SRC_BASE}_amd64.deb )
399 - x86? ( ${SRC_BASE}_i386.deb )
400 -"
401 -
402 -LICENSE="Apache-2.0"
403 -SLOT="0"
404 -KEYWORDS="amd64 x86"
405 -IUSE="experimental puppetdb selinux"
406 -RESTRICT="strip"
407 -
408 -CDEPEND="!app-admin/augeas
409 - !app-admin/mcollective
410 - !app-admin/puppet
411 - !dev-ruby/hiera
412 - !dev-ruby/facter
413 - !app-emulation/virt-what"
414 -
415 -DEPEND="
416 - ${CDEPEND}"
417 -RDEPEND="${CDEPEND}
418 - app-portage/eix
419 - sys-apps/dmidecode
420 - sys-libs/glibc
421 - >=sys-libs/readline-6.0
422 - <sys-libs/readline-7.0
423 - selinux? (
424 - sys-libs/libselinux[ruby]
425 - sec-policy/selinux-puppet
426 - )
427 - puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
428 -
429 -S=${WORKDIR}
430 -
431 -QA_PREBUILT="
432 - /opt/puppetlabs/puppet
433 - /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
434 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
435 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
436 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
437 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
438 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
439 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
440 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
441 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
442 - /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
443 - /opt/puppetlabs/puppet/lib/engines/*
444 - /opt/puppetlabs/puppet/lib/virt-what/*
445 - /opt/puppetlabs/puppet/lib/*
446 - /opt/puppetlabs/puppet/bin/*"
447 -
448 -pkg_setup() {
449 - enewgroup puppet
450 - enewuser puppet -1 -1 /var/run/puppet puppet
451 -}
452 -
453 -src_prepare() {
454 - if use experimental; then
455 - epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
456 - fi
457 - eapply_user
458 -}
459 -
460 -src_install() {
461 - # conf.d
462 - doconfd etc/default/puppet
463 - doconfd etc/default/mcollective
464 - doconfd etc/default/pxp-agent
465 - # logrotate.d
466 - insinto /etc/logrotate.d
467 - doins etc/logrotate.d/pxp-agent
468 - # puppet itself
469 - insinto /etc/puppetlabs
470 - doins -r etc/puppetlabs/*
471 - # logdir for systemd
472 - dodir var/log/puppetlabs/puppet/
473 - fperms 0750 var/log/puppetlabs/puppet/
474 - # the rest
475 - insinto /opt
476 - dodir opt/puppetlabs/puppet/cache
477 - doins -r opt/*
478 - fperms 0750 /opt/puppetlabs/puppet/cache
479 - # init
480 - newinitd "${FILESDIR}/puppet.initd" puppet
481 - newinitd "${FILESDIR}/mcollective.initd" mcollective
482 - systemd_dounit lib/systemd/system/puppet.service
483 - systemd_dounit lib/systemd/system/mcollective.service
484 - systemd_dounit lib/systemd/system/pxp-agent.service
485 - systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
486 - # symlinks
487 - chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
488 - chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
489 - dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
490 - dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
491 - dosym ../../opt/puppetlabs/bin/mco /usr/bin/mco
492 - dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
493 - dosym ../../opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
494 - dosym ../../opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
495 - dosym ../../opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
496 - dosym ../../opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
497 - dosym ../../opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
498 -}
499
500 diff --git a/app-admin/puppet-agent/puppet-agent-5.5.3.ebuild b/app-admin/puppet-agent/puppet-agent-5.5.3.ebuild
501 deleted file mode 100644
502 index 784b06891e1..00000000000
503 --- a/app-admin/puppet-agent/puppet-agent-5.5.3.ebuild
504 +++ /dev/null
505 @@ -1,85 +0,0 @@
506 -# Copyright 1999-2018 Gentoo Foundation
507 -# Distributed under the terms of the GNU General Public License v2
508 -
509 -EAPI=6
510 -inherit eutils systemd unpacker user
511 -
512 -DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
513 -HOMEPAGE="https://puppetlabs.com/"
514 -SRC_BASE="http://apt.puppetlabs.com/pool/stretch/puppet5/${PN:0:1}/${PN}/${PN}_${PV}-1stretch"
515 -SRC_URI="
516 - amd64? ( ${SRC_BASE}_amd64.deb )
517 - x86? ( ${SRC_BASE}_i386.deb )"
518 -
519 -LICENSE="Apache-2.0"
520 -SLOT="0"
521 -KEYWORDS="amd64 x86"
522 -IUSE="puppetdb selinux"
523 -RESTRICT="strip"
524 -
525 -CDEPEND="!app-admin/augeas
526 - !app-admin/mcollective
527 - !app-admin/puppet
528 - !dev-ruby/hiera
529 - !dev-ruby/facter
530 - !app-emulation/virt-what"
531 -
532 -DEPEND="
533 - ${CDEPEND}"
534 -RDEPEND="${CDEPEND}
535 - app-portage/eix
536 - sys-apps/dmidecode
537 - sys-libs/glibc
538 - sys-libs/readline:0/7
539 - sys-libs/ncurses:0[tinfo]
540 - selinux? (
541 - sys-libs/libselinux[ruby]
542 - sec-policy/selinux-puppet
543 - )
544 - puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
545 -
546 -S=${WORKDIR}
547 -
548 -pkg_setup() {
549 - enewgroup puppet
550 - enewuser puppet -1 -1 /var/run/puppet puppet
551 -}
552 -
553 -src_install() {
554 - # conf.d
555 - doconfd etc/default/puppet
556 - doconfd etc/default/mcollective
557 - doconfd etc/default/pxp-agent
558 - # logrotate.d
559 - insinto /etc/logrotate.d
560 - doins etc/logrotate.d/pxp-agent
561 - # puppet itself
562 - insinto /etc/puppetlabs
563 - doins -r etc/puppetlabs/*
564 - # logdir for systemd
565 - dodir var/log/puppetlabs/puppet/
566 - fperms 0750 var/log/puppetlabs/puppet/
567 - # the rest
568 - insinto /opt
569 - dodir opt/puppetlabs/puppet/cache
570 - doins -r opt/*
571 - fperms 0750 /opt/puppetlabs/puppet/cache
572 - # init
573 - newinitd "${FILESDIR}/puppet.initd" puppet
574 - newinitd "${FILESDIR}/mcollective.initd" mcollective
575 - systemd_dounit lib/systemd/system/puppet.service
576 - systemd_dounit lib/systemd/system/mcollective.service
577 - systemd_dounit lib/systemd/system/pxp-agent.service
578 - systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
579 - # symlinks
580 - chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
581 - chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
582 - dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
583 - dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
584 - dosym ../../opt/puppetlabs/bin/mco /usr/bin/mco
585 - dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
586 - dosym ../../opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
587 - dosym ../../opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
588 - dosym ../../opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
589 - dosym ../../opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
590 -}
591
592 diff --git a/app-admin/puppet-agent/puppet-agent-5.5.6.ebuild b/app-admin/puppet-agent/puppet-agent-5.5.6.ebuild
593 index 5570060df99..784b06891e1 100644
594 --- a/app-admin/puppet-agent/puppet-agent-5.5.6.ebuild
595 +++ b/app-admin/puppet-agent/puppet-agent-5.5.6.ebuild
596 @@ -13,7 +13,7 @@ SRC_URI="
597
598 LICENSE="Apache-2.0"
599 SLOT="0"
600 -KEYWORDS="~amd64 ~x86"
601 +KEYWORDS="amd64 x86"
602 IUSE="puppetdb selinux"
603 RESTRICT="strip"