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