1 |
prometheanfire 15/04/30 01:28:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: puppet-4.0.0-r2.ebuild |
5 |
Removed: puppet-4.0.0-r1.ebuild |
6 |
Log: |
7 |
more fixes for 4.0 |
8 |
|
9 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.218 app-admin/puppet/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.218&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.218&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?r1=1.217&r2=1.218 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v |
21 |
retrieving revision 1.217 |
22 |
retrieving revision 1.218 |
23 |
diff -u -r1.217 -r1.218 |
24 |
--- ChangeLog 28 Apr 2015 20:05:13 -0000 1.217 |
25 |
+++ ChangeLog 30 Apr 2015 01:28:39 -0000 1.218 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-admin/puppet |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.217 2015/04/28 20:05:13 prometheanfire Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.218 2015/04/30 01:28:39 prometheanfire Exp $ |
31 |
+ |
32 |
+*puppet-4.0.0-r2 (30 Apr 2015) |
33 |
+ |
34 |
+ 30 Apr 2015; Matthew Thode <prometheanfire@g.o> +files/puppet.init-4.x, |
35 |
+ +files/puppetmaster.init-4.x, +puppet-4.0.0-r2.ebuild, |
36 |
+ -puppet-4.0.0-r1.ebuild: |
37 |
+ more fixes for 4.0 |
38 |
|
39 |
*puppet-3.7.4-r1 (28 Apr 2015) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-admin/puppet/puppet-4.0.0-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/puppet-4.0.0-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/puppet-4.0.0-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: puppet-4.0.0-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-4.0.0-r2.ebuild,v 1.1 2015/04/30 01:28:39 prometheanfire Exp $ |
54 |
|
55 |
EAPI="5" |
56 |
|
57 |
USE_RUBY="ruby20 ruby21" |
58 |
|
59 |
RUBY_FAKEGEM_RECIPE_TEST="rspec" |
60 |
|
61 |
inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator |
62 |
|
63 |
DESCRIPTION="A system automation and configuration management software" |
64 |
HOMEPAGE="http://puppetlabs.com/" |
65 |
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
66 |
|
67 |
LICENSE="Apache-2.0 GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" |
70 |
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite3 vim-syntax xemacs" |
71 |
|
72 |
ruby_add_rdepend " |
73 |
dev-ruby/hiera |
74 |
>=dev-ruby/rgen-0.6.5 =dev-ruby/rgen-0.6* |
75 |
>=dev-ruby/facter-1.6.2 <dev-ruby/facter-3 |
76 |
dev-ruby/json |
77 |
augeas? ( dev-ruby/ruby-augeas ) |
78 |
diff? ( dev-ruby/diff-lcs ) |
79 |
doc? ( dev-ruby/rdoc ) |
80 |
ldap? ( dev-ruby/ruby-ldap ) |
81 |
shadow? ( dev-ruby/ruby-shadow ) |
82 |
sqlite3? ( dev-ruby/sqlite3 ) |
83 |
virtual/ruby-ssl" |
84 |
|
85 |
DEPEND="${DEPEND} |
86 |
dev-lang/ruby |
87 |
emacs? ( virtual/emacs ) |
88 |
xemacs? ( app-editors/xemacs )" |
89 |
RDEPEND="${RDEPEND} |
90 |
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
91 |
selinux? ( |
92 |
sys-libs/libselinux[ruby] |
93 |
sec-policy/selinux-puppet |
94 |
) |
95 |
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) |
96 |
>=app-portage/eix-0.18.0" |
97 |
|
98 |
SITEFILE="50${PN}-mode-gentoo.el" |
99 |
|
100 |
pkg_setup() { |
101 |
enewgroup puppet |
102 |
enewuser puppet -1 -1 /var/lib/puppet puppet |
103 |
} |
104 |
|
105 |
all_ruby_prepare() { |
106 |
# Avoid spec that require unpackaged json-schema. |
107 |
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die |
108 |
|
109 |
# Avoid specs that can only run in the puppet.git repository. This |
110 |
# should be narrowed down to the specific specs. |
111 |
rm spec/integration/parser/compiler_spec.rb || die |
112 |
|
113 |
# Avoid failing spec that need further investigation. |
114 |
rm spec/unit/module_tool/metadata_spec.rb || die |
115 |
} |
116 |
|
117 |
all_ruby_compile() { |
118 |
if use emacs ; then |
119 |
elisp-compile ext/emacs/puppet-mode.el |
120 |
fi |
121 |
|
122 |
if use xemacs ; then |
123 |
# Create a separate version for xemacs to be able to install |
124 |
# emacs and xemacs in parallel. |
125 |
mkdir ext/xemacs |
126 |
cp ext/emacs/* ext/xemacs/ |
127 |
xemacs-elisp-compile ext/xemacs/puppet-mode.el |
128 |
fi |
129 |
} |
130 |
|
131 |
each_ruby_install() { |
132 |
each_fakegem_install |
133 |
} |
134 |
|
135 |
all_ruby_install() { |
136 |
all_fakegem_install |
137 |
|
138 |
# systemd stuffs |
139 |
insinto /usr/lib/systemd/system |
140 |
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service" |
141 |
doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service" |
142 |
|
143 |
# tmpfiles stuff |
144 |
insinto /usr/lib/tmpfiles.d |
145 |
newins "${FILESDIR}/tmpfiles.d" "puppet.conf" |
146 |
|
147 |
# openrc init stuff |
148 |
newinitd "${FILESDIR}"/puppet.init-4.x puppet |
149 |
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster |
150 |
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
151 |
|
152 |
keepdir /etc/puppetlabs/puppet/ssl |
153 |
|
154 |
keepdir /var/lib/puppet/facts |
155 |
keepdir /var/lib/puppet/files |
156 |
fowners -R puppet:puppet /var/lib/puppet |
157 |
|
158 |
fperms 0750 /var/lib/puppet |
159 |
|
160 |
fperms 0750 /etc/puppetlabs |
161 |
fperms 0750 /etc/puppetlabs/puppet |
162 |
fperms 0750 /etc/puppetlabs/puppet/ssl |
163 |
fowners -R :puppet /etc/puppetlabs |
164 |
fowners -R :puppet /var/lib/puppet |
165 |
|
166 |
if use emacs ; then |
167 |
elisp-install ${PN} ext/emacs/puppet-mode.el* |
168 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
169 |
fi |
170 |
|
171 |
if use xemacs ; then |
172 |
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el* |
173 |
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
174 |
fi |
175 |
|
176 |
if use ldap ; then |
177 |
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
178 |
fi |
179 |
|
180 |
# ext and examples files |
181 |
for f in $(find ext examples -type f) ; do |
182 |
docinto "$(dirname ${f})"; dodoc "${f}" |
183 |
done |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
elog |
188 |
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
189 |
elog "cause puppet to hang while installing packages." |
190 |
elog |
191 |
elog "Portage Puppet module with Gentoo-specific resources:" |
192 |
elog "http://forge.puppetlabs.com/gentoo/portage" |
193 |
elog |
194 |
|
195 |
if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then |
196 |
elog |
197 |
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to" |
198 |
elog "/etc/puppetlabs/puppet" |
199 |
elog "Also, puppet now uses config directories for modules and manifests." |
200 |
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html" |
201 |
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html" |
202 |
elog "for more information." |
203 |
elog |
204 |
fi |
205 |
|
206 |
use emacs && elisp-site-regen |
207 |
use xemacs && xemacs-elisp-site-regen |
208 |
} |
209 |
|
210 |
pkg_postrm() { |
211 |
use emacs && elisp-site-regen |
212 |
use xemacs && xemacs-elisp-site-regen |
213 |
} |