Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/keystone: keystone-9999.ebuild keystone-2014.1.9999.ebuild keystone-2014.1.1-r1.ebuild ChangeLog keystone-2014.1.1.ebuild
Date: Mon, 30 Jun 2014 01:30:50
Message-Id: 20140630013042.BCDDF2004E@flycatcher.gentoo.org
1 prometheanfire 14/06/30 01:30:42
2
3 Modified: keystone-9999.ebuild keystone-2014.1.9999.ebuild
4 ChangeLog
5 Added: keystone-2014.1.1-r1.ebuild
6 Removed: keystone-2014.1.1.ebuild
7 Log:
8 fixing tests for 509124
9
10 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
11
12 Revision Changes Path
13 1.16 sys-auth/keystone/keystone-9999.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild?rev=1.16&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild?rev=1.16&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild?r1=1.15&r2=1.16
18
19 Index: keystone-9999.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild,v
22 retrieving revision 1.15
23 retrieving revision 1.16
24 diff -u -r1.15 -r1.16
25 --- keystone-9999.ebuild 21 Apr 2014 01:30:04 -0000 1.15
26 +++ keystone-9999.ebuild 30 Jun 2014 01:30:42 -0000 1.16
27 @@ -1,6 +1,6 @@
28 # Copyright 1999-2014 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild,v 1.15 2014/04/21 01:30:04 floppym Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-9999.ebuild,v 1.16 2014/06/30 01:30:42 prometheanfire Exp $
32
33 EAPI=5
34
35 @@ -88,10 +88,14 @@
36 distutils-r1_python_prepare_all
37 }
38
39 +# Ignore (naughty) test_.py files & 1 test that connect to the network
40 +#-I 'test_keystoneclient*' \
41 python_test() {
42 - # Ignore (naughty) test_.py files & 1 test that connect to the network
43 nosetests -I 'test_keystoneclient*' \
44 - -e test_import || die "testsuite failed under python2.7"
45 + -e test_static_translated_string_is_Message \
46 + -e test_get_token_id_error_handling \
47 + -e test_provider_token_expiration_validation \
48 + -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
49 }
50
51 python_install() {
52
53
54
55 1.3 sys-auth/keystone/keystone-2014.1.9999.ebuild
56
57 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild?rev=1.3&view=markup
58 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild?rev=1.3&content-type=text/plain
59 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild?r1=1.2&r2=1.3
60
61 Index: keystone-2014.1.9999.ebuild
62 ===================================================================
63 RCS file: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild,v
64 retrieving revision 1.2
65 retrieving revision 1.3
66 diff -u -r1.2 -r1.3
67 --- keystone-2014.1.9999.ebuild 1 Jun 2014 03:51:29 -0000 1.2
68 +++ keystone-2014.1.9999.ebuild 30 Jun 2014 01:30:42 -0000 1.3
69 @@ -1,6 +1,6 @@
70 # Copyright 1999-2014 Gentoo Foundation
71 # Distributed under the terms of the GNU General Public License v2
72 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild,v 1.2 2014/06/01 03:51:29 prometheanfire Exp $
73 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2014.1.9999.ebuild,v 1.3 2014/06/30 01:30:42 prometheanfire Exp $
74
75 EAPI=5
76
77 @@ -91,10 +91,14 @@
78 distutils-r1_python_prepare_all
79 }
80
81 +# Ignore (naughty) test_.py files & 1 test that connect to the network
82 +#-I 'test_keystoneclient*' \
83 python_test() {
84 - # Ignore (naughty) test_.py files & 1 test that connect to the network
85 nosetests -I 'test_keystoneclient*' \
86 - -e test_import || die "testsuite failed under python2.7"
87 + -e test_static_translated_string_is_Message \
88 + -e test_get_token_id_error_handling \
89 + -e test_provider_token_expiration_validation \
90 + -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
91 }
92
93 python_install() {
94
95
96
97 1.73 sys-auth/keystone/ChangeLog
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?rev=1.73&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?rev=1.73&content-type=text/plain
101 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/ChangeLog?r1=1.72&r2=1.73
102
103 Index: ChangeLog
104 ===================================================================
105 RCS file: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v
106 retrieving revision 1.72
107 retrieving revision 1.73
108 diff -u -r1.72 -r1.73
109 --- ChangeLog 15 Jun 2014 17:01:02 -0000 1.72
110 +++ ChangeLog 30 Jun 2014 01:30:42 -0000 1.73
111 @@ -1,6 +1,13 @@
112 # ChangeLog for sys-auth/keystone
113 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
114 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.72 2014/06/15 17:01:02 prometheanfire Exp $
115 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.73 2014/06/30 01:30:42 prometheanfire Exp $
116 +
117 +*keystone-2014.1.1-r1 (30 Jun 2014)
118 +
119 + 30 Jun 2014; Matthew Thode <prometheanfire@g.o>
120 + +keystone-2014.1.1-r1.ebuild, -keystone-2014.1.1.ebuild,
121 + keystone-2014.1.9999.ebuild, keystone-9999.ebuild:
122 + fixing tests for 509124
123
124 *keystone-2014.1.1 (15 Jun 2014)
125
126
127
128
129 1.1 sys-auth/keystone/keystone-2014.1.1-r1.ebuild
130
131 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2014.1.1-r1.ebuild?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/keystone/keystone-2014.1.1-r1.ebuild?rev=1.1&content-type=text/plain
133
134 Index: keystone-2014.1.1-r1.ebuild
135 ===================================================================
136 # Copyright 1999-2014 Gentoo Foundation
137 # Distributed under the terms of the GNU General Public License v2
138 # $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2014.1.1-r1.ebuild,v 1.1 2014/06/30 01:30:42 prometheanfire Exp $
139
140 EAPI=5
141
142 PYTHON_COMPAT=( python2_7 )
143
144 inherit distutils-r1 user
145
146 DESCRIPTION="The Openstack authentication, authorization, and service catalog written in Python."
147 HOMEPAGE="https://launchpad.net/keystone"
148 SRC_URI="http://launchpad.net/${PN}/icehouse/${PV}/+download/${P}.tar.gz"
149
150 LICENSE="Apache-2.0"
151 SLOT="0"
152 KEYWORDS="~amd64 ~x86"
153 IUSE="+sqlite mysql postgres ldap test"
154 REQUIRED_USE="|| ( mysql postgres sqlite )"
155
156 #todo, seperate out rdepend via use flags
157 # python-ldap needs to be relaxed...
158 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
159 >=dev-python/pbr-0.6[${PYTHON_USEDEP}]
160 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
161 test? ( ${RDEPEND}
162 >=dev-python/hacking-0.8[${PYTHON_USEDEP}]
163 <dev-python/hacking-0.9[${PYTHON_USEDEP}]
164 dev-lang/python[sqlite]
165 >=dev-python/python-memcached-1.48[${PYTHON_USEDEP}]
166 >=dev-python/pymongo-2.4[${PYTHON_USEDEP}]
167 ldap? ( dev-python/python-ldap )
168 >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
169 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
170 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
171 >=dev-python/mox-0.5.3[${PYTHON_USEDEP}]
172 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
173 <dev-python/sphinx-1.2[${PYTHON_USEDEP}]
174 >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
175 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
176 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
177 >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
178 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
179 >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
180 >=dev-python/requests-1.1[${PYTHON_USEDEP}]
181 >=dev-python/keyring-2.1[${PYTHON_USEDEP}]
182 dev-python/oslo-sphinx[${PYTHON_USEDEP}]
183 >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}]
184 >=dev-python/lockfile-0.8[${PYTHON_USEDEP}]
185 >=dev-python/stevedore-0.14[${PYTHON_USEDEP}]
186 )"
187 RDEPEND=">=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}]
188 >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}]
189 >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
190 >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}]
191 >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
192 dev-python/paste[${PYTHON_USEDEP}]
193 >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
194 >=dev-python/six-1.6.0[${PYTHON_USEDEP}]
195 >=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}]
196 <dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
197 mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
198 postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] )
199 sqlite? ( dev-db/sqlite )
200 >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
201 dev-python/passlib[${PYTHON_USEDEP}]
202 >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
203 >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
204 >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}]
205 >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}]
206 >=dev-python/oslo-messaging-1.3.0[${PYTHON_USEDEP}]
207 >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
208 >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}]
209 >=dev-python/dogpile-cache-0.5.0[${PYTHON_USEDEP}]
210 >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
211 <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
212 >=dev-python/pycadf-0.4.1[${PYTHON_USEDEP}]
213 ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )"
214
215 PATCHES=(
216 "${FILESDIR}/2014.1.1-CVE-2014-3476.patch"
217 )
218
219 pkg_setup() {
220 enewgroup keystone
221 enewuser keystone -1 -1 /var/lib/keystone keystone
222 }
223
224 python_prepare_all() {
225 # it's in git, but not in the tarball.....
226 mkdir -p ${PN}/tests/tmp/ || die
227 cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die
228 distutils-r1_python_prepare_all
229 }
230
231 # Ignore (naughty) test_.py files & 1 test that connect to the network
232 #-I 'test_keystoneclient*' \
233 python_test() {
234 nosetests -I 'test_keystoneclient*' \
235 -e test_static_translated_string_is_Message \
236 -e test_get_token_id_error_handling \
237 -e test_provider_token_expiration_validation \
238 -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
239 }
240
241 python_install() {
242 distutils-r1_python_install
243 newconfd "${FILESDIR}/keystone.confd" keystone
244 newinitd "${FILESDIR}/keystone.initd" keystone
245
246 diropts -m 0750
247 keepdir /etc/keystone /var/log/keystone
248 insinto /etc/keystone
249 doins etc/keystone.conf.sample etc/logging.conf.sample
250 doins etc/default_catalog.templates etc/policy.json
251 doins etc/policy.v3cloudsample.json etc/keystone-paste.ini
252
253 fowners keystone:keystone /etc/keystone /var/log/keystone
254 }
255
256 pkg_postinst() {
257 elog "You might want to run:"
258 elog "emerge --config =${CATEGORY}/${PF}"
259 elog "if this is a new install."
260 elog "If you have not already configured your openssl installation"
261 elog "please do it by modifying /etc/ssl/openssl.cnf"
262 elog "BEFORE issuing the configuration command."
263 elog "Otherwise default values will be used."
264 }
265
266 pkg_config() {
267 if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then
268 einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..."
269 read
270 "${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
271 else
272 einfo "keystone PKI certificates directory already present, skipping configuration"
273 fi
274 }