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: Tue, 27 Apr 2021 18:13:02
Message-Id: 1619547168.921c24eb6056f1d09fa28f936354126de0f14451.prometheanfire@gentoo
1 commit: 921c24eb6056f1d09fa28f936354126de0f14451
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 27 18:06:30 2021 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 27 18:12:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=921c24eb
7
8 app-admin/puppet: 7.6.1 bump
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 app-admin/puppet/Manifest | 1 +
14 app-admin/puppet/puppet-7.6.1.ebuild | 132 +++++++++++++++++++++++++++++++++++
15 2 files changed, 133 insertions(+)
16
17 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
18 index 2ecd3996e56..e0e356db3ba 100644
19 --- a/app-admin/puppet/Manifest
20 +++ b/app-admin/puppet/Manifest
21 @@ -3,3 +3,4 @@ DIST puppet-5.5.22.tar.gz 2998132 BLAKE2B 8662c89190d0904fe44ffeca1cf9a9ddca40d5
22 DIST puppet-6.19.1.tar.gz 2917976 BLAKE2B 06019b465699494c3c5045d8d3f617046583f8bb5ebff4e72991bcf5f1ca76b4e00f56af79bbcd7ab849439fc5e627840ef08b92f586441c0cb0bb3d51805f7f SHA512 4e8a3c8d46b6aa67c31da4b510dfc32a187937af213efb9f2f0b6625b29995cdfa8cbca384ad857c19e47ae4878127564756a809c2afdff4883038249395ff01
23 DIST puppet-7.4.0.tar.gz 2857763 BLAKE2B 980180d10c3329f8c94f02c6a8b403d88a3836fcc5567fd00eb4e2b4ae63d7a03709f3f14a337cdface62be04f9bb9082436f69b95f8d37996a9a933801a163a SHA512 ffb4ffb5121fcbd4b61ab1ad51fce96c1f2415b85ec785c858721a7f5604a6a8de4d595b6806657b9b1757e70763b2c495ca4d8ee694d668532cd15dd38a9c7f
24 DIST puppet-7.5.0.tar.gz 2859905 BLAKE2B 59c6b8fee0ce13b1aeb7a59eab21e84835682e606598dac79a838d514352988d260f610aef0f0b00547a141c503f8779668006d109c3ad86133f413b57309adc SHA512 7b3ac681a91160055e4b26c904153b0800f55222201a83e8e5f20d74a7ef153e6b029ab59b237726f20576379ea7d81e64e24126e72e8f709bbc6473c3c0793b
25 +DIST puppet-7.6.1.tar.gz 2861371 BLAKE2B acc117a03906d710329dcd4bc3881bc9792640b4685ffb771e67e819cf21705b1635178ec527b6548245b8312c3625622827fa744227d79a81af9bae194938a9 SHA512 f7b7265f5ffca4e342e0f687cf4fbf7704c6518025d178925ae04b8902a2df2ceaa76179ecd5a1c1eb3456e29c049f701e8b45c8da7dc3b0a8948ef85ee3268a
26
27 diff --git a/app-admin/puppet/puppet-7.6.1.ebuild b/app-admin/puppet/puppet-7.6.1.ebuild
28 new file mode 100644
29 index 00000000000..d241ec554c3
30 --- /dev/null
31 +++ b/app-admin/puppet/puppet-7.6.1.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="6"
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 epatch ruby-fakegem
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 + epatch "${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 + insinto /usr/lib/systemd/system
117 + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
118 +
119 + # tmpfiles stuff
120 + insinto /usr/lib/tmpfiles.d
121 + newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
122 +
123 + # openrc init stuff
124 + newinitd "${FILESDIR}"/puppet.init-4.x puppet
125 +
126 + keepdir /etc/puppetlabs/puppet/ssl
127 +
128 + keepdir /var/lib/puppet/facts
129 + keepdir /var/lib/puppet/files
130 + fowners -R puppet:puppet /var/lib/puppet
131 +
132 + fperms 0750 /var/lib/puppet
133 +
134 + fperms 0750 /etc/puppetlabs
135 + fperms 0750 /etc/puppetlabs/puppet
136 + fperms 0750 /etc/puppetlabs/puppet/ssl
137 + fowners -R :puppet /etc/puppetlabs
138 + fowners -R :puppet /var/lib/puppet
139 +
140 + if use ldap ; then
141 + insinto /etc/openldap/schema
142 + doins ext/ldap/puppet.schema
143 + fi
144 +
145 + # ext and examples files
146 + for f in $(find ext examples -type f) ; do
147 + docinto "$(dirname ${f})"
148 + dodoc "${f}"
149 + done
150 +}
151 +
152 +pkg_postinst() {
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 +}