1 |
commit: 52042b64b642cb02a42516758265e9101254f5a5 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 29 03:02:09 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 29 03:02:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52042b64 |
7 |
|
8 |
app-admin/puppet: 5.0.0 initial add |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
app-admin/puppet/Manifest | 1 + |
13 |
app-admin/puppet/puppet-5.0.0.ebuild | 184 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 185 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
17 |
index 92661991a7b..214ae54654f 100644 |
18 |
--- a/app-admin/puppet/Manifest |
19 |
+++ b/app-admin/puppet/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST puppet-3.8.7.tar.gz 2650247 SHA256 50460a3dd8d25118e25eb01178d09743dabc01cd |
21 |
DIST puppet-4.10.1.tar.gz 2954351 SHA256 271738d2b5aaec8faafd543076ac0d9012fcd6051bccd2f70a66cd479362c605 SHA512 d232f062b93485f7eea8abb9c5420462e313e6050e7335159f051f7c7af86338c006ae4edc09e0e1370784ee7b076911ca563a4cfc6a1f2afc7179bed08d2032 WHIRLPOOL 1a5b8c3fc87fdb4e23196cc13ad46c963cdb6314cfc0e4d3a6d44adad4545289cf41886c6150ee14fcd0d30d9b29f32987c6e31a7c39077a2c53aac7147c69dd |
22 |
DIST puppet-4.8.1.tar.gz 2873371 SHA256 8b3ee6b60639e2a2839ad7403fab8f8ecc390a93e6e47b03f1b053aa262bcf17 SHA512 9ecde04c68874652b501e779764bb3227d226564e80f06c2c15bd982620529ec55f8e11911bcf68db994ee98287746761752538aa5aeee474ddf37f21976e2d1 WHIRLPOOL d3a4b0b4b15dceb75cb3f161b73843af53f5d21121ba1fb06fdae422ec458f62f5fa47d0f5c7bfb96e3e9b04eb62c4c1e1a97f7131101e4f6f4ff952127c0685 |
23 |
DIST puppet-4.9.1.tar.gz 2912770 SHA256 db02cffb8339b349bd1ab2b15899511d3f5d449f0f591038256f0fb862f4c7db SHA512 db2bd324e4f58c583debe417ca233c613c296aa8824520c5373c8da45056ae9d09e54ceecba5c6b7d0250ea7228d6e1b83e5b690b1203de43dca8942c8f24ce2 WHIRLPOOL fd5554d5de319f8534fbada7ae6f4100d6de5a98f6646985e21c250a52a3d415ac31fc46c15c987bd7bcbc688bc8bb4d7dc9d37ebd93ecd183b3bd01d3426687 |
24 |
+DIST puppet-5.0.0.tar.gz 2706319 SHA256 09ae5b56ff799ccfd78e3a1999aa27d6f2bf69a7a5ed19bd758cf88c17a004ab SHA512 4423001340623d00a72de16e7b585ce3874019b020b91abd4edb9b9a524bd0d709107bee4dfcdf20b2eaf99e67b3401e2883ea297659ad1debfea8fb33a665bd WHIRLPOOL 66bbb279fb9d646ada78ce28af3d2377abf63ce059b9e61ee15fc0b3b48796ea0f708f5f2c380e5dd986d4469f6a8b73606c61dfc3280aca5913d9c7fffa4f2f |
25 |
|
26 |
diff --git a/app-admin/puppet/puppet-5.0.0.ebuild b/app-admin/puppet/puppet-5.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f7ab070e41e |
29 |
--- /dev/null |
30 |
+++ b/app-admin/puppet/puppet-5.0.0.ebuild |
31 |
@@ -0,0 +1,184 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="5" |
36 |
+ |
37 |
+USE_RUBY="ruby21 ruby22 ruby23" |
38 |
+# need to get deps up to date for this |
39 |
+#USE_RUBY="ruby21 ruby22 ruby23 ruby24" |
40 |
+ |
41 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
42 |
+ |
43 |
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator |
44 |
+ |
45 |
+DESCRIPTION="A system automation and configuration management software." |
46 |
+HOMEPAGE="http://puppetlabs.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 ~hppa ~ppc ~x86" |
52 |
+IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs" |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+ruby_add_rdepend " |
56 |
+ dev-ruby/hiera |
57 |
+ >=dev-ruby/rgen-0.6.5 |
58 |
+ dev-ruby/json:= |
59 |
+ >=dev-ruby/facter-3.0.0 |
60 |
+ augeas? ( dev-ruby/ruby-augeas ) |
61 |
+ diff? ( dev-ruby/diff-lcs ) |
62 |
+ doc? ( dev-ruby/rdoc ) |
63 |
+ ldap? ( dev-ruby/ruby-ldap ) |
64 |
+ shadow? ( dev-ruby/ruby-shadow ) |
65 |
+ sqlite? ( dev-ruby/sqlite3 ) |
66 |
+ virtual/ruby-ssl |
67 |
+ dev-ruby/hocon" |
68 |
+ |
69 |
+ruby_add_bdepend " |
70 |
+ test? ( |
71 |
+ dev-ruby/mocha |
72 |
+ dev-ruby/rack |
73 |
+ dev-ruby/rspec-its |
74 |
+ )" |
75 |
+# this should go in the above lists, but isn't because of test deps not being keyworded |
76 |
+# dev-ruby/rspec-collection_matchers |
77 |
+ |
78 |
+DEPEND+=" ${DEPEND} |
79 |
+ emacs? ( virtual/emacs ) |
80 |
+ xemacs? ( app-editors/xemacs )" |
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 |
+ |
90 |
+SITEFILE="50${PN}-mode-gentoo.el" |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ enewgroup puppet |
94 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
95 |
+} |
96 |
+ |
97 |
+all_ruby_prepare() { |
98 |
+ # Avoid spec that require unpackaged json-schema. |
99 |
+ rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
100 |
+ |
101 |
+ # can't be run within portage. |
102 |
+ epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch" |
103 |
+ |
104 |
+ # fix systemd path |
105 |
+ epatch "${FILESDIR}/puppet-systemd.patch" |
106 |
+ |
107 |
+ if use experimental; then |
108 |
+ epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch" |
109 |
+ fi |
110 |
+ |
111 |
+ # Avoid specs that can only run in the puppet.git repository. This |
112 |
+ # should be narrowed down to the specific specs. |
113 |
+ rm spec/integration/parser/compiler_spec.rb || die |
114 |
+ |
115 |
+ # Avoid failing spec that need further investigation. |
116 |
+ rm spec/unit/module_tool/metadata_spec.rb || die |
117 |
+} |
118 |
+ |
119 |
+all_ruby_compile() { |
120 |
+ if use emacs ; then |
121 |
+ elisp-compile ext/emacs/puppet-mode.el |
122 |
+ fi |
123 |
+ |
124 |
+ if use xemacs ; then |
125 |
+ # Create a separate version for xemacs to be able to install |
126 |
+ # emacs and xemacs in parallel. |
127 |
+ mkdir ext/xemacs |
128 |
+ cp ext/emacs/* ext/xemacs/ |
129 |
+ xemacs-elisp-compile ext/xemacs/puppet-mode.el |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+each_ruby_install() { |
134 |
+ each_fakegem_install |
135 |
+# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" |
136 |
+} |
137 |
+ |
138 |
+all_ruby_install() { |
139 |
+ all_fakegem_install |
140 |
+ |
141 |
+ # systemd stuffs |
142 |
+ insinto /usr/lib/systemd/system |
143 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
144 |
+ |
145 |
+ # tmpfiles stuff |
146 |
+ insinto /usr/lib/tmpfiles.d |
147 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
148 |
+ |
149 |
+ # openrc init stuff |
150 |
+ newinitd "${FILESDIR}"/puppet.init-4.x puppet |
151 |
+ newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster |
152 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
153 |
+ |
154 |
+ keepdir /etc/puppetlabs/puppet/ssl |
155 |
+ |
156 |
+ keepdir /var/lib/puppet/facts |
157 |
+ keepdir /var/lib/puppet/files |
158 |
+ fowners -R puppet:puppet /var/lib/puppet |
159 |
+ |
160 |
+ fperms 0750 /var/lib/puppet |
161 |
+ |
162 |
+ fperms 0750 /etc/puppetlabs |
163 |
+ fperms 0750 /etc/puppetlabs/puppet |
164 |
+ fperms 0750 /etc/puppetlabs/puppet/ssl |
165 |
+ fowners -R :puppet /etc/puppetlabs |
166 |
+ fowners -R :puppet /var/lib/puppet |
167 |
+ |
168 |
+ if use emacs ; then |
169 |
+ elisp-install ${PN} ext/emacs/puppet-mode.el* |
170 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
171 |
+ fi |
172 |
+ |
173 |
+ if use xemacs ; then |
174 |
+ xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* |
175 |
+ xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
176 |
+ fi |
177 |
+ |
178 |
+ if use ldap ; then |
179 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
180 |
+ fi |
181 |
+ |
182 |
+ # ext and examples files |
183 |
+ for f in $(find ext examples -type f) ; do |
184 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
185 |
+ done |
186 |
+} |
187 |
+ |
188 |
+pkg_postinst() { |
189 |
+ elog |
190 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
191 |
+ elog "cause puppet to hang while installing packages." |
192 |
+ elog |
193 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
194 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
195 |
+ elog |
196 |
+ |
197 |
+ if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then |
198 |
+ elog |
199 |
+ elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" |
200 |
+ elog "/etc/puppetlabs/puppet" |
201 |
+ elog "Also, puppet now uses config directories for modules and manifests." |
202 |
+ elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" |
203 |
+ elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" |
204 |
+ elog "for more information." |
205 |
+ elog |
206 |
+ fi |
207 |
+ |
208 |
+ use emacs && elisp-site-regen |
209 |
+ use xemacs && xemacs-elisp-site-regen |
210 |
+} |
211 |
+ |
212 |
+pkg_postrm() { |
213 |
+ use emacs && elisp-site-regen |
214 |
+ use xemacs && xemacs-elisp-site-regen |
215 |
+} |