1 |
commit: 32712593155a596407ffe78114bff3bf91e8882c |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 22 20:16:32 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 22 20:16:50 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32712593 |
7 |
|
8 |
sys-cluster/cinder: QUEENS |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
sys-cluster/cinder/Manifest | 1 + |
13 |
sys-cluster/cinder/cinder-2018.1.9999.ebuild | 219 +++++++++++++++++++++++++++ |
14 |
2 files changed, 220 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest |
17 |
index 81a390d8547..b5683f63fdf 100644 |
18 |
--- a/sys-cluster/cinder/Manifest |
19 |
+++ b/sys-cluster/cinder/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST cinder-11.0.2.tar.gz 5794973 BLAKE2B a7b59afbe3e27a2fde28a3dcb2ba3707c67223ae7e98cb34d0ac92beb16ab8f10c07f22fda091c9db9a02fd2eff4769a6e574a94cb19df1e9506c36321a12014 SHA512 6340150aa010a4372a7e51dc976974839f89b180eef61c9307c5b477dae98c8629a3f54cbc3d114dca28ca75c715930357cfc96d08f80acaabacee8f8c0bf3a6 |
22 |
DIST cinder-11.1.0.tar.gz 5813863 BLAKE2B 467ebe47d92b8a9c612b6d2c30ca9a3b737b33cf999c3612079cb6d6886ee986e60f9eb15bc6cd3e2adc7ab9c4e956ca41c9324c23f8892cdea9aedd1e1e035c SHA512 193914d69144afba54bda7b3d05a8140501368c2fd44dd203dff5006228dad47602c4da244dc844781cff36581987ee236fc5238c7d78062e7cb78b8795b1f28 |
23 |
DIST pike-cinder.conf.sample 185310 BLAKE2B 6f6a626537098107d63cd33ef6f8cc63dd5064711fcab3b6a7ebd0bb4170d3cc18e1cc414491859c63ca02d39602f496068823975f1cd5de731402696ade0868 SHA512 12c44b7a31888fbf4c70e037a2f5d0b778018e10bd0fc1cb97391bbe2fc6f97bbe4bec0d1504513ee0235ce50decda6883fe64a7d8fd5e329d8ad73e6bb74654 |
24 |
+DIST queens-cinder.conf.sample 179467 BLAKE2B 00c229a6d9882740460c633db69bf3f5ff3d77a2a8e78f38528f1b5e6e03c2371141ba219c24b8dc82e51c20a5e784af142c1a0192791ff356e5841a9991d713 SHA512 346f9ad4ddcfed26dd3b9b34e65c2edaf08a7d649d4af5bd3a5ebf1047c78d6cdc4e4712666e022f56acd3b2a0b323850b40cc4d0008f2c140507342a00b2908 |
25 |
|
26 |
diff --git a/sys-cluster/cinder/cinder-2018.1.9999.ebuild b/sys-cluster/cinder/cinder-2018.1.9999.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3b14eed864d |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/cinder/cinder-2018.1.9999.ebuild |
31 |
@@ -0,0 +1,219 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
37 |
+ |
38 |
+inherit distutils-r1 eutils git-r3 linux-info user |
39 |
+ |
40 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
41 |
+HOMEPAGE="https://launchpad.net/cinder" |
42 |
+ |
43 |
+if [[ ${PV} == *9999 ]];then |
44 |
+ inherit git-r3 |
45 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/queens/cinder.conf.sample -> queens-cinder.conf.sample" |
46 |
+ EGIT_REPO_URI="https://github.com/openstack/cinder.git" |
47 |
+ EGIT_BRANCH="stable/queens" |
48 |
+else |
49 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/queens/cinder.conf.sample -> queens-cinder.conf.sample |
50 |
+ https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
51 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
52 |
+fi |
53 |
+ |
54 |
+LICENSE="Apache-2.0" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="" |
57 |
+IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt" |
58 |
+REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )" |
59 |
+ |
60 |
+CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
61 |
+ !~dev-python/pbr-2.1.0" |
62 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ ${CDEPEND} |
64 |
+ app-admin/sudo" |
65 |
+ |
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/decorator-3.4.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}] |
72 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
73 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
74 |
+ !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
75 |
+ <dev-python/eventlet-0.21.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] |
80 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
81 |
+ virtual/python-ipaddress[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/keystoneauth-3.3.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}] |
85 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/oslo-config-5.1.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/oslo-concurrency-3.25.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-privsep-1.23.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}] |
99 |
+ !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}] |
101 |
+ !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
109 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/python-barbicanclient-4.0.0[${PYTHON_USEDEP}] |
113 |
+ !~dev-python/python-barbicanclient-4.5.0[${PYTHON_USEDEP}] |
114 |
+ !~dev-python/python-barbicanclient-4.5.1[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
122 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
124 |
+ >=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/rtslib-fb-2.1.43[${PYTHON_USEDEP}] |
126 |
+ !~dev-python/rtslib-fb-2.1.60[${PYTHON_USEDEP}] |
127 |
+ !~dev-python/rtslib-fb-2.1.61[${PYTHON_USEDEP}] |
128 |
+ !~dev-python/rtslib-fb-2.1.64[${PYTHON_USEDEP}] |
129 |
+ >=dev-python/simplejson-3.5.1[${PYTHON_USEDEP}] |
130 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
131 |
+ sqlite? ( |
132 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
133 |
+ !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}] |
134 |
+ !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}] |
135 |
+ !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}] |
136 |
+ !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}] |
137 |
+ ) |
138 |
+ mysql? ( |
139 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
140 |
+ !~dev-python/pymysql-0.7.7[${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 |
+ postgres? ( |
148 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
150 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
151 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
152 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
153 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
154 |
+ ) |
155 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
156 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
157 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
158 |
+ >=dev-python/webob-1.7.1[${PYTHON_USEDEP}] |
159 |
+ >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
160 |
+ >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}] |
161 |
+ >=dev-python/os-brick-2.2.0[${PYTHON_USEDEP}] |
162 |
+ >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}] |
163 |
+ >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}] |
164 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
165 |
+ >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}] |
166 |
+ >=dev-python/cryptography-1.9[${PYTHON_USEDEP}] |
167 |
+ !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] |
168 |
+ iscsi? ( |
169 |
+ tgt? ( sys-block/tgt ) |
170 |
+ sys-block/open-iscsi |
171 |
+ ) |
172 |
+ lvm? ( sys-fs/lvm2 ) |
173 |
+ memcached? ( net-misc/memcached ) |
174 |
+ app-emulation/qemu |
175 |
+ sys-fs/sysfsutils" |
176 |
+# qemu is needed for image conversion |
177 |
+ |
178 |
+#PATCHES=( |
179 |
+#) |
180 |
+ |
181 |
+pkg_pretend() { |
182 |
+ linux-info_pkg_setup |
183 |
+ CONFIG_CHECK_MODULES="" |
184 |
+ if use tcp; then |
185 |
+ CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP " |
186 |
+ fi |
187 |
+ if use rdma; then |
188 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_ISER " |
189 |
+ fi |
190 |
+ if use infiniband; then |
191 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS" |
192 |
+ fi |
193 |
+ if linux_config_exists; then |
194 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
195 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
196 |
+ done |
197 |
+ fi |
198 |
+} |
199 |
+ |
200 |
+pkg_setup() { |
201 |
+ enewgroup cinder |
202 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
203 |
+} |
204 |
+ |
205 |
+python_prepare_all() { |
206 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
207 |
+ distutils-r1_python_prepare_all |
208 |
+} |
209 |
+ |
210 |
+python_test() { |
211 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
212 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
213 |
+} |
214 |
+ |
215 |
+python_install_all() { |
216 |
+ distutils-r1_python_install_all |
217 |
+ keepdir /etc/cinder |
218 |
+ dodir /etc/cinder/rootwrap.d |
219 |
+ |
220 |
+ for svc in api scheduler volume; do |
221 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
222 |
+ done |
223 |
+ |
224 |
+ insinto /etc/cinder |
225 |
+ insopts -m0640 -o cinder -g cinder |
226 |
+ doins "etc/cinder/api-httpd.conf" |
227 |
+ doins "etc/cinder/logging_sample.conf" |
228 |
+ doins "etc/cinder/rootwrap.conf" |
229 |
+ doins "etc/cinder/api-paste.ini" |
230 |
+ doins "etc/cinder/policy.json" |
231 |
+ doins "etc/cinder/resource_filters.json" |
232 |
+ newins "${DISTDIR}/pike-cinder.conf.sample" "cinder.conf.sample" |
233 |
+ insinto /etc/cinder/rootwrap.d |
234 |
+ doins "etc/cinder/rootwrap.d/volume.filters" |
235 |
+ |
236 |
+ dodir /var/log/cinder |
237 |
+ fowners cinder:cinder /var/log/cinder |
238 |
+ |
239 |
+ #add sudoers definitions for user nova |
240 |
+ insinto /etc/sudoers.d/ |
241 |
+ insopts -m 0440 -o root -g root |
242 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
243 |
+} |
244 |
+ |
245 |
+pkg_postinst() { |
246 |
+ if use iscsi ; then |
247 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
248 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
249 |
+ fi |
250 |
+} |