Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet/
Date: Thu, 28 Jan 2016 06:16:08
Message-Id: 1453961717.bed014ce0bd541d1e431f904751cc5dbc3a2977f.prometheanfire@gentoo
1 commit: bed014ce0bd541d1e431f904751cc5dbc3a2977f
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 06:15:17 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 06:15:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bed014ce
7
8 app-admin/puppet: bup
9
10 Package-Manager: portage-2.2.26
11
12 app-admin/puppet/Manifest | 1 +
13 app-admin/puppet/puppet-3.8.5.ebuild | 189 +++++++++++++++++++++++++++++++++++
14 2 files changed, 190 insertions(+)
15
16 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
17 index f0e6f45..80bbf9a 100644
18 --- a/app-admin/puppet/Manifest
19 +++ b/app-admin/puppet/Manifest
20 @@ -4,6 +4,7 @@ DIST puppet-3.8.1.tar.gz 2633982 SHA256 033d99125276c7062fa5928e3de38c5e487b4065
21 DIST puppet-3.8.2.tar.gz 2637591 SHA256 5a89c623f22fc96a2919801ff874b10f8f1a66e95c09976c73b257b8bbc39986 SHA512 b209a7b009e1d9510753a7484e620c3fb34a83058e8dbc2d9de2c33aca97e813fa85046d9b4de2fad9cb8fb7db257d46c221dd6eb9c0f86e1343cce6e1a9ca5a WHIRLPOOL 55bc7ece7ee918fab29e0f116f8ebc58322b42c07285a8965f2acae9dcff9c13e90cfc9c3c2537f9d21c663062015482fd48e24a1505fc7445fb6b949bc805bc
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-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.5.ebuild b/app-admin/puppet/puppet-3.8.5.ebuild
30 new file mode 100644
31 index 0000000..104bf83
32 --- /dev/null
33 +++ b/app-admin/puppet/puppet-3.8.5.ebuild
34 @@ -0,0 +1,189 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI="5"
40 +
41 +USE_RUBY="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 + emacs? ( virtual/emacs )
73 + xemacs? ( app-editors/xemacs )"
74 +RDEPEND="${RDEPEND}
75 + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
76 + selinux? (
77 + sys-libs/libselinux[ruby]
78 + sec-policy/selinux-puppet
79 + )
80 + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
81 + >=app-portage/eix-0.18.0"
82 +
83 +SITEFILE="50${PN}-mode-gentoo.el"
84 +
85 +pkg_setup() {
86 + enewgroup puppet
87 + enewuser puppet -1 -1 /var/lib/puppet puppet
88 +}
89 +
90 +all_ruby_prepare() {
91 + # Avoid spec that require unpackaged json-schema.
92 + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
93 +
94 + # Avoid Rails specs to avoid this dependency and because they
95 + # currently fail against Rails 4.1.
96 + find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm || die
97 + rm -r spec/unit/rails || die
98 + rm spec/unit/parser/collector_spec.rb || die
99 +
100 + # Avoid specs that can only run in the puppet.git repository. This
101 + # should be narrowed down to the specific specs.
102 + rm spec/integration/parser/compiler_spec.rb spec/integration/parser/future_compiler_spec.rb || die
103 +
104 + # Avoid failing spec that need further investigation.
105 + rm spec/unit/module_tool/metadata_spec.rb || die
106 +}
107 +
108 +all_ruby_compile() {
109 + if use emacs ; then
110 + elisp-compile ext/emacs/puppet-mode.el
111 + fi
112 +
113 + if use xemacs ; then
114 + # Create a separate version for xemacs to be able to install
115 + # emacs and xemacs in parallel.
116 + mkdir ext/xemacs
117 + cp ext/emacs/* ext/xemacs/
118 + xemacs-elisp-compile ext/xemacs/puppet-mode.el
119 + fi
120 +}
121 +
122 +each_ruby_install() {
123 + each_fakegem_install
124 + #${RUBY} install.rb --destdir="${D}" install || die
125 +}
126 +
127 +all_ruby_install() {
128 + all_fakegem_install
129 +
130 + #systemd stuffs
131 + insinto /usr/lib/systemd/system
132 + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
133 + insinto /usr/lib/tmpfiles.d
134 + newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
135 +
136 + newinitd "${FILESDIR}"/puppet.init-r1 puppet
137 +
138 + # Initial configuration files
139 + insinto /etc/puppet
140 +
141 + # Location of log and data files
142 + keepdir /var/log/puppet
143 + fowners -R puppet:puppet /var/log/puppet
144 +
145 + if use minimal ; then
146 + rm "${ED}/etc/puppet/auth.conf"
147 + else
148 + insinto /usr/lib/systemd/system
149 + doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service"
150 + newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster
151 + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
152 +
153 + insinto /etc/puppet
154 +
155 + keepdir /etc/puppet/manifests
156 + keepdir /etc/puppet/modules
157 +
158 + keepdir /var/lib/puppet/ssl
159 + keepdir /var/lib/puppet/facts
160 + keepdir /var/lib/puppet/files
161 + fowners -R puppet:puppet /var/lib/puppet
162 + fperms 0750 /var/lib/puppet
163 + fi
164 + fperms 0750 /etc/puppet
165 + fowners :puppet /etc/puppet
166 +
167 + if use emacs ; then
168 + elisp-install ${PN} ext/emacs/puppet-mode.el*
169 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
170 + fi
171 +
172 + if use xemacs ; then
173 + xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
174 + xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
175 + fi
176 +
177 + if use ldap ; then
178 + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
179 + fi
180 +
181 + # ext and examples files
182 + for f in $(find ext examples -type f) ; do
183 + docinto "$(dirname ${f})"; dodoc "${f}"
184 + done
185 +}
186 +
187 +pkg_postinst() {
188 + elog
189 + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
190 + elog "cause puppet to hang while installing packages."
191 + elog
192 + elog "Portage Puppet module with Gentoo-specific resources:"
193 + elog "http://forge.puppetlabs.com/gentoo/portage"
194 + elog
195 +
196 + if [ \
197 + -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
198 + -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
199 + -f "${EPREFIX}/etc/puppet/puppetca.conf" \
200 + ] ; then
201 + elog
202 + elog "Please remove deprecated config files."
203 + elog " /etc/puppet/puppetca.conf"
204 + elog " /etc/puppet/puppetd.conf"
205 + elog " /etc/puppet/puppetmasterd.conf"
206 + elog
207 + fi
208 +
209 + if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then
210 + elog
211 + elog "If you're upgrading from 2.x then we strongly suggest you to read:"
212 + elog "http://docs.puppetlabs.com/guides/upgrading.html"
213 + elog
214 + fi
215 +
216 + use emacs && elisp-site-regen
217 + use xemacs && xemacs-elisp-site-regen
218 +}
219 +
220 +pkg_postrm() {
221 + use emacs && elisp-site-regen
222 + use xemacs && xemacs-elisp-site-regen
223 +}