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