Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/cinder/
Date: Mon, 31 May 2021 21:07:26
Message-Id: 1622495063.0849136aa80f790731b8417583477fac5510cd7b.mgorny@gentoo
1 commit: 0849136aa80f790731b8417583477fac5510cd7b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 21:04:23 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 21:04:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0849136a
7
8 sys-cluster/cinder: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-cluster/cinder/Manifest | 3 -
13 sys-cluster/cinder/cinder-16.2.1.ebuild | 208 ---------------------------
14 sys-cluster/cinder/cinder-2020.1.9999.ebuild | 208 ---------------------------
15 3 files changed, 419 deletions(-)
16
17 diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest
18 index ea47b5aa710..f9924ee4199 100644
19 --- a/sys-cluster/cinder/Manifest
20 +++ b/sys-cluster/cinder/Manifest
21 @@ -1,6 +1,3 @@
22 -DIST cinder-16.2.1.tar.gz 5531297 BLAKE2B c517515df669e9aafbc1b8d80e8f422bbe6cf55ded044d03fd21142fafdc2e81f5f211c5ce3f39f2fd965f324194635efa7b53aee05113abff8f9d2f6438f3f9 SHA512 37fd7025f4490a35214bf4ac90b5b8ec9d21752ab54295403e6d485e429ffe8172c33e692e5f516156a58358b35da60fc7a8f7f25daa4b0d405db25beadd59b7
23 DIST cinder-17.1.0.tar.gz 5823116 BLAKE2B 08f8c4e9acdd46d27ad5e35b8602dc7722ff0f08f577183860138f9085f6744abeccf6943d556419cc7584504c3245c19cfd4f17db4164cc8a4c144aa8c112bd SHA512 f3e91945e81e5bb7edefba62050d3750ae5ab870903e55f46e8f0a5d3c140eada1df466d5fcc6623df8ad9688cad3c6519c712494cd20b8cfeb4b992e8f516cc
24 -DIST cinder.conf.sample-16.2.1 183294 BLAKE2B 5d0f28b9ad200d912c42c34ca030a5ec3660c57db332677e1b66b314a2865187862c83baf78d122fc0af7f73fbf4f0c7f04b9253882d228dcb863bfc88e37e72 SHA512 faf712a3da37af05e642b3c14f98ce8d4e3db5b736b208d7ca8a18be02ac5626c94b4ed314bd0030d5fa3771b325ba0f24ec3a45188d27fd9de79c97b56e2626
25 DIST cinder.conf.sample-17.1.0 186451 BLAKE2B efc75cf3c5e852d411d9c2ed2080eb554a5f81c9b39a2ee9cf44add21842c05ea5b03cc66747da2182d2efc73d83b55323cecd4aa34db99369bf62b5ed1795bc SHA512 ee60a62ec8490a38c995f9c4a9ede8eeec631745bdbc9bc6e1d195370687de5d99aa8754ea017f23e6a9542b987842c7ffd7cf203bfed37f2a7ddbe61a82d517
26 -DIST cinder.conf.sample-2020.1.9999 183294 BLAKE2B 5d0f28b9ad200d912c42c34ca030a5ec3660c57db332677e1b66b314a2865187862c83baf78d122fc0af7f73fbf4f0c7f04b9253882d228dcb863bfc88e37e72 SHA512 faf712a3da37af05e642b3c14f98ce8d4e3db5b736b208d7ca8a18be02ac5626c94b4ed314bd0030d5fa3771b325ba0f24ec3a45188d27fd9de79c97b56e2626
27 DIST cinder.conf.sample-2020.2.9999 186451 BLAKE2B efc75cf3c5e852d411d9c2ed2080eb554a5f81c9b39a2ee9cf44add21842c05ea5b03cc66747da2182d2efc73d83b55323cecd4aa34db99369bf62b5ed1795bc SHA512 ee60a62ec8490a38c995f9c4a9ede8eeec631745bdbc9bc6e1d195370687de5d99aa8754ea017f23e6a9542b987842c7ffd7cf203bfed37f2a7ddbe61a82d517
28
29 diff --git a/sys-cluster/cinder/cinder-16.2.1.ebuild b/sys-cluster/cinder/cinder-16.2.1.ebuild
30 deleted file mode 100644
31 index 3cae0967f24..00000000000
32 --- a/sys-cluster/cinder/cinder-16.2.1.ebuild
33 +++ /dev/null
34 @@ -1,208 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -PYTHON_COMPAT=( python3_7 )
41 -DISTUTILS_USE_SETUPTOOLS=rdepend
42 -inherit distutils-r1 linux-info
43 -
44 -DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes"
45 -HOMEPAGE="https://launchpad.net/cinder"
46 -
47 -if [[ ${PV} == *9999 ]];then
48 - inherit git-r3
49 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ussuri/cinder.conf.sample -> cinder.conf.sample-${PV}"
50 - EGIT_REPO_URI="https://github.com/openstack/cinder.git"
51 - EGIT_BRANCH="stable/ussuri"
52 -else
53 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ussuri/cinder.conf.sample -> cinder.conf.sample-${PV}
54 - https://tarballs.openstack.org/${PN}/${P}.tar.gz"
55 - KEYWORDS="amd64 ~arm64 x86"
56 -fi
57 -
58 -LICENSE="Apache-2.0"
59 -SLOT="0"
60 -IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt"
61 -RESTRICT="!test? ( test )"
62 -REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )"
63 -
64 -CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
65 - !~dev-python/pbr-2.1.0"
66 -DEPEND="${CDEPEND}
67 - app-admin/sudo"
68 -
69 -# >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] # do not include, upstream depricated
70 -RDEPEND="
71 - ${CDEPEND}
72 - >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
73 - >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}]
74 - >=dev-python/eventlet-0.22.0[${PYTHON_USEDEP}]
75 - !~dev-python/eventlet-0.23.0[${PYTHON_USEDEP}]
76 - !~dev-python/eventlet-0.25.0[${PYTHON_USEDEP}]
77 - >=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}]
78 - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
79 - >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
80 - >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
81 - >=dev-python/keystoneauth-3.7.0[${PYTHON_USEDEP}]
82 - >=dev-python/keystonemiddleware-4.21.0[${PYTHON_USEDEP}]
83 - >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}]
84 - !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}]
85 - >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
86 - >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
87 - >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
88 - >=dev-python/oslo-db-4.35.0[${PYTHON_USEDEP}]
89 - >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
90 - >=dev-python/oslo-messaging-6.4.0[${PYTHON_USEDEP}]
91 - >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
92 - >=dev-python/oslo-policy-1.44.1[${PYTHON_USEDEP}]
93 - >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
94 - >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
95 - >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
96 - >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}]
97 - !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
98 - >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
99 - !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
100 - >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
101 - >=dev-python/oslo-utils-3.34.0[${PYTHON_USEDEP}]
102 - >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
103 - >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
104 - >=dev-python/paramiko-2.4.0[${PYTHON_USEDEP}]
105 - >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
106 - >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
107 - >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
108 - >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
109 - >=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
110 - >=dev-python/python-glanceclient-2.15.0[${PYTHON_USEDEP}]
111 - >=dev-python/python-keystoneclient-3.15.0[${PYTHON_USEDEP}]
112 - >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
113 - >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
114 - >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
115 - >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
116 - !~dev-python/requests-2.20.0[${PYTHON_USEDEP}]
117 - >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
118 - !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
119 - >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
120 - >=dev-python/taskflow-3.2.0[${PYTHON_USEDEP}]
121 - >=dev-python/rtslib-fb-2.1.65[${PYTHON_USEDEP}]
122 - >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
123 - sqlite? (
124 - >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
125 - !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
126 - !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
127 - !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
128 - !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
129 - )
130 - mysql? (
131 - >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
132 - !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
133 - >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
134 - !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
135 - !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
136 - !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
137 - !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
138 - )
139 - postgres? (
140 - >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
141 - >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
142 - !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
143 - !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
144 - !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
145 - !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
146 - )
147 - >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
148 - >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
149 - >=dev-python/tabulate-0.8.5[${PYTHON_USEDEP}]
150 - >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
151 - >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
152 - >=dev-python/oslo-vmware-2.35.0[${PYTHON_USEDEP}]
153 - >=dev-python/os-brick-2.2.0[${PYTHON_USEDEP}]
154 - >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}]
155 - >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
156 - >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}]
157 - >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}]
158 - >=dev-python/cryptography-2.1[${PYTHON_USEDEP}]
159 - >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
160 - iscsi? (
161 - tgt? ( sys-block/tgt )
162 - sys-block/open-iscsi
163 - )
164 - lvm? ( sys-fs/lvm2 )
165 - memcached? ( net-misc/memcached )
166 - app-emulation/qemu
167 - sys-fs/sysfsutils
168 - acct-user/cinder
169 - acct-group/cinder"
170 -# qemu is needed for image conversion
171 -
172 -#PATCHES=(
173 -#)
174 -
175 -pkg_pretend() {
176 - linux-info_pkg_setup
177 - CONFIG_CHECK_MODULES=""
178 - if use tcp; then
179 - CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
180 - fi
181 - if use rdma; then
182 - CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
183 - fi
184 - if use infiniband; then
185 - CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
186 - fi
187 - if linux_config_exists; then
188 - for module in ${CONFIG_CHECK_MODULES}; do
189 - linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
190 - done
191 - fi
192 -}
193 -
194 -python_prepare_all() {
195 - sed -i '/^hacking/d' test-requirements.txt || die
196 - # only used for docs
197 - sed -i '/^sphinx-feature-classification/d' requirements.txt || die
198 - distutils-r1_python_prepare_all
199 -}
200 -
201 -python_test() {
202 - # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727
203 - nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7"
204 -}
205 -
206 -python_install_all() {
207 - distutils-r1_python_install_all
208 - keepdir /etc/cinder
209 - dodir /etc/cinder/rootwrap.d
210 -
211 - for svc in api scheduler volume; do
212 - newinitd "${FILESDIR}/cinder.initd" cinder-${svc}
213 - done
214 -
215 - insinto /etc/cinder
216 - insopts -m0640 -o cinder -g cinder
217 - doins "etc/cinder/api-httpd.conf"
218 - doins "etc/cinder/logging_sample.conf"
219 - doins "etc/cinder/rootwrap.conf"
220 - doins "etc/cinder/api-paste.ini"
221 - doins "etc/cinder/resource_filters.json"
222 - newins "${DISTDIR}/cinder.conf.sample-${PV}" "cinder.conf.sample"
223 - insinto /etc/cinder/rootwrap.d
224 - doins "etc/cinder/rootwrap.d/volume.filters"
225 -
226 - dodir /var/log/cinder
227 - fowners cinder:cinder /var/log/cinder
228 -
229 - #add sudoers definitions for user nova
230 - insinto /etc/sudoers.d/
231 - insopts -m 0440 -o root -g root
232 - newins "${FILESDIR}/cinder.sudoersd" cinder
233 - # stupid python
234 - rm -r "${ED}"/usr/etc
235 -}
236 -
237 -pkg_postinst() {
238 - if use iscsi ; then
239 - elog "Cinder needs tgtd to be installed and running to work with iscsi"
240 - elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
241 - fi
242 -}
243
244 diff --git a/sys-cluster/cinder/cinder-2020.1.9999.ebuild b/sys-cluster/cinder/cinder-2020.1.9999.ebuild
245 deleted file mode 100644
246 index 107c02739ee..00000000000
247 --- a/sys-cluster/cinder/cinder-2020.1.9999.ebuild
248 +++ /dev/null
249 @@ -1,208 +0,0 @@
250 -# Copyright 1999-2021 Gentoo Authors
251 -# Distributed under the terms of the GNU General Public License v2
252 -
253 -EAPI=7
254 -
255 -PYTHON_COMPAT=( python3_7 )
256 -DISTUTILS_USE_SETUPTOOLS=rdepend
257 -inherit distutils-r1 linux-info
258 -
259 -DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes"
260 -HOMEPAGE="https://launchpad.net/cinder"
261 -
262 -if [[ ${PV} == *9999 ]];then
263 - inherit git-r3
264 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ussuri/cinder.conf.sample -> cinder.conf.sample-${PV}"
265 - EGIT_REPO_URI="https://github.com/openstack/cinder.git"
266 - EGIT_BRANCH="stable/ussuri"
267 -else
268 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ussuri/cinder.conf.sample -> cinder.conf.sample-${PV}
269 - https://tarballs.openstack.org/${PN}/${P}.tar.gz"
270 - KEYWORDS="~amd64 ~arm64 ~x86"
271 -fi
272 -
273 -LICENSE="Apache-2.0"
274 -SLOT="0"
275 -IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt"
276 -RESTRICT="!test? ( test )"
277 -REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )"
278 -
279 -CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
280 - !~dev-python/pbr-2.1.0"
281 -DEPEND="${CDEPEND}
282 - app-admin/sudo"
283 -
284 -# >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] # do not include, upstream depricated
285 -RDEPEND="
286 - ${CDEPEND}
287 - >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
288 - >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}]
289 - >=dev-python/eventlet-0.22.0[${PYTHON_USEDEP}]
290 - !~dev-python/eventlet-0.23.0[${PYTHON_USEDEP}]
291 - !~dev-python/eventlet-0.25.0[${PYTHON_USEDEP}]
292 - >=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}]
293 - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
294 - >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
295 - >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
296 - >=dev-python/keystoneauth-3.7.0[${PYTHON_USEDEP}]
297 - >=dev-python/keystonemiddleware-4.21.0[${PYTHON_USEDEP}]
298 - >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}]
299 - !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}]
300 - >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
301 - >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
302 - >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
303 - >=dev-python/oslo-db-4.35.0[${PYTHON_USEDEP}]
304 - >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
305 - >=dev-python/oslo-messaging-6.4.0[${PYTHON_USEDEP}]
306 - >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
307 - >=dev-python/oslo-policy-1.44.1[${PYTHON_USEDEP}]
308 - >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
309 - >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
310 - >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
311 - >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}]
312 - !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
313 - >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
314 - !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
315 - >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
316 - >=dev-python/oslo-utils-3.34.0[${PYTHON_USEDEP}]
317 - >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
318 - >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
319 - >=dev-python/paramiko-2.4.0[${PYTHON_USEDEP}]
320 - >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
321 - >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
322 - >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
323 - >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
324 - >=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
325 - >=dev-python/python-glanceclient-2.15.0[${PYTHON_USEDEP}]
326 - >=dev-python/python-keystoneclient-3.15.0[${PYTHON_USEDEP}]
327 - >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
328 - >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
329 - >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
330 - >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
331 - !~dev-python/requests-2.20.0[${PYTHON_USEDEP}]
332 - >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
333 - !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
334 - >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
335 - >=dev-python/taskflow-3.2.0[${PYTHON_USEDEP}]
336 - >=dev-python/rtslib-fb-2.1.65[${PYTHON_USEDEP}]
337 - >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
338 - sqlite? (
339 - >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
340 - !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
341 - !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
342 - !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
343 - !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
344 - )
345 - mysql? (
346 - >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
347 - !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
348 - >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
349 - !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
350 - !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
351 - !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
352 - !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
353 - )
354 - postgres? (
355 - >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
356 - >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
357 - !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
358 - !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
359 - !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
360 - !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
361 - )
362 - >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
363 - >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
364 - >=dev-python/tabulate-0.8.5[${PYTHON_USEDEP}]
365 - >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
366 - >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
367 - >=dev-python/oslo-vmware-2.35.0[${PYTHON_USEDEP}]
368 - >=dev-python/os-brick-2.2.0[${PYTHON_USEDEP}]
369 - >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}]
370 - >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
371 - >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}]
372 - >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}]
373 - >=dev-python/cryptography-2.1[${PYTHON_USEDEP}]
374 - >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
375 - iscsi? (
376 - tgt? ( sys-block/tgt )
377 - sys-block/open-iscsi
378 - )
379 - lvm? ( sys-fs/lvm2 )
380 - memcached? ( net-misc/memcached )
381 - app-emulation/qemu
382 - sys-fs/sysfsutils
383 - acct-user/cinder
384 - acct-group/cinder"
385 -# qemu is needed for image conversion
386 -
387 -#PATCHES=(
388 -#)
389 -
390 -pkg_pretend() {
391 - linux-info_pkg_setup
392 - CONFIG_CHECK_MODULES=""
393 - if use tcp; then
394 - CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
395 - fi
396 - if use rdma; then
397 - CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
398 - fi
399 - if use infiniband; then
400 - CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
401 - fi
402 - if linux_config_exists; then
403 - for module in ${CONFIG_CHECK_MODULES}; do
404 - linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
405 - done
406 - fi
407 -}
408 -
409 -python_prepare_all() {
410 - sed -i '/^hacking/d' test-requirements.txt || die
411 - # only used for docs
412 - sed -i '/^sphinx-feature-classification/d' requirements.txt || die
413 - distutils-r1_python_prepare_all
414 -}
415 -
416 -python_test() {
417 - # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727
418 - nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7"
419 -}
420 -
421 -python_install_all() {
422 - distutils-r1_python_install_all
423 - keepdir /etc/cinder
424 - dodir /etc/cinder/rootwrap.d
425 -
426 - for svc in api scheduler volume; do
427 - newinitd "${FILESDIR}/cinder.initd" cinder-${svc}
428 - done
429 -
430 - insinto /etc/cinder
431 - insopts -m0640 -o cinder -g cinder
432 - doins "etc/cinder/api-httpd.conf"
433 - doins "etc/cinder/logging_sample.conf"
434 - doins "etc/cinder/rootwrap.conf"
435 - doins "etc/cinder/api-paste.ini"
436 - doins "etc/cinder/resource_filters.json"
437 - newins "${DISTDIR}/cinder.conf.sample-${PV}" "cinder.conf.sample"
438 - insinto /etc/cinder/rootwrap.d
439 - doins "etc/cinder/rootwrap.d/volume.filters"
440 -
441 - dodir /var/log/cinder
442 - fowners cinder:cinder /var/log/cinder
443 -
444 - #add sudoers definitions for user nova
445 - insinto /etc/sudoers.d/
446 - insopts -m 0440 -o root -g root
447 - newins "${FILESDIR}/cinder.sudoersd" cinder
448 - # stupid python
449 - rm -r "${ED}"/usr/etc
450 -}
451 -
452 -pkg_postinst() {
453 - if use iscsi ; then
454 - elog "Cinder needs tgtd to be installed and running to work with iscsi"
455 - elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
456 - fi
457 -}