1 |
prometheanfire 15/04/30 17:23:27 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: keystone-2015.1.0.ebuild |
5 |
keystone-2015.1.9999.ebuild |
6 |
Log: |
7 |
kilo release |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 sys-auth/keystone/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/metadata.xml?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/metadata.xml?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/metadata.xml?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-auth/keystone/metadata.xml,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- metadata.xml 7 Oct 2013 14:51:48 -0000 1.2 |
25 |
+++ metadata.xml 30 Apr 2015 17:23:27 -0000 1.3 |
26 |
@@ -1,6 +1,10 @@ |
27 |
<?xml version="1.0" encoding="UTF-8"?> |
28 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
29 |
<pkgmetadata> |
30 |
+ <use> |
31 |
+ <flag name="memcached">Installs dependencies needed for using memcached as a backend</flag> |
32 |
+ <flag name="mongo">Installs dependencies needed for using mongo as a backend</flag> |
33 |
+ </use> |
34 |
<herd>openstack</herd> |
35 |
<maintainer> |
36 |
<email>prometheanfire@g.o</email> |
37 |
|
38 |
|
39 |
|
40 |
1.94 sys-auth/keystone/ChangeLog |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?rev=1.94&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?rev=1.94&content-type=text/plain |
44 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?r1=1.93&r2=1.94 |
45 |
|
46 |
Index: ChangeLog |
47 |
=================================================================== |
48 |
RCS file: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v |
49 |
retrieving revision 1.93 |
50 |
retrieving revision 1.94 |
51 |
diff -u -r1.93 -r1.94 |
52 |
--- ChangeLog 14 Apr 2015 16:10:06 -0000 1.93 |
53 |
+++ ChangeLog 30 Apr 2015 17:23:27 -0000 1.94 |
54 |
@@ -1,6 +1,13 @@ |
55 |
# ChangeLog for sys-auth/keystone |
56 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.93 2015/04/14 16:10:06 prometheanfire Exp $ |
58 |
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.94 2015/04/30 17:23:27 prometheanfire Exp $ |
59 |
+ |
60 |
+*keystone-2015.1.0 (30 Apr 2015) |
61 |
+*keystone-2015.1.9999 (30 Apr 2015) |
62 |
+ |
63 |
+ 30 Apr 2015; Matthew Thode <prometheanfire@g.o> |
64 |
+ +keystone-2015.1.0.ebuild, +keystone-2015.1.9999.ebuild, metadata.xml: |
65 |
+ kilo release |
66 |
|
67 |
14 Apr 2015; Matthew Thode <prometheanfire@g.o> |
68 |
keystone-2014.2.9999.ebuild: |
69 |
|
70 |
|
71 |
|
72 |
1.1 sys-auth/keystone/keystone-2015.1.0.ebuild |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2015.1.0.ebuild?rev=1.1&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2015.1.0.ebuild?rev=1.1&content-type=text/plain |
76 |
|
77 |
Index: keystone-2015.1.0.ebuild |
78 |
=================================================================== |
79 |
# Copyright 1999-2015 Gentoo Foundation |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2015.1.0.ebuild,v 1.1 2015/04/30 17:23:27 prometheanfire Exp $ |
82 |
|
83 |
EAPI=5 |
84 |
|
85 |
PYTHON_COMPAT=( python2_7 ) |
86 |
|
87 |
inherit distutils-r1 git-2 user |
88 |
|
89 |
DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
90 |
HOMEPAGE="https://launchpad.net/keystone" |
91 |
SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz" |
92 |
|
93 |
LICENSE="Apache-2.0" |
94 |
SLOT="0" |
95 |
KEYWORDS="" |
96 |
IUSE="+sqlite memcached mongo mysql postgres ldap test" |
97 |
REQUIRED_USE="|| ( mysql postgres sqlite )" |
98 |
|
99 |
DEPEND=" |
100 |
dev-python/setuptools[${PYTHON_USEDEP}] |
101 |
>=dev-python/pbr-0.8[${PYTHON_USEDEP}] |
102 |
<dev-python/pbr-1.0[${PYTHON_USEDEP}] |
103 |
test? ( |
104 |
${RDEPEND} |
105 |
>=dev-python/hacking-0.10.0[${PYTHON_USEDEP}] |
106 |
<dev-python/hacking-0.11[${PYTHON_USEDEP}] |
107 |
>=dev-python/bashate-0.2[${PYTHON_USEDEP}] |
108 |
dev-lang/python[sqlite] |
109 |
memcached? ( |
110 |
>=dev-python/python-memcached-1.48[${PYTHON_USEDEP}] |
111 |
) |
112 |
mongo? ( |
113 |
>=dev-python/pymongo-2.5[${PYTHON_USEDEP}] |
114 |
<dev-python/pymongo-3.0[${PYTHON_USEDEP}] |
115 |
) |
116 |
ldap? ( |
117 |
dev-python/python-ldap[${PYTHON_USEDEP}] |
118 |
>=dev-python/ldappool-1.0[${PYTHON_USEDEP}] |
119 |
) |
120 |
>=dev-python/coverage-3.6[${PYTHON_USEDEP}] |
121 |
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] |
122 |
>=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
123 |
>=dev-python/mock-1.0[${PYTHON_USEDEP}] |
124 |
>=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}] |
125 |
<dev-python/oslotest-1.6.0[${PYTHON_USEDEP}] |
126 |
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
127 |
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
128 |
<dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
129 |
>=dev-python/webtest-2.0[${PYTHON_USEDEP}] |
130 |
>=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] |
131 |
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
132 |
>=dev-python/testtools-0.9.36[${PYTHON_USEDEP}] |
133 |
!~dev-python/testtools-1.2.0[${PYTHON_USEDEP}] |
134 |
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] |
135 |
<dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}] |
136 |
>=dev-python/tempest-lib-0.4.0[${PYTHON_USEDEP}] |
137 |
)" |
138 |
RDEPEND=" |
139 |
>=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] |
140 |
>=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] |
141 |
!~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] |
142 |
>=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
143 |
>=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}] |
144 |
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
145 |
dev-python/paste[${PYTHON_USEDEP}] |
146 |
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
147 |
!~dev-python/routes-2.0[${PYTHON_USEDEP}] |
148 |
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
149 |
sqlite? ( |
150 |
>=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}] |
151 |
<=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] |
152 |
) |
153 |
mysql? ( |
154 |
dev-python/mysql-python |
155 |
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] |
156 |
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] |
157 |
) |
158 |
postgres? ( |
159 |
dev-python/psycopg:2 |
160 |
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] |
161 |
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] |
162 |
) |
163 |
>=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}] |
164 |
dev-python/passlib[${PYTHON_USEDEP}] |
165 |
>=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] |
166 |
>=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}] |
167 |
<dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}] |
168 |
>=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}] |
169 |
<dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}] |
170 |
>=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}] |
171 |
<dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}] |
172 |
>=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}] |
173 |
<dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}] |
174 |
>=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}] |
175 |
<dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}] |
176 |
>=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}] |
177 |
<dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}] |
178 |
>=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] |
179 |
<dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}] |
180 |
>=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}] |
181 |
<dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}] |
182 |
>=dev-python/oslo-middleware-1.0.0[${PYTHON_USEDEP}] |
183 |
<dev-python/oslo-middleware-1.1.0[${PYTHON_USEDEP}] |
184 |
>=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}] |
185 |
<dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}] |
186 |
>=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] |
187 |
<dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}] |
188 |
>=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}] |
189 |
<dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}] |
190 |
>=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}] |
191 |
dev-python/pysaml2[${PYTHON_USEDEP}] |
192 |
>=dev-python/dogpile-cache-0.5.3[${PYTHON_USEDEP}] |
193 |
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
194 |
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
195 |
>=dev-python/pycadf-0.8.0[${PYTHON_USEDEP}] |
196 |
<dev-python/pycadf-0.9.0[${PYTHON_USEDEP}] |
197 |
dev-python/posix_ipc[${PYTHON_USEDEP}] |
198 |
>=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]" |
199 |
|
200 |
PATCHES=( |
201 |
) |
202 |
|
203 |
pkg_setup() { |
204 |
enewgroup keystone |
205 |
enewuser keystone -1 -1 /var/lib/keystone keystone |
206 |
} |
207 |
|
208 |
python_prepare_all() { |
209 |
# it's in git, but not in the tarball..... |
210 |
mkdir -p ${PN}/tests/tmp/ || die |
211 |
cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die |
212 |
distutils-r1_python_prepare_all |
213 |
} |
214 |
|
215 |
# Ignore (naughty) test_.py files & 1 test that connect to the network |
216 |
#-I 'test_keystoneclient*' \ |
217 |
python_test() { |
218 |
nosetests -I 'test_keystoneclient*' \ |
219 |
-e test_static_translated_string_is_Message \ |
220 |
-e test_get_token_id_error_handling \ |
221 |
-e test_provider_token_expiration_validation \ |
222 |
-e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7" |
223 |
} |
224 |
|
225 |
python_install() { |
226 |
distutils-r1_python_install |
227 |
newconfd "${FILESDIR}/keystone.confd" keystone |
228 |
newinitd "${FILESDIR}/keystone.initd" keystone |
229 |
|
230 |
diropts -m 0750 |
231 |
keepdir /etc/keystone /var/log/keystone |
232 |
insinto /etc/keystone |
233 |
doins etc/keystone.conf.sample etc/logging.conf.sample |
234 |
doins etc/default_catalog.templates etc/policy.json |
235 |
doins etc/policy.v3cloudsample.json etc/keystone-paste.ini |
236 |
|
237 |
fowners keystone:keystone /etc/keystone /var/log/keystone |
238 |
} |
239 |
|
240 |
pkg_postinst() { |
241 |
elog "You might want to run:" |
242 |
elog "emerge --config =${CATEGORY}/${PF}" |
243 |
elog "if this is a new install." |
244 |
elog "If you have not already configured your openssl installation" |
245 |
elog "please do it by modifying /etc/ssl/openssl.cnf" |
246 |
elog "BEFORE issuing the configuration command." |
247 |
elog "Otherwise default values will be used." |
248 |
} |
249 |
|
250 |
pkg_config() { |
251 |
if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then |
252 |
einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..." |
253 |
read |
254 |
"${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone |
255 |
else |
256 |
einfo "keystone PKI certificates directory already present, skipping configuration" |
257 |
fi |
258 |
} |
259 |
|
260 |
|
261 |
|
262 |
1.1 sys-auth/keystone/keystone-2015.1.9999.ebuild |
263 |
|
264 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2015.1.9999.ebuild?rev=1.1&view=markup |
265 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2015.1.9999.ebuild?rev=1.1&content-type=text/plain |
266 |
|
267 |
Index: keystone-2015.1.9999.ebuild |
268 |
=================================================================== |
269 |
# Copyright 1999-2015 Gentoo Foundation |
270 |
# Distributed under the terms of the GNU General Public License v2 |
271 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2015.1.9999.ebuild,v 1.1 2015/04/30 17:23:27 prometheanfire Exp $ |
272 |
|
273 |
EAPI=5 |
274 |
|
275 |
PYTHON_COMPAT=( python2_7 ) |
276 |
|
277 |
inherit distutils-r1 git-2 user |
278 |
|
279 |
DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
280 |
HOMEPAGE="https://launchpad.net/keystone" |
281 |
EGIT_REPO_URI="https://github.com/openstack/keystone.git" |
282 |
EGIT_BRANCH="stable/kilo" |
283 |
|
284 |
LICENSE="Apache-2.0" |
285 |
SLOT="0" |
286 |
KEYWORDS="" |
287 |
IUSE="+sqlite memcached mongo mysql postgres ldap test" |
288 |
REQUIRED_USE="|| ( mysql postgres sqlite )" |
289 |
|
290 |
DEPEND=" |
291 |
dev-python/setuptools[${PYTHON_USEDEP}] |
292 |
>=dev-python/pbr-0.8[${PYTHON_USEDEP}] |
293 |
<dev-python/pbr-1.0[${PYTHON_USEDEP}] |
294 |
test? ( |
295 |
${RDEPEND} |
296 |
>=dev-python/hacking-0.10.0[${PYTHON_USEDEP}] |
297 |
<dev-python/hacking-0.11[${PYTHON_USEDEP}] |
298 |
>=dev-python/bashate-0.2[${PYTHON_USEDEP}] |
299 |
dev-lang/python[sqlite] |
300 |
memcached? ( |
301 |
>=dev-python/python-memcached-1.48[${PYTHON_USEDEP}] |
302 |
) |
303 |
mongo? ( |
304 |
>=dev-python/pymongo-2.5[${PYTHON_USEDEP}] |
305 |
<dev-python/pymongo-3.0[${PYTHON_USEDEP}] |
306 |
) |
307 |
ldap? ( |
308 |
dev-python/python-ldap[${PYTHON_USEDEP}] |
309 |
>=dev-python/ldappool-1.0[${PYTHON_USEDEP}] |
310 |
) |
311 |
>=dev-python/coverage-3.6[${PYTHON_USEDEP}] |
312 |
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] |
313 |
>=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
314 |
>=dev-python/mock-1.0[${PYTHON_USEDEP}] |
315 |
>=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}] |
316 |
<dev-python/oslotest-1.6.0[${PYTHON_USEDEP}] |
317 |
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
318 |
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
319 |
<dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
320 |
>=dev-python/webtest-2.0[${PYTHON_USEDEP}] |
321 |
>=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] |
322 |
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
323 |
>=dev-python/testtools-0.9.36[${PYTHON_USEDEP}] |
324 |
!~dev-python/testtools-1.2.0[${PYTHON_USEDEP}] |
325 |
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] |
326 |
<dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}] |
327 |
>=dev-python/tempest-lib-0.4.0[${PYTHON_USEDEP}] |
328 |
)" |
329 |
RDEPEND=" |
330 |
>=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] |
331 |
>=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] |
332 |
!~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] |
333 |
>=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
334 |
>=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}] |
335 |
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
336 |
dev-python/paste[${PYTHON_USEDEP}] |
337 |
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
338 |
!~dev-python/routes-2.0[${PYTHON_USEDEP}] |
339 |
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
340 |
sqlite? ( |
341 |
>=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}] |
342 |
<=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] |
343 |
) |
344 |
mysql? ( |
345 |
dev-python/mysql-python |
346 |
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] |
347 |
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] |
348 |
) |
349 |
postgres? ( |
350 |
dev-python/psycopg:2 |
351 |
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}] |
352 |
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}] |
353 |
) |
354 |
>=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}] |
355 |
dev-python/passlib[${PYTHON_USEDEP}] |
356 |
>=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] |
357 |
>=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}] |
358 |
<dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}] |
359 |
>=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}] |
360 |
<dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}] |
361 |
>=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}] |
362 |
<dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}] |
363 |
>=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}] |
364 |
<dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}] |
365 |
>=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}] |
366 |
<dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}] |
367 |
>=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}] |
368 |
<dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}] |
369 |
>=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] |
370 |
<dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}] |
371 |
>=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}] |
372 |
<dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}] |
373 |
>=dev-python/oslo-middleware-1.0.0[${PYTHON_USEDEP}] |
374 |
<dev-python/oslo-middleware-1.1.0[${PYTHON_USEDEP}] |
375 |
>=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}] |
376 |
<dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}] |
377 |
>=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] |
378 |
<dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}] |
379 |
>=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}] |
380 |
<dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}] |
381 |
>=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}] |
382 |
dev-python/pysaml2[${PYTHON_USEDEP}] |
383 |
>=dev-python/dogpile-cache-0.5.3[${PYTHON_USEDEP}] |
384 |
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
385 |
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
386 |
>=dev-python/pycadf-0.8.0[${PYTHON_USEDEP}] |
387 |
<dev-python/pycadf-0.9.0[${PYTHON_USEDEP}] |
388 |
dev-python/posix_ipc[${PYTHON_USEDEP}] |
389 |
>=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]" |
390 |
|
391 |
PATCHES=( |
392 |
) |
393 |
|
394 |
pkg_setup() { |
395 |
enewgroup keystone |
396 |
enewuser keystone -1 -1 /var/lib/keystone keystone |
397 |
} |
398 |
|
399 |
python_prepare_all() { |
400 |
# it's in git, but not in the tarball..... |
401 |
mkdir -p ${PN}/tests/tmp/ || die |
402 |
cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die |
403 |
distutils-r1_python_prepare_all |
404 |
} |
405 |
|
406 |
# Ignore (naughty) test_.py files & 1 test that connect to the network |
407 |
#-I 'test_keystoneclient*' \ |
408 |
python_test() { |
409 |
nosetests -I 'test_keystoneclient*' \ |
410 |
-e test_static_translated_string_is_Message \ |
411 |
-e test_get_token_id_error_handling \ |
412 |
-e test_provider_token_expiration_validation \ |
413 |
-e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7" |
414 |
} |
415 |
|
416 |
python_install() { |
417 |
distutils-r1_python_install |
418 |
newconfd "${FILESDIR}/keystone.confd" keystone |
419 |
newinitd "${FILESDIR}/keystone.initd" keystone |
420 |
|
421 |
diropts -m 0750 |
422 |
keepdir /etc/keystone /var/log/keystone |
423 |
insinto /etc/keystone |
424 |
doins etc/keystone.conf.sample etc/logging.conf.sample |
425 |
doins etc/default_catalog.templates etc/policy.json |
426 |
doins etc/policy.v3cloudsample.json etc/keystone-paste.ini |
427 |
|
428 |
fowners keystone:keystone /etc/keystone /var/log/keystone |
429 |
} |
430 |
|
431 |
pkg_postinst() { |
432 |
elog "You might want to run:" |
433 |
elog "emerge --config =${CATEGORY}/${PF}" |
434 |
elog "if this is a new install." |
435 |
elog "If you have not already configured your openssl installation" |
436 |
elog "please do it by modifying /etc/ssl/openssl.cnf" |
437 |
elog "BEFORE issuing the configuration command." |
438 |
elog "Otherwise default values will be used." |
439 |
} |
440 |
|
441 |
pkg_config() { |
442 |
if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then |
443 |
einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..." |
444 |
read |
445 |
"${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone |
446 |
else |
447 |
einfo "keystone PKI certificates directory already present, skipping configuration" |
448 |
fi |
449 |
} |