1 |
commit: 94c4dfe6448d8dc13a7e948143a6827ca060260c |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 17:15:37 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 21:49:54 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94c4dfe6 |
7 |
|
8 |
app-admin/puppet: bup, also for bug 581372 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-admin/puppet/Manifest | 2 + |
13 |
app-admin/puppet/puppet-3.8.7.ebuild | 189 +++++++++++++++++++++++++++++++++++ |
14 |
app-admin/puppet/puppet-4.4.2.ebuild | 175 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 366 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
18 |
index a87fa8a..91fda48 100644 |
19 |
--- a/app-admin/puppet/Manifest |
20 |
+++ b/app-admin/puppet/Manifest |
21 |
@@ -5,8 +5,10 @@ DIST puppet-3.8.2.tar.gz 2637591 SHA256 5a89c623f22fc96a2919801ff874b10f8f1a66e9 |
22 |
DIST puppet-3.8.3.tar.gz 2638669 SHA256 bbdf5e32428fe005ea7279e9396bfcdf2c9b112763595fbfed48fb599108df7f SHA512 8f955c68556a835de738cf5f34cefd916392145853cd59108af26cb5c23b28740cdd078ac33b3171280ac691884c073c53d230641c88484561ac463bca094da6 WHIRLPOOL 2ff3181a3ea11d4b25d8499c3984f22e530e94ccc5a87e668b758a55f3c9091ca3d344afc62fb0f08b1835d5668b2f90e26ddf2560111fb52c0292b511301cd2 |
23 |
DIST puppet-3.8.4.tar.gz 2639537 SHA256 19e83ebbbf0933a9df6696255d7ff4d65e3daba1ed8dacf87f16a87ae40a7ad7 SHA512 bcd4251f56292529973c1694d4c1b0673e01cc6525c3fda8415e3b69b03861f0c1c168911b47c1372eeecd54c5eb2efc67ae23fd9ca0329b821b6f1b1e4e641a WHIRLPOOL 8088df2bcfa2f2ed5be8f0769c45d70d5b8496c59f84217299d0df9b143f7551c2fb3a86edc467dfdaca6574a57e7fe4a8b89e9a376e991385650f6ce4dc9f21 |
24 |
DIST puppet-3.8.5.tar.gz 2640987 SHA256 ecba7c70e32c3da6682f9c4706c01cc588a5614759a864446e9fbd2449c6305c SHA512 9c17508032ab4306c0ec1d2e79e1c3548a1da6c875c61155e597642cc901d0639eb99543084a6f88c5826b5faa5af83eaf936672e80a32bf27cf45f545e7d859 WHIRLPOOL 46a227365316c913f16a3b02bc13fd3b47ace497c406a14309d480c49881665d0ca9a0d86fae8a3761d6beb159b222dfdd033e0c1cdb2aaeadd62741c232a50f |
25 |
+DIST puppet-3.8.7.tar.gz 2650247 SHA256 50460a3dd8d25118e25eb01178d09743dabc01cd185f6b2cc723bae21ff023c2 SHA512 f86568d4f33c8c18da270e089e1274ce2e3c705c116b078531bb66656f0bbb9a2fc95effbb8bf5355a082d4f32ce5b44e7f6e316937164aa0d71dd47e654c618 WHIRLPOOL 6e3b754f9e6f40c6037652dc7d746e616871a653640e2a91ab7dd3e70b4240c0b377d0f79c543ca95c5d661046c6431e30f263e0f18998cac0ca3089a4634273 |
26 |
DIST puppet-4.0.0.tar.gz 2498445 SHA256 c02a5cceb68d6c26228c242a312d68cf054233842e914e9d3aec32b38034e013 SHA512 c8ec0771105e83498f7558e1dfa8679d94cb2d526589041319f35cce214a4c8602ebf8541a15fa64ce542168d101042153815887fb8350bce0c4371c490f396f WHIRLPOOL af53d8b14b7110e6648873e9822de37a8bb17b7f635800d9a9fb1fff7df22000cd13604b45913ddddbae58b7af198c80e84c001cc8b6d1643db9ead4ece42bb7 |
27 |
DIST puppet-4.1.0.tar.gz 2532579 SHA256 a168ac45a7b25932dfc78bd5da3efe41363e239c7361dd5c4f91615dc17bb275 SHA512 85ba32fb3a7e9f3413f201263943411fbb6b57a4aa13461954b32c1095b06d04f26288a216c5624290cf89d09183bc86bb5f57769fe2ccadc44bf57cd601f5d3 WHIRLPOOL 5288b3204a5c5b96da4eabdee19c1156e71b3a76662d8d28fc8e43988e76ca52618d423c207c1a25d5d92638c559db76ee3c8ce336286d3a5e875c1dc538f8b8 |
28 |
DIST puppet-4.2.1.tar.gz 2546267 SHA256 519842dfa03ff78c94e77fb28867aef12933691b9e2ce41788f80c5c2865fe7e SHA512 d4ce3f6cd0fbca4270a9121671c27985c9aaa5360a1a317afcc8f79cd81d285e1661cc77d50dda47abd8e50309762d5931545ea4d675b9fb6c32b612e570fd3d WHIRLPOOL 492294158f7f5eb78b93098c759c97ca53a09fc7b24a8350dfd76220a1d578f78375ba3bd9d618b97299931001af83cc5475c4f6ad9bbb1c3d9744fa07585bfd |
29 |
DIST puppet-4.2.2.tar.gz 2550591 SHA256 2d34cda2c65c885ba16e6644edd7733d55e6a0e1011a1f0f7fe80b411affc348 SHA512 63fdbce7839fe1638c22129d22bf2aeef29838adceb6c53aaaf54acc7c9d2957ed559e3625a13dfa1f35b556791de0232868f5ecdc439be95b0b64bea097d217 WHIRLPOOL e2f579efbfc3fbab35ee3a23f40a396b0326484c935eaacead503848abc8406fe705701a2ab7eaf28e070feedef7ac4467d4bbf3412f5999091c809c88550c4c |
30 |
DIST puppet-4.4.1.tar.gz 2675495 SHA256 a8b15fc035acd56711fdc6160cfbcae455f9f2708ed49ee8c937d93aa7d1c291 SHA512 d9ba703dc0544c5feddbd6c8f28eddba330cc1906e010cf3fc703541ed2d8595262dac56dbdd3ade49d652e3f55942115494928dc40bfe07df4d1b558577787c WHIRLPOOL 11fb2df07ac621cc4a28bcc83e89cd815e609467a0e7d86e15220963b3c907ae1ba772ff313a8ec7a578c0a7299b95625f311d3cb0ef6936e3fcde9bebd28f79 |
31 |
+DIST puppet-4.4.2.tar.gz 2680253 SHA256 90ea74703b415965def15566a6d709fbd781a1e21589688c22d2f1bab4688860 SHA512 38c4e4e94693e8f3131aba44ad8b03437cd6896f8266e6f9d6434e355f044c87173034bbd336c33e5848692de60c5b4612141128a95a3d088947e72f90d13bc1 WHIRLPOOL c7d06954d1a9b46cc7f56e73da88dd3297179f1f7ede646601b6305940e200f29bf7047e494df3be12e76b0640673d616058055bc4887d3e296a5372daeab0fd |
32 |
|
33 |
diff --git a/app-admin/puppet/puppet-3.8.7.ebuild b/app-admin/puppet/puppet-3.8.7.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..104bf83 |
36 |
--- /dev/null |
37 |
+++ b/app-admin/puppet/puppet-3.8.7.ebuild |
38 |
@@ -0,0 +1,189 @@ |
39 |
+# Copyright 1999-2016 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Id$ |
42 |
+ |
43 |
+EAPI="5" |
44 |
+ |
45 |
+USE_RUBY="ruby20 ruby21" |
46 |
+ |
47 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec" |
48 |
+ |
49 |
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator |
50 |
+ |
51 |
+DESCRIPTION="A system automation and configuration management software" |
52 |
+HOMEPAGE="http://puppetlabs.com/" |
53 |
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="Apache-2.0 GPL-2" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" |
58 |
+IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" |
59 |
+ |
60 |
+ruby_add_rdepend " |
61 |
+ dev-ruby/hiera |
62 |
+ >=dev-ruby/rgen-0.7.0 |
63 |
+ >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 |
64 |
+ dev-ruby/json |
65 |
+ augeas? ( dev-ruby/ruby-augeas ) |
66 |
+ diff? ( dev-ruby/diff-lcs ) |
67 |
+ doc? ( dev-ruby/rdoc ) |
68 |
+ ldap? ( dev-ruby/ruby-ldap ) |
69 |
+ shadow? ( dev-ruby/ruby-shadow ) |
70 |
+ sqlite? ( dev-ruby/sqlite3 ) |
71 |
+ virtual/ruby-ssl" |
72 |
+ |
73 |
+ruby_add_bdepend "test? ( dev-ruby/mocha )" |
74 |
+ |
75 |
+DEPEND="${DEPEND} |
76 |
+ emacs? ( virtual/emacs ) |
77 |
+ xemacs? ( app-editors/xemacs )" |
78 |
+RDEPEND="${RDEPEND} |
79 |
+ rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
80 |
+ selinux? ( |
81 |
+ sys-libs/libselinux[ruby] |
82 |
+ sec-policy/selinux-puppet |
83 |
+ ) |
84 |
+ vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
85 |
+ >=app-portage/eix-0.18.0" |
86 |
+ |
87 |
+SITEFILE="50${PN}-mode-gentoo.el" |
88 |
+ |
89 |
+pkg_setup() { |
90 |
+ enewgroup puppet |
91 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
92 |
+} |
93 |
+ |
94 |
+all_ruby_prepare() { |
95 |
+ # Avoid spec that require unpackaged json-schema. |
96 |
+ rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
97 |
+ |
98 |
+ # Avoid Rails specs to avoid this dependency and because they |
99 |
+ # currently fail against Rails 4.1. |
100 |
+ find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die |
101 |
+ rm -r spec/unit/rails || die |
102 |
+ rm spec/unit/parser/collector_spec.rb || die |
103 |
+ |
104 |
+ # Avoid specs that can only run in the puppet.git repository. This |
105 |
+ # should be narrowed down to the specific specs. |
106 |
+ rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die |
107 |
+ |
108 |
+ # Avoid failing spec that need further investigation. |
109 |
+ rm spec/unit/module_tool/metadata_spec.rb || die |
110 |
+} |
111 |
+ |
112 |
+all_ruby_compile() { |
113 |
+ if use emacs ; then |
114 |
+ elisp-compile ext/emacs/puppet-mode.el |
115 |
+ fi |
116 |
+ |
117 |
+ if use xemacs ; then |
118 |
+ # Create a separate version for xemacs to be able to install |
119 |
+ # emacs and xemacs in parallel. |
120 |
+ mkdir ext/xemacs |
121 |
+ cp ext/emacs/* ext/xemacs/ |
122 |
+ xemacs-elisp-compile ext/xemacs/puppet-mode.el |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+each_ruby_install() { |
127 |
+ each_fakegem_install |
128 |
+ #${RUBY} install.rb --destdir="${D}" install || die |
129 |
+} |
130 |
+ |
131 |
+all_ruby_install() { |
132 |
+ all_fakegem_install |
133 |
+ |
134 |
+ #systemd stuffs |
135 |
+ insinto /usr/lib/systemd/system |
136 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
137 |
+ insinto /usr/lib/tmpfiles.d |
138 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
139 |
+ |
140 |
+ newinitd "${FILESDIR}"/puppet.init-r1 puppet |
141 |
+ |
142 |
+ # Initial configuration files |
143 |
+ insinto /etc/puppet |
144 |
+ |
145 |
+ # Location of log and data files |
146 |
+ keepdir /var/log/puppet |
147 |
+ fowners -R puppet:puppet /var/log/puppet |
148 |
+ |
149 |
+ if use minimal ; then |
150 |
+ rm "${ED}/etc/puppet/auth.conf" |
151 |
+ else |
152 |
+ insinto /usr/lib/systemd/system |
153 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" |
154 |
+ newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster |
155 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
156 |
+ |
157 |
+ insinto /etc/puppet |
158 |
+ |
159 |
+ keepdir /etc/puppet/manifests |
160 |
+ keepdir /etc/puppet/modules |
161 |
+ |
162 |
+ keepdir /var/lib/puppet/ssl |
163 |
+ keepdir /var/lib/puppet/facts |
164 |
+ keepdir /var/lib/puppet/files |
165 |
+ fowners -R puppet:puppet /var/lib/puppet |
166 |
+ fperms 0750 /var/lib/puppet |
167 |
+ fi |
168 |
+ fperms 0750 /etc/puppet |
169 |
+ fowners :puppet /etc/puppet |
170 |
+ |
171 |
+ if use emacs ; then |
172 |
+ elisp-install ${PN} ext/emacs/puppet-mode.el* |
173 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
174 |
+ fi |
175 |
+ |
176 |
+ if use xemacs ; then |
177 |
+ xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* |
178 |
+ xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
179 |
+ fi |
180 |
+ |
181 |
+ if use ldap ; then |
182 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
183 |
+ fi |
184 |
+ |
185 |
+ # ext and examples files |
186 |
+ for f in $(find ext examples -type f) ; do |
187 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
188 |
+ done |
189 |
+} |
190 |
+ |
191 |
+pkg_postinst() { |
192 |
+ elog |
193 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
194 |
+ elog "cause puppet to hang while installing packages." |
195 |
+ elog |
196 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
197 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
198 |
+ elog |
199 |
+ |
200 |
+ if [ \ |
201 |
+ -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ |
202 |
+ -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ |
203 |
+ -f "${EPREFIX}/etc/puppet/puppetca.conf" \ |
204 |
+ ] ; then |
205 |
+ elog |
206 |
+ elog "Please remove deprecated config files." |
207 |
+ elog " /etc/puppet/puppetca.conf" |
208 |
+ elog " /etc/puppet/puppetd.conf" |
209 |
+ elog " /etc/puppet/puppetmasterd.conf" |
210 |
+ elog |
211 |
+ fi |
212 |
+ |
213 |
+ if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then |
214 |
+ elog |
215 |
+ elog "If you're upgrading from 2.x then we strongly suggest you to read:" |
216 |
+ elog "http://docs.puppetlabs.com/guides/upgrading.html" |
217 |
+ elog |
218 |
+ fi |
219 |
+ |
220 |
+ use emacs && elisp-site-regen |
221 |
+ use xemacs && xemacs-elisp-site-regen |
222 |
+} |
223 |
+ |
224 |
+pkg_postrm() { |
225 |
+ use emacs && elisp-site-regen |
226 |
+ use xemacs && xemacs-elisp-site-regen |
227 |
+} |
228 |
|
229 |
diff --git a/app-admin/puppet/puppet-4.4.2.ebuild b/app-admin/puppet/puppet-4.4.2.ebuild |
230 |
new file mode 100644 |
231 |
index 0000000..dc356cf |
232 |
--- /dev/null |
233 |
+++ b/app-admin/puppet/puppet-4.4.2.ebuild |
234 |
@@ -0,0 +1,175 @@ |
235 |
+# Copyright 1999-2016 Gentoo Foundation |
236 |
+# Distributed under the terms of the GNU General Public License v2 |
237 |
+# $Id$ |
238 |
+ |
239 |
+EAPI="5" |
240 |
+ |
241 |
+USE_RUBY="ruby20 ruby21" |
242 |
+ |
243 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
244 |
+ |
245 |
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator |
246 |
+ |
247 |
+DESCRIPTION="A system automation and configuration management software." |
248 |
+HOMEPAGE="http://puppetlabs.com/" |
249 |
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
250 |
+ |
251 |
+LICENSE="Apache-2.0 GPL-2" |
252 |
+SLOT="0" |
253 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
254 |
+IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs" |
255 |
+RESTRICT="test" |
256 |
+ |
257 |
+ruby_add_rdepend " |
258 |
+ dev-ruby/hiera |
259 |
+ >=dev-ruby/rgen-0.6.5 |
260 |
+ dev-ruby/json |
261 |
+ >=dev-ruby/facter-3.0.0 |
262 |
+ augeas? ( dev-ruby/ruby-augeas ) |
263 |
+ diff? ( dev-ruby/diff-lcs ) |
264 |
+ doc? ( dev-ruby/rdoc ) |
265 |
+ ldap? ( dev-ruby/ruby-ldap ) |
266 |
+ shadow? ( dev-ruby/ruby-shadow ) |
267 |
+ sqlite? ( dev-ruby/sqlite3 ) |
268 |
+ virtual/ruby-ssl" |
269 |
+ |
270 |
+ruby_add_bdepend " |
271 |
+ test? ( |
272 |
+ dev-ruby/mocha |
273 |
+ dev-ruby/rack |
274 |
+ dev-ruby/rspec-its |
275 |
+ )" |
276 |
+# this should go in the above lists, but isn't because of test deps not being keyworded |
277 |
+# dev-ruby/rspec-collection_matchers |
278 |
+ |
279 |
+DEPEND+=" ${DEPEND} |
280 |
+ emacs? ( virtual/emacs ) |
281 |
+ xemacs? ( app-editors/xemacs )" |
282 |
+RDEPEND+=" ${RDEPEND} |
283 |
+ rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
284 |
+ selinux? ( |
285 |
+ sys-libs/libselinux[ruby] |
286 |
+ sec-policy/selinux-puppet |
287 |
+ ) |
288 |
+ vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
289 |
+ >=app-portage/eix-0.18.0" |
290 |
+ |
291 |
+SITEFILE="50${PN}-mode-gentoo.el" |
292 |
+ |
293 |
+pkg_setup() { |
294 |
+ enewgroup puppet |
295 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
296 |
+} |
297 |
+ |
298 |
+all_ruby_prepare() { |
299 |
+ # Avoid spec that require unpackaged json-schema. |
300 |
+ rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
301 |
+ |
302 |
+ # can't be run within portage. |
303 |
+ epatch "${FILESDIR}/puppet-fix-tests-4.x.patch" |
304 |
+ |
305 |
+ # Avoid specs that can only run in the puppet.git repository. This |
306 |
+ # should be narrowed down to the specific specs. |
307 |
+ rm spec/integration/parser/compiler_spec.rb || die |
308 |
+ |
309 |
+ # Avoid failing spec that need further investigation. |
310 |
+ rm spec/unit/module_tool/metadata_spec.rb || die |
311 |
+} |
312 |
+ |
313 |
+all_ruby_compile() { |
314 |
+ if use emacs ; then |
315 |
+ elisp-compile ext/emacs/puppet-mode.el |
316 |
+ fi |
317 |
+ |
318 |
+ if use xemacs ; then |
319 |
+ # Create a separate version for xemacs to be able to install |
320 |
+ # emacs and xemacs in parallel. |
321 |
+ mkdir ext/xemacs |
322 |
+ cp ext/emacs/* ext/xemacs/ |
323 |
+ xemacs-elisp-compile ext/xemacs/puppet-mode.el |
324 |
+ fi |
325 |
+} |
326 |
+ |
327 |
+each_ruby_install() { |
328 |
+ each_fakegem_install |
329 |
+# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" |
330 |
+} |
331 |
+ |
332 |
+all_ruby_install() { |
333 |
+ all_fakegem_install |
334 |
+ |
335 |
+ # systemd stuffs |
336 |
+ insinto /usr/lib/systemd/system |
337 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
338 |
+ |
339 |
+ # tmpfiles stuff |
340 |
+ insinto /usr/lib/tmpfiles.d |
341 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
342 |
+ |
343 |
+ # openrc init stuff |
344 |
+ newinitd "${FILESDIR}"/puppet.init-4.x puppet |
345 |
+ newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster |
346 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
347 |
+ |
348 |
+ keepdir /etc/puppetlabs/puppet/ssl |
349 |
+ |
350 |
+ keepdir /var/lib/puppet/facts |
351 |
+ keepdir /var/lib/puppet/files |
352 |
+ fowners -R puppet:puppet /var/lib/puppet |
353 |
+ |
354 |
+ fperms 0750 /var/lib/puppet |
355 |
+ |
356 |
+ fperms 0750 /etc/puppetlabs |
357 |
+ fperms 0750 /etc/puppetlabs/puppet |
358 |
+ fperms 0750 /etc/puppetlabs/puppet/ssl |
359 |
+ fowners -R :puppet /etc/puppetlabs |
360 |
+ fowners -R :puppet /var/lib/puppet |
361 |
+ |
362 |
+ if use emacs ; then |
363 |
+ elisp-install ${PN} ext/emacs/puppet-mode.el* |
364 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
365 |
+ fi |
366 |
+ |
367 |
+ if use xemacs ; then |
368 |
+ xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* |
369 |
+ xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
370 |
+ fi |
371 |
+ |
372 |
+ if use ldap ; then |
373 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
374 |
+ fi |
375 |
+ |
376 |
+ # ext and examples files |
377 |
+ for f in $(find ext examples -type f) ; do |
378 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
379 |
+ done |
380 |
+} |
381 |
+ |
382 |
+pkg_postinst() { |
383 |
+ elog |
384 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
385 |
+ elog "cause puppet to hang while installing packages." |
386 |
+ elog |
387 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
388 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
389 |
+ elog |
390 |
+ |
391 |
+ if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then |
392 |
+ elog |
393 |
+ elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" |
394 |
+ elog "/etc/puppetlabs/puppet" |
395 |
+ elog "Also, puppet now uses config directories for modules and manifests." |
396 |
+ elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" |
397 |
+ elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" |
398 |
+ elog "for more information." |
399 |
+ elog |
400 |
+ fi |
401 |
+ |
402 |
+ use emacs && elisp-site-regen |
403 |
+ use xemacs && xemacs-elisp-site-regen |
404 |
+} |
405 |
+ |
406 |
+pkg_postrm() { |
407 |
+ use emacs && elisp-site-regen |
408 |
+ use xemacs && xemacs-elisp-site-regen |
409 |
+} |