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: Wed, 11 Mar 2020 05:03:14
Message-Id: 1583902977.3b1f7ce65ef2091f96e913c2271f0f98873e7a78.prometheanfire@gentoo
1 commit: 3b1f7ce65ef2091f96e913c2271f0f98873e7a78
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 11 04:57:38 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 11 05:02:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b1f7ce6
7
8 app-admin/puppet: 6.14.0 bump
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 app-admin/puppet/Manifest | 1 +
14 app-admin/puppet/puppet-6.14.0.ebuild | 136 ++++++++++++++++++++++++++++++++++
15 2 files changed, 137 insertions(+)
16
17 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
18 index 327449701fe..f4906e50dba 100644
19 --- a/app-admin/puppet/Manifest
20 +++ b/app-admin/puppet/Manifest
21 @@ -1,3 +1,4 @@
22 DIST puppet-5.5.17.tar.gz 3090402 BLAKE2B 7722ec4196ee766c29eddd7dc73539a4a5a0e4cc781a84af25210488328b5ae01178ca64e8eef14152cbeca06dc8fe145b5e39ce6a120d7689fc32cbbbe16f9f SHA512 95c6cd836a9f732ccfe2d8b83096e79c32428c43390c0826663f896ca1388e1fe3b55d93a5a7548831e95de85247db717866c36786d591e207341c734d70168b
23 DIST puppet-5.5.18.tar.gz 2984835 BLAKE2B d5a1d023d3d26e04ccc81efa772131c06fc7ace8ec59c7efa97bddb775bb492d3256290824a87d54df5c28862cbba98c58cf41bb4a0c27a4128701652c06eee0 SHA512 86f210ee783ca36340b22463cd4ac237d8dc1c6a35526530af0696bb3f0373b0b22f690d3e3f8e31655ea182a33eb60b66b5826bd6c4d1b0059a8e46152416e6
24 DIST puppet-6.13.0.tar.gz 2837171 BLAKE2B dc64b23fa2d5fcb978cfb03bf67f89ff0ae084883320f267bbb7fd613fd8948193658d717ecbf30f73e313c4530f872617a186675547509db9492589e4f226d6 SHA512 fb7abc9cf79a3de1daf597c0c1768ab4abcc11a236beb8294c5fc69d07ae23149216f7c8d33599365d3c10485f3fb3f8f5fe492e0e7312d19ffdaa0bc8b87d0c
25 +DIST puppet-6.14.0.tar.gz 2842351 BLAKE2B db9a467d8e0f4f25d45c2f735ee9d11ac6ed4e47c16b95ded3ff9f1c5055ea866735bcda27c19c2988035d9592035e433ef0d79a19781c99f4e97388edf46b93 SHA512 066ad8de6393cb58b1f92fae450dc72dabcbe912cdbb3417848a66955fe17696a68abf67d86b107a2b1c54e7037d38da7264a9234a8833b56065c8e407ff57a4
26
27 diff --git a/app-admin/puppet/puppet-6.14.0.ebuild b/app-admin/puppet/puppet-6.14.0.ebuild
28 new file mode 100644
29 index 00000000000..e60e40c04d6
30 --- /dev/null
31 +++ b/app-admin/puppet/puppet-6.14.0.ebuild
32 @@ -0,0 +1,136 @@
33 +# Copyright 1999-2020 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 ruby-fakegem eapi7-ver
47 +
48 +DESCRIPTION="A system automation and configuration management software."
49 +HOMEPAGE="https://puppet.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 + dev-ruby/concurrent-ruby
64 + augeas? ( dev-ruby/ruby-augeas )
65 + diff? ( dev-ruby/diff-lcs )
66 + doc? ( dev-ruby/rdoc )
67 + ldap? ( dev-ruby/ruby-ldap )
68 + shadow? ( dev-ruby/ruby-shadow )
69 + sqlite? ( dev-ruby/sqlite3 )
70 + virtual/ruby-ssl
71 + dev-ruby/hocon"
72 +
73 +ruby_add_bdepend "
74 + doc? ( dev-ruby/yard )
75 + test? (
76 + dev-ruby/mocha
77 + dev-ruby/rack
78 + dev-ruby/rspec-its
79 + )"
80 +# this should go in the above lists, but isn't because of test deps not being keyworded
81 +# dev-ruby/rspec-collection_matchers
82 +
83 +RDEPEND+=" ${RDEPEND}
84 + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
85 + selinux? (
86 + sys-libs/libselinux[ruby]
87 + sec-policy/selinux-puppet
88 + )
89 + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
90 + >=app-portage/eix-0.18.0
91 + acct-user/puppet
92 + acct-group/puppet"
93 +PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
94 +
95 +all_ruby_prepare() {
96 + # Avoid spec that require unpackaged json-schema.
97 + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
98 +
99 + # can't be run within portage.
100 + epatch "${FILESDIR}/puppet-fix-tests-6.10.1.patch"
101 +
102 + # fix systemd path
103 + epatch "${FILESDIR}/puppet-systemd.patch"
104 +
105 + # Avoid specs that can only run in the puppet.git repository. This
106 + # should be narrowed down to the specific specs.
107 + rm spec/integration/parser/compiler_spec.rb || die
108 +
109 + # Avoid failing spec that need further investigation.
110 + rm spec/unit/module_tool/metadata_spec.rb || die
111 +}
112 +
113 +each_ruby_install() {
114 + each_fakegem_install
115 +# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
116 +}
117 +
118 +all_ruby_install() {
119 + all_fakegem_install
120 +
121 + # systemd stuffs
122 + insinto /usr/lib/systemd/system
123 + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
124 +
125 + # tmpfiles stuff
126 + insinto /usr/lib/tmpfiles.d
127 + newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
128 +
129 + # openrc init stuff
130 + newinitd "${FILESDIR}"/puppet.init-4.x puppet
131 +
132 + keepdir /etc/puppetlabs/puppet/ssl
133 +
134 + keepdir /var/lib/puppet/facts
135 + keepdir /var/lib/puppet/files
136 + fowners -R puppet:puppet /var/lib/puppet
137 +
138 + fperms 0750 /var/lib/puppet
139 +
140 + fperms 0750 /etc/puppetlabs
141 + fperms 0750 /etc/puppetlabs/puppet
142 + fperms 0750 /etc/puppetlabs/puppet/ssl
143 + fowners -R :puppet /etc/puppetlabs
144 + fowners -R :puppet /var/lib/puppet
145 +
146 + if use ldap ; then
147 + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
148 + fi
149 +
150 + # ext and examples files
151 + for f in $(find ext examples -type f) ; do
152 + docinto "$(dirname ${f})"; dodoc "${f}"
153 + done
154 +}
155 +
156 +pkg_postinst() {
157 + elog
158 + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
159 + elog "cause puppet to hang while installing packages."
160 + elog
161 + elog "Portage Puppet module with Gentoo-specific resources:"
162 + elog "http://forge.puppetlabs.com/gentoo/portage"
163 + elog
164 + elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
165 + elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
166 + elog "not already done so."
167 + elog
168 +}