1 |
commit: 2916cd466d3cf401f7dbc2b8b8ba02d25480c107 |
2 |
Author: Matthew Thode <mthode <AT> mthode <DOT> org> |
3 |
AuthorDate: Wed Sep 23 16:11:15 2015 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 23 16:11:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2916cd46 |
7 |
|
8 |
app-admin/puppet: bup |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
app-admin/puppet/Manifest | 1 + |
13 |
app-admin/puppet/puppet-3.8.3.ebuild | 191 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 192 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
17 |
index 10ce106..9731fe5 100644 |
18 |
--- a/app-admin/puppet/Manifest |
19 |
+++ b/app-admin/puppet/Manifest |
20 |
@@ -2,6 +2,7 @@ DIST puppet-3.7.3.tar.gz 2594007 SHA256 4a3bd7ddb51072c3dd898a8de158cde204a2d8fd |
21 |
DIST puppet-3.7.4.tar.gz 2600191 SHA256 957c09ab253f76e624809766999da6d872f79b3a64b54b8c66bdd8907c291745 SHA512 868a80df0e07b68f0de2fe31dcc55ab1f9da160d66e151298ecb11c17382c13939a88f2925e387a14d2713be5375c2606f26ff52c11dd214874d71f17b3c0617 WHIRLPOOL d5dfb53a062532427ed32acb834517d8eaeba9f53e85bccb79de93f5f947e7d4df472b40c0bed91703b8977ac99c9764944290627815dc60430a8cfe2098519b |
22 |
DIST puppet-3.8.1.tar.gz 2633982 SHA256 033d99125276c7062fa5928e3de38c5e487b406530b3c50e84027b3abfd945a8 SHA512 a188c9f5baad3260c7cc2ea26d79d6655b504809deefe90a9e9ed81d3a66c1e10cc0b72b63c9ef34e5dd9266d3588cb7dc0d55e7a762f5fa5bbdc1ebe347979d WHIRLPOOL fd476519032d7b346a8813e4c73826daafc69fc4f7a8924efb35dfc6d691a7734322a7746008484df3f62f32865b23c6203f38662f354057aff5e75c20bf1965 |
23 |
DIST puppet-3.8.2.tar.gz 2637591 SHA256 5a89c623f22fc96a2919801ff874b10f8f1a66e95c09976c73b257b8bbc39986 SHA512 b209a7b009e1d9510753a7484e620c3fb34a83058e8dbc2d9de2c33aca97e813fa85046d9b4de2fad9cb8fb7db257d46c221dd6eb9c0f86e1343cce6e1a9ca5a WHIRLPOOL 55bc7ece7ee918fab29e0f116f8ebc58322b42c07285a8965f2acae9dcff9c13e90cfc9c3c2537f9d21c663062015482fd48e24a1505fc7445fb6b949bc805bc |
24 |
+DIST puppet-3.8.3.tar.gz 2638669 SHA256 bbdf5e32428fe005ea7279e9396bfcdf2c9b112763595fbfed48fb599108df7f SHA512 8f955c68556a835de738cf5f34cefd916392145853cd59108af26cb5c23b28740cdd078ac33b3171280ac691884c073c53d230641c88484561ac463bca094da6 WHIRLPOOL 2ff3181a3ea11d4b25d8499c3984f22e530e94ccc5a87e668b758a55f3c9091ca3d344afc62fb0f08b1835d5668b2f90e26ddf2560111fb52c0292b511301cd2 |
25 |
DIST puppet-4.0.0.tar.gz 2498445 SHA256 c02a5cceb68d6c26228c242a312d68cf054233842e914e9d3aec32b38034e013 SHA512 c8ec0771105e83498f7558e1dfa8679d94cb2d526589041319f35cce214a4c8602ebf8541a15fa64ce542168d101042153815887fb8350bce0c4371c490f396f WHIRLPOOL af53d8b14b7110e6648873e9822de37a8bb17b7f635800d9a9fb1fff7df22000cd13604b45913ddddbae58b7af198c80e84c001cc8b6d1643db9ead4ece42bb7 |
26 |
DIST puppet-4.1.0.tar.gz 2532579 SHA256 a168ac45a7b25932dfc78bd5da3efe41363e239c7361dd5c4f91615dc17bb275 SHA512 85ba32fb3a7e9f3413f201263943411fbb6b57a4aa13461954b32c1095b06d04f26288a216c5624290cf89d09183bc86bb5f57769fe2ccadc44bf57cd601f5d3 WHIRLPOOL 5288b3204a5c5b96da4eabdee19c1156e71b3a76662d8d28fc8e43988e76ca52618d423c207c1a25d5d92638c559db76ee3c8ce336286d3a5e875c1dc538f8b8 |
27 |
DIST puppet-4.2.1.tar.gz 2546267 SHA256 519842dfa03ff78c94e77fb28867aef12933691b9e2ce41788f80c5c2865fe7e SHA512 d4ce3f6cd0fbca4270a9121671c27985c9aaa5360a1a317afcc8f79cd81d285e1661cc77d50dda47abd8e50309762d5931545ea4d675b9fb6c32b612e570fd3d WHIRLPOOL 492294158f7f5eb78b93098c759c97ca53a09fc7b24a8350dfd76220a1d578f78375ba3bd9d618b97299931001af83cc5475c4f6ad9bbb1c3d9744fa07585bfd |
28 |
|
29 |
diff --git a/app-admin/puppet/puppet-3.8.3.ebuild b/app-admin/puppet/puppet-3.8.3.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..2618d22 |
32 |
--- /dev/null |
33 |
+++ b/app-admin/puppet/puppet-3.8.3.ebuild |
34 |
@@ -0,0 +1,191 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI="5" |
40 |
+ |
41 |
+USE_RUBY="ruby19 ruby20 ruby21" |
42 |
+ |
43 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec" |
44 |
+ |
45 |
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator |
46 |
+ |
47 |
+DESCRIPTION="A system automation and configuration management software" |
48 |
+HOMEPAGE="http://puppetlabs.com/" |
49 |
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="Apache-2.0 GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" |
54 |
+IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite vim-syntax xemacs" |
55 |
+ |
56 |
+ruby_add_rdepend " |
57 |
+ dev-ruby/hiera |
58 |
+ >=dev-ruby/rgen-0.7.0 |
59 |
+ >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 |
60 |
+ dev-ruby/json |
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 |
+ |
69 |
+ruby_add_bdepend "test? ( dev-ruby/mocha )" |
70 |
+ |
71 |
+DEPEND="${DEPEND} |
72 |
+ ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) |
73 |
+ emacs? ( virtual/emacs ) |
74 |
+ xemacs? ( app-editors/xemacs )" |
75 |
+RDEPEND="${RDEPEND} |
76 |
+ ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] ) |
77 |
+ rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
78 |
+ selinux? ( |
79 |
+ sys-libs/libselinux[ruby] |
80 |
+ sec-policy/selinux-puppet |
81 |
+ ) |
82 |
+ vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
83 |
+ >=app-portage/eix-0.18.0" |
84 |
+ |
85 |
+SITEFILE="50${PN}-mode-gentoo.el" |
86 |
+ |
87 |
+pkg_setup() { |
88 |
+ enewgroup puppet |
89 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
90 |
+} |
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 |
+ # Avoid Rails specs to avoid this dependency and because they |
97 |
+ # currently fail against Rails 4.1. |
98 |
+ find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die |
99 |
+ rm -r spec/unit/rails || die |
100 |
+ rm spec/unit/parser/collector_spec.rb || die |
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 spec/integration/parser/future_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 |
+ #${RUBY} install.rb --destdir="${D}" install || die |
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 |
+ insinto /usr/lib/tmpfiles.d |
136 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
137 |
+ |
138 |
+ newinitd "${FILESDIR}"/puppet.init-r1 puppet |
139 |
+ |
140 |
+ # Initial configuration files |
141 |
+ insinto /etc/puppet |
142 |
+ |
143 |
+ # Location of log and data files |
144 |
+ keepdir /var/log/puppet |
145 |
+ fowners -R puppet:puppet /var/log/puppet |
146 |
+ |
147 |
+ if use minimal ; then |
148 |
+ rm "${ED}/etc/puppet/auth.conf" |
149 |
+ else |
150 |
+ insinto /usr/lib/systemd/system |
151 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" |
152 |
+ newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster |
153 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
154 |
+ |
155 |
+ insinto /etc/puppet |
156 |
+ |
157 |
+ keepdir /etc/puppet/manifests |
158 |
+ keepdir /etc/puppet/modules |
159 |
+ |
160 |
+ keepdir /var/lib/puppet/ssl |
161 |
+ keepdir /var/lib/puppet/facts |
162 |
+ keepdir /var/lib/puppet/files |
163 |
+ fowners -R puppet:puppet /var/lib/puppet |
164 |
+ fperms 0750 /var/lib/puppet |
165 |
+ fi |
166 |
+ fperms 0750 /etc/puppet |
167 |
+ fowners :puppet /etc/puppet |
168 |
+ |
169 |
+ if use emacs ; then |
170 |
+ elisp-install ${PN} ext/emacs/puppet-mode.el* |
171 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
172 |
+ fi |
173 |
+ |
174 |
+ if use xemacs ; then |
175 |
+ xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* |
176 |
+ xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
177 |
+ fi |
178 |
+ |
179 |
+ if use ldap ; then |
180 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
181 |
+ fi |
182 |
+ |
183 |
+ # ext and examples files |
184 |
+ for f in $(find ext examples -type f) ; do |
185 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
186 |
+ done |
187 |
+} |
188 |
+ |
189 |
+pkg_postinst() { |
190 |
+ elog |
191 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
192 |
+ elog "cause puppet to hang while installing packages." |
193 |
+ elog |
194 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
195 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
196 |
+ elog |
197 |
+ |
198 |
+ if [ \ |
199 |
+ -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \ |
200 |
+ -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \ |
201 |
+ -f "${EPREFIX}/etc/puppet/puppetca.conf" \ |
202 |
+ ] ; then |
203 |
+ elog |
204 |
+ elog "Please remove deprecated config files." |
205 |
+ elog " /etc/puppet/puppetca.conf" |
206 |
+ elog " /etc/puppet/puppetd.conf" |
207 |
+ elog " /etc/puppet/puppetmasterd.conf" |
208 |
+ elog |
209 |
+ fi |
210 |
+ |
211 |
+ if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then |
212 |
+ elog |
213 |
+ elog "If you're upgrading from 2.x then we strongly suggest you to read:" |
214 |
+ elog "http://docs.puppetlabs.com/guides/upgrading.html" |
215 |
+ elog |
216 |
+ fi |
217 |
+ |
218 |
+ use emacs && elisp-site-regen |
219 |
+ use xemacs && xemacs-elisp-site-regen |
220 |
+} |
221 |
+ |
222 |
+pkg_postrm() { |
223 |
+ use emacs && elisp-site-regen |
224 |
+ use xemacs && xemacs-elisp-site-regen |
225 |
+} |