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: Sat, 04 Jun 2022 18:32:06
Message-Id: 1654367419.ac8e37e952ac5c98324d33b331553644cbfbbb85.prometheanfire@gentoo
1 commit: ac8e37e952ac5c98324d33b331553644cbfbbb85
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 4 18:30:19 2022 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 18:30:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8e37e9
7
8 app-admin/puppet: 7.17.0 bump
9
10 Package-Manager: Portage-3.0.30, 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.17.0.ebuild | 127 ++++++++++++++++++++++++++++++++++
15 2 files changed, 128 insertions(+)
16
17 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
18 index a87a6733c648..36c3ba9122c2 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.15.0.tar.gz 2817137 BLAKE2B ce76ad71251a9202d31e858706eb994c6210cbe97f31e56d95b8c36d541d0ce8d1e65ab33d399e7dca1c5ea8e7f4dfccb3a2a4d36baaed6ca31516b7e449bf2a SHA512 0d68bda85a5f61fdb74c3e70304d414afef238dff4f7a4cd60c17f5cc26fcb18ba7f81065d6295adde33bc181031b458d259daa84a41156c9589f5c0e3cb8951
24 DIST puppet-7.16.0.tar.gz 2817116 BLAKE2B d367005ea69ceb0f89f4294e74639ad61305f23929e5edf0385eb2cce5da76fa157c5bc7408599dcca4d9adba39c3b29250e78d8f584873f72bb34452a90a74d SHA512 b1f3c6072821225c9068089f44ad9ab955534f2d91bf88b44f762e0588442b9d6191eb89909dc05b7efc3a82302d2d3dc5a5a040fbc84f81645817d695b4db72
25 +DIST puppet-7.17.0.tar.gz 2812615 BLAKE2B 80b5115b8825a87427a688ca7a9337334180fcb7722d437f44009b5cf74ede16dac52f1648a2e7595558abb5fa92322095e71dcf0d7d8d06a2275e13caf79163 SHA512 f691b6d3e931c5cc879c8e5129af2a935bedc891964ba5cbb873d6d69e0ec61bd82ca7d413a94389cda13cb6c8c536aae6f11dade4c6e2597abc7756a74f4df0
26
27 diff --git a/app-admin/puppet/puppet-7.17.0.ebuild b/app-admin/puppet/puppet-7.17.0.ebuild
28 new file mode 100644
29 index 000000000000..98baf706218d
30 --- /dev/null
31 +++ b/app-admin/puppet/puppet-7.17.0.ebuild
32 @@ -0,0 +1,127 @@
33 +# Copyright 1999-2022 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 ~arm64 ~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 + # ext and examples files
139 + for f in $(find ext examples -type f) ; do
140 + docinto "$(dirname ${f})"
141 + dodoc "${f}"
142 + done
143 +}
144 +
145 +pkg_postinst() {
146 + tmpfiles_process puppet.conf
147 +
148 + elog
149 + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
150 + elog "cause puppet to hang while installing packages."
151 + elog
152 + elog "Portage Puppet module with Gentoo-specific resources:"
153 + elog "http://forge.puppetlabs.com/gentoo/portage"
154 + elog
155 + elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
156 + elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
157 + elog "not already done so."
158 + elog
159 +}