1 |
commit: 10029c06d85345d721d7ca5fd5398cf6c0266249 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 11 06:50:27 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 11 07:16:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10029c06 |
7 |
|
8 |
app-admin/puppet: add 5.5.19 |
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.19.ebuild | 141 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 142 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
18 |
index f4906e50dba..299d6a50be0 100644 |
19 |
--- a/app-admin/puppet/Manifest |
20 |
+++ b/app-admin/puppet/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST puppet-5.5.17.tar.gz 3090402 BLAKE2B 7722ec4196ee766c29eddd7dc73539a4a5a0e4cc781a84af25210488328b5ae01178ca64e8eef14152cbeca06dc8fe145b5e39ce6a120d7689fc32cbbbe16f9f SHA512 95c6cd836a9f732ccfe2d8b83096e79c32428c43390c0826663f896ca1388e1fe3b55d93a5a7548831e95de85247db717866c36786d591e207341c734d70168b |
23 |
DIST puppet-5.5.18.tar.gz 2984835 BLAKE2B d5a1d023d3d26e04ccc81efa772131c06fc7ace8ec59c7efa97bddb775bb492d3256290824a87d54df5c28862cbba98c58cf41bb4a0c27a4128701652c06eee0 SHA512 86f210ee783ca36340b22463cd4ac237d8dc1c6a35526530af0696bb3f0373b0b22f690d3e3f8e31655ea182a33eb60b66b5826bd6c4d1b0059a8e46152416e6 |
24 |
+DIST puppet-5.5.19.tar.gz 2993740 BLAKE2B aa6bde89489279769ee9a1ed5508fb223f7f0153b1b1991970018908eee70ff0816688c702b8dc779d01e1978ea7f9290c80523648730d5408a17674c11345fd SHA512 996fa155ca04c8c3c96c29cf65cd24eaf9e19e89fcf85345509dbd3673b28c263df5b62d6f016b8ac1c1da8ed86f0acf3100eae2656252bb10c542972db81de3 |
25 |
DIST puppet-6.13.0.tar.gz 2837171 BLAKE2B dc64b23fa2d5fcb978cfb03bf67f89ff0ae084883320f267bbb7fd613fd8948193658d717ecbf30f73e313c4530f872617a186675547509db9492589e4f226d6 SHA512 fb7abc9cf79a3de1daf597c0c1768ab4abcc11a236beb8294c5fc69d07ae23149216f7c8d33599365d3c10485f3fb3f8f5fe492e0e7312d19ffdaa0bc8b87d0c |
26 |
DIST puppet-6.14.0.tar.gz 2842351 BLAKE2B db9a467d8e0f4f25d45c2f735ee9d11ac6ed4e47c16b95ded3ff9f1c5055ea866735bcda27c19c2988035d9592035e433ef0d79a19781c99f4e97388edf46b93 SHA512 066ad8de6393cb58b1f92fae450dc72dabcbe912cdbb3417848a66955fe17696a68abf67d86b107a2b1c54e7037d38da7264a9234a8833b56065c8e407ff57a4 |
27 |
|
28 |
diff --git a/app-admin/puppet/puppet-5.5.19.ebuild b/app-admin/puppet/puppet-5.5.19.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..003415b6fd8 |
31 |
--- /dev/null |
32 |
+++ b/app-admin/puppet/puppet-5.5.19.ebuild |
33 |
@@ -0,0 +1,141 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="6" |
38 |
+ |
39 |
+USE_RUBY="ruby24 ruby25 ruby26" |
40 |
+ |
41 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
42 |
+ |
43 |
+RUBY_FAKEGEM_TASK_DOC="doc:all" |
44 |
+ |
45 |
+RUBY_FAKEGEM_EXTRAINSTALL="locales" |
46 |
+ |
47 |
+inherit eutils user ruby-fakegem eapi7-ver |
48 |
+ |
49 |
+DESCRIPTION="A system automation and configuration management software." |
50 |
+HOMEPAGE="https://puppet.com/" |
51 |
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="Apache-2.0 GPL-2" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
56 |
+IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax" |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+ruby_add_rdepend " |
60 |
+ dev-ruby/hiera |
61 |
+ dev-ruby/json:= |
62 |
+ >=dev-ruby/facter-3.0.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 |
+PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ enewgroup puppet |
94 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
95 |
+} |
96 |
+ |
97 |
+all_ruby_prepare() { |
98 |
+ # Avoid spec that require unpackaged json-schema. |
99 |
+ rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
100 |
+ |
101 |
+ # fix systemd path |
102 |
+ epatch "${FILESDIR}/puppet-systemd.patch" |
103 |
+ |
104 |
+ # Avoid specs that can only run in the puppet.git repository. This |
105 |
+ # should be narrowed down to the specific specs. |
106 |
+ rm spec/integration/parser/compiler_spec.rb || die |
107 |
+ |
108 |
+ # Avoid failing spec that need further investigation. |
109 |
+ rm spec/unit/module_tool/metadata_spec.rb || die |
110 |
+} |
111 |
+ |
112 |
+each_ruby_install() { |
113 |
+ each_fakegem_install |
114 |
+# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" |
115 |
+} |
116 |
+ |
117 |
+all_ruby_install() { |
118 |
+ all_fakegem_install |
119 |
+ |
120 |
+ # systemd stuffs |
121 |
+ insinto /usr/lib/systemd/system |
122 |
+ doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
123 |
+ |
124 |
+ # tmpfiles stuff |
125 |
+ insinto /usr/lib/tmpfiles.d |
126 |
+ newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
127 |
+ |
128 |
+ # openrc init stuff |
129 |
+ newinitd "${FILESDIR}"/puppet.init-4.x puppet |
130 |
+ newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster |
131 |
+ newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
132 |
+ |
133 |
+ keepdir /etc/puppetlabs/puppet/ssl |
134 |
+ |
135 |
+ keepdir /var/lib/puppet/facts |
136 |
+ keepdir /var/lib/puppet/files |
137 |
+ fowners -R puppet:puppet /var/lib/puppet |
138 |
+ |
139 |
+ fperms 0750 /var/lib/puppet |
140 |
+ |
141 |
+ fperms 0750 /etc/puppetlabs |
142 |
+ fperms 0750 /etc/puppetlabs/puppet |
143 |
+ fperms 0750 /etc/puppetlabs/puppet/ssl |
144 |
+ fowners -R :puppet /etc/puppetlabs |
145 |
+ fowners -R :puppet /var/lib/puppet |
146 |
+ |
147 |
+ if use ldap ; then |
148 |
+ insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
149 |
+ fi |
150 |
+ |
151 |
+ # ext and examples files |
152 |
+ for f in $(find ext examples -type f) ; do |
153 |
+ docinto "$(dirname ${f})"; dodoc "${f}" |
154 |
+ done |
155 |
+} |
156 |
+ |
157 |
+pkg_postinst() { |
158 |
+ elog |
159 |
+ elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
160 |
+ elog "cause puppet to hang while installing packages." |
161 |
+ elog |
162 |
+ elog "Portage Puppet module with Gentoo-specific resources:" |
163 |
+ elog "http://forge.puppetlabs.com/gentoo/portage" |
164 |
+ elog |
165 |
+ |
166 |
+ for v in ${REPLACING_VERSIONS}; do |
167 |
+ if [ "$(ver_cut 1 "$v")" -eq "4" ]; then |
168 |
+ elog |
169 |
+ elog "Please see the following url for the release notes for puppet-5" |
170 |
+ elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x" |
171 |
+ elog |
172 |
+ fi |
173 |
+ done |
174 |
+} |