Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/keystone/
Date: Thu, 06 Oct 2016 18:07:14
Message-Id: 1475777058.31682da3624ed45b0ab631c7e88309942245aca7.prometheanfire@gentoo
1 commit: 31682da3624ed45b0ab631c7e88309942245aca7
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 6 18:04:18 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 6 18:04:18 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31682da3
7
8 sys-auth/keystone: NEWTON :D
9
10 Package-Manager: portage-2.3.0
11
12 sys-auth/keystone/Manifest | 1 +
13 sys-auth/keystone/keystone-10.0.0.ebuild | 165 +++++++++++++++++++++++++++++++
14 2 files changed, 166 insertions(+)
15
16 diff --git a/sys-auth/keystone/Manifest b/sys-auth/keystone/Manifest
17 index feb147e..46317f0 100644
18 --- a/sys-auth/keystone/Manifest
19 +++ b/sys-auth/keystone/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST keystone-10.0.0.tar.gz 1355520 SHA256 5317c7a0c67ec5184e3efabd513ed7bd2eb3a5d537e24d781bc252035f46ae63 SHA512 de71ac4edda12def82885dd3a664d37cf5cd243e917dd5638164e2f331991ba0faae529b136beb4931949edf097441f327aca6238a20b9c6c6497bb66c266857 WHIRLPOOL 03e71774c6b6da9aa660ad6f285fd06b06a437111005ac8da23383abd39476639c660f1052d56536ac30870ed3710908e34bd765e9fefdb82d666bd447b2a288
22 DIST keystone-9.1.0.tar.gz 1183959 SHA256 3828f8907d07901a3f0516b9ee99fbd42bd9d293e4fa137d850a46487c76bad3 SHA512 2326d3ef91e614df8c0cfc68c4c4ced5f28a9c2c07e7bf6b7e55078c12d00cbb910bb53e1aee9cfcded70cfd78ab250ae5316bfc40e79609e980f0512f308fc0 WHIRLPOOL 5f6fcdcd5e2bb6dd2f7a0feaf6645f06baa5cdcaa645dc18a6fc95d2eaddcc1d160d4735631c08a90103a392b502344e8d463b917fb78a286ac4dcc806f22029
23 DIST keystone-9.2.0.tar.gz 1186091 SHA256 c2131d01a84cb430ab8cd842467a63ea759274935584ca83f7dda2f42ef0cbb0 SHA512 06e66853c7b1067f97b5cd09783a941393ec993a9b1d5c05cf4c4c41c96f4b09b1528dcfab4fa7eb08e2a372599e807fd8ac77b4e01fb1434c1e905a2c33a6c2 WHIRLPOOL d1936743cf992b086a6c5c707d2ec69c284d2b55e10f5826599f765a98dc9713f5aa6f61ecc7d63c8bf66452aff04bf316e0181e4791f74e7ef8e5029712d783
24
25 diff --git a/sys-auth/keystone/keystone-10.0.0.ebuild b/sys-auth/keystone/keystone-10.0.0.ebuild
26 new file mode 100644
27 index 00000000..be2780e
28 --- /dev/null
29 +++ b/sys-auth/keystone/keystone-10.0.0.ebuild
30 @@ -0,0 +1,165 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_4 )
38 +
39 +inherit distutils-r1 user
40 +
41 +DESCRIPTION="The Openstack authentication, authorization, and service catalog"
42 +HOMEPAGE="https://launchpad.net/keystone"
43 +SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm64 ~x86"
48 +IUSE="+sqlite ldap memcached mongo mysql postgres test"
49 +REQUIRED_USE="|| ( mysql postgres sqlite )"
50 +
51 +CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]"
52 +DEPEND="
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + ${CDEPEND}"
55 +RDEPEND="
56 + ${CDEPEND}
57 + >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
58 + >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}]
59 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
60 + dev-python/paste[${PYTHON_USEDEP}]
61 + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
62 + !~dev-python/routes-2.0[${PYTHON_USEDEP}]
63 + !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')]
64 + !~dev-python/routes-2.3.0[${PYTHON_USEDEP}]
65 + >=dev-python/cryptography-1.0[${PYTHON_USEDEP}]
66 + !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}]
67 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
68 + sqlite? (
69 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
70 + <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}]
71 + )
72 + mysql? (
73 + >=dev-python/pymysql-0.6.2[${PYTHON_USEDEP}]
74 + !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
75 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
76 + <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
77 + )
78 + postgres? (
79 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
80 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
81 + <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
82 + )
83 + >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}]
84 + >=dev-python/stevedore-1.16.0[${PYTHON_USEDEP}]
85 + >=dev-python/passlib-1.6[${PYTHON_USEDEP}]
86 + >=dev-python/python-keystoneclient-2.0.0[${PYTHON_USEDEP}]
87 + !~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}]
88 + >=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}]
89 + !~dev-python/keystonemiddleware-4.1.0[${PYTHON_USEDEP}]
90 + !~dev-python/keystonemiddleware-4.5.0[${PYTHON_USEDEP}]
91 + >=dev-python/oslo-cache-1.5.0[${PYTHON_USEDEP}]
92 + >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}]
93 + >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}]
94 + >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}]
95 + >=dev-python/oslo-messaging-5.2.0[${PYTHON_USEDEP}]
96 + >=dev-python/oslo-db-4.10.0[${PYTHON_USEDEP}]
97 + !~dev-python/oslo-db-4.13.1[${PYTHON_USEDEP}]
98 + !~dev-python/oslo-db-4.13.2[${PYTHON_USEDEP}]
99 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
100 + >=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}]
101 + >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}]
102 + >=dev-python/oslo-policy-1.9.0[${PYTHON_USEDEP}]
103 + >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}]
104 + >=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}]
105 + >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}]
106 + >=dev-python/pysaml2-2.4.0[${PYTHON_USEDEP}]
107 + <dev-python/pysaml2-4.0.3[${PYTHON_USEDEP}]
108 + >=dev-python/dogpile-cache-0.6.2[${PYTHON_USEDEP}]
109 + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
110 + !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
111 + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
112 + >=dev-python/pycadf-1.1.0[${PYTHON_USEDEP}]
113 + !~dev-python/pycadf-2.0.0[${PYTHON_USEDEP}]
114 + >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]
115 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
116 + memcached? (
117 + >=dev-python/python-memcached-1.56[${PYTHON_USEDEP}]
118 + )
119 + mongo? (
120 + >=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}]
121 + !~dev-python/pymongo-3.1[${PYTHON_USEDEP}]
122 + )
123 + ldap? (
124 + >=dev-python/pyldap-2.4[${PYTHON_USEDEP}]
125 + >=dev-python/ldappool-2.0.0[${PYTHON_USEDEP}]
126 + )
127 + || (
128 + www-servers/uwsgi[python,${PYTHON_USEDEP}]
129 + www-apache/mod_wsgi[${PYTHON_USEDEP}]
130 + www-servers/gunicorn[${PYTHON_USEDEP}]
131 + )"
132 +
133 +#PATCHES=(
134 +#)
135 +
136 +pkg_setup() {
137 + enewgroup keystone
138 + enewuser keystone -1 -1 /var/lib/keystone keystone
139 +}
140 +
141 +python_prepare_all() {
142 + # it's in git, but not in the tarball.....
143 + sed -i '/^hacking/d' test-requirements.txt || die
144 + mkdir -p ${PN}/tests/tmp/ || die
145 + cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die
146 + sed -i 's|/usr/local|/usr|g' httpd/keystone-uwsgi-* || die
147 + sed -i 's|python|python27|g' httpd/keystone-uwsgi-* || die
148 + distutils-r1_python_prepare_all
149 +}
150 +
151 +# Ignore (naughty) test_.py files & 1 test that connect to the network
152 +#-I 'test_keystoneclient*' \
153 +python_test() {
154 + nosetests -I 'test_keystoneclient*' \
155 + -e test_static_translated_string_is_Message \
156 + -e test_get_token_id_error_handling \
157 + -e test_provider_token_expiration_validation \
158 + -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
159 +}
160 +
161 +python_install() {
162 + distutils-r1_python_install
163 +
164 + diropts -m 0750
165 + keepdir /etc/keystone /var/log/keystone
166 + insinto /etc/keystone
167 + insopts -m0640 -okeystone -gkeystone
168 + doins etc/keystone.conf.sample etc/logging.conf.sample
169 + doins etc/default_catalog.templates etc/policy.json
170 + doins etc/policy.v3cloudsample.json etc/keystone-paste.ini
171 + insinto /etc/keystone/httpd
172 + doins httpd/*
173 +
174 + fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone
175 +}
176 +
177 +pkg_postinst() {
178 + elog "You might want to run:"
179 + elog "emerge --config =${CATEGORY}/${PF}"
180 + elog "if this is a new install."
181 + elog "If you have not already configured your openssl installation"
182 + elog "please do it by modifying /etc/ssl/openssl.cnf"
183 + elog "BEFORE issuing the configuration command."
184 + elog "Otherwise default values will be used."
185 +}
186 +
187 +pkg_config() {
188 + if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then
189 + einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..."
190 + read
191 + "${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
192 + else
193 + einfo "keystone PKI certificates directory already present, skipping configuration"
194 + fi
195 +}