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