1 |
commit: 6028e95d7cb9ec9bcbd2368f7420961ff4477fe3 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 29 18:04:55 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 29 18:08:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6028e95d |
7 |
|
8 |
sys-cluster/cinder: 9.1.3 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-cluster/cinder/Manifest | 1 + |
13 |
sys-cluster/cinder/cinder-9.1.3.ebuild | 195 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 196 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest |
17 |
index 6ac88e21473..8d5b12d73cf 100644 |
18 |
--- a/sys-cluster/cinder/Manifest |
19 |
+++ b/sys-cluster/cinder/Manifest |
20 |
@@ -1,6 +1,7 @@ |
21 |
DIST cinder-10.0.0.tar.gz 4610356 SHA256 3047812d07cebbcb5559cdc3a1d827fa62be35c2297cd3c1359b52dc8349ea04 SHA512 b55e95b84b09287b5786b6a07a6d2699ae0ca55dbd0dc9089a4e14fa039e2576b6eaefccf05e0eff0f9d36ebbe2aac0a4dd0de6122ae104cc3335d00174e82ed WHIRLPOOL 8f7bdc067a4b7e3d7f62a5a1c0d3bd15b8d461fb25d0d07efdfcab7d09a5cd2b34dded54334ddd14e515e8ceb9c2531353284773eef1d4f2acaa96eff95789a6 |
22 |
DIST cinder-8.1.1.tar.gz 3875392 SHA256 57de9d1410e9e5a0568499e38414241167e4b2b1742aac309844da80efd127e2 SHA512 4dfa5a11b11b684761519b33d1b45f4d65152df96fc9303e92724f88a01bea031e0dd7aaa229d5876641fa4a5089fcd197e52cf01652a89f6027435b038f3560 WHIRLPOOL 9815230914da588529f3f3916ddfdb25025a531015fd78fce635a6e55b6051f2a26f2e4710cd980daceb905f41caaceb274f84c34353bbc363a36e12a88c8245 |
23 |
DIST cinder-9.1.2.tar.gz 4202510 SHA256 03415a9fc0280263d9094e385ce08af1ad3daed2227baa8c258744e400cd97c2 SHA512 bc5b8d58128df458f80120d061da5b2e097c8ce4daa6ee9b7c5e1062a1074861e9e33f547f4a5c2005316d1ad9f8f3b2f3e2d5825492ba6fa0becf8fdf3a41ee WHIRLPOOL dc8a74fdd513fdeb0cf321498a504ef9803480ae254a2f7e65853f27867699a54311fcb0ad2c248d06fccd5d914eda20335fce9f6efd983e5d03bd59f6851a40 |
24 |
+DIST cinder-9.1.3.tar.gz 4205643 SHA256 73e9df6dd47544cb49bf333d038182aa5814f3c39daf03a7ef465b2868e9a217 SHA512 6e0af3f205b6ee64240fc2d68e8c54f2e97ef11f560fc9f42a67c41c83eabe757ba56df1f3059500120b8780b59708212e36eae45e8c7c46a0fbb4df87f5a99f WHIRLPOOL 1778329077a6bc5c941a69eadabf7e73df00714e663caa44bf69d23af7da7c1315e72fcca5b3e11ca0f72b4833dc6462c9a38001a812dcea8c0d0a727d918991 |
25 |
DIST mitaka-cinder-api-paste.ini 2416 SHA256 3794a5e34dace60474274e93a7346662eb03a485d1b9b67afded591e764aba9d SHA512 f6e3800557fa7efb562a69f80eea9b516c0ad2e54b9a013c92118bf91daaf2bdd2a9ced309626fab13fe9b979f0c768ac22bba63c7fa8aa3443004d50359d844 WHIRLPOOL 90e8c7bf065609e6a85d247c15b1022ea51bb94b000841c30a69d99c96082a08125fca58cf5b216990c6b746f52af5cedebbafc5b9450a91c0d32cdc21951952 |
26 |
DIST mitaka-cinder-policy.json 4959 SHA256 5a9cd9d5d4cf80a9271fd7a5146d6d5415d10f8d699a8499a39a3cde29f50bd6 SHA512 b36daa51ab7719e1a56ca760e7ec62a98fb3a88ffed96196852023abf4ffe483200c9dcb934e3c7910fc6988f9c2bb9bb914121d0d649dc3b01466f467a82fe2 WHIRLPOOL f288b6dba2593fa6deb8ad94862948899ec10f71e4751f108ec1fbfff814c3206b5c541aaac0bb7edd2fb5311639a1cd3a44586855912cb2e0e675d5ad78161c |
27 |
DIST mitaka-cinder-volume.filters 9819 SHA256 20e4833aaf18b6be247e8ea2a0f63cc509ed595ea799c3ccfbcc1d0afc5bf9d8 SHA512 7b7aacdd843b960ed075b466e0bd7d2973a7733e7db63b4cb02df4b824a9528f6b7074870bf0048674e600bed983bc66caa1914963fff4aed00e8ab40e2ef600 WHIRLPOOL 32fb88041b8f38c821896d82139ea712ea0fc0a71bd6154e31887e85baf58d80b2c8bfd6c60b21613e522fe32fb022078091fcdc74110e5c9968826ae218c085 |
28 |
|
29 |
diff --git a/sys-cluster/cinder/cinder-9.1.3.ebuild b/sys-cluster/cinder/cinder-9.1.3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..9fa69af2a85 |
32 |
--- /dev/null |
33 |
+++ b/sys-cluster/cinder/cinder-9.1.3.ebuild |
34 |
@@ -0,0 +1,195 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+PYTHON_COMPAT=( python2_7 python3_4 ) |
40 |
+ |
41 |
+inherit distutils-r1 eutils linux-info user |
42 |
+ |
43 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
44 |
+HOMEPAGE="https://launchpad.net/cinder" |
45 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/newton/cinder.conf.sample -> newton-cinder.conf.sample |
46 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/newton/policy.json -> newton-cinder-policy.json |
47 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/newton/volume.filters -> newton-cinder-volume.filters |
48 |
+https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt" |
54 |
+REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )" |
55 |
+ |
56 |
+CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]" |
57 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ ${CDEPEND} |
59 |
+ app-admin/sudo" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ ${CDEPEND} |
63 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
65 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
66 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
70 |
+ virtual/python-ipaddress[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/keystoneauth-2.10.0[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}] |
73 |
+ !~dev-python/keystonemiddleware-4.1.0[${PYTHON_USEDEP}] |
74 |
+ !~dev-python/keystonemiddleware-4.5.0[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/oslo-db-4.10.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/oslo-db-4.13.1[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/oslo-db-4.13.2[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/oslo-messaging-5.2.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/oslo-policy-1.9.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-versionedobjects-1.13.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
96 |
+ dev-python/paste[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/python-barbicanclient-4.0.0[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/python-glanceclient-2.3.0[${PYTHON_USEDEP}] |
102 |
+ !~dev-python/python-glanceclient-2.4.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/python-keystoneclient-2.0.0[${PYTHON_USEDEP}] |
104 |
+ !~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/python-novaclient-2.29.0[${PYTHON_USEDEP}] |
106 |
+ !~dev-python/python-novaclient-2.33.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
111 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
113 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
114 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
115 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/taskflow-1.26.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/rtslib-fb-2.1.41[${PYTHON_USEDEP}] |
118 |
+ !~dev-python/rtslib-fb-2.1.60[${PYTHON_USEDEP}] |
119 |
+ !~dev-python/rtslib-fb-2.1.61[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
122 |
+ sqlite? ( |
123 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
124 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
125 |
+ ) |
126 |
+ mysql? ( |
127 |
+ >=dev-python/pymysql-0.6.2[${PYTHON_USEDEP}] |
128 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
129 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
130 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
131 |
+ ) |
132 |
+ postgres? ( |
133 |
+ >=dev-python/psycopg-2.5.0 |
134 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
135 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
136 |
+ ) |
137 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
138 |
+ >=dev-python/stevedore-1.16.0[${PYTHON_USEDEP}] |
139 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
140 |
+ >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] |
141 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
142 |
+ >=dev-python/oslo-vmware-2.11.0[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/os-brick-1.6.1[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/os-win-0.2.3[${PYTHON_USEDEP}] |
145 |
+ >=dev-python/tooz-1.28.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
148 |
+ iscsi? ( |
149 |
+ tgt? ( sys-block/tgt ) |
150 |
+ sys-block/open-iscsi |
151 |
+ ) |
152 |
+ lvm? ( sys-fs/lvm2 ) |
153 |
+ memcached? ( net-misc/memcached ) |
154 |
+ app-emulation/qemu |
155 |
+ sys-fs/sysfsutils" |
156 |
+# qemu is needed for image conversion |
157 |
+ |
158 |
+#PATCHES=( |
159 |
+#) |
160 |
+ |
161 |
+pkg_pretend() { |
162 |
+ linux-info_pkg_setup |
163 |
+ CONFIG_CHECK_MODULES="" |
164 |
+ if use tcp; then |
165 |
+ CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP " |
166 |
+ fi |
167 |
+ if use rdma; then |
168 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_ISER " |
169 |
+ fi |
170 |
+ if use infiniband; then |
171 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS" |
172 |
+ fi |
173 |
+ if linux_config_exists; then |
174 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
175 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
176 |
+ done |
177 |
+ fi |
178 |
+} |
179 |
+ |
180 |
+pkg_setup() { |
181 |
+ enewgroup cinder |
182 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
183 |
+} |
184 |
+ |
185 |
+python_prepare_all() { |
186 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
187 |
+ distutils-r1_python_prepare_all |
188 |
+} |
189 |
+ |
190 |
+python_test() { |
191 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
192 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
193 |
+} |
194 |
+ |
195 |
+python_install_all() { |
196 |
+ distutils-r1_python_install_all |
197 |
+ keepdir /etc/cinder |
198 |
+ dodir /etc/cinder/rootwrap.d |
199 |
+ |
200 |
+ for svc in api scheduler volume; do |
201 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
202 |
+ done |
203 |
+ |
204 |
+ insinto /etc/cinder |
205 |
+ insopts -m0640 -o cinder -g cinder |
206 |
+ doins "etc/cinder/api-httpd.conf" |
207 |
+ doins "etc/cinder/logging_sample.conf" |
208 |
+ doins "etc/cinder/rootwrap.conf" |
209 |
+ doins "etc/cinder/api-paste.ini" |
210 |
+ newins "${DISTDIR}/newton-cinder-policy.json" "policy.json" |
211 |
+ newins "${DISTDIR}/newton-cinder.conf.sample" "cinder.conf.sample" |
212 |
+ insinto /etc/cinder/rootwrap.d |
213 |
+ newins "${DISTDIR}/newton-cinder-volume.filters" "volume.filters" |
214 |
+ |
215 |
+ dodir /var/log/cinder |
216 |
+ fowners cinder:cinder /var/log/cinder |
217 |
+ |
218 |
+ #add sudoers definitions for user nova |
219 |
+ insinto /etc/sudoers.d/ |
220 |
+ insopts -m 0440 -o root -g root |
221 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
222 |
+} |
223 |
+ |
224 |
+pkg_postinst() { |
225 |
+ if use iscsi ; then |
226 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
227 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
228 |
+ fi |
229 |
+} |