1 |
commit: 59c610ec2153a5dbc95415217e70c0707fe42890 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 21 14:04:43 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 21 14:04:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59c610ec |
7 |
|
8 |
sys-cluster/cinder: bup |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sys-cluster/cinder/Manifest | 1 + |
13 |
sys-cluster/cinder/cinder-8.1.1.ebuild | 182 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 183 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest |
17 |
index bfde592..423c9d8 100644 |
18 |
--- a/sys-cluster/cinder/Manifest |
19 |
+++ b/sys-cluster/cinder/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST cinder-8.1.0.tar.gz 3860875 SHA256 f2bd093ee6ed56b10a694e198eb2b3b436340b492d2bb1c6ae85eba5ef1e0326 SHA512 df6be20bfa90c6b1603125986e9b1b90f9f5e86b07a72acf52f53bd68adbc6971b5b9b88b70a312647d8306480ef55eade8cbe747d27646b302f886972631abb WHIRLPOOL 3516447f85bd2cecb907931d0c3eb0c379f2246c97be94b80549d01da68830d82d0dfe5967b153a287e98ee3a833c6d27491f5e3cb21a989bec490117c3b1b75 |
22 |
+DIST cinder-8.1.1.tar.gz 3875392 SHA256 57de9d1410e9e5a0568499e38414241167e4b2b1742aac309844da80efd127e2 SHA512 4dfa5a11b11b684761519b33d1b45f4d65152df96fc9303e92724f88a01bea031e0dd7aaa229d5876641fa4a5089fcd197e52cf01652a89f6027435b038f3560 WHIRLPOOL 9815230914da588529f3f3916ddfdb25025a531015fd78fce635a6e55b6051f2a26f2e4710cd980daceb905f41caaceb274f84c34353bbc363a36e12a88c8245 |
23 |
DIST mitaka-cinder-api-paste.ini 2416 SHA256 3794a5e34dace60474274e93a7346662eb03a485d1b9b67afded591e764aba9d SHA512 f6e3800557fa7efb562a69f80eea9b516c0ad2e54b9a013c92118bf91daaf2bdd2a9ced309626fab13fe9b979f0c768ac22bba63c7fa8aa3443004d50359d844 WHIRLPOOL 90e8c7bf065609e6a85d247c15b1022ea51bb94b000841c30a69d99c96082a08125fca58cf5b216990c6b746f52af5cedebbafc5b9450a91c0d32cdc21951952 |
24 |
DIST mitaka-cinder-policy.json 4959 SHA256 5a9cd9d5d4cf80a9271fd7a5146d6d5415d10f8d699a8499a39a3cde29f50bd6 SHA512 b36daa51ab7719e1a56ca760e7ec62a98fb3a88ffed96196852023abf4ffe483200c9dcb934e3c7910fc6988f9c2bb9bb914121d0d649dc3b01466f467a82fe2 WHIRLPOOL f288b6dba2593fa6deb8ad94862948899ec10f71e4751f108ec1fbfff814c3206b5c541aaac0bb7edd2fb5311639a1cd3a44586855912cb2e0e675d5ad78161c |
25 |
DIST mitaka-cinder-volume.filters 9819 SHA256 20e4833aaf18b6be247e8ea2a0f63cc509ed595ea799c3ccfbcc1d0afc5bf9d8 SHA512 7b7aacdd843b960ed075b466e0bd7d2973a7733e7db63b4cb02df4b824a9528f6b7074870bf0048674e600bed983bc66caa1914963fff4aed00e8ab40e2ef600 WHIRLPOOL 32fb88041b8f38c821896d82139ea712ea0fc0a71bd6154e31887e85baf58d80b2c8bfd6c60b21613e522fe32fb022078091fcdc74110e5c9968826ae218c085 |
26 |
|
27 |
diff --git a/sys-cluster/cinder/cinder-8.1.1.ebuild b/sys-cluster/cinder/cinder-8.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..52e541f |
30 |
--- /dev/null |
31 |
+++ b/sys-cluster/cinder/cinder-8.1.1.ebuild |
32 |
@@ -0,0 +1,182 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+PYTHON_COMPAT=( python2_7 python3_4 ) |
39 |
+ |
40 |
+inherit distutils-r1 eutils linux-info user |
41 |
+ |
42 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
43 |
+HOMEPAGE="https://launchpad.net/cinder" |
44 |
+SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz |
45 |
+ https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/mitaka/cinder.conf.sample -> mitaka-cinder.conf.sample |
46 |
+ https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/mitaka/api-paste.ini -> mitaka-cinder-api-paste.ini |
47 |
+ https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/mitaka/policy.json -> mitaka-cinder-policy.json |
48 |
+ https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/mitaka/volume.filters -> mitaka-cinder-volume.filters" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+IUSE="+api +scheduler +volume iscsi lvm mysql +memcached postgres sqlite test" |
54 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
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-1.3[${PYTHON_USEDEP}] |
64 |
+ !~dev-python/Babel-2.3.0[${PYTHON_USEDEP}] |
65 |
+ !~dev-python/Babel-2.3.1[${PYTHON_USEDEP}] |
66 |
+ !~dev-python/Babel-2.3.2[${PYTHON_USEDEP}] |
67 |
+ !~dev-python/Babel-2.3.3[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
69 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
70 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}] |
75 |
+ !~dev-python/keystonemiddleware-4.1.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/oslo-config-3.7.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/oslo-concurrency-3.7.1[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/oslo-db-4.1.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/oslo-messaging-4.0.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/oslo-policy-0.5.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/oslo-rootwrap-2.0.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-service-1.0.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-utils-3.5.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-versionedobjects-1.5.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/osprofiler-1.1.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/paramiko-1.16.0[${PYTHON_USEDEP}] |
94 |
+ dev-python/paste[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/python-barbicanclient-3.3.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/python-glanceclient-2.0.0[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}] |
101 |
+ !~dev-python/python-keystoneclient-1.8.0[${PYTHON_USEDEP}] |
102 |
+ !~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}] |
103 |
+ <dev-python/python-keystoneclient-3.0.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/python-novaclient-2.29.0[${PYTHON_USEDEP}] |
105 |
+ !~dev-python/python-novaclient-2.33.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/requests-2.8.1[${PYTHON_USEDEP}] |
109 |
+ !~dev-python/requests-2.9.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.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/taskflow-1.26.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/rtslib-fb-2.1.41[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
120 |
+ sqlite? ( |
121 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
122 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
123 |
+ ) |
124 |
+ mysql? ( |
125 |
+ dev-python/mysql-python |
126 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
127 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
128 |
+ ) |
129 |
+ postgres? ( |
130 |
+ dev-python/psycopg:2 |
131 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
132 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
133 |
+ ) |
134 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
135 |
+ >=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}] |
136 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
137 |
+ >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] |
138 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
139 |
+ >=dev-python/oslo-vmware-1.16.0[${PYTHON_USEDEP}] |
140 |
+ >=dev-python/os-brick-1.0.0[${PYTHON_USEDEP}] |
141 |
+ !~dev-python/os-brick-1.4.0[${PYTHON_USEDEP}] |
142 |
+ >=dev-python/os-win-0.2.3[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/tooz-1.28.0[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
145 |
+ iscsi? ( |
146 |
+ sys-block/tgt |
147 |
+ sys-block/open-iscsi |
148 |
+ ) |
149 |
+ lvm? ( sys-fs/lvm2 ) |
150 |
+ memcached? ( net-misc/memcached ) |
151 |
+ app-emulation/qemu |
152 |
+ sys-fs/sysfsutils" |
153 |
+# qemu is needed for image conversion |
154 |
+ |
155 |
+#PATCHES=( |
156 |
+#) |
157 |
+ |
158 |
+pkg_setup() { |
159 |
+ linux-info_pkg_setup |
160 |
+ CONFIG_CHECK_MODULES="ISCSI_TCP" |
161 |
+ if linux_config_exists; then |
162 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
163 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be built as module (builtin doesn't work)" |
164 |
+ done |
165 |
+ fi |
166 |
+ enewgroup cinder |
167 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
168 |
+} |
169 |
+ |
170 |
+python_prepare_all() { |
171 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
172 |
+ distutils-r1_python_prepare_all |
173 |
+} |
174 |
+ |
175 |
+python_test() { |
176 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
177 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
178 |
+} |
179 |
+ |
180 |
+python_install() { |
181 |
+ distutils-r1_python_install |
182 |
+ keepdir /etc/cinder |
183 |
+ dodir /etc/cinder/rootwrap.d |
184 |
+ |
185 |
+ for svc in api scheduler volume; do |
186 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
187 |
+ done |
188 |
+ |
189 |
+ insinto /etc/cinder |
190 |
+ insopts -m0640 -o cinder -g cinder |
191 |
+ doins "etc/cinder/api-httpd.conf" |
192 |
+ doins "etc/cinder/logging_sample.conf" |
193 |
+ doins "etc/cinder/rootwrap.conf" |
194 |
+ newins "${DISTDIR}/mitaka-cinder-api-paste.ini" "api-paste.ini" |
195 |
+ newins "${DISTDIR}/mitaka-cinder-policy.json" "policy.json" |
196 |
+ newins "${DISTDIR}/mitaka-cinder.conf.sample" "cidner.conf.sample" |
197 |
+ insinto /etc/cinder/rootwrap.d |
198 |
+ newins "${DISTDIR}/mitaka-cinder-volume.filters" "volume.filters" |
199 |
+ |
200 |
+ dodir /var/log/cinder |
201 |
+ fowners cinder:cinder /var/log/cinder |
202 |
+ |
203 |
+ #add sudoers definitions for user nova |
204 |
+ insinto /etc/sudoers.d/ |
205 |
+ insopts -m 0440 -o root -g root |
206 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
207 |
+} |
208 |
+ |
209 |
+pkg_postinst() { |
210 |
+ if use iscsi ; then |
211 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
212 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
213 |
+ fi |
214 |
+} |