Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet/
Date: Thu, 21 Feb 2019 21:50:51
Message-Id: 1550785830.d8ca8b0dd1403b97105783d08614b5fef9a13047.prometheanfire@gentoo
1 commit: d8ca8b0dd1403b97105783d08614b5fef9a13047
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 21 21:42:15 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 21 21:50:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ca8b0d
7
8 app-admin/puppet: 6.3.0 bump
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 app-admin/puppet/Manifest | 1 +
14 app-admin/puppet/puppet-6.3.0.ebuild | 138 +++++++++++++++++++++++++++++++++++
15 2 files changed, 139 insertions(+)
16
17 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
18 index 47a97a0e34c..750843d1b50 100644
19 --- a/app-admin/puppet/Manifest
20 +++ b/app-admin/puppet/Manifest
21 @@ -3,3 +3,4 @@ DIST puppet-5.5.10.tar.gz 3064457 BLAKE2B 04cac9cebc03343b8c6fcf762f681f63bce4eb
22 DIST puppet-6.0.5.tar.gz 2811469 BLAKE2B de25af69b387a02b68fbb31ae13a9fa4aea8f25dcef32bead662e708060909b2f10813c1e889372a9167cb7a10b084679c20b5fa8312d2e06e2b53ebd573082a SHA512 0b34a27a0c21d24cf22e442b495dcfc49ac8b78e40f83eb9eb7f8b82b29350be436a63c6c9c9e969fc3d16096ccb927ca3c4d11e64e51d1e50150001d015bdbc
23 DIST puppet-6.1.0.tar.gz 2818606 BLAKE2B 4fb6b26e5c3711262ff2210c9a4e9a9df0f47f4a989526a79cc36f56fa939fd4e54e41f3afef818aacd4630daf559f1ded7e2f6e3cc258a005a848b4d49b64ae SHA512 b82d5f5b045e23543a26949d9faa7ced78f1413e7699d124dd43a56b8558232d6f151a9fdbe52e1959900eb8fff7d7e873fa7ce986206419a27a7627a56f91f6
24 DIST puppet-6.2.0.tar.gz 2821615 BLAKE2B 88b8ec856cfc6dacba5dfe44da7abce56a351f514057d3c916ecb5f4188703713cf7981984c2a59cb8073da93eab91a815dc2f52ee4f621c9a412897e9387d5e SHA512 91540169d3c9c1715e78b416961f4f3957a01b0908c3b675fa75226361fb8161730ca47ed98a2e958d8841fd50086c75489c5ee53b41f933392f399d502bad9b
25 +DIST puppet-6.3.0.tar.gz 2831909 BLAKE2B ccf6353c0fc1fcdd4ac06e79bd8d91980162b8f1b2012fc2bfc1cdea3d2d6b22bf55216cea9b94a4024273ca9f76eedcc92a861de9db348408a361596033b51c SHA512 1d30706049fe378facddb923a9ecb521d37faa84740251602ac340ea1299c247252fbdaca17f1ea450ff716ab26ac4e9524f1137080318e6d9237a9e2699f6b8
26
27 diff --git a/app-admin/puppet/puppet-6.3.0.ebuild b/app-admin/puppet/puppet-6.3.0.ebuild
28 new file mode 100644
29 index 00000000000..1d12aee25d2
30 --- /dev/null
31 +++ b/app-admin/puppet/puppet-6.3.0.ebuild
32 @@ -0,0 +1,138 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +
38 +USE_RUBY="ruby23 ruby24 ruby25"
39 +
40 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
41 +
42 +RUBY_FAKEGEM_TASK_DOC="doc:all"
43 +
44 +RUBY_FAKEGEM_EXTRAINSTALL="locales"
45 +
46 +inherit eutils user ruby-fakegem eapi7-ver
47 +
48 +DESCRIPTION="A system automation and configuration management software."
49 +HOMEPAGE="http://puppetlabs.com/"
50 +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
51 +
52 +LICENSE="Apache-2.0 GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
55 +IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
56 +RESTRICT="test"
57 +
58 +ruby_add_rdepend "
59 + dev-ruby/hiera
60 + dev-ruby/json:=
61 + dev-ruby/semantic_puppet
62 + >=dev-ruby/facter-3.0.0
63 + augeas? ( dev-ruby/ruby-augeas )
64 + diff? ( dev-ruby/diff-lcs )
65 + doc? ( dev-ruby/rdoc )
66 + ldap? ( dev-ruby/ruby-ldap )
67 + shadow? ( dev-ruby/ruby-shadow )
68 + sqlite? ( dev-ruby/sqlite3 )
69 + virtual/ruby-ssl
70 + dev-ruby/hocon"
71 +
72 +ruby_add_bdepend "
73 + doc? ( dev-ruby/yard )
74 + test? (
75 + dev-ruby/mocha
76 + dev-ruby/rack
77 + dev-ruby/rspec-its
78 + )"
79 +# this should go in the above lists, but isn't because of test deps not being keyworded
80 +# dev-ruby/rspec-collection_matchers
81 +
82 +RDEPEND+=" ${RDEPEND}
83 + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
84 + selinux? (
85 + sys-libs/libselinux[ruby]
86 + sec-policy/selinux-puppet
87 + )
88 + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
89 + >=app-portage/eix-0.18.0"
90 +PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
91 +
92 +pkg_setup() {
93 + enewgroup puppet
94 + enewuser puppet -1 -1 /var/lib/puppet puppet
95 +}
96 +
97 +all_ruby_prepare() {
98 + # Avoid spec that require unpackaged json-schema.
99 + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
100 +
101 + # can't be run within portage.
102 + epatch "${FILESDIR}/puppet-fix-tests-6.0.0.patch"
103 +
104 + # fix systemd path
105 + epatch "${FILESDIR}/puppet-systemd.patch"
106 +
107 + # Avoid specs that can only run in the puppet.git repository. This
108 + # should be narrowed down to the specific specs.
109 + rm spec/integration/parser/compiler_spec.rb || die
110 +
111 + # Avoid failing spec that need further investigation.
112 + rm spec/unit/module_tool/metadata_spec.rb || die
113 +}
114 +
115 +each_ruby_install() {
116 + each_fakegem_install
117 +# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
118 +}
119 +
120 +all_ruby_install() {
121 + all_fakegem_install
122 +
123 + # systemd stuffs
124 + insinto /usr/lib/systemd/system
125 + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
126 +
127 + # tmpfiles stuff
128 + insinto /usr/lib/tmpfiles.d
129 + newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
130 +
131 + # openrc init stuff
132 + newinitd "${FILESDIR}"/puppet.init-4.x puppet
133 +
134 + keepdir /etc/puppetlabs/puppet/ssl
135 +
136 + keepdir /var/lib/puppet/facts
137 + keepdir /var/lib/puppet/files
138 + fowners -R puppet:puppet /var/lib/puppet
139 +
140 + fperms 0750 /var/lib/puppet
141 +
142 + fperms 0750 /etc/puppetlabs
143 + fperms 0750 /etc/puppetlabs/puppet
144 + fperms 0750 /etc/puppetlabs/puppet/ssl
145 + fowners -R :puppet /etc/puppetlabs
146 + fowners -R :puppet /var/lib/puppet
147 +
148 + if use ldap ; then
149 + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
150 + fi
151 +
152 + # ext and examples files
153 + for f in $(find ext examples -type f) ; do
154 + docinto "$(dirname ${f})"; dodoc "${f}"
155 + done
156 +}
157 +
158 +pkg_postinst() {
159 + elog
160 + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
161 + elog "cause puppet to hang while installing packages."
162 + elog
163 + elog "Portage Puppet module with Gentoo-specific resources:"
164 + elog "http://forge.puppetlabs.com/gentoo/portage"
165 + elog
166 + elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
167 + elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
168 + elog "not already done so."
169 + elog
170 +}