1 |
commit: ab550c4aafef3af1658a38a294df0fa7c1cfa834 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 13 21:30:35 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 13 21:32:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab550c4a |
7 |
|
8 |
sys-auth/keystone: 16.0.1 bump |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
sys-auth/keystone/Manifest | 2 + |
14 |
sys-auth/keystone/keystone-16.0.1.ebuild | 166 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 168 insertions(+) |
16 |
|
17 |
diff --git a/sys-auth/keystone/Manifest b/sys-auth/keystone/Manifest |
18 |
index 25e01d35833..144b6bc5f6a 100644 |
19 |
--- a/sys-auth/keystone/Manifest |
20 |
+++ b/sys-auth/keystone/Manifest |
21 |
@@ -1,3 +1,5 @@ |
22 |
DIST keystone-16.0.0.tar.gz 1671648 BLAKE2B 172ce385a009c4c5fb83fa6fb7fa06d5be98e72064e21d4b5a62bb61bcbdfdce3702847820b71837ff54077b7b454fc0d2b95eabcbb2150f2919c7f9d3fc7299 SHA512 af4c977c4ef0fdcc89e94929c026daa1175caef96332f9dcb71a559659d8361467b2a40174847a8e7d7b70e1a151002cfe846a1be5fc7c5bfd1a8aeae3975397 |
23 |
+DIST keystone-16.0.1.tar.gz 1683325 BLAKE2B 6f22773592a1c843e82bcded230d2606b7fe8e540d50ccdbd85f53d4e5fda81023e85d04c258bc3741ecd7e4f8855299ab1828c8864862715ffd32629b877245 SHA512 060725244a181a98a3011ef7ae648b67054e64216fc62870b4190fd8475c8c36de01ae6428d1d4fac4bbdb405097aab1a9fe11daa65d4624dc613821cfeee004 |
24 |
DIST keystone.conf.sample-16.0.0 104552 BLAKE2B 35ec8deb13239ba3d46c5ca78ea41372065a867e2715be3fb17cd43d65f1902f02d79d7bc6c6cb5c6aec19a3833d17e9dda12e8e0605919d3a28b6300d3f2cf3 SHA512 535c47e3ec39d454818c883599cf6fc304044208b71b822bdb67099728306235b2ad06ee60cfce9033375ae7b2338b03a0488267af65e900e80ed68e4fee8c5a |
25 |
+DIST keystone.conf.sample-16.0.1 104552 BLAKE2B 35ec8deb13239ba3d46c5ca78ea41372065a867e2715be3fb17cd43d65f1902f02d79d7bc6c6cb5c6aec19a3833d17e9dda12e8e0605919d3a28b6300d3f2cf3 SHA512 535c47e3ec39d454818c883599cf6fc304044208b71b822bdb67099728306235b2ad06ee60cfce9033375ae7b2338b03a0488267af65e900e80ed68e4fee8c5a |
26 |
DIST keystone.conf.sample-2019.2.9999 104552 BLAKE2B 35ec8deb13239ba3d46c5ca78ea41372065a867e2715be3fb17cd43d65f1902f02d79d7bc6c6cb5c6aec19a3833d17e9dda12e8e0605919d3a28b6300d3f2cf3 SHA512 535c47e3ec39d454818c883599cf6fc304044208b71b822bdb67099728306235b2ad06ee60cfce9033375ae7b2338b03a0488267af65e900e80ed68e4fee8c5a |
27 |
|
28 |
diff --git a/sys-auth/keystone/keystone-16.0.1.ebuild b/sys-auth/keystone/keystone-16.0.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..4494f24111e |
31 |
--- /dev/null |
32 |
+++ b/sys-auth/keystone/keystone-16.0.1.ebuild |
33 |
@@ -0,0 +1,166 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+PYTHON_COMPAT=( python3_{6,7} ) |
39 |
+ |
40 |
+inherit distutils-r1 user |
41 |
+ |
42 |
+DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
43 |
+HOMEPAGE="https://launchpad.net/keystone" |
44 |
+if [[ ${PV} == *9999 ]];then |
45 |
+ inherit git-r3 |
46 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/keystone/train/keystone.conf.sample -> keystone.conf.sample-${PV}" |
47 |
+ EGIT_REPO_URI="https://github.com/openstack/keystone.git" |
48 |
+ EGIT_BRANCH="stable/train" |
49 |
+else |
50 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/keystone/train/keystone.conf.sample -> keystone.conf.sample-${PV} |
51 |
+ https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
52 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="Apache-2.0" |
56 |
+SLOT="0" |
57 |
+IUSE="+sqlite ldap memcached mongo mysql postgres test" |
58 |
+RESTRICT="!test? ( test )" |
59 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
60 |
+ |
61 |
+CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
62 |
+ !~dev-python/pbr-2.1.0" |
63 |
+DEPEND=" |
64 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
65 |
+ ${CDEPEND}" |
66 |
+RDEPEND=" |
67 |
+ ${CDEPEND} |
68 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
69 |
+ !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/webob-1.7.1[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/flask-1.0.2[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/flask-restful-0.3.5[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/cryptography-2.1[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
75 |
+ sqlite? ( |
76 |
+ >=dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
77 |
+ ) |
78 |
+ mysql? ( |
79 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
80 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ postgres? ( |
84 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/passlib-1.7.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/keystonemiddleware-7.0.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/scrypt-0.8.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/oslo-log-3.44.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/oslo-policy-2.3.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/oslo-serialization-1.18.0[${PYTHON_USEDEP}] |
105 |
+ !~dev-python/oslo-serialization-1.19.1[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/oauthlib-0.6.2[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/pysaml2-4.5.0[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/pyjwt-1.6.1[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/dogpile-cache-0.6.2[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/jsonschema-2.6.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.5.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/python-ldap-3.1.0[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/ldappool-2.3.1[${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 |
+ sed -i 's|/usr/local|/usr|g' httpd/keystone-uwsgi-* || die |
148 |
+ sed -i 's|python|python27|g' httpd/keystone-uwsgi-* || die |
149 |
+ # allow useage of renamed msgpack |
150 |
+ sed -i '/^msgpack/d' requirements.txt || die |
151 |
+ distutils-r1_python_prepare_all |
152 |
+} |
153 |
+ |
154 |
+python_test() { |
155 |
+ nosetests -I 'test_keystoneclient*' \ |
156 |
+ -e test_static_translated_string_is_Message \ |
157 |
+ -e test_get_token_id_error_handling \ |
158 |
+ -e test_provider_token_expiration_validation \ |
159 |
+ -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7" |
160 |
+} |
161 |
+ |
162 |
+python_install_all() { |
163 |
+ distutils-r1_python_install_all |
164 |
+ |
165 |
+ diropts -m 0750 |
166 |
+ keepdir /etc/keystone /var/log/keystone |
167 |
+ insinto /etc/keystone |
168 |
+ insopts -m0640 -okeystone -gkeystone |
169 |
+ newins "${DISTDIR}/keystone.conf.sample-${PV}" keystone.conf.sample |
170 |
+ doins etc/logging.conf.sample |
171 |
+ doins etc/default_catalog.templates |
172 |
+# doins etc/policy.v3cloudsample.json |
173 |
+ insinto /etc/keystone/httpd |
174 |
+ doins httpd/* |
175 |
+ |
176 |
+ fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone |
177 |
+ # stupid python doing stupid things |
178 |
+ rm -r "${ED}"/usr/etc |
179 |
+} |
180 |
+ |
181 |
+pkg_postinst() { |
182 |
+ elog "You might want to run:" |
183 |
+ elog "emerge --config =${CATEGORY}/${PF}" |
184 |
+ elog "if this is a new install." |
185 |
+ elog "If you have not already configured your openssl installation" |
186 |
+ elog "please do it by modifying /etc/ssl/openssl.cnf" |
187 |
+ elog "BEFORE issuing the configuration command." |
188 |
+ elog "Otherwise default values will be used." |
189 |
+} |
190 |
+ |
191 |
+pkg_config() { |
192 |
+ if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then |
193 |
+ einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..." |
194 |
+ read |
195 |
+ "${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone |
196 |
+ else |
197 |
+ einfo "keystone PKI certificates directory already present, skipping configuration" |
198 |
+ fi |
199 |
+} |