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/
Date: Wed, 14 Feb 2018 03:23:10
Message-Id: 1518578542.873f7b62dae591228c857ccacc40882b3f1db950.prometheanfire@gentoo
1 commit: 873f7b62dae591228c857ccacc40882b3f1db950
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 03:22:22 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 03:22:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=873f7b62
7
8 app-admin/puppet: cleanup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-admin/puppet/Manifest | 3 -
13 app-admin/puppet/puppet-4.10.9-r1.ebuild | 199 -------------------------------
14 app-admin/puppet/puppet-4.10.9.ebuild | 196 ------------------------------
15 app-admin/puppet/puppet-5.1.0-r1.ebuild | 144 ----------------------
16 app-admin/puppet/puppet-5.1.0.ebuild | 144 ----------------------
17 app-admin/puppet/puppet-5.3.3-r1.ebuild | 147 -----------------------
18 app-admin/puppet/puppet-5.3.3.ebuild | 144 ----------------------
19 7 files changed, 977 deletions(-)
20
21 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
22 index debadaeb92d..68d19e06338 100644
23 --- a/app-admin/puppet/Manifest
24 +++ b/app-admin/puppet/Manifest
25 @@ -1,6 +1,3 @@
26 DIST puppet-4.10.10.tar.gz 2995864 BLAKE2B c01e6a7529d70a4481e64b4119cfd9d05e79d655ef17495a98e2ab800ea527ef09f234782e7362b25bf1b1ed11d7c2a48e40815ac6dccc5a2d460886beb604e7 SHA512 e517ee349ead56932c9ff54f910d10842c1cd6b6f28673223a65fb72334662d4eabeccc1c7c7603e17aa712c356edbc27fe53d6e7dd7ba042cc0616d0076d755
27 DIST puppet-4.10.8.tar.gz 2979824 BLAKE2B 802b65d48ff7d8303e3cc847a9f753a5e19c0ada6ee02dc1fc9c748da8d69462c34bdfeddeedf0057179ff1133665439c41e970c41ca1728463292ef26e996ab SHA512 9f3384702dd4938e1e00aeceb0745b760de32000e0dd59d5b846d1120a46026499176a51d0409e3a0ae414efc0872854c204d1941385695a4c57c209fbd1f28d
28 -DIST puppet-4.10.9.tar.gz 2981668 BLAKE2B 315c39953c2ba70b547fd7a393c7be0bd3c387bd52e3f383a932ebc03f9d96c17d988d53b15bcb8d08bc22ebcaf1c9c5cff00f9c34d730e231417565aad5311f SHA512 0ac70f716a602b15d28504cc594c5a0d4f8005083de6751c682dc9180feca68148d942353a63e16aaa2e783e6ebe90b8f77b0b033c671a5134bcbcdff36a3204
29 -DIST puppet-5.1.0.tar.gz 2734018 BLAKE2B d4169fee328710b7685de2606196de68e21ca31f9a9945bdd84255f5185fd2d95c6543a7b88b5130f1f01e60e04294664de71a8ccd1319c2e0bebf4d031e6225 SHA512 07019f40c5b7f18243f13abb899c2ff2ea4b135895ab98c13da3df50f8e720e2759f8eb39e349ff04286da7de504cffea3df8acf9711e8591b25001a2a3f9c15
30 -DIST puppet-5.3.3.tar.gz 2843386 BLAKE2B dc96282ff2d6bb6719362cd9b2e856537019bd888af8ba897e37fc97584cd76c1d4179b3b629d2bb20d1dade0f84ec88ab41dd0d66cccd2c850a87f96ccf4b65 SHA512 b5bb9ac4059855c7cac624ea0fdc2c3366cea82bf07bee195a179a0a709fa53e7fffe883e581c1e07a64705a638b156288301227f7334226ddc401a9bf770afe
31 DIST puppet-5.3.4.tar.gz 2889645 BLAKE2B f1f4e2d9dfe457f89aa7d99724eaa9368ea50027747e2506b5cbfa176c1a9060bf87ce8c037b78f3c86c2e2974087f9ab4fc76cb7374f1a348ff410e9cfa83e1 SHA512 f24008651be15cf5c915f7a03dc0319eb2d076ddfb06c44fd846421fe29baba27ea43b29134077e1dc7c14a48b44104dcaaefe73bfdb00d7667c1c25a1b871fd
32
33 diff --git a/app-admin/puppet/puppet-4.10.9-r1.ebuild b/app-admin/puppet/puppet-4.10.9-r1.ebuild
34 deleted file mode 100644
35 index c404e787afc..00000000000
36 --- a/app-admin/puppet/puppet-4.10.9-r1.ebuild
37 +++ /dev/null
38 @@ -1,199 +0,0 @@
39 -# Copyright 1999-2018 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI="6"
43 -
44 -USE_RUBY="ruby22 ruby23 ruby24"
45 -
46 -#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
47 -
48 -RUBY_FAKEGEM_EXTRAINSTALL="locales"
49 -
50 -inherit xemacs-elisp-common eutils user ruby-fakegem versionator
51 -
52 -DESCRIPTION="A system automation and configuration management software."
53 -HOMEPAGE="http://puppetlabs.com/"
54 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
55 -
56 -LICENSE="Apache-2.0 GPL-2"
57 -SLOT="0"
58 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
59 -IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
60 -RESTRICT="test"
61 -
62 -ruby_add_rdepend "
63 - >=dev-ruby/gettext-setup-0.10:0
64 - >=dev-ruby/hiera-2.0
65 - >=dev-ruby/locale-2.1
66 - >=dev-ruby/rgen-0.6.5
67 - dev-ruby/json:=
68 - >=dev-ruby/facter-3.0.0
69 - augeas? ( dev-ruby/ruby-augeas )
70 - diff? ( dev-ruby/diff-lcs )
71 - doc? ( dev-ruby/rdoc )
72 - ldap? ( dev-ruby/ruby-ldap )
73 - shadow? ( dev-ruby/ruby-shadow )
74 - sqlite? ( dev-ruby/sqlite3 )
75 - virtual/ruby-ssl"
76 -
77 -# ruby_add_bdepend "
78 -# test? (
79 -# dev-ruby/mocha:0.14
80 -# =dev-ruby/rack-1*
81 -# dev-ruby/rspec-its
82 -# dev-ruby/rspec-collection_matchers
83 -# >=dev-ruby/vcr-2.9:2
84 -# >=dev-ruby/webmock-1.24:0
85 -# )"
86 -
87 -DEPEND+=" ${DEPEND}
88 - xemacs? ( app-editors/xemacs )"
89 -RDEPEND+=" ${RDEPEND}
90 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
91 - selinux? (
92 - sys-libs/libselinux[ruby]
93 - sec-policy/selinux-puppet
94 - )
95 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
96 - >=app-portage/eix-0.18.0"
97 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
98 -
99 -SITEFILE="50${PN}-mode-gentoo.el"
100 -
101 -pkg_setup() {
102 - enewgroup puppet
103 - enewuser puppet -1 -1 /var/lib/puppet puppet
104 -}
105 -
106 -all_ruby_prepare() {
107 - # Avoid spec that require unpackaged json-schema.
108 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
109 -
110 - # can't be run within portage.
111 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
112 -
113 - # fix systemd path
114 - epatch "${FILESDIR}/puppet-systemd.patch"
115 -
116 - if use experimental; then
117 - epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
118 - fi
119 -
120 - # fix compatibility with ruby 2.3.6/2.4.3 webrick
121 - epatch "${FILESDIR}/puppet-4-webrick-ruby.patch"
122 -
123 - # Use working version of mocha
124 - sed -i -e '1igem "mocha", "~>0.14.0"; gem "rack", "~>1.0"' spec/spec_helper.rb || die
125 -
126 - # Avoid specs that can only run in the puppet.git repository. This
127 - # should be narrowed down to the specific specs.
128 - rm spec/integration/parser/compiler_spec.rb || die
129 -
130 - # Avoid failing specs that need further investigation.
131 - sed -i -e '/should resolve external facts/,/^ end/ s:^:#:' \
132 - spec/integration/indirector/facts/facter_spec.rb || die
133 - sed -i -e "/describe 'cfacter'/,/^ end/ s:^:#:" spec/unit/defaults_spec.rb || die
134 - rm -f spec/unit/indirector/ldap_spec.rb \
135 - spec/unit/parser/functions/create_resources_spec.rb || die
136 -
137 - # Avoid specs that rely on tools from other OSs
138 - rm -f spec/unit/provider/package/{dnf,tdnf,yum}_spec.rb \
139 - spec/unit/provider/user/directoryservice_spec.rb || die
140 -
141 - # Avoid specs that depend on hiera-eyaml to avoid circular
142 - # dependencies
143 - rm -f spec/unit/functions/lookup_spec.rb || die
144 -
145 - # Avoid specs that fail due to an unpackaged file
146 - sed -i -e '/when loading pp resource types using auto loading/,/^ end/ s:^:#:' spec/unit/pops/loaders/loaders_spec.rb || die
147 -}
148 -
149 -all_ruby_compile() {
150 - if use xemacs ; then
151 - # Create a separate version for xemacs to be able to install
152 - # emacs and xemacs in parallel.
153 - mkdir ext/xemacs
154 - cp ext/emacs/* ext/xemacs/
155 - xemacs-elisp-compile ext/xemacs/puppet-mode.el
156 - fi
157 -}
158 -
159 -each_ruby_install() {
160 - each_fakegem_install
161 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
162 -}
163 -
164 -all_ruby_install() {
165 - all_fakegem_install
166 -
167 - # systemd stuffs
168 - insinto /usr/lib/systemd/system
169 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
170 -
171 - # tmpfiles stuff
172 - insinto /usr/lib/tmpfiles.d
173 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
174 -
175 - # openrc init stuff
176 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
177 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
178 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
179 -
180 - keepdir /etc/puppetlabs/puppet/ssl
181 -
182 - keepdir /var/lib/puppet/facts
183 - keepdir /var/lib/puppet/files
184 - fowners -R puppet:puppet /var/lib/puppet
185 -
186 - fperms 0750 /var/lib/puppet
187 -
188 - fperms 0750 /etc/puppetlabs
189 - fperms 0750 /etc/puppetlabs/puppet
190 - fperms 0750 /etc/puppetlabs/puppet/ssl
191 - fowners -R :puppet /etc/puppetlabs
192 - fowners -R :puppet /var/lib/puppet
193 -
194 - if use xemacs ; then
195 - xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
196 - xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
197 - fi
198 -
199 - if use ldap ; then
200 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
201 - fi
202 -
203 - # ext and examples files
204 - for f in $(find ext examples -type f) ; do
205 - docinto "$(dirname ${f})"; dodoc "${f}"
206 - done
207 -}
208 -
209 -pkg_postinst() {
210 - elog
211 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
212 - elog "cause puppet to hang while installing packages."
213 - elog
214 - elog "Portage Puppet module with Gentoo-specific resources:"
215 - elog "http://forge.puppetlabs.com/gentoo/portage"
216 - elog
217 -
218 - local v
219 - for v in ${REPLACING_VERSIONS}; do
220 - if [ "$(get_major_version $v)" = "3" ]; then
221 - elog
222 - elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
223 - elog "/etc/puppetlabs/puppet"
224 - elog "Also, puppet now uses config directories for modules and manifests."
225 - elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
226 - elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
227 - elog "for more information."
228 - elog
229 - fi
230 - done
231 -
232 - use xemacs && xemacs-elisp-site-regen
233 -}
234 -
235 -pkg_postrm() {
236 - use xemacs && xemacs-elisp-site-regen
237 -}
238
239 diff --git a/app-admin/puppet/puppet-4.10.9.ebuild b/app-admin/puppet/puppet-4.10.9.ebuild
240 deleted file mode 100644
241 index a75388c365f..00000000000
242 --- a/app-admin/puppet/puppet-4.10.9.ebuild
243 +++ /dev/null
244 @@ -1,196 +0,0 @@
245 -# Copyright 1999-2018 Gentoo Foundation
246 -# Distributed under the terms of the GNU General Public License v2
247 -
248 -EAPI="6"
249 -
250 -USE_RUBY="ruby22 ruby23 ruby24"
251 -
252 -#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
253 -
254 -RUBY_FAKEGEM_EXTRAINSTALL="locales"
255 -
256 -inherit xemacs-elisp-common eutils user ruby-fakegem versionator
257 -
258 -DESCRIPTION="A system automation and configuration management software."
259 -HOMEPAGE="http://puppetlabs.com/"
260 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
261 -
262 -LICENSE="Apache-2.0 GPL-2"
263 -SLOT="0"
264 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
265 -IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
266 -RESTRICT="test"
267 -
268 -ruby_add_rdepend "
269 - >=dev-ruby/gettext-setup-0.10:0
270 - >=dev-ruby/hiera-2.0
271 - >=dev-ruby/locale-2.1
272 - >=dev-ruby/rgen-0.6.5
273 - dev-ruby/json:=
274 - >=dev-ruby/facter-3.0.0
275 - augeas? ( dev-ruby/ruby-augeas )
276 - diff? ( dev-ruby/diff-lcs )
277 - doc? ( dev-ruby/rdoc )
278 - ldap? ( dev-ruby/ruby-ldap )
279 - shadow? ( dev-ruby/ruby-shadow )
280 - sqlite? ( dev-ruby/sqlite3 )
281 - virtual/ruby-ssl"
282 -
283 -# ruby_add_bdepend "
284 -# test? (
285 -# dev-ruby/mocha:0.14
286 -# =dev-ruby/rack-1*
287 -# dev-ruby/rspec-its
288 -# dev-ruby/rspec-collection_matchers
289 -# >=dev-ruby/vcr-2.9:2
290 -# >=dev-ruby/webmock-1.24:0
291 -# )"
292 -
293 -DEPEND+=" ${DEPEND}
294 - xemacs? ( app-editors/xemacs )"
295 -RDEPEND+=" ${RDEPEND}
296 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
297 - selinux? (
298 - sys-libs/libselinux[ruby]
299 - sec-policy/selinux-puppet
300 - )
301 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
302 - >=app-portage/eix-0.18.0"
303 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
304 -
305 -SITEFILE="50${PN}-mode-gentoo.el"
306 -
307 -pkg_setup() {
308 - enewgroup puppet
309 - enewuser puppet -1 -1 /var/lib/puppet puppet
310 -}
311 -
312 -all_ruby_prepare() {
313 - # Avoid spec that require unpackaged json-schema.
314 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
315 -
316 - # can't be run within portage.
317 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
318 -
319 - # fix systemd path
320 - epatch "${FILESDIR}/puppet-systemd.patch"
321 -
322 - if use experimental; then
323 - epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch"
324 - fi
325 -
326 - # Use working version of mocha
327 - sed -i -e '1igem "mocha", "~>0.14.0"; gem "rack", "~>1.0"' spec/spec_helper.rb || die
328 -
329 - # Avoid specs that can only run in the puppet.git repository. This
330 - # should be narrowed down to the specific specs.
331 - rm spec/integration/parser/compiler_spec.rb || die
332 -
333 - # Avoid failing specs that need further investigation.
334 - sed -i -e '/should resolve external facts/,/^ end/ s:^:#:' \
335 - spec/integration/indirector/facts/facter_spec.rb || die
336 - sed -i -e "/describe 'cfacter'/,/^ end/ s:^:#:" spec/unit/defaults_spec.rb || die
337 - rm -f spec/unit/indirector/ldap_spec.rb \
338 - spec/unit/parser/functions/create_resources_spec.rb || die
339 -
340 - # Avoid specs that rely on tools from other OSs
341 - rm -f spec/unit/provider/package/{dnf,tdnf,yum}_spec.rb \
342 - spec/unit/provider/user/directoryservice_spec.rb || die
343 -
344 - # Avoid specs that depend on hiera-eyaml to avoid circular
345 - # dependencies
346 - rm -f spec/unit/functions/lookup_spec.rb || die
347 -
348 - # Avoid specs that fail due to an unpackaged file
349 - sed -i -e '/when loading pp resource types using auto loading/,/^ end/ s:^:#:' spec/unit/pops/loaders/loaders_spec.rb || die
350 -}
351 -
352 -all_ruby_compile() {
353 - if use xemacs ; then
354 - # Create a separate version for xemacs to be able to install
355 - # emacs and xemacs in parallel.
356 - mkdir ext/xemacs
357 - cp ext/emacs/* ext/xemacs/
358 - xemacs-elisp-compile ext/xemacs/puppet-mode.el
359 - fi
360 -}
361 -
362 -each_ruby_install() {
363 - each_fakegem_install
364 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
365 -}
366 -
367 -all_ruby_install() {
368 - all_fakegem_install
369 -
370 - # systemd stuffs
371 - insinto /usr/lib/systemd/system
372 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
373 -
374 - # tmpfiles stuff
375 - insinto /usr/lib/tmpfiles.d
376 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
377 -
378 - # openrc init stuff
379 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
380 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
381 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
382 -
383 - keepdir /etc/puppetlabs/puppet/ssl
384 -
385 - keepdir /var/lib/puppet/facts
386 - keepdir /var/lib/puppet/files
387 - fowners -R puppet:puppet /var/lib/puppet
388 -
389 - fperms 0750 /var/lib/puppet
390 -
391 - fperms 0750 /etc/puppetlabs
392 - fperms 0750 /etc/puppetlabs/puppet
393 - fperms 0750 /etc/puppetlabs/puppet/ssl
394 - fowners -R :puppet /etc/puppetlabs
395 - fowners -R :puppet /var/lib/puppet
396 -
397 - if use xemacs ; then
398 - xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
399 - xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
400 - fi
401 -
402 - if use ldap ; then
403 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
404 - fi
405 -
406 - # ext and examples files
407 - for f in $(find ext examples -type f) ; do
408 - docinto "$(dirname ${f})"; dodoc "${f}"
409 - done
410 -}
411 -
412 -pkg_postinst() {
413 - elog
414 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
415 - elog "cause puppet to hang while installing packages."
416 - elog
417 - elog "Portage Puppet module with Gentoo-specific resources:"
418 - elog "http://forge.puppetlabs.com/gentoo/portage"
419 - elog
420 -
421 - local v
422 - for v in ${REPLACING_VERSIONS}; do
423 - if [ "$(get_major_version $v)" = "3" ]; then
424 - elog
425 - elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
426 - elog "/etc/puppetlabs/puppet"
427 - elog "Also, puppet now uses config directories for modules and manifests."
428 - elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
429 - elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
430 - elog "for more information."
431 - elog
432 - fi
433 - done
434 -
435 - use xemacs && xemacs-elisp-site-regen
436 -}
437 -
438 -pkg_postrm() {
439 - use xemacs && xemacs-elisp-site-regen
440 -}
441
442 diff --git a/app-admin/puppet/puppet-5.1.0-r1.ebuild b/app-admin/puppet/puppet-5.1.0-r1.ebuild
443 deleted file mode 100644
444 index 5c5bdc43ab8..00000000000
445 --- a/app-admin/puppet/puppet-5.1.0-r1.ebuild
446 +++ /dev/null
447 @@ -1,144 +0,0 @@
448 -# Copyright 1999-2017 Gentoo Foundation
449 -# Distributed under the terms of the GNU General Public License v2
450 -
451 -EAPI="6"
452 -
453 -USE_RUBY="ruby22 ruby23 ruby24"
454 -
455 -RUBY_FAKEGEM_RECIPE_TEST="rspec3"
456 -
457 -RUBY_FAKEGEM_TASK_DOC="doc:all"
458 -
459 -RUBY_FAKEGEM_EXTRAINSTALL="locales"
460 -
461 -inherit eutils user ruby-fakegem versionator
462 -
463 -DESCRIPTION="A system automation and configuration management software."
464 -HOMEPAGE="http://puppetlabs.com/"
465 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
466 -
467 -LICENSE="Apache-2.0 GPL-2"
468 -SLOT="0"
469 -KEYWORDS="~amd64 ~hppa ~ppc ~x86"
470 -IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
471 -RESTRICT="test"
472 -
473 -ruby_add_rdepend "
474 - dev-ruby/hiera
475 - dev-ruby/json:=
476 - >=dev-ruby/facter-3.0.0
477 - augeas? ( dev-ruby/ruby-augeas )
478 - diff? ( dev-ruby/diff-lcs )
479 - doc? ( dev-ruby/rdoc )
480 - ldap? ( dev-ruby/ruby-ldap )
481 - shadow? ( dev-ruby/ruby-shadow )
482 - sqlite? ( dev-ruby/sqlite3 )
483 - virtual/ruby-ssl
484 - dev-ruby/hocon"
485 -
486 -ruby_add_bdepend "
487 - doc? ( dev-ruby/yard )
488 - test? (
489 - dev-ruby/mocha
490 - dev-ruby/rack
491 - dev-ruby/rspec-its
492 - )"
493 -# this should go in the above lists, but isn't because of test deps not being keyworded
494 -# dev-ruby/rspec-collection_matchers
495 -
496 -RDEPEND+=" ${RDEPEND}
497 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
498 - selinux? (
499 - sys-libs/libselinux[ruby]
500 - sec-policy/selinux-puppet
501 - )
502 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
503 - >=app-portage/eix-0.18.0"
504 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
505 -
506 -pkg_setup() {
507 - enewgroup puppet
508 - enewuser puppet -1 -1 /var/lib/puppet puppet
509 -}
510 -
511 -all_ruby_prepare() {
512 - # Avoid spec that require unpackaged json-schema.
513 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
514 -
515 - # can't be run within portage.
516 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
517 -
518 - # fix systemd path
519 - epatch "${FILESDIR}/puppet-systemd.patch"
520 -
521 - # Avoid specs that can only run in the puppet.git repository. This
522 - # should be narrowed down to the specific specs.
523 - rm spec/integration/parser/compiler_spec.rb || die
524 -
525 - # Avoid failing spec that need further investigation.
526 - rm spec/unit/module_tool/metadata_spec.rb || die
527 -}
528 -
529 -each_ruby_install() {
530 - each_fakegem_install
531 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
532 -}
533 -
534 -all_ruby_install() {
535 - all_fakegem_install
536 -
537 - # systemd stuffs
538 - insinto /usr/lib/systemd/system
539 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
540 -
541 - # tmpfiles stuff
542 - insinto /usr/lib/tmpfiles.d
543 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
544 -
545 - # openrc init stuff
546 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
547 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
548 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
549 -
550 - keepdir /etc/puppetlabs/puppet/ssl
551 -
552 - keepdir /var/lib/puppet/facts
553 - keepdir /var/lib/puppet/files
554 - fowners -R puppet:puppet /var/lib/puppet
555 -
556 - fperms 0750 /var/lib/puppet
557 -
558 - fperms 0750 /etc/puppetlabs
559 - fperms 0750 /etc/puppetlabs/puppet
560 - fperms 0750 /etc/puppetlabs/puppet/ssl
561 - fowners -R :puppet /etc/puppetlabs
562 - fowners -R :puppet /var/lib/puppet
563 -
564 - if use ldap ; then
565 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
566 - fi
567 -
568 - # ext and examples files
569 - for f in $(find ext examples -type f) ; do
570 - docinto "$(dirname ${f})"; dodoc "${f}"
571 - done
572 -}
573 -
574 -pkg_postinst() {
575 - elog
576 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
577 - elog "cause puppet to hang while installing packages."
578 - elog
579 - elog "Portage Puppet module with Gentoo-specific resources:"
580 - elog "http://forge.puppetlabs.com/gentoo/portage"
581 - elog
582 -
583 - for v in ${REPLACING_VERSIONS}; do
584 - if [ "$(get_major_version $v)" = "4" ]; then
585 - elog
586 - elog "Please see the following url for the release notes for puppet-5"
587 - elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
588 - elog
589 - fi
590 - done
591 -}
592
593 diff --git a/app-admin/puppet/puppet-5.1.0.ebuild b/app-admin/puppet/puppet-5.1.0.ebuild
594 deleted file mode 100644
595 index 42e505f2b7e..00000000000
596 --- a/app-admin/puppet/puppet-5.1.0.ebuild
597 +++ /dev/null
598 @@ -1,144 +0,0 @@
599 -# Copyright 1999-2017 Gentoo Foundation
600 -# Distributed under the terms of the GNU General Public License v2
601 -
602 -EAPI="6"
603 -
604 -USE_RUBY="ruby21 ruby22 ruby23"
605 -# need to get deps up to date for this
606 -#USE_RUBY="ruby21 ruby22 ruby23 ruby24"
607 -
608 -RUBY_FAKEGEM_RECIPE_TEST="rspec3"
609 -
610 -RUBY_FAKEGEM_TASK_DOC="doc:all"
611 -
612 -inherit eutils user ruby-fakegem versionator
613 -
614 -DESCRIPTION="A system automation and configuration management software."
615 -HOMEPAGE="http://puppetlabs.com/"
616 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
617 -
618 -LICENSE="Apache-2.0 GPL-2"
619 -SLOT="0"
620 -KEYWORDS="~amd64 ~hppa ~ppc ~x86"
621 -IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
622 -RESTRICT="test"
623 -
624 -ruby_add_rdepend "
625 - dev-ruby/hiera
626 - dev-ruby/json:=
627 - >=dev-ruby/facter-3.0.0
628 - augeas? ( dev-ruby/ruby-augeas )
629 - diff? ( dev-ruby/diff-lcs )
630 - doc? ( dev-ruby/rdoc )
631 - ldap? ( dev-ruby/ruby-ldap )
632 - shadow? ( dev-ruby/ruby-shadow )
633 - sqlite? ( dev-ruby/sqlite3 )
634 - virtual/ruby-ssl
635 - dev-ruby/hocon"
636 -
637 -ruby_add_bdepend "
638 - doc? ( dev-ruby/yard )
639 - test? (
640 - dev-ruby/mocha
641 - dev-ruby/rack
642 - dev-ruby/rspec-its
643 - )"
644 -# this should go in the above lists, but isn't because of test deps not being keyworded
645 -# dev-ruby/rspec-collection_matchers
646 -
647 -RDEPEND+=" ${RDEPEND}
648 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
649 - selinux? (
650 - sys-libs/libselinux[ruby]
651 - sec-policy/selinux-puppet
652 - )
653 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
654 - >=app-portage/eix-0.18.0"
655 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
656 -
657 -pkg_setup() {
658 - enewgroup puppet
659 - enewuser puppet -1 -1 /var/lib/puppet puppet
660 -}
661 -
662 -all_ruby_prepare() {
663 - # Avoid spec that require unpackaged json-schema.
664 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
665 -
666 - # can't be run within portage.
667 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
668 -
669 - # fix systemd path
670 - epatch "${FILESDIR}/puppet-systemd.patch"
671 -
672 - # Avoid specs that can only run in the puppet.git repository. This
673 - # should be narrowed down to the specific specs.
674 - rm spec/integration/parser/compiler_spec.rb || die
675 -
676 - # Avoid failing spec that need further investigation.
677 - rm spec/unit/module_tool/metadata_spec.rb || die
678 -}
679 -
680 -each_ruby_install() {
681 - each_fakegem_install
682 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
683 -}
684 -
685 -all_ruby_install() {
686 - all_fakegem_install
687 -
688 - # systemd stuffs
689 - insinto /usr/lib/systemd/system
690 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
691 -
692 - # tmpfiles stuff
693 - insinto /usr/lib/tmpfiles.d
694 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
695 -
696 - # openrc init stuff
697 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
698 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
699 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
700 -
701 - keepdir /etc/puppetlabs/puppet/ssl
702 -
703 - keepdir /var/lib/puppet/facts
704 - keepdir /var/lib/puppet/files
705 - fowners -R puppet:puppet /var/lib/puppet
706 -
707 - fperms 0750 /var/lib/puppet
708 -
709 - fperms 0750 /etc/puppetlabs
710 - fperms 0750 /etc/puppetlabs/puppet
711 - fperms 0750 /etc/puppetlabs/puppet/ssl
712 - fowners -R :puppet /etc/puppetlabs
713 - fowners -R :puppet /var/lib/puppet
714 -
715 - if use ldap ; then
716 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
717 - fi
718 -
719 - # ext and examples files
720 - for f in $(find ext examples -type f) ; do
721 - docinto "$(dirname ${f})"; dodoc "${f}"
722 - done
723 -}
724 -
725 -pkg_postinst() {
726 - elog
727 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
728 - elog "cause puppet to hang while installing packages."
729 - elog
730 - elog "Portage Puppet module with Gentoo-specific resources:"
731 - elog "http://forge.puppetlabs.com/gentoo/portage"
732 - elog
733 -
734 - for v in ${REPLACING_VERSIONS}; do
735 - if [ "$(get_major_version $v)" = "4" ]; then
736 - elog
737 - elog "Please see the following url for the release notes for puppet-5"
738 - elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
739 - elog
740 - fi
741 - done
742 -}
743
744 diff --git a/app-admin/puppet/puppet-5.3.3-r1.ebuild b/app-admin/puppet/puppet-5.3.3-r1.ebuild
745 deleted file mode 100644
746 index 1f8461b191d..00000000000
747 --- a/app-admin/puppet/puppet-5.3.3-r1.ebuild
748 +++ /dev/null
749 @@ -1,147 +0,0 @@
750 -# Copyright 1999-2018 Gentoo Foundation
751 -# Distributed under the terms of the GNU General Public License v2
752 -
753 -EAPI="6"
754 -
755 -USE_RUBY="ruby22 ruby23 ruby24"
756 -
757 -RUBY_FAKEGEM_RECIPE_TEST="rspec3"
758 -
759 -RUBY_FAKEGEM_TASK_DOC="doc:all"
760 -
761 -RUBY_FAKEGEM_EXTRAINSTALL="locales"
762 -
763 -inherit eutils user ruby-fakegem versionator
764 -
765 -DESCRIPTION="A system automation and configuration management software."
766 -HOMEPAGE="http://puppetlabs.com/"
767 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
768 -
769 -LICENSE="Apache-2.0 GPL-2"
770 -SLOT="0"
771 -KEYWORDS="~amd64 ~hppa ~ppc ~x86"
772 -IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
773 -RESTRICT="test"
774 -
775 -ruby_add_rdepend "
776 - dev-ruby/hiera
777 - dev-ruby/json:=
778 - >=dev-ruby/facter-3.0.0
779 - augeas? ( dev-ruby/ruby-augeas )
780 - diff? ( dev-ruby/diff-lcs )
781 - doc? ( dev-ruby/rdoc )
782 - ldap? ( dev-ruby/ruby-ldap )
783 - shadow? ( dev-ruby/ruby-shadow )
784 - sqlite? ( dev-ruby/sqlite3 )
785 - virtual/ruby-ssl
786 - dev-ruby/hocon"
787 -
788 -ruby_add_bdepend "
789 - doc? ( dev-ruby/yard )
790 - test? (
791 - dev-ruby/mocha
792 - dev-ruby/rack
793 - dev-ruby/rspec-its
794 - )"
795 -# this should go in the above lists, but isn't because of test deps not being keyworded
796 -# dev-ruby/rspec-collection_matchers
797 -
798 -RDEPEND+=" ${RDEPEND}
799 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
800 - selinux? (
801 - sys-libs/libselinux[ruby]
802 - sec-policy/selinux-puppet
803 - )
804 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
805 - >=app-portage/eix-0.18.0"
806 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
807 -
808 -pkg_setup() {
809 - enewgroup puppet
810 - enewuser puppet -1 -1 /var/lib/puppet puppet
811 -}
812 -
813 -all_ruby_prepare() {
814 - # Avoid spec that require unpackaged json-schema.
815 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
816 -
817 - # can't be run within portage.
818 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
819 -
820 - # fix systemd path
821 - epatch "${FILESDIR}/puppet-systemd.patch"
822 -
823 - # backport upstream fix for ruby 2.3.6 compatibility
824 - epatch "${FILESDIR}/puppet-4-webrick-ruby.patch"
825 -
826 - # Avoid specs that can only run in the puppet.git repository. This
827 - # should be narrowed down to the specific specs.
828 - rm spec/integration/parser/compiler_spec.rb || die
829 -
830 - # Avoid failing spec that need further investigation.
831 - rm spec/unit/module_tool/metadata_spec.rb || die
832 -}
833 -
834 -each_ruby_install() {
835 - each_fakegem_install
836 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
837 -}
838 -
839 -all_ruby_install() {
840 - all_fakegem_install
841 -
842 - # systemd stuffs
843 - insinto /usr/lib/systemd/system
844 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
845 -
846 - # tmpfiles stuff
847 - insinto /usr/lib/tmpfiles.d
848 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
849 -
850 - # openrc init stuff
851 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
852 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
853 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
854 -
855 - keepdir /etc/puppetlabs/puppet/ssl
856 -
857 - keepdir /var/lib/puppet/facts
858 - keepdir /var/lib/puppet/files
859 - fowners -R puppet:puppet /var/lib/puppet
860 -
861 - fperms 0750 /var/lib/puppet
862 -
863 - fperms 0750 /etc/puppetlabs
864 - fperms 0750 /etc/puppetlabs/puppet
865 - fperms 0750 /etc/puppetlabs/puppet/ssl
866 - fowners -R :puppet /etc/puppetlabs
867 - fowners -R :puppet /var/lib/puppet
868 -
869 - if use ldap ; then
870 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
871 - fi
872 -
873 - # ext and examples files
874 - for f in $(find ext examples -type f) ; do
875 - docinto "$(dirname ${f})"; dodoc "${f}"
876 - done
877 -}
878 -
879 -pkg_postinst() {
880 - elog
881 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
882 - elog "cause puppet to hang while installing packages."
883 - elog
884 - elog "Portage Puppet module with Gentoo-specific resources:"
885 - elog "http://forge.puppetlabs.com/gentoo/portage"
886 - elog
887 -
888 - for v in ${REPLACING_VERSIONS}; do
889 - if [ "$(get_major_version $v)" = "4" ]; then
890 - elog
891 - elog "Please see the following url for the release notes for puppet-5"
892 - elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
893 - elog
894 - fi
895 - done
896 -}
897
898 diff --git a/app-admin/puppet/puppet-5.3.3.ebuild b/app-admin/puppet/puppet-5.3.3.ebuild
899 deleted file mode 100644
900 index 5c5bdc43ab8..00000000000
901 --- a/app-admin/puppet/puppet-5.3.3.ebuild
902 +++ /dev/null
903 @@ -1,144 +0,0 @@
904 -# Copyright 1999-2017 Gentoo Foundation
905 -# Distributed under the terms of the GNU General Public License v2
906 -
907 -EAPI="6"
908 -
909 -USE_RUBY="ruby22 ruby23 ruby24"
910 -
911 -RUBY_FAKEGEM_RECIPE_TEST="rspec3"
912 -
913 -RUBY_FAKEGEM_TASK_DOC="doc:all"
914 -
915 -RUBY_FAKEGEM_EXTRAINSTALL="locales"
916 -
917 -inherit eutils user ruby-fakegem versionator
918 -
919 -DESCRIPTION="A system automation and configuration management software."
920 -HOMEPAGE="http://puppetlabs.com/"
921 -SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
922 -
923 -LICENSE="Apache-2.0 GPL-2"
924 -SLOT="0"
925 -KEYWORDS="~amd64 ~hppa ~ppc ~x86"
926 -IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
927 -RESTRICT="test"
928 -
929 -ruby_add_rdepend "
930 - dev-ruby/hiera
931 - dev-ruby/json:=
932 - >=dev-ruby/facter-3.0.0
933 - augeas? ( dev-ruby/ruby-augeas )
934 - diff? ( dev-ruby/diff-lcs )
935 - doc? ( dev-ruby/rdoc )
936 - ldap? ( dev-ruby/ruby-ldap )
937 - shadow? ( dev-ruby/ruby-shadow )
938 - sqlite? ( dev-ruby/sqlite3 )
939 - virtual/ruby-ssl
940 - dev-ruby/hocon"
941 -
942 -ruby_add_bdepend "
943 - doc? ( dev-ruby/yard )
944 - test? (
945 - dev-ruby/mocha
946 - dev-ruby/rack
947 - dev-ruby/rspec-its
948 - )"
949 -# this should go in the above lists, but isn't because of test deps not being keyworded
950 -# dev-ruby/rspec-collection_matchers
951 -
952 -RDEPEND+=" ${RDEPEND}
953 - rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
954 - selinux? (
955 - sys-libs/libselinux[ruby]
956 - sec-policy/selinux-puppet
957 - )
958 - vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
959 - >=app-portage/eix-0.18.0"
960 -PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
961 -
962 -pkg_setup() {
963 - enewgroup puppet
964 - enewuser puppet -1 -1 /var/lib/puppet puppet
965 -}
966 -
967 -all_ruby_prepare() {
968 - # Avoid spec that require unpackaged json-schema.
969 - rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
970 -
971 - # can't be run within portage.
972 - epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
973 -
974 - # fix systemd path
975 - epatch "${FILESDIR}/puppet-systemd.patch"
976 -
977 - # Avoid specs that can only run in the puppet.git repository. This
978 - # should be narrowed down to the specific specs.
979 - rm spec/integration/parser/compiler_spec.rb || die
980 -
981 - # Avoid failing spec that need further investigation.
982 - rm spec/unit/module_tool/metadata_spec.rb || die
983 -}
984 -
985 -each_ruby_install() {
986 - each_fakegem_install
987 -# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
988 -}
989 -
990 -all_ruby_install() {
991 - all_fakegem_install
992 -
993 - # systemd stuffs
994 - insinto /usr/lib/systemd/system
995 - doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
996 -
997 - # tmpfiles stuff
998 - insinto /usr/lib/tmpfiles.d
999 - newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
1000 -
1001 - # openrc init stuff
1002 - newinitd "${FILESDIR}"/puppet.init-4.x puppet
1003 - newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
1004 - newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
1005 -
1006 - keepdir /etc/puppetlabs/puppet/ssl
1007 -
1008 - keepdir /var/lib/puppet/facts
1009 - keepdir /var/lib/puppet/files
1010 - fowners -R puppet:puppet /var/lib/puppet
1011 -
1012 - fperms 0750 /var/lib/puppet
1013 -
1014 - fperms 0750 /etc/puppetlabs
1015 - fperms 0750 /etc/puppetlabs/puppet
1016 - fperms 0750 /etc/puppetlabs/puppet/ssl
1017 - fowners -R :puppet /etc/puppetlabs
1018 - fowners -R :puppet /var/lib/puppet
1019 -
1020 - if use ldap ; then
1021 - insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
1022 - fi
1023 -
1024 - # ext and examples files
1025 - for f in $(find ext examples -type f) ; do
1026 - docinto "$(dirname ${f})"; dodoc "${f}"
1027 - done
1028 -}
1029 -
1030 -pkg_postinst() {
1031 - elog
1032 - elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
1033 - elog "cause puppet to hang while installing packages."
1034 - elog
1035 - elog "Portage Puppet module with Gentoo-specific resources:"
1036 - elog "http://forge.puppetlabs.com/gentoo/portage"
1037 - elog
1038 -
1039 - for v in ${REPLACING_VERSIONS}; do
1040 - if [ "$(get_major_version $v)" = "4" ]; then
1041 - elog
1042 - elog "Please see the following url for the release notes for puppet-5"
1043 - elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
1044 - elog
1045 - fi
1046 - done
1047 -}