1 |
commit: ff4c345bedc709ca8e144f1fb2582a940edd171c |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 14:40:52 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 14:40:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff4c345b |
7 |
|
8 |
sys-auth/keystone: bup |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sys-auth/keystone/Manifest | 1 + |
13 |
sys-auth/keystone/keystone-9.2.0.ebuild | 166 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 167 insertions(+) |
15 |
|
16 |
diff --git a/sys-auth/keystone/Manifest b/sys-auth/keystone/Manifest |
17 |
index f0bd2bf..feb147e 100644 |
18 |
--- a/sys-auth/keystone/Manifest |
19 |
+++ b/sys-auth/keystone/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST keystone-9.1.0.tar.gz 1183959 SHA256 3828f8907d07901a3f0516b9ee99fbd42bd9d293e4fa137d850a46487c76bad3 SHA512 2326d3ef91e614df8c0cfc68c4c4ced5f28a9c2c07e7bf6b7e55078c12d00cbb910bb53e1aee9cfcded70cfd78ab250ae5316bfc40e79609e980f0512f308fc0 WHIRLPOOL 5f6fcdcd5e2bb6dd2f7a0feaf6645f06baa5cdcaa645dc18a6fc95d2eaddcc1d160d4735631c08a90103a392b502344e8d463b917fb78a286ac4dcc806f22029 |
22 |
+DIST keystone-9.2.0.tar.gz 1186091 SHA256 c2131d01a84cb430ab8cd842467a63ea759274935584ca83f7dda2f42ef0cbb0 SHA512 06e66853c7b1067f97b5cd09783a941393ec993a9b1d5c05cf4c4c41c96f4b09b1528dcfab4fa7eb08e2a372599e807fd8ac77b4e01fb1434c1e905a2c33a6c2 WHIRLPOOL d1936743cf992b086a6c5c707d2ec69c284d2b55e10f5826599f765a98dc9713f5aa6f61ecc7d63c8bf66452aff04bf316e0181e4791f74e7ef8e5029712d783 |
23 |
|
24 |
diff --git a/sys-auth/keystone/keystone-9.2.0.ebuild b/sys-auth/keystone/keystone-9.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..06a1163 |
27 |
--- /dev/null |
28 |
+++ b/sys-auth/keystone/keystone-9.2.0.ebuild |
29 |
@@ -0,0 +1,166 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+inherit distutils-r1 user |
39 |
+ |
40 |
+DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
41 |
+HOMEPAGE="https://launchpad.net/keystone" |
42 |
+SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
+IUSE="+sqlite ldap memcached mongo mysql postgres test" |
48 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
49 |
+ |
50 |
+CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]" |
51 |
+DEPEND=" |
52 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
53 |
+ ${CDEPEND}" |
54 |
+RDEPEND=" |
55 |
+ ${CDEPEND} |
56 |
+ >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
60 |
+ <=dev-python/paste-2.0.2[${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/mysql-python |
74 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
75 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+ postgres? ( |
78 |
+ dev-python/psycopg:2 |
79 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
80 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/passlib-1.6[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}] |
86 |
+ !~dev-python/python-keystoneclient-1.8.0[${PYTHON_USEDEP}] |
87 |
+ !~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}] |
88 |
+ <dev-python/python-keystoneclient-3.0.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}] |
90 |
+ !~dev-python/keystonemiddleware-4.1.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-cache-1.5.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/oslo-concurrency-3.7.1[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-config-3.7.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-messaging-4.0.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/oslo-db-4.1.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/oslo-policy-0.5.0[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/oslo-service-1.0.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/oslo-utils-3.5.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/pysaml2-2.4.0[${PYTHON_USEDEP}] |
106 |
+ <dev-python/pysaml2-4.0.3[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/dogpile-cache-0.5.7[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
109 |
+ !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}] |
110 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/pycadf-1.1.0[${PYTHON_USEDEP}] |
112 |
+ !~dev-python/pycadf-2.0.0[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}] |
114 |
+ memcached? ( |
115 |
+ >=dev-python/python-memcached-1.48[${PYTHON_USEDEP}] |
116 |
+ <=dev-python/python-memcached-1.57[${PYTHON_USEDEP}] |
117 |
+ ) |
118 |
+ mongo? ( |
119 |
+ >=dev-python/pymongo-2.6.3[${PYTHON_USEDEP}] |
120 |
+ <dev-python/pymongo-3.2[${PYTHON_USEDEP}] |
121 |
+ ) |
122 |
+ ldap? ( |
123 |
+ >=dev-python/python-ldap-2.4[$(python_gen_usedep 'python2_7')] |
124 |
+ <=dev-python/python-ldap-2.4.20[$(python_gen_usedep 'python2_7')] |
125 |
+ ~dev-python/ldappool-1.0[$(python_gen_usedep 'python2_7')] |
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 |
+} |