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