1 |
commit: 617e2ab179e8964871780a91d0c3a3f03f531e75 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 27 04:23:33 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 27 04:25:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=617e2ab1 |
7 |
|
8 |
sys-auth/keystone: PIKE |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sys-auth/keystone/keystone-2017.2.9999.ebuild | 174 ++++++++++++++++++++++++++ |
13 |
sys-auth/keystone/metadata.xml | 2 +- |
14 |
2 files changed, 175 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sys-auth/keystone/keystone-2017.2.9999.ebuild b/sys-auth/keystone/keystone-2017.2.9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..e9bfc0ef7fc |
19 |
--- /dev/null |
20 |
+++ b/sys-auth/keystone/keystone-2017.2.9999.ebuild |
21 |
@@ -0,0 +1,174 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
28 |
+ |
29 |
+inherit distutils-r1 git-r3 user |
30 |
+ |
31 |
+DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
32 |
+HOMEPAGE="https://launchpad.net/keystone" |
33 |
+EGIT_REPO_URI="https://github.com/openstack/keystone.git" |
34 |
+EGIT_BRANCH="stable/pike" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="" |
39 |
+IUSE="+sqlite ldap memcached mongo mysql postgres test" |
40 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
41 |
+ |
42 |
+CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
43 |
+ !~dev-python/pbr-2.1.0" |
44 |
+DEPEND=" |
45 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
46 |
+ ${CDEPEND}" |
47 |
+RDEPEND=" |
48 |
+ ${CDEPEND} |
49 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
50 |
+ !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/webob-1.7.1[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/paste[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/cryptography-1.6[${PYTHON_USEDEP}] |
56 |
+ !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
58 |
+ sqlite? ( |
59 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
60 |
+ !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}] |
61 |
+ !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}] |
62 |
+ !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}] |
63 |
+ !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}] |
64 |
+ ) |
65 |
+ mysql? ( |
66 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
67 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
69 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
70 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
71 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
72 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
73 |
+ ) |
74 |
+ postgres? ( |
75 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
77 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
78 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
79 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
80 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/passlib-1.7.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/scrypt-0.8.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-cache-1.5.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}] |
92 |
+ !~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}] |
93 |
+ !~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-context-2.14.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-messaging-5.24.2[${PYTHON_USEDEP}] |
96 |
+ !~dev-python/oslo-messaging-5.25.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/oslo-db-4.24.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
99 |
+ !~dev-python/oslo-i18n-3.15.2[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/oslo-log-3.22.0[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/oslo-middleware-3.27.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/oslo-policy-1.23.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
104 |
+ !~dev-python/oslo-serialization-1.19.1[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/oslo-utils-3.20.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/pysaml2-2.4.0[${PYTHON_USEDEP}] |
108 |
+ <dev-python/pysaml2-4.0.3[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/dogpile-cache-0.6.2[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
111 |
+ !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}] |
112 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/pycadf-1.1.0[${PYTHON_USEDEP}] |
114 |
+ !~dev-python/pycadf-2.0.0[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
118 |
+ memcached? ( |
119 |
+ >=dev-python/python-memcached-1.56[${PYTHON_USEDEP}] |
120 |
+ ) |
121 |
+ mongo? ( |
122 |
+ >=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}] |
123 |
+ !~dev-python/pymongo-3.1[${PYTHON_USEDEP}] |
124 |
+ ) |
125 |
+ ldap? ( |
126 |
+ >=dev-python/pyldap-2.4.20[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/ldappool-2.0.0[${PYTHON_USEDEP}] |
128 |
+ ) |
129 |
+ || ( |
130 |
+ www-servers/uwsgi[python,${PYTHON_USEDEP}] |
131 |
+ www-apache/mod_wsgi[${PYTHON_USEDEP}] |
132 |
+ www-servers/gunicorn[${PYTHON_USEDEP}] |
133 |
+ )" |
134 |
+ |
135 |
+#PATCHES=( |
136 |
+#) |
137 |
+ |
138 |
+pkg_setup() { |
139 |
+ enewgroup keystone |
140 |
+ enewuser keystone -1 -1 /var/lib/keystone keystone |
141 |
+} |
142 |
+ |
143 |
+python_prepare_all() { |
144 |
+ # it's in git, but not in the tarball..... |
145 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
146 |
+ mkdir -p ${PN}/tests/tmp/ || die |
147 |
+ cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die |
148 |
+ sed -i 's|/usr/local|/usr|g' httpd/keystone-uwsgi-* || die |
149 |
+ sed -i 's|python|python27|g' httpd/keystone-uwsgi-* || die |
150 |
+ distutils-r1_python_prepare_all |
151 |
+} |
152 |
+ |
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_all() { |
162 |
+ distutils-r1_python_install_all |
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 |
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 |
+} |
196 |
|
197 |
diff --git a/sys-auth/keystone/metadata.xml b/sys-auth/keystone/metadata.xml |
198 |
index c0df6818866..c8aa1a2542f 100644 |
199 |
--- a/sys-auth/keystone/metadata.xml |
200 |
+++ b/sys-auth/keystone/metadata.xml |
201 |
@@ -15,7 +15,7 @@ |
202 |
</maintainer> |
203 |
<longdescription lang="en"> |
204 |
Keystone is the Openstack authentication, authorization, and service |
205 |
- catalog written in Python. |
206 |
+ catalog written in Python. |
207 |
</longdescription> |
208 |
<upstream> |
209 |
<remote-id type="launchpad">keystone</remote-id> |