1 |
commit: 00564afb395d7f0c3a2b23368a53b6ad2823145e |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 13 19:32:31 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 13 19:40:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00564afb |
7 |
|
8 |
app-admin/puppet: 5.5.2 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
app-admin/puppet/Manifest | 1 + |
13 |
app-admin/puppet/puppet-5.5.2.ebuild | 144 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 145 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest |
17 |
index be4274161a3..d5a515b08d2 100644 |
18 |
--- a/app-admin/puppet/Manifest |
19 |
+++ b/app-admin/puppet/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST puppet-4.10.11.tar.gz 3022878 BLAKE2B d3eec840bb1c46e0dfbbc9dad598b362049a76c7ee60b4ff314e7ba2ce19613f834baced94afbbf499b513391107c4229be5f40c275d0724b200358722db0e96 SHA512 5eaac8bd973d0013e7774c9bda81524332f2b3b0177c04e78554bfb0815697b4b296d5dd11a04f7fad782ad975b350b149b1cd97fc5f06974952314f163f1b40 |
22 |
DIST puppet-5.5.1.tar.gz 3035639 BLAKE2B 2930ca9eb928d7c6a69ea76673fc4d002e230bf6dbcd28764e8d5bd504ae11326dc856ed64480e13c9eb1d683ad5e8ef64fc9e217942b59d90c6a0bc98e0197c SHA512 20bf7094193f30cfc7a91244275fc79eef0296036ffbc6bbe405e9ca75123b722be6855c746ef8cd35f80bd7a7308408a9205d064f0f910e11877e4db0ebdabc |
23 |
+DIST puppet-5.5.2.tar.gz 3036714 BLAKE2B 8be2c2fa7b66a2fd8d413f01afad22f7e0724c31a0a92b777f1b61e2139f14f3284a11cfb52fea8833556208d8bb3e99f20b1ed4fa2816809eaa4b92fa730cd5 SHA512 4995b6b6d1b75d68dd4c8eba37585c0afa88f9c6b78857e837886ea72b373c884182adf8791e0c9f2a5079f22681a40073e512e6b727ecfcaff463c8024cf5db |
24 |
|
25 |
diff --git a/app-admin/puppet/puppet-5.5.2.ebuild b/app-admin/puppet/puppet-5.5.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1bbef6e5348 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/puppet/puppet-5.5.2.ebuild |
30 |
@@ -0,0 +1,144 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+USE_RUBY="ruby22 ruby23 ruby24" |
37 |
+ |
38 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
39 |
+ |
40 |
+RUBY_FAKEGEM_TASK_DOC="doc:all" |
41 |
+ |
42 |
+RUBY_FAKEGEM_EXTRAINSTALL="locales" |
43 |
+ |
44 |
+inherit eutils user ruby-fakegem versionator |
45 |
+ |
46 |
+DESCRIPTION="A system automation and configuration management software." |
47 |
+HOMEPAGE="http://puppetlabs.com/" |
48 |
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0 GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
53 |
+IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax" |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+ruby_add_rdepend " |
57 |
+ dev-ruby/hiera |
58 |
+ dev-ruby/json:= |
59 |
+ >=dev-ruby/facter-3.0.0 |
60 |
+ augeas? ( dev-ruby/ruby-augeas ) |
61 |
+ diff? ( dev-ruby/diff-lcs ) |
62 |
+ doc? ( dev-ruby/rdoc ) |
63 |
+ ldap? ( dev-ruby/ruby-ldap ) |
64 |
+ shadow? ( dev-ruby/ruby-shadow ) |
65 |
+ sqlite? ( dev-ruby/sqlite3 ) |
66 |
+ virtual/ruby-ssl |
67 |
+ dev-ruby/hocon" |
68 |
+ |
69 |
+ruby_add_bdepend " |
70 |
+ doc? ( dev-ruby/yard ) |
71 |
+ test? ( |
72 |
+ dev-ruby/mocha |
73 |
+ dev-ruby/rack |
74 |
+ dev-ruby/rspec-its |
75 |
+ )" |
76 |
+# this should go in the above lists, but isn't because of test deps not being keyworded |
77 |
+# dev-ruby/rspec-collection_matchers |
78 |
+ |
79 |
+RDEPEND+=" ${RDEPEND} |
80 |
+ rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
81 |
+ selinux? ( |
82 |
+ sys-libs/libselinux[ruby] |
83 |
+ sec-policy/selinux-puppet |
84 |
+ ) |
85 |
+ vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
86 |
+ >=app-portage/eix-0.18.0" |
87 |
+PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
88 |
+ |
89 |
+pkg_setup() { |
90 |
+ enewgroup puppet |
91 |
+ enewuser puppet -1 -1 /var/lib/puppet puppet |
92 |
+} |
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 |
+ # can't be run within portage. |
99 |
+ epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch" |
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 [ "$(get_major_version $v)" = "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 |
+} |