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: Mon, 13 Nov 2017 07:14:09
Message-Id: 1510557218.54b43e30aacaf6c731dff5b3305f3c09760b7751.prometheanfire@gentoo
1 commit: 54b43e30aacaf6c731dff5b3305f3c09760b7751
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 13 06:59:58 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 07:13:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54b43e30
7
8 app-admin/puppet: 5.3.3 bup
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.4
11
12 app-admin/puppet/Manifest | 1 +
13 app-admin/puppet/puppet-5.3.3.ebuild | 144 +++++++++++++++++++++++++++++++++++
14 2 files changed, 145 insertions(+)
15
16 diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
17 index fab5211f6f6..654bc69ac06 100644
18 --- a/app-admin/puppet/Manifest
19 +++ b/app-admin/puppet/Manifest
20 @@ -3,3 +3,4 @@ DIST puppet-4.10.1.tar.gz 2954351 SHA256 271738d2b5aaec8faafd543076ac0d9012fcd60
21 DIST puppet-4.10.6.tar.gz 2977099 SHA256 19250a3659339961953d48d71aa5951d52bcee3bac0a1e2f45042aa82fcf358a SHA512 f983005d161bbd5fb81dfd15a32cb0ae2417557bd4faa1a62d2fb10fffa55c91ea29c1577785af9642a2878c78405ab99c7e6ee4268fcedcc107c07a0a5bfdd1 WHIRLPOOL 4619f7e89a02560f2c6bd1194b1f50699348fcddf5889628884c807deb0afd9b530883d280db20086a787052d2456ef61b2eef84854e95724562f1a0225b2640
22 DIST puppet-4.10.8.tar.gz 2979824 SHA256 2a11f9230f2b681173107fcfe6574dc38d8061c7d369fa88525dfb652fb7f198 SHA512 9f3384702dd4938e1e00aeceb0745b760de32000e0dd59d5b846d1120a46026499176a51d0409e3a0ae414efc0872854c204d1941385695a4c57c209fbd1f28d WHIRLPOOL 06ed0f915786e6d0c5698a8bebfb68628d96b236b667ec44c994c043949cb4a47c8d42b2fbe8391178f38862fe816237d28501b4e39a6326d74ef2d62eb438eb
23 DIST puppet-5.1.0.tar.gz 2734018 SHA256 ceb8059704d2e79c1f9147716b596261e1c6c38da3313a2283def777ecf9193c SHA512 07019f40c5b7f18243f13abb899c2ff2ea4b135895ab98c13da3df50f8e720e2759f8eb39e349ff04286da7de504cffea3df8acf9711e8591b25001a2a3f9c15 WHIRLPOOL a5e4e44c68a503307b01729546121a03a0271bc68f8db139e7d52981f9ce9f6db4e24b18a252633794e7de1c7aceb6d833c817a291099081b31190060bb59d50
24 +DIST puppet-5.3.3.tar.gz 2843386 SHA256 45360f64fe0375df617571d58e929515e2094daa1d0dc78e2b6718d7cbeaf18e SHA512 b5bb9ac4059855c7cac624ea0fdc2c3366cea82bf07bee195a179a0a709fa53e7fffe883e581c1e07a64705a638b156288301227f7334226ddc401a9bf770afe WHIRLPOOL 19c8511ba58186692ee0ace02158c16529715cc213f0eb7266bb078a10db6e698081edc4b3e0735f1e79fb568066cc6f1699d0b1a954a29d74d1a91f393130fa
25
26 diff --git a/app-admin/puppet/puppet-5.3.3.ebuild b/app-admin/puppet/puppet-5.3.3.ebuild
27 new file mode 100644
28 index 00000000000..f74a524361a
29 --- /dev/null
30 +++ b/app-admin/puppet/puppet-5.3.3.ebuild
31 @@ -0,0 +1,144 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +USE_RUBY="ruby22 ruby23 ruby24"
38 +
39 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
40 +
41 +RUBY_FAKEGEM_TASK_DOC="doc:all"
42 +
43 +RUBY_FAKEGEM_EXTRAINSTALL="locales"
44 +
45 +inherit 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 ~x86"
54 +IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
55 +RESTRICT="test"
56 +
57 +ruby_add_rdepend "
58 + dev-ruby/hiera
59 + dev-ruby/json:=
60 + >=dev-ruby/facter-3.0.0
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 + dev-ruby/hocon"
69 +
70 +ruby_add_bdepend "
71 + doc? ( dev-ruby/yard )
72 + test? (
73 + dev-ruby/mocha
74 + dev-ruby/rack
75 + dev-ruby/rspec-its
76 + )"
77 +# this should go in the above lists, but isn't because of test deps not being keyworded
78 +# dev-ruby/rspec-collection_matchers
79 +
80 +RDEPEND+=" ${RDEPEND}
81 + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
82 + selinux? (
83 + sys-libs/libselinux[ruby]
84 + sec-policy/selinux-puppet
85 + )
86 + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
87 + >=app-portage/eix-0.18.0"
88 +PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
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 + # fix systemd path
103 + epatch "${FILESDIR}/puppet-systemd.patch"
104 +
105 + # Avoid specs that can only run in the puppet.git repository. This
106 + # should be narrowed down to the specific specs.
107 + rm spec/integration/parser/compiler_spec.rb || die
108 +
109 + # Avoid failing spec that need further investigation.
110 + rm spec/unit/module_tool/metadata_spec.rb || die
111 +}
112 +
113 +each_ruby_install() {
114 + each_fakegem_install
115 +# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
116 +}
117 +
118 +all_ruby_install() {
119 + all_fakegem_install
120 +
121 + # systemd stuffs
122 + insinto /usr/lib/systemd/system
123 + doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
124 +
125 + # tmpfiles stuff
126 + insinto /usr/lib/tmpfiles.d
127 + newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
128 +
129 + # openrc init stuff
130 + newinitd "${FILESDIR}"/puppet.init-4.x puppet
131 + newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
132 + newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
133 +
134 + keepdir /etc/puppetlabs/puppet/ssl
135 +
136 + keepdir /var/lib/puppet/facts
137 + keepdir /var/lib/puppet/files
138 + fowners -R puppet:puppet /var/lib/puppet
139 +
140 + fperms 0750 /var/lib/puppet
141 +
142 + fperms 0750 /etc/puppetlabs
143 + fperms 0750 /etc/puppetlabs/puppet
144 + fperms 0750 /etc/puppetlabs/puppet/ssl
145 + fowners -R :puppet /etc/puppetlabs
146 + fowners -R :puppet /var/lib/puppet
147 +
148 + if use ldap ; then
149 + insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
150 + fi
151 +
152 + # ext and examples files
153 + for f in $(find ext examples -type f) ; do
154 + docinto "$(dirname ${f})"; dodoc "${f}"
155 + done
156 +}
157 +
158 +pkg_postinst() {
159 + elog
160 + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
161 + elog "cause puppet to hang while installing packages."
162 + elog
163 + elog "Portage Puppet module with Gentoo-specific resources:"
164 + elog "http://forge.puppetlabs.com/gentoo/portage"
165 + elog
166 +
167 + for v in ${REPLACING_VERSIONS}; do
168 + if [ "$(get_major_version $v)" = "4" ]; then
169 + elog
170 + elog "Please see the following url for the release notes for puppet-5"
171 + elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
172 + elog
173 + fi
174 + done
175 +}