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