1 |
commit: c87141f9851ea42f46140d19bc8979225a8f5aa2 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 04:58:13 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 04:58:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c87141f9 |
7 |
|
8 |
app-admin/puppet: add 5.5.20 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
app-admin/puppet/Manifest | 1 + |
14 |
app-admin/puppet/puppet-5.5.20.ebuild | 140 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 141 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
18 |
index 50353f784eb..beee569ac65 100644 |
19 |
--- a/app-admin/puppet/Manifest |
20 |
+++ b/app-admin/puppet/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST puppet-5.5.19.tar.gz 2993740 BLAKE2B aa6bde89489279769ee9a1ed5508fb223f7f0153b1b1991970018908eee70ff0816688c702b8dc779d01e1978ea7f9290c80523648730d5408a17674c11345fd SHA512 996fa155ca04c8c3c96c29cf65cd24eaf9e19e89fcf85345509dbd3673b28c263df5b62d6f016b8ac1c1da8ed86f0acf3100eae2656252bb10c542972db81de3 |
23 |
+DIST puppet-5.5.20.tar.gz 2995117 BLAKE2B f147be28967da748bf8d5f7250eae9045caafaa3925f850cc0a77acc19a6a47ed92d4ec81278334608839f6f8c83cab19324f2753bc05d3a042a3bfaccb72a46 SHA512 83b8f234697e13d6fd8ac16634fff4e4adfece70858c32c1001925c71cc4d9a482da1880c27c08e796facb46d5d17889f9521121a69cb49e160e3c031ad564c4 |
24 |
DIST puppet-6.14.0.tar.gz 2842351 BLAKE2B db9a467d8e0f4f25d45c2f735ee9d11ac6ed4e47c16b95ded3ff9f1c5055ea866735bcda27c19c2988035d9592035e433ef0d79a19781c99f4e97388edf46b93 SHA512 066ad8de6393cb58b1f92fae450dc72dabcbe912cdbb3417848a66955fe17696a68abf67d86b107a2b1c54e7037d38da7264a9234a8833b56065c8e407ff57a4 |
25 |
|
26 |
diff --git a/app-admin/puppet/puppet-5.5.20.ebuild b/app-admin/puppet/puppet-5.5.20.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..92e56e9b375 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/puppet/puppet-5.5.20.ebuild |
31 |
@@ -0,0 +1,140 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
40 |
+ |
41 |
+RUBY_FAKEGEM_TASK_DOC="doc:all" |
42 |
+ |
43 |
+RUBY_FAKEGEM_EXTRAINSTALL="locales" |
44 |
+ |
45 |
+inherit ruby-fakegem eapi7-ver |
46 |
+ |
47 |
+DESCRIPTION="A system automation and configuration management software." |
48 |
+HOMEPAGE="https://puppet.com/" |
49 |
+SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="Apache-2.0 GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~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-3.2.1:0 |
59 |
+ >=dev-ruby/facter-3.0.0 |
60 |
+ >=dev-ruby/fast_gettext-1.1.2:0 |
61 |
+ >=dev-ruby/locale-2.1:0 |
62 |
+ >=dev-ruby/multi_json-1.10:0 |
63 |
+ augeas? ( dev-ruby/ruby-augeas ) |
64 |
+ diff? ( dev-ruby/diff-lcs ) |
65 |
+ doc? ( dev-ruby/rdoc ) |
66 |
+ ldap? ( dev-ruby/ruby-ldap ) |
67 |
+ shadow? ( dev-ruby/ruby-shadow ) |
68 |
+ sqlite? ( dev-ruby/sqlite3 ) |
69 |
+ virtual/ruby-ssl |
70 |
+ dev-ruby/hocon" |
71 |
+ |
72 |
+ruby_add_bdepend " |
73 |
+ doc? ( dev-ruby/yard ) |
74 |
+ test? ( |
75 |
+ dev-ruby/mocha |
76 |
+ dev-ruby/rack |
77 |
+ dev-ruby/rspec-its |
78 |
+ )" |
79 |
+# this should go in the above lists, but isn't because of test deps not being keyworded |
80 |
+# dev-ruby/rspec-collection_matchers |
81 |
+ |
82 |
+RDEPEND+=" ${RDEPEND} |
83 |
+ rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
84 |
+ selinux? ( |
85 |
+ sys-libs/libselinux[ruby] |
86 |
+ sec-policy/selinux-puppet |
87 |
+ ) |
88 |
+ vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
89 |
+ >=app-portage/eix-0.18.0 |
90 |
+ acct-user/puppet |
91 |
+ acct-group/puppet" |
92 |
+PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
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 |
+ # fix systemd path |
99 |
+ eapply -p0 "${FILESDIR}/puppet-systemd.patch" |
100 |
+ |
101 |
+ # Avoid specs that can only run in the puppet.git repository. This |
102 |
+ # should be narrowed down to the specific specs. |
103 |
+ rm spec/integration/parser/compiler_spec.rb || die |
104 |
+ |
105 |
+ # Avoid failing spec that need further investigation. |
106 |
+ rm spec/unit/module_tool/metadata_spec.rb || die |
107 |
+} |
108 |
+ |
109 |
+each_ruby_install() { |
110 |
+ each_fakegem_install |
111 |
+# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" |
112 |
+} |
113 |
+ |
114 |
+all_ruby_install() { |
115 |
+ all_fakegem_install |
116 |
+ |
117 |
+ # systemd stuffs |
118 |
+ insinto /usr/lib/systemd/system |
119 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
120 |
+ |
121 |
+ # tmpfiles stuff |
122 |
+ insinto /usr/lib/tmpfiles.d |
123 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
124 |
+ |
125 |
+ # openrc init stuff |
126 |
+ newinitd "${FILESDIR}"/puppet.init-4.x puppet |
127 |
+ newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster |
128 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
129 |
+ |
130 |
+ keepdir /etc/puppetlabs/puppet/ssl |
131 |
+ |
132 |
+ keepdir /var/lib/puppet/facts |
133 |
+ keepdir /var/lib/puppet/files |
134 |
+ fowners -R puppet:puppet /var/lib/puppet |
135 |
+ |
136 |
+ fperms 0750 /var/lib/puppet |
137 |
+ |
138 |
+ fperms 0750 /etc/puppetlabs |
139 |
+ fperms 0750 /etc/puppetlabs/puppet |
140 |
+ fperms 0750 /etc/puppetlabs/puppet/ssl |
141 |
+ fowners -R :puppet /etc/puppetlabs |
142 |
+ fowners -R :puppet /var/lib/puppet |
143 |
+ |
144 |
+ if use ldap ; then |
145 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
146 |
+ fi |
147 |
+ |
148 |
+ # ext and examples files |
149 |
+ for f in $(find ext examples -type f) ; do |
150 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
151 |
+ done |
152 |
+} |
153 |
+ |
154 |
+pkg_postinst() { |
155 |
+ elog |
156 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
157 |
+ elog "cause puppet to hang while installing packages." |
158 |
+ elog |
159 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
160 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
161 |
+ elog |
162 |
+ |
163 |
+ for v in ${REPLACING_VERSIONS}; do |
164 |
+ if [ "$(ver_cut 1 "$v")" -eq "4" ]; then |
165 |
+ elog |
166 |
+ elog "Please see the following url for the release notes for puppet-5" |
167 |
+ elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x" |
168 |
+ elog |
169 |
+ fi |
170 |
+ done |
171 |
+} |