1 |
commit: cb7c5a29122254cd3babd7cbeffbcf0fd1a3194f |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 00:12:56 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 00:13:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb7c5a29 |
7 |
|
8 |
sys-cluster/ceph: Drop old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-cluster/ceph/Manifest | 1 - |
13 |
sys-cluster/ceph/ceph-10.2.4.ebuild | 267 --------------------------------- |
14 |
sys-cluster/ceph/ceph-10.2.5-r1.ebuild | 267 --------------------------------- |
15 |
sys-cluster/ceph/ceph-10.2.5.ebuild | 267 --------------------------------- |
16 |
4 files changed, 802 deletions(-) |
17 |
|
18 |
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest |
19 |
index 8f13964a6e..793888de56 100644 |
20 |
--- a/sys-cluster/ceph/Manifest |
21 |
+++ b/sys-cluster/ceph/Manifest |
22 |
@@ -1,5 +1,4 @@ |
23 |
DIST ceph-0.94.9.tar.gz 9044702 SHA256 d5bc07e7aef75f74d75f0356e5dd2a17956cbad6bb552a1e96a0fabd80924050 SHA512 ef4bbcc4429e22a2d924fd52dc42f522d5327f67ee8c1781d7cf602c2932a485cb48db21bdc33e7c7fbc968eec59c17882ebb18e6405599e11a3abc248f1d376 WHIRLPOOL f348159e8d7dd5e1ac3810a51846f50f6cefdbc5fa4cd15c3127b1136eb960baca8ad8db33c78a5d6435720cf1e2c277e068d09f9b9dbcf0f8ad56d7ddd914dc |
24 |
DIST ceph-10.2.3.tar.gz 11596171 SHA256 dca933aa14db67b404d836ef510bd418091978edc2f0c74dfc530ba0aa5e8994 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19 WHIRLPOOL 981ebca66113a07a5cc6e5934272a72b29a2c19e03398f7b622c11df6ea0a05339558dfc2f11504403cbbd0efe0b090ad59f4b86206b46db57587744091aa26a |
25 |
-DIST ceph-10.2.4.tar.gz 13941119 SHA256 7f5c8c5a4dc73c5d4b9c62c8a1a4822e21b45fe0b798f664f270f0287ab796f6 SHA512 a209201249ce85ec85655faf96979a78c417d57cdc086ef0315e67e39429123138e1f206db28d1bae33993e4791524b43d3c18255c8630c2d466794e7626a24c WHIRLPOOL 3632db27f5f73b0e187e2f5af0fdb68975b808477f10d84394db5752173460132e5d251950e56b0f7bccf2fde4d42a35885316f579039fcc98ef96e86b1becfc |
26 |
DIST ceph-10.2.5.tar.gz 14020700 SHA256 82dd4271f18eb7b84ff16f273a5250a4a9e809bfaccce5a1cca493416332d5f4 SHA512 4889aff38c8af781c2e3dce8f4ee51864db0a27c6294774345d2c1b047588ec31354ad41f799e2f0d0a966dc372d76c9bdbfb93f30a0718ea9d7c2b7a645d0f8 WHIRLPOOL 986a6ac35612a732d2a9a73277525679f9da729601c7e3f82b83e7e8ee2eb4245c98cdf5c4462ae1c789cb3d120a2c4a7eb9a3958b072db5e743b2c015269dfc |
27 |
DIST ceph-9.2.1.tar.gz 9933444 SHA256 1918dfc3df80df5986c5b7ff6bc6c78064eef0f6c5e8269dba30e08c703a7c2f SHA512 1e84c1e2d64f4156a523658ed11552b045f75986922b7b7dbaf4719e73a0a6aadc71eb2b94ae363526f729534a592921a437468a41a3cea88c1b84e09de8505a WHIRLPOOL 3a0eb6712e5b0235707e86129e1d66f1184f50cd4980c30f6d8cc0e7dfd96d30b91177ed16dd7abf2ad4983c6a543eb91915f74f661f7d3e3c810b5b1d656aca |
28 |
|
29 |
diff --git a/sys-cluster/ceph/ceph-10.2.4.ebuild b/sys-cluster/ceph/ceph-10.2.4.ebuild |
30 |
deleted file mode 100644 |
31 |
index c8f2acd624..0000000000 |
32 |
--- a/sys-cluster/ceph/ceph-10.2.4.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,267 +0,0 @@ |
35 |
-# Copyright 1999-2016 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
-# $Id$ |
38 |
- |
39 |
-EAPI=6 |
40 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
41 |
- |
42 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
43 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
44 |
- |
45 |
-if [[ ${PV} == *9999* ]]; then |
46 |
- inherit git-r3 |
47 |
- EGIT_REPO_URI=" |
48 |
- git://github.com/ceph/ceph.git |
49 |
- https://github.com/ceph/ceph.git" |
50 |
- SRC_URI="" |
51 |
-else |
52 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
53 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
54 |
-fi |
55 |
- |
56 |
-DESCRIPTION="Ceph distributed filesystem" |
57 |
-HOMEPAGE="http://ceph.com/" |
58 |
- |
59 |
-LICENSE="LGPL-2.1" |
60 |
-SLOT="0" |
61 |
- |
62 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
63 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs" |
64 |
- |
65 |
-# unbundling code commented out pending bugs 584056 and 584058 |
66 |
-#>=dev-libs/jerasure-2.0.0-r1 |
67 |
-#>=dev-libs/gf-complete-2.0.0 |
68 |
-COMMON_DEPEND=" |
69 |
- app-arch/snappy |
70 |
- app-arch/lz4:= |
71 |
- app-arch/bzip2 |
72 |
- dev-libs/boost:=[threads] |
73 |
- dev-libs/libaio |
74 |
- dev-libs/leveldb[snappy] |
75 |
- nss? ( dev-libs/nss ) |
76 |
- libatomic? ( dev-libs/libatomic_ops ) |
77 |
- cryptopp? ( dev-libs/crypto++:= ) |
78 |
- sys-apps/keyutils |
79 |
- sys-apps/util-linux |
80 |
- dev-libs/libxml2 |
81 |
- radosgw? ( dev-libs/fcgi ) |
82 |
- ldap? ( net-nds/openldap ) |
83 |
- babeltrace? ( dev-util/babeltrace ) |
84 |
- fuse? ( sys-fs/fuse ) |
85 |
- xfs? ( sys-fs/xfsprogs ) |
86 |
- zfs? ( sys-fs/zfs ) |
87 |
- gtk? ( |
88 |
- x11-libs/gtk+:2 |
89 |
- dev-cpp/gtkmm:2.4 |
90 |
- gnome-base/librsvg |
91 |
- ) |
92 |
- radosgw? ( |
93 |
- dev-libs/fcgi |
94 |
- dev-libs/expat |
95 |
- net-misc/curl |
96 |
- ) |
97 |
- jemalloc? ( dev-libs/jemalloc ) |
98 |
- !jemalloc? ( dev-util/google-perftools ) |
99 |
- lttng? ( dev-util/lttng-ust ) |
100 |
- ${PYTHON_DEPS} |
101 |
- " |
102 |
-DEPEND="${COMMON_DEPEND} |
103 |
- dev-python/cython[${PYTHON_USEDEP}] |
104 |
- app-arch/cpio |
105 |
- sys-apps/lsb-release |
106 |
- virtual/pkgconfig |
107 |
- dev-python/sphinx |
108 |
- test? ( |
109 |
- sys-fs/btrfs-progs |
110 |
- sys-apps/grep[pcre] |
111 |
- dev-python/tox[${PYTHON_USEDEP}] |
112 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
113 |
- )" |
114 |
-RDEPEND="${COMMON_DEPEND} |
115 |
- sys-apps/hdparm |
116 |
- sys-block/parted |
117 |
- sys-fs/cryptsetup |
118 |
- sys-apps/gptfdisk |
119 |
- dev-python/flask[${PYTHON_USEDEP}] |
120 |
- dev-python/requests[${PYTHON_USEDEP}] |
121 |
- " |
122 |
-REQUIRED_USE=" |
123 |
- $(python_gen_useflags 'python2*') |
124 |
- ${PYTHON_REQUIRED_USE} |
125 |
- ^^ ( nss cryptopp ) |
126 |
- ?? ( jemalloc tcmalloc ) |
127 |
- " |
128 |
- |
129 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
130 |
-REQUIRED_USE+=" radosgw" |
131 |
- |
132 |
-RESTRICT="test? ( userpriv )" |
133 |
- |
134 |
-# distribution tarball does not include everything needed for tests |
135 |
-RESTRICT+=" test" |
136 |
- |
137 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
138 |
- |
139 |
-UNBUNDLE_LIBS=( |
140 |
- src/erasure-code/jerasure/jerasure |
141 |
- src/erasure-code/jerasure/gf-complete |
142 |
-) |
143 |
- |
144 |
-PATCHES=( |
145 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
146 |
- #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch" |
147 |
- "${FILESDIR}/${PN}-10.2.1-libzfs.patch" |
148 |
- "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch" |
149 |
-) |
150 |
- |
151 |
-check-reqs_export_vars() { |
152 |
- if use debug; then |
153 |
- CHECKREQS_DISK_BUILD="23G" |
154 |
- CHECKREQS_DISK_USR="7G" |
155 |
- elif use amd64; then |
156 |
- CHECKREQS_DISK_BUILD="12G" |
157 |
- CHECKREQS_DISK_USR="450M" |
158 |
- else |
159 |
- CHECKREQS_DISK_BUILD="1400M" |
160 |
- CHECKREQS_DISK_USR="450M" |
161 |
- fi |
162 |
- |
163 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
164 |
-} |
165 |
- |
166 |
-user_setup() { |
167 |
- enewgroup ceph ${CEPH_GID} |
168 |
- enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph |
169 |
-} |
170 |
- |
171 |
-emake_python_bindings() { |
172 |
- local action="${1}" params binding |
173 |
- shift |
174 |
- params=("${@}") |
175 |
- |
176 |
- __emake_python_bindings_do_impl() { |
177 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
178 |
- |
179 |
- # these don't work and aren't needed on python3 |
180 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
181 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
182 |
- fi |
183 |
- } |
184 |
- |
185 |
- pushd "${S}/src" |
186 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
187 |
- python_foreach_impl __emake_python_bindings_do_impl |
188 |
- done |
189 |
- popd |
190 |
- |
191 |
- unset __emake_python_bindings_do_impl |
192 |
-} |
193 |
- |
194 |
-pkg_pretend() { |
195 |
- check-reqs_export_vars |
196 |
- check-reqs_pkg_pretend |
197 |
-} |
198 |
- |
199 |
-pkg_setup() { |
200 |
- python_setup |
201 |
- check-reqs_export_vars |
202 |
- check-reqs_pkg_setup |
203 |
- user_setup |
204 |
-} |
205 |
- |
206 |
-src_prepare() { |
207 |
- default |
208 |
- |
209 |
- # remove tests that need root access |
210 |
- rm src/test/cli/ceph-authtool/cap*.t |
211 |
- |
212 |
- #rm -rf "${UNBUNDLE_LIBS[@]}" |
213 |
- |
214 |
- append-flags -fPIC |
215 |
- eautoreconf |
216 |
-} |
217 |
- |
218 |
-src_configure() { |
219 |
- local myeconfargs=( |
220 |
- --without-hadoop |
221 |
- --includedir=/usr/include |
222 |
- $(use_with cephfs) |
223 |
- $(use_with debug) |
224 |
- $(use_with fuse) |
225 |
- $(use_with libaio) |
226 |
- $(use_with libatomic libatomic-ops) |
227 |
- $(use_with nss) |
228 |
- $(use_with cryptopp) |
229 |
- $(use_with radosgw) |
230 |
- $(use_with gtk gtk2) |
231 |
- $(use_enable static-libs static) |
232 |
- $(use_with jemalloc) |
233 |
- $(use_with xfs libxfs) |
234 |
- $(use_with zfs libzfs) |
235 |
- $(use_with lttng ) |
236 |
- $(use_with babeltrace) |
237 |
- $(use_with ldap openldap) |
238 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
239 |
- --with-mon |
240 |
- --with-eventfd |
241 |
- --with-cython |
242 |
- --without-kinetic |
243 |
- --without-librocksdb |
244 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
245 |
- ) |
246 |
- |
247 |
- # we can only use python2.7 for building at the moment |
248 |
- python_setup 'python2*' |
249 |
- econf "${myeconfargs[@]}" |
250 |
-} |
251 |
- |
252 |
-src_compile() { |
253 |
- emake |
254 |
- emake_python_bindings all |
255 |
- |
256 |
- use test && emake check-local |
257 |
-} |
258 |
- |
259 |
-src_test() { |
260 |
- make check || die "make check failed" |
261 |
-} |
262 |
- |
263 |
-src_install() { |
264 |
- default |
265 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
266 |
- |
267 |
- prune_libtool_files --all |
268 |
- |
269 |
- exeinto /usr/$(get_libdir)/ceph |
270 |
- newexe src/init-ceph ceph_init.sh |
271 |
- |
272 |
- insinto /etc/logrotate.d/ |
273 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
274 |
- |
275 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
276 |
- |
277 |
- fowners -R ceph:ceph /var/lib/ceph /var/log/ceph |
278 |
- |
279 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
280 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
281 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
282 |
- |
283 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
284 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
285 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
286 |
- |
287 |
- udev_dorules udev/*.rules |
288 |
- |
289 |
- readme.gentoo_create_doc |
290 |
- |
291 |
- python_setup 'python2*' |
292 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
293 |
- |
294 |
- # python_fix_shebang apparently is not idempotent |
295 |
- sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \ |
296 |
- "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed" |
297 |
-} |
298 |
- |
299 |
-pkg_postinst() { |
300 |
- readme.gentoo_print_elog |
301 |
-} |
302 |
|
303 |
diff --git a/sys-cluster/ceph/ceph-10.2.5-r1.ebuild b/sys-cluster/ceph/ceph-10.2.5-r1.ebuild |
304 |
deleted file mode 100644 |
305 |
index 1f381009dd..0000000000 |
306 |
--- a/sys-cluster/ceph/ceph-10.2.5-r1.ebuild |
307 |
+++ /dev/null |
308 |
@@ -1,267 +0,0 @@ |
309 |
-# Copyright 1999-2017 Gentoo Foundation |
310 |
-# Distributed under the terms of the GNU General Public License v2 |
311 |
-# $Id$ |
312 |
- |
313 |
-EAPI=6 |
314 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
315 |
- |
316 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
317 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
318 |
- |
319 |
-if [[ ${PV} == *9999* ]]; then |
320 |
- inherit git-r3 |
321 |
- EGIT_REPO_URI=" |
322 |
- git://github.com/ceph/ceph.git |
323 |
- https://github.com/ceph/ceph.git" |
324 |
- SRC_URI="" |
325 |
-else |
326 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
327 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
328 |
-fi |
329 |
- |
330 |
-DESCRIPTION="Ceph distributed filesystem" |
331 |
-HOMEPAGE="http://ceph.com/" |
332 |
- |
333 |
-LICENSE="LGPL-2.1" |
334 |
-SLOT="0" |
335 |
- |
336 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
337 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs" |
338 |
- |
339 |
-# unbundling code commented out pending bugs 584056 and 584058 |
340 |
-#>=dev-libs/jerasure-2.0.0-r1 |
341 |
-#>=dev-libs/gf-complete-2.0.0 |
342 |
-COMMON_DEPEND=" |
343 |
- app-arch/snappy |
344 |
- app-arch/lz4:= |
345 |
- app-arch/bzip2 |
346 |
- dev-libs/boost:=[threads] |
347 |
- dev-libs/libaio |
348 |
- dev-libs/leveldb[snappy] |
349 |
- nss? ( dev-libs/nss ) |
350 |
- libatomic? ( dev-libs/libatomic_ops ) |
351 |
- cryptopp? ( dev-libs/crypto++:= ) |
352 |
- sys-apps/keyutils |
353 |
- sys-apps/util-linux |
354 |
- dev-libs/libxml2 |
355 |
- radosgw? ( dev-libs/fcgi ) |
356 |
- ldap? ( net-nds/openldap ) |
357 |
- babeltrace? ( dev-util/babeltrace ) |
358 |
- fuse? ( sys-fs/fuse ) |
359 |
- xfs? ( sys-fs/xfsprogs ) |
360 |
- zfs? ( sys-fs/zfs ) |
361 |
- gtk? ( |
362 |
- x11-libs/gtk+:2 |
363 |
- dev-cpp/gtkmm:2.4 |
364 |
- gnome-base/librsvg |
365 |
- ) |
366 |
- radosgw? ( |
367 |
- dev-libs/fcgi |
368 |
- dev-libs/expat |
369 |
- net-misc/curl |
370 |
- ) |
371 |
- jemalloc? ( dev-libs/jemalloc ) |
372 |
- !jemalloc? ( dev-util/google-perftools ) |
373 |
- lttng? ( dev-util/lttng-ust ) |
374 |
- ${PYTHON_DEPS} |
375 |
- " |
376 |
-DEPEND="${COMMON_DEPEND} |
377 |
- dev-python/cython[${PYTHON_USEDEP}] |
378 |
- app-arch/cpio |
379 |
- sys-apps/lsb-release |
380 |
- virtual/pkgconfig |
381 |
- dev-python/sphinx |
382 |
- test? ( |
383 |
- sys-fs/btrfs-progs |
384 |
- sys-apps/grep[pcre] |
385 |
- dev-python/tox[${PYTHON_USEDEP}] |
386 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
387 |
- )" |
388 |
-RDEPEND="${COMMON_DEPEND} |
389 |
- sys-apps/hdparm |
390 |
- sys-block/parted |
391 |
- sys-fs/cryptsetup |
392 |
- sys-apps/gptfdisk |
393 |
- dev-python/flask[${PYTHON_USEDEP}] |
394 |
- dev-python/requests[${PYTHON_USEDEP}] |
395 |
- " |
396 |
-REQUIRED_USE=" |
397 |
- $(python_gen_useflags 'python2*') |
398 |
- ${PYTHON_REQUIRED_USE} |
399 |
- ^^ ( nss cryptopp ) |
400 |
- ?? ( jemalloc tcmalloc ) |
401 |
- " |
402 |
- |
403 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
404 |
-REQUIRED_USE+=" radosgw" |
405 |
- |
406 |
-RESTRICT="test? ( userpriv )" |
407 |
- |
408 |
-# distribution tarball does not include everything needed for tests |
409 |
-RESTRICT+=" test" |
410 |
- |
411 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
412 |
- |
413 |
-UNBUNDLE_LIBS=( |
414 |
- src/erasure-code/jerasure/jerasure |
415 |
- src/erasure-code/jerasure/gf-complete |
416 |
-) |
417 |
- |
418 |
-PATCHES=( |
419 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
420 |
- #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch" |
421 |
- "${FILESDIR}/${PN}-10.2.1-libzfs.patch" |
422 |
- "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch" |
423 |
-) |
424 |
- |
425 |
-check-reqs_export_vars() { |
426 |
- if use debug; then |
427 |
- CHECKREQS_DISK_BUILD="23G" |
428 |
- CHECKREQS_DISK_USR="7G" |
429 |
- elif use amd64; then |
430 |
- CHECKREQS_DISK_BUILD="12G" |
431 |
- CHECKREQS_DISK_USR="450M" |
432 |
- else |
433 |
- CHECKREQS_DISK_BUILD="1400M" |
434 |
- CHECKREQS_DISK_USR="450M" |
435 |
- fi |
436 |
- |
437 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
438 |
-} |
439 |
- |
440 |
-user_setup() { |
441 |
- enewgroup ceph ${CEPH_GID} |
442 |
- enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph |
443 |
-} |
444 |
- |
445 |
-emake_python_bindings() { |
446 |
- local action="${1}" params binding |
447 |
- shift |
448 |
- params=("${@}") |
449 |
- |
450 |
- __emake_python_bindings_do_impl() { |
451 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
452 |
- |
453 |
- # these don't work and aren't needed on python3 |
454 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
455 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
456 |
- fi |
457 |
- } |
458 |
- |
459 |
- pushd "${S}/src" |
460 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
461 |
- python_foreach_impl __emake_python_bindings_do_impl |
462 |
- done |
463 |
- popd |
464 |
- |
465 |
- unset __emake_python_bindings_do_impl |
466 |
-} |
467 |
- |
468 |
-pkg_pretend() { |
469 |
- check-reqs_export_vars |
470 |
- check-reqs_pkg_pretend |
471 |
-} |
472 |
- |
473 |
-pkg_setup() { |
474 |
- python_setup |
475 |
- check-reqs_export_vars |
476 |
- check-reqs_pkg_setup |
477 |
- user_setup |
478 |
-} |
479 |
- |
480 |
-src_prepare() { |
481 |
- default |
482 |
- |
483 |
- # remove tests that need root access |
484 |
- rm src/test/cli/ceph-authtool/cap*.t |
485 |
- |
486 |
- #rm -rf "${UNBUNDLE_LIBS[@]}" |
487 |
- |
488 |
- append-flags -fPIC |
489 |
- eautoreconf |
490 |
-} |
491 |
- |
492 |
-src_configure() { |
493 |
- local myeconfargs=( |
494 |
- --without-hadoop |
495 |
- --includedir=/usr/include |
496 |
- $(use_with cephfs) |
497 |
- $(use_with debug) |
498 |
- $(use_with fuse) |
499 |
- $(use_with libaio) |
500 |
- $(use_with libatomic libatomic-ops) |
501 |
- $(use_with nss) |
502 |
- $(use_with cryptopp) |
503 |
- $(use_with radosgw) |
504 |
- $(use_with gtk gtk2) |
505 |
- $(use_enable static-libs static) |
506 |
- $(use_with jemalloc) |
507 |
- $(use_with xfs libxfs) |
508 |
- $(use_with zfs libzfs) |
509 |
- $(use_with lttng ) |
510 |
- $(use_with babeltrace) |
511 |
- $(use_with ldap openldap) |
512 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
513 |
- --with-mon |
514 |
- --with-eventfd |
515 |
- --with-cython |
516 |
- --without-kinetic |
517 |
- --without-librocksdb |
518 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
519 |
- ) |
520 |
- |
521 |
- # we can only use python2.7 for building at the moment |
522 |
- python_setup 'python2*' |
523 |
- econf "${myeconfargs[@]}" |
524 |
-} |
525 |
- |
526 |
-src_compile() { |
527 |
- emake |
528 |
- emake_python_bindings all |
529 |
- |
530 |
- use test && emake check-local |
531 |
-} |
532 |
- |
533 |
-src_test() { |
534 |
- make check || die "make check failed" |
535 |
-} |
536 |
- |
537 |
-src_install() { |
538 |
- default |
539 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
540 |
- |
541 |
- prune_libtool_files --all |
542 |
- |
543 |
- exeinto /usr/$(get_libdir)/ceph |
544 |
- newexe src/init-ceph ceph_init.sh |
545 |
- |
546 |
- insinto /etc/logrotate.d/ |
547 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
548 |
- |
549 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
550 |
- |
551 |
- fowners -R ceph:ceph /var/lib/ceph /var/log/ceph |
552 |
- |
553 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
554 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
555 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
556 |
- |
557 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
558 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
559 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
560 |
- |
561 |
- udev_dorules udev/*.rules |
562 |
- |
563 |
- readme.gentoo_create_doc |
564 |
- |
565 |
- python_setup 'python2*' |
566 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
567 |
- |
568 |
- # python_fix_shebang apparently is not idempotent |
569 |
- sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \ |
570 |
- "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed" |
571 |
-} |
572 |
- |
573 |
-pkg_postinst() { |
574 |
- readme.gentoo_print_elog |
575 |
-} |
576 |
|
577 |
diff --git a/sys-cluster/ceph/ceph-10.2.5.ebuild b/sys-cluster/ceph/ceph-10.2.5.ebuild |
578 |
deleted file mode 100644 |
579 |
index c8f2acd624..0000000000 |
580 |
--- a/sys-cluster/ceph/ceph-10.2.5.ebuild |
581 |
+++ /dev/null |
582 |
@@ -1,267 +0,0 @@ |
583 |
-# Copyright 1999-2016 Gentoo Foundation |
584 |
-# Distributed under the terms of the GNU General Public License v2 |
585 |
-# $Id$ |
586 |
- |
587 |
-EAPI=6 |
588 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
589 |
- |
590 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
591 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
592 |
- |
593 |
-if [[ ${PV} == *9999* ]]; then |
594 |
- inherit git-r3 |
595 |
- EGIT_REPO_URI=" |
596 |
- git://github.com/ceph/ceph.git |
597 |
- https://github.com/ceph/ceph.git" |
598 |
- SRC_URI="" |
599 |
-else |
600 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
601 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
602 |
-fi |
603 |
- |
604 |
-DESCRIPTION="Ceph distributed filesystem" |
605 |
-HOMEPAGE="http://ceph.com/" |
606 |
- |
607 |
-LICENSE="LGPL-2.1" |
608 |
-SLOT="0" |
609 |
- |
610 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
611 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs" |
612 |
- |
613 |
-# unbundling code commented out pending bugs 584056 and 584058 |
614 |
-#>=dev-libs/jerasure-2.0.0-r1 |
615 |
-#>=dev-libs/gf-complete-2.0.0 |
616 |
-COMMON_DEPEND=" |
617 |
- app-arch/snappy |
618 |
- app-arch/lz4:= |
619 |
- app-arch/bzip2 |
620 |
- dev-libs/boost:=[threads] |
621 |
- dev-libs/libaio |
622 |
- dev-libs/leveldb[snappy] |
623 |
- nss? ( dev-libs/nss ) |
624 |
- libatomic? ( dev-libs/libatomic_ops ) |
625 |
- cryptopp? ( dev-libs/crypto++:= ) |
626 |
- sys-apps/keyutils |
627 |
- sys-apps/util-linux |
628 |
- dev-libs/libxml2 |
629 |
- radosgw? ( dev-libs/fcgi ) |
630 |
- ldap? ( net-nds/openldap ) |
631 |
- babeltrace? ( dev-util/babeltrace ) |
632 |
- fuse? ( sys-fs/fuse ) |
633 |
- xfs? ( sys-fs/xfsprogs ) |
634 |
- zfs? ( sys-fs/zfs ) |
635 |
- gtk? ( |
636 |
- x11-libs/gtk+:2 |
637 |
- dev-cpp/gtkmm:2.4 |
638 |
- gnome-base/librsvg |
639 |
- ) |
640 |
- radosgw? ( |
641 |
- dev-libs/fcgi |
642 |
- dev-libs/expat |
643 |
- net-misc/curl |
644 |
- ) |
645 |
- jemalloc? ( dev-libs/jemalloc ) |
646 |
- !jemalloc? ( dev-util/google-perftools ) |
647 |
- lttng? ( dev-util/lttng-ust ) |
648 |
- ${PYTHON_DEPS} |
649 |
- " |
650 |
-DEPEND="${COMMON_DEPEND} |
651 |
- dev-python/cython[${PYTHON_USEDEP}] |
652 |
- app-arch/cpio |
653 |
- sys-apps/lsb-release |
654 |
- virtual/pkgconfig |
655 |
- dev-python/sphinx |
656 |
- test? ( |
657 |
- sys-fs/btrfs-progs |
658 |
- sys-apps/grep[pcre] |
659 |
- dev-python/tox[${PYTHON_USEDEP}] |
660 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
661 |
- )" |
662 |
-RDEPEND="${COMMON_DEPEND} |
663 |
- sys-apps/hdparm |
664 |
- sys-block/parted |
665 |
- sys-fs/cryptsetup |
666 |
- sys-apps/gptfdisk |
667 |
- dev-python/flask[${PYTHON_USEDEP}] |
668 |
- dev-python/requests[${PYTHON_USEDEP}] |
669 |
- " |
670 |
-REQUIRED_USE=" |
671 |
- $(python_gen_useflags 'python2*') |
672 |
- ${PYTHON_REQUIRED_USE} |
673 |
- ^^ ( nss cryptopp ) |
674 |
- ?? ( jemalloc tcmalloc ) |
675 |
- " |
676 |
- |
677 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
678 |
-REQUIRED_USE+=" radosgw" |
679 |
- |
680 |
-RESTRICT="test? ( userpriv )" |
681 |
- |
682 |
-# distribution tarball does not include everything needed for tests |
683 |
-RESTRICT+=" test" |
684 |
- |
685 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
686 |
- |
687 |
-UNBUNDLE_LIBS=( |
688 |
- src/erasure-code/jerasure/jerasure |
689 |
- src/erasure-code/jerasure/gf-complete |
690 |
-) |
691 |
- |
692 |
-PATCHES=( |
693 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
694 |
- #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch" |
695 |
- "${FILESDIR}/${PN}-10.2.1-libzfs.patch" |
696 |
- "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch" |
697 |
-) |
698 |
- |
699 |
-check-reqs_export_vars() { |
700 |
- if use debug; then |
701 |
- CHECKREQS_DISK_BUILD="23G" |
702 |
- CHECKREQS_DISK_USR="7G" |
703 |
- elif use amd64; then |
704 |
- CHECKREQS_DISK_BUILD="12G" |
705 |
- CHECKREQS_DISK_USR="450M" |
706 |
- else |
707 |
- CHECKREQS_DISK_BUILD="1400M" |
708 |
- CHECKREQS_DISK_USR="450M" |
709 |
- fi |
710 |
- |
711 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
712 |
-} |
713 |
- |
714 |
-user_setup() { |
715 |
- enewgroup ceph ${CEPH_GID} |
716 |
- enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph |
717 |
-} |
718 |
- |
719 |
-emake_python_bindings() { |
720 |
- local action="${1}" params binding |
721 |
- shift |
722 |
- params=("${@}") |
723 |
- |
724 |
- __emake_python_bindings_do_impl() { |
725 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
726 |
- |
727 |
- # these don't work and aren't needed on python3 |
728 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
729 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
730 |
- fi |
731 |
- } |
732 |
- |
733 |
- pushd "${S}/src" |
734 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
735 |
- python_foreach_impl __emake_python_bindings_do_impl |
736 |
- done |
737 |
- popd |
738 |
- |
739 |
- unset __emake_python_bindings_do_impl |
740 |
-} |
741 |
- |
742 |
-pkg_pretend() { |
743 |
- check-reqs_export_vars |
744 |
- check-reqs_pkg_pretend |
745 |
-} |
746 |
- |
747 |
-pkg_setup() { |
748 |
- python_setup |
749 |
- check-reqs_export_vars |
750 |
- check-reqs_pkg_setup |
751 |
- user_setup |
752 |
-} |
753 |
- |
754 |
-src_prepare() { |
755 |
- default |
756 |
- |
757 |
- # remove tests that need root access |
758 |
- rm src/test/cli/ceph-authtool/cap*.t |
759 |
- |
760 |
- #rm -rf "${UNBUNDLE_LIBS[@]}" |
761 |
- |
762 |
- append-flags -fPIC |
763 |
- eautoreconf |
764 |
-} |
765 |
- |
766 |
-src_configure() { |
767 |
- local myeconfargs=( |
768 |
- --without-hadoop |
769 |
- --includedir=/usr/include |
770 |
- $(use_with cephfs) |
771 |
- $(use_with debug) |
772 |
- $(use_with fuse) |
773 |
- $(use_with libaio) |
774 |
- $(use_with libatomic libatomic-ops) |
775 |
- $(use_with nss) |
776 |
- $(use_with cryptopp) |
777 |
- $(use_with radosgw) |
778 |
- $(use_with gtk gtk2) |
779 |
- $(use_enable static-libs static) |
780 |
- $(use_with jemalloc) |
781 |
- $(use_with xfs libxfs) |
782 |
- $(use_with zfs libzfs) |
783 |
- $(use_with lttng ) |
784 |
- $(use_with babeltrace) |
785 |
- $(use_with ldap openldap) |
786 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
787 |
- --with-mon |
788 |
- --with-eventfd |
789 |
- --with-cython |
790 |
- --without-kinetic |
791 |
- --without-librocksdb |
792 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
793 |
- ) |
794 |
- |
795 |
- # we can only use python2.7 for building at the moment |
796 |
- python_setup 'python2*' |
797 |
- econf "${myeconfargs[@]}" |
798 |
-} |
799 |
- |
800 |
-src_compile() { |
801 |
- emake |
802 |
- emake_python_bindings all |
803 |
- |
804 |
- use test && emake check-local |
805 |
-} |
806 |
- |
807 |
-src_test() { |
808 |
- make check || die "make check failed" |
809 |
-} |
810 |
- |
811 |
-src_install() { |
812 |
- default |
813 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
814 |
- |
815 |
- prune_libtool_files --all |
816 |
- |
817 |
- exeinto /usr/$(get_libdir)/ceph |
818 |
- newexe src/init-ceph ceph_init.sh |
819 |
- |
820 |
- insinto /etc/logrotate.d/ |
821 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
822 |
- |
823 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
824 |
- |
825 |
- fowners -R ceph:ceph /var/lib/ceph /var/log/ceph |
826 |
- |
827 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
828 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
829 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
830 |
- |
831 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
832 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
833 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
834 |
- |
835 |
- udev_dorules udev/*.rules |
836 |
- |
837 |
- readme.gentoo_create_doc |
838 |
- |
839 |
- python_setup 'python2*' |
840 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
841 |
- |
842 |
- # python_fix_shebang apparently is not idempotent |
843 |
- sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \ |
844 |
- "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed" |
845 |
-} |
846 |
- |
847 |
-pkg_postinst() { |
848 |
- readme.gentoo_print_elog |
849 |
-} |