Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/, sys-cluster/ceph/files/
Date: Thu, 27 Jul 2017 21:33:29
Message-Id: 1501191182.4d88c3d017ed95dd0110eccf08f8aec5795c3e9c.chutzpah@gentoo
1 commit: 4d88c3d017ed95dd0110eccf08f8aec5795c3e9c
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 27 21:33:02 2017 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 27 21:33:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d88c3d0
7
8 sys-cluster/ceph: Drop old versions
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 sys-cluster/ceph/Manifest | 2 -
13 sys-cluster/ceph/ceph-10.2.5-r1.ebuild | 265 ------------------------------
14 sys-cluster/ceph/ceph-10.2.5-r3.ebuild | 290 --------------------------------
15 sys-cluster/ceph/ceph-10.2.5-r4.ebuild | 292 ---------------------------------
16 sys-cluster/ceph/ceph-10.2.5-r5.ebuild | 292 ---------------------------------
17 sys-cluster/ceph/ceph-10.2.6-r1.ebuild | 292 ---------------------------------
18 sys-cluster/ceph/ceph-10.2.6.ebuild | 292 ---------------------------------
19 sys-cluster/ceph/ceph-10.2.7.ebuild | 291 --------------------------------
20 sys-cluster/ceph/files/ceph.initd-r1 | 48 ------
21 sys-cluster/ceph/files/ceph.initd-r3 | 40 -----
22 10 files changed, 2104 deletions(-)
23
24 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
25 index c24494e69f6..5f0cc0c6676 100644
26 --- a/sys-cluster/ceph/Manifest
27 +++ b/sys-cluster/ceph/Manifest
28 @@ -1,7 +1,5 @@
29 DIST ceph-0.94.9.tar.gz 9044702 SHA256 d5bc07e7aef75f74d75f0356e5dd2a17956cbad6bb552a1e96a0fabd80924050 SHA512 ef4bbcc4429e22a2d924fd52dc42f522d5327f67ee8c1781d7cf602c2932a485cb48db21bdc33e7c7fbc968eec59c17882ebb18e6405599e11a3abc248f1d376 WHIRLPOOL f348159e8d7dd5e1ac3810a51846f50f6cefdbc5fa4cd15c3127b1136eb960baca8ad8db33c78a5d6435720cf1e2c277e068d09f9b9dbcf0f8ad56d7ddd914dc
30 DIST ceph-10.2.3.tar.gz 11596171 SHA256 dca933aa14db67b404d836ef510bd418091978edc2f0c74dfc530ba0aa5e8994 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19 WHIRLPOOL 981ebca66113a07a5cc6e5934272a72b29a2c19e03398f7b622c11df6ea0a05339558dfc2f11504403cbbd0efe0b090ad59f4b86206b46db57587744091aa26a
31 -DIST ceph-10.2.5.tar.gz 14020700 SHA256 82dd4271f18eb7b84ff16f273a5250a4a9e809bfaccce5a1cca493416332d5f4 SHA512 4889aff38c8af781c2e3dce8f4ee51864db0a27c6294774345d2c1b047588ec31354ad41f799e2f0d0a966dc372d76c9bdbfb93f30a0718ea9d7c2b7a645d0f8 WHIRLPOOL 986a6ac35612a732d2a9a73277525679f9da729601c7e3f82b83e7e8ee2eb4245c98cdf5c4462ae1c789cb3d120a2c4a7eb9a3958b072db5e743b2c015269dfc
32 -DIST ceph-10.2.6.tar.gz 14500365 SHA256 ad32c549d0ce6de581b5e1c6c7eba38e0f6658aaf8a91990e602f7c64c5e48c7 SHA512 c4321e27a6f8983f69435316c35858ab2b8b620cd80663a5471447c7489d867aef30b22541ca9648a7dcf9d931d04055e29d87dea3a6e94963fb360d06713dee WHIRLPOOL bd886105b47b6cfaeeff882f1d21d710442880c31a1943298db0904a453d67da71519c8fe5e1dd0377480b5413c90bf8ae4bed6bd99bfc53e4696f8b8031c23a
33 DIST ceph-10.2.7.tar.gz 14518491 SHA256 2cdfeaa9a08e94c2d35f540b450bbf64b2a694bd537679834185e98fc59d8ba2 SHA512 7e0686e9efa4ddd9d548f4145b448f8232f1ca29b08428daa5cd60a74ce26f1176a1f2ebbf2ac1761d9e6c1d364a5ffa194d2b3a18a8111f59b7c27f7a1d7734 WHIRLPOOL b6b6902230401b5f4c6f27801f315678bdc7b99aab4e50b54d941fc3a425b4f0fa9390484f2e12d6b4f962253fb8772fb706dad35d490b4542b06db166fab59b
34 DIST ceph-10.2.8.tar.gz 14548472 SHA256 f284743b007cbb61fc9849dc2249942886116c2cb2abcd346d2304d52b16eaaa SHA512 1f3bf81bf6745033e034c3c4e4f05db5c39b2e8435da20fc130971559e8fde0d640bf00bfaafb374d24c45f873e7d768ae9d7d8cd3388347f5804c4bfc303f09 WHIRLPOOL a8bf29ff913c08d423beb0fefa792c06a653d8ac00bd698b7f77bbaf4657f0530ad5a43043dabb24308ed5a4e569fec53130a78d78d8eddf16026a942de8cc40
35 DIST ceph-10.2.9.tar.gz 14550219 SHA256 3d93f4fc4a66b1d9f9ce43f65868dc18287cea32fbb2c7421faca6aed2b52a80 SHA512 1d59146614aa87ca551b05b795a684071a3cfb4ce6013e978ba650403c6732b2aa13f3c3cc191e6a1ea34b4631c82e97700593c24e200c41ec2f2b43b3ef5547 WHIRLPOOL 42215d33c4f617087e1b0ef81cd41b42330c3605acf625b0668d44eba9e982239683b466a1cc1a6f926fc1d439dfd6be4ce220f783da7d2214d36a2a6cc9181f
36
37 diff --git a/sys-cluster/ceph/ceph-10.2.5-r1.ebuild b/sys-cluster/ceph/ceph-10.2.5-r1.ebuild
38 deleted file mode 100644
39 index 1e82394dbed..00000000000
40 --- a/sys-cluster/ceph/ceph-10.2.5-r1.ebuild
41 +++ /dev/null
42 @@ -1,265 +0,0 @@
43 -# Copyright 1999-2017 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=6
47 -PYTHON_COMPAT=( python{2_7,3_{4,5}} )
48 -
49 -inherit check-reqs autotools eutils python-r1 udev user \
50 - readme.gentoo-r1 systemd versionator flag-o-matic
51 -
52 -if [[ ${PV} == *9999* ]]; then
53 - inherit git-r3
54 - EGIT_REPO_URI="
55 - git://github.com/ceph/ceph.git
56 - https://github.com/ceph/ceph.git"
57 - SRC_URI=""
58 -else
59 - SRC_URI="http://ceph.com/download/${P}.tar.gz"
60 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
61 -fi
62 -
63 -DESCRIPTION="Ceph distributed filesystem"
64 -HOMEPAGE="http://ceph.com/"
65 -
66 -LICENSE="LGPL-2.1"
67 -SLOT="0"
68 -
69 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
70 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
71 -
72 -# unbundling code commented out pending bugs 584056 and 584058
73 -#>=dev-libs/jerasure-2.0.0-r1
74 -#>=dev-libs/gf-complete-2.0.0
75 -COMMON_DEPEND="
76 - app-arch/snappy
77 - app-arch/lz4:=
78 - app-arch/bzip2
79 - dev-libs/boost:=[threads]
80 - dev-libs/libaio
81 - dev-libs/leveldb[snappy]
82 - nss? ( dev-libs/nss )
83 - libatomic? ( dev-libs/libatomic_ops )
84 - cryptopp? ( dev-libs/crypto++:= )
85 - sys-apps/keyutils
86 - sys-apps/util-linux
87 - dev-libs/libxml2
88 - radosgw? ( dev-libs/fcgi )
89 - ldap? ( net-nds/openldap )
90 - babeltrace? ( dev-util/babeltrace )
91 - fuse? ( sys-fs/fuse:0 )
92 - xfs? ( sys-fs/xfsprogs )
93 - zfs? ( sys-fs/zfs )
94 - gtk? (
95 - x11-libs/gtk+:2
96 - dev-cpp/gtkmm:2.4
97 - gnome-base/librsvg
98 - )
99 - radosgw? (
100 - dev-libs/fcgi
101 - dev-libs/expat
102 - net-misc/curl
103 - )
104 - jemalloc? ( dev-libs/jemalloc )
105 - !jemalloc? ( dev-util/google-perftools )
106 - lttng? ( dev-util/lttng-ust )
107 - ${PYTHON_DEPS}
108 - "
109 -DEPEND="${COMMON_DEPEND}
110 - dev-python/cython[${PYTHON_USEDEP}]
111 - app-arch/cpio
112 - sys-apps/lsb-release
113 - virtual/pkgconfig
114 - dev-python/sphinx
115 - test? (
116 - sys-fs/btrfs-progs
117 - sys-apps/grep[pcre]
118 - dev-python/tox[${PYTHON_USEDEP}]
119 - dev-python/virtualenv[${PYTHON_USEDEP}]
120 - )"
121 -RDEPEND="${COMMON_DEPEND}
122 - sys-apps/hdparm
123 - sys-block/parted
124 - sys-fs/cryptsetup
125 - sys-apps/gptfdisk
126 - dev-python/flask[${PYTHON_USEDEP}]
127 - dev-python/requests[${PYTHON_USEDEP}]
128 - "
129 -REQUIRED_USE="
130 - $(python_gen_useflags 'python2*')
131 - ${PYTHON_REQUIRED_USE}
132 - ^^ ( nss cryptopp )
133 - ?? ( jemalloc tcmalloc )
134 - "
135 -
136 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
137 -REQUIRED_USE+=" radosgw"
138 -
139 -RESTRICT="test? ( userpriv )"
140 -
141 -# distribution tarball does not include everything needed for tests
142 -RESTRICT+=" test"
143 -
144 -STRIP_MASK="/usr/lib*/rados-classes/*"
145 -
146 -UNBUNDLE_LIBS=(
147 - src/erasure-code/jerasure/jerasure
148 - src/erasure-code/jerasure/gf-complete
149 -)
150 -
151 -PATCHES=(
152 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
153 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
154 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
155 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
156 -)
157 -
158 -check-reqs_export_vars() {
159 - if use debug; then
160 - CHECKREQS_DISK_BUILD="23G"
161 - CHECKREQS_DISK_USR="7G"
162 - elif use amd64; then
163 - CHECKREQS_DISK_BUILD="12G"
164 - CHECKREQS_DISK_USR="450M"
165 - else
166 - CHECKREQS_DISK_BUILD="1400M"
167 - CHECKREQS_DISK_USR="450M"
168 - fi
169 -
170 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
171 -}
172 -
173 -user_setup() {
174 - enewgroup ceph ${CEPH_GID}
175 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
176 -}
177 -
178 -emake_python_bindings() {
179 - local action="${1}" params binding
180 - shift
181 - params=("${@}")
182 -
183 - __emake_python_bindings_do_impl() {
184 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
185 -
186 - # these don't work and aren't needed on python3
187 - if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then
188 - rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py
189 - fi
190 - }
191 -
192 - pushd "${S}/src"
193 - for binding in rados rbd $(use cephfs && echo cephfs); do
194 - python_foreach_impl __emake_python_bindings_do_impl
195 - done
196 - popd
197 -
198 - unset __emake_python_bindings_do_impl
199 -}
200 -
201 -pkg_pretend() {
202 - check-reqs_export_vars
203 - check-reqs_pkg_pretend
204 -}
205 -
206 -pkg_setup() {
207 - python_setup
208 - check-reqs_export_vars
209 - check-reqs_pkg_setup
210 - user_setup
211 -}
212 -
213 -src_prepare() {
214 - default
215 -
216 - # remove tests that need root access
217 - rm src/test/cli/ceph-authtool/cap*.t
218 -
219 - #rm -rf "${UNBUNDLE_LIBS[@]}"
220 -
221 - append-flags -fPIC
222 - eautoreconf
223 -}
224 -
225 -src_configure() {
226 - local myeconfargs=(
227 - --without-hadoop
228 - --includedir=/usr/include
229 - $(use_with cephfs)
230 - $(use_with debug)
231 - $(use_with fuse)
232 - $(use_with libaio)
233 - $(use_with libatomic libatomic-ops)
234 - $(use_with nss)
235 - $(use_with cryptopp)
236 - $(use_with radosgw)
237 - $(use_with gtk gtk2)
238 - $(use_enable static-libs static)
239 - $(use_with jemalloc)
240 - $(use_with xfs libxfs)
241 - $(use_with zfs libzfs)
242 - $(use_with lttng )
243 - $(use_with babeltrace)
244 - $(use_with ldap openldap)
245 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
246 - --with-mon
247 - --with-eventfd
248 - --with-cython
249 - --without-kinetic
250 - --without-librocksdb
251 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
252 - )
253 -
254 - # we can only use python2.7 for building at the moment
255 - python_setup 'python2*'
256 - econf "${myeconfargs[@]}"
257 -}
258 -
259 -src_compile() {
260 - emake
261 - emake_python_bindings all
262 -
263 - use test && emake check-local
264 -}
265 -
266 -src_test() {
267 - make check || die "make check failed"
268 -}
269 -
270 -src_install() {
271 - default
272 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
273 -
274 - prune_libtool_files --all
275 -
276 - exeinto /usr/$(get_libdir)/ceph
277 - newexe src/init-ceph ceph_init.sh
278 -
279 - insinto /etc/logrotate.d/
280 - newins "${FILESDIR}"/ceph.logrotate ${PN}
281 -
282 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
283 -
284 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
285 -
286 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
287 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
288 - newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
289 -
290 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
291 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
292 -
293 - udev_dorules udev/*.rules
294 -
295 - readme.gentoo_create_doc
296 -
297 - python_setup 'python2*'
298 - python_fix_shebang "${ED}"/usr/{,s}bin/
299 -
300 - # python_fix_shebang apparently is not idempotent
301 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
302 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
303 -}
304 -
305 -pkg_postinst() {
306 - readme.gentoo_print_elog
307 -}
308
309 diff --git a/sys-cluster/ceph/ceph-10.2.5-r3.ebuild b/sys-cluster/ceph/ceph-10.2.5-r3.ebuild
310 deleted file mode 100644
311 index 23faa9a8c48..00000000000
312 --- a/sys-cluster/ceph/ceph-10.2.5-r3.ebuild
313 +++ /dev/null
314 @@ -1,290 +0,0 @@
315 -# Copyright 1999-2017 Gentoo Foundation
316 -# Distributed under the terms of the GNU General Public License v2
317 -
318 -EAPI=6
319 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
320 -
321 -inherit check-reqs autotools eutils python-r1 udev user \
322 - readme.gentoo-r1 systemd versionator flag-o-matic
323 -
324 -if [[ ${PV} == *9999* ]]; then
325 - inherit git-r3
326 - EGIT_REPO_URI="
327 - git://github.com/ceph/ceph.git
328 - https://github.com/ceph/ceph.git"
329 - SRC_URI=""
330 -else
331 - SRC_URI="http://ceph.com/download/${P}.tar.gz"
332 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
333 -fi
334 -
335 -DESCRIPTION="Ceph distributed filesystem"
336 -HOMEPAGE="http://ceph.com/"
337 -
338 -LICENSE="LGPL-2.1"
339 -SLOT="0"
340 -
341 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
342 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
343 -
344 -# unbundling code commented out pending bugs 584056 and 584058
345 -#>=dev-libs/jerasure-2.0.0-r1
346 -#>=dev-libs/gf-complete-2.0.0
347 -COMMON_DEPEND="
348 - app-arch/snappy
349 - app-arch/lz4:=
350 - app-arch/bzip2
351 - dev-libs/boost:=[threads]
352 - dev-libs/libaio
353 - dev-libs/leveldb[snappy]
354 - nss? ( dev-libs/nss )
355 - libatomic? ( dev-libs/libatomic_ops )
356 - cryptopp? ( dev-libs/crypto++:= )
357 - sys-apps/keyutils
358 - sys-apps/util-linux
359 - dev-libs/libxml2
360 - radosgw? ( dev-libs/fcgi )
361 - ldap? ( net-nds/openldap )
362 - babeltrace? ( dev-util/babeltrace )
363 - fuse? ( sys-fs/fuse:0 )
364 - xfs? ( sys-fs/xfsprogs )
365 - zfs? ( sys-fs/zfs )
366 - gtk? (
367 - x11-libs/gtk+:2
368 - dev-cpp/gtkmm:2.4
369 - gnome-base/librsvg
370 - )
371 - radosgw? (
372 - dev-libs/fcgi
373 - dev-libs/expat
374 - net-misc/curl
375 - )
376 - jemalloc? ( dev-libs/jemalloc )
377 - !jemalloc? ( dev-util/google-perftools )
378 - lttng? ( dev-util/lttng-ust )
379 - ${PYTHON_DEPS}
380 - "
381 -DEPEND="${COMMON_DEPEND}
382 - dev-python/cython[${PYTHON_USEDEP}]
383 - app-arch/cpio
384 - sys-apps/lsb-release
385 - virtual/pkgconfig
386 - dev-python/sphinx
387 - test? (
388 - sys-fs/btrfs-progs
389 - sys-apps/grep[pcre]
390 - dev-python/tox[${PYTHON_USEDEP}]
391 - dev-python/virtualenv[${PYTHON_USEDEP}]
392 - )"
393 -RDEPEND="${COMMON_DEPEND}
394 - sys-apps/hdparm
395 - sys-block/parted
396 - sys-fs/cryptsetup
397 - sys-apps/gptfdisk
398 - dev-python/flask[${PYTHON_USEDEP}]
399 - dev-python/requests[${PYTHON_USEDEP}]
400 - "
401 -REQUIRED_USE="
402 - $(python_gen_useflags 'python2*')
403 - ${PYTHON_REQUIRED_USE}
404 - ^^ ( nss cryptopp )
405 - ?? ( jemalloc tcmalloc )
406 - "
407 -
408 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
409 -REQUIRED_USE+=" radosgw"
410 -
411 -RESTRICT="test? ( userpriv )"
412 -
413 -# distribution tarball does not include everything needed for tests
414 -RESTRICT+=" test"
415 -
416 -STRIP_MASK="/usr/lib*/rados-classes/*"
417 -
418 -UNBUNDLE_LIBS=(
419 - src/erasure-code/jerasure/jerasure
420 - src/erasure-code/jerasure/gf-complete
421 -)
422 -
423 -PATCHES=(
424 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
425 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
426 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
427 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
428 -)
429 -
430 -check-reqs_export_vars() {
431 - if use debug; then
432 - CHECKREQS_DISK_BUILD="23G"
433 - CHECKREQS_DISK_USR="7G"
434 - elif use amd64; then
435 - CHECKREQS_DISK_BUILD="12G"
436 - CHECKREQS_DISK_USR="450M"
437 - else
438 - CHECKREQS_DISK_BUILD="1400M"
439 - CHECKREQS_DISK_USR="450M"
440 - fi
441 -
442 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
443 -}
444 -
445 -user_setup() {
446 - enewgroup ceph ${CEPH_GID}
447 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
448 -}
449 -
450 -emake_python_bindings() {
451 - local action="${1}" params binding module
452 - shift
453 - params=("${@}")
454 -
455 - __emake_python_bindings_do_impl() {
456 - ceph_run_econf "${EPYTHON}"
457 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
458 -
459 - # these don't work and aren't needed on python3
460 - if [[ ${EBUILD_PHASE} == install ]]; then
461 - for module in "${S}"/src/pybind/*.py; do
462 - module_basename="$(basename "${module}")"
463 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
464 - continue
465 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
466 - python_domodule ${module}
467 - fi
468 - done
469 - fi
470 - }
471 -
472 - pushd "${S}/src"
473 - for binding in rados rbd $(use cephfs && echo cephfs); do
474 - python_foreach_impl __emake_python_bindings_do_impl
475 - done
476 - popd
477 -
478 - unset __emake_python_bindings_do_impl
479 -}
480 -
481 -pkg_pretend() {
482 - check-reqs_export_vars
483 - check-reqs_pkg_pretend
484 -}
485 -
486 -pkg_setup() {
487 - python_setup
488 - check-reqs_export_vars
489 - check-reqs_pkg_setup
490 - user_setup
491 -}
492 -
493 -src_prepare() {
494 - default
495 -
496 - # remove tests that need root access
497 - rm src/test/cli/ceph-authtool/cap*.t
498 -
499 - #rm -rf "${UNBUNDLE_LIBS[@]}"
500 -
501 - append-flags -fPIC
502 - eautoreconf
503 -}
504 -
505 -src_configure() {
506 - ECONFARGS=(
507 - --without-hadoop
508 - --includedir=/usr/include
509 - $(use_with cephfs)
510 - $(use_with debug)
511 - $(use_with fuse)
512 - $(use_with libaio)
513 - $(use_with libatomic libatomic-ops)
514 - $(use_with nss)
515 - $(use_with cryptopp)
516 - $(use_with radosgw)
517 - $(use_with gtk gtk2)
518 - $(use_enable static-libs static)
519 - $(use_with jemalloc)
520 - $(use_with xfs libxfs)
521 - $(use_with zfs libzfs)
522 - $(use_with lttng )
523 - $(use_with babeltrace)
524 - $(use_with ldap openldap)
525 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
526 - --with-mon
527 - --with-eventfd
528 - --with-cython
529 - --without-kinetic
530 - --without-librocksdb
531 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
532 - )
533 -
534 - # we can only use python2.7 for building at the moment
535 - ceph_run_econf "python2*"
536 -}
537 -
538 -ceph_run_econf() {
539 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
540 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
541 -
542 - pushd "${S}" >/dev/null || die
543 - #
544 - # This generates a QA warning about running econf in src_compile
545 - # and src_install. Unfortunately the only other way to do this would
546 - # involve building all of for each python implementation times, which
547 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
548 - # be needed with >=ceph-11.2.
549 - #
550 - python_setup "${1}"
551 - econf "${ECONFARGS[@]}"
552 -
553 - popd >/dev/null || die
554 -}
555 -
556 -src_compile() {
557 - emake
558 - emake_python_bindings all
559 -
560 - use test && emake check-local
561 -}
562 -
563 -src_test() {
564 - make check || die "make check failed"
565 -}
566 -
567 -src_install() {
568 - default
569 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
570 -
571 - prune_libtool_files --all
572 -
573 - exeinto /usr/$(get_libdir)/ceph
574 - newexe src/init-ceph ceph_init.sh
575 -
576 - insinto /etc/logrotate.d/
577 - newins "${FILESDIR}"/ceph.logrotate ${PN}
578 -
579 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
580 -
581 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
582 -
583 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
584 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
585 - newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
586 -
587 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
588 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
589 -
590 - udev_dorules udev/*.rules
591 -
592 - readme.gentoo_create_doc
593 -
594 - python_setup 'python2*'
595 - python_fix_shebang "${ED}"/usr/{,s}bin/
596 -
597 - # python_fix_shebang apparently is not idempotent
598 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
599 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
600 -}
601 -
602 -pkg_postinst() {
603 - readme.gentoo_print_elog
604 -}
605
606 diff --git a/sys-cluster/ceph/ceph-10.2.5-r4.ebuild b/sys-cluster/ceph/ceph-10.2.5-r4.ebuild
607 deleted file mode 100644
608 index 072e143d578..00000000000
609 --- a/sys-cluster/ceph/ceph-10.2.5-r4.ebuild
610 +++ /dev/null
611 @@ -1,292 +0,0 @@
612 -# Copyright 1999-2017 Gentoo Foundation
613 -# Distributed under the terms of the GNU General Public License v2
614 -
615 -EAPI=6
616 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
617 -
618 -inherit check-reqs autotools eutils python-r1 udev user \
619 - readme.gentoo-r1 systemd versionator flag-o-matic
620 -
621 -if [[ ${PV} == *9999* ]]; then
622 - inherit git-r3
623 - EGIT_REPO_URI="
624 - git://github.com/ceph/ceph.git
625 - https://github.com/ceph/ceph.git"
626 - SRC_URI=""
627 -else
628 - SRC_URI="http://ceph.com/download/${P}.tar.gz"
629 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
630 -fi
631 -
632 -DESCRIPTION="Ceph distributed filesystem"
633 -HOMEPAGE="http://ceph.com/"
634 -
635 -LICENSE="LGPL-2.1"
636 -SLOT="0"
637 -
638 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
639 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
640 -
641 -# unbundling code commented out pending bugs 584056 and 584058
642 -#>=dev-libs/jerasure-2.0.0-r1
643 -#>=dev-libs/gf-complete-2.0.0
644 -COMMON_DEPEND="
645 - app-arch/snappy
646 - app-arch/lz4:=
647 - app-arch/bzip2
648 - dev-libs/boost:=[threads]
649 - dev-libs/libaio
650 - dev-libs/leveldb[snappy]
651 - nss? ( dev-libs/nss )
652 - libatomic? ( dev-libs/libatomic_ops )
653 - cryptopp? ( dev-libs/crypto++:= )
654 - sys-apps/keyutils
655 - sys-apps/util-linux
656 - dev-libs/libxml2
657 - radosgw? ( dev-libs/fcgi )
658 - ldap? ( net-nds/openldap )
659 - babeltrace? ( dev-util/babeltrace )
660 - fuse? ( sys-fs/fuse:0 )
661 - xfs? ( sys-fs/xfsprogs )
662 - zfs? ( sys-fs/zfs )
663 - gtk? (
664 - x11-libs/gtk+:2
665 - dev-cpp/gtkmm:2.4
666 - gnome-base/librsvg
667 - )
668 - radosgw? (
669 - dev-libs/fcgi
670 - dev-libs/expat
671 - net-misc/curl
672 - )
673 - jemalloc? ( dev-libs/jemalloc )
674 - !jemalloc? ( dev-util/google-perftools )
675 - lttng? ( dev-util/lttng-ust )
676 - ${PYTHON_DEPS}
677 - "
678 -DEPEND="${COMMON_DEPEND}
679 - dev-python/cython[${PYTHON_USEDEP}]
680 - app-arch/cpio
681 - sys-apps/lsb-release
682 - virtual/pkgconfig
683 - dev-python/sphinx
684 - test? (
685 - sys-fs/btrfs-progs
686 - sys-apps/grep[pcre]
687 - dev-python/tox[${PYTHON_USEDEP}]
688 - dev-python/virtualenv[${PYTHON_USEDEP}]
689 - )"
690 -RDEPEND="${COMMON_DEPEND}
691 - sys-apps/hdparm
692 - sys-block/parted
693 - sys-fs/cryptsetup
694 - sys-apps/gptfdisk
695 - dev-python/flask[${PYTHON_USEDEP}]
696 - dev-python/requests[${PYTHON_USEDEP}]
697 - "
698 -REQUIRED_USE="
699 - $(python_gen_useflags 'python2*')
700 - ${PYTHON_REQUIRED_USE}
701 - ^^ ( nss cryptopp )
702 - ?? ( jemalloc tcmalloc )
703 - "
704 -
705 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
706 -REQUIRED_USE+=" radosgw"
707 -
708 -RESTRICT="test? ( userpriv )"
709 -
710 -# distribution tarball does not include everything needed for tests
711 -RESTRICT+=" test"
712 -
713 -STRIP_MASK="/usr/lib*/rados-classes/*"
714 -
715 -UNBUNDLE_LIBS=(
716 - src/erasure-code/jerasure/jerasure
717 - src/erasure-code/jerasure/gf-complete
718 -)
719 -
720 -PATCHES=(
721 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
722 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
723 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
724 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
725 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
726 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
727 -)
728 -
729 -check-reqs_export_vars() {
730 - if use debug; then
731 - CHECKREQS_DISK_BUILD="23G"
732 - CHECKREQS_DISK_USR="7G"
733 - elif use amd64; then
734 - CHECKREQS_DISK_BUILD="12G"
735 - CHECKREQS_DISK_USR="450M"
736 - else
737 - CHECKREQS_DISK_BUILD="1400M"
738 - CHECKREQS_DISK_USR="450M"
739 - fi
740 -
741 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
742 -}
743 -
744 -user_setup() {
745 - enewgroup ceph ${CEPH_GID}
746 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
747 -}
748 -
749 -emake_python_bindings() {
750 - local action="${1}" params binding module
751 - shift
752 - params=("${@}")
753 -
754 - __emake_python_bindings_do_impl() {
755 - ceph_run_econf "${EPYTHON}"
756 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
757 -
758 - # these don't work and aren't needed on python3
759 - if [[ ${EBUILD_PHASE} == install ]]; then
760 - for module in "${S}"/src/pybind/*.py; do
761 - module_basename="$(basename "${module}")"
762 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
763 - continue
764 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
765 - python_domodule ${module}
766 - fi
767 - done
768 - fi
769 - }
770 -
771 - pushd "${S}/src"
772 - for binding in rados rbd $(use cephfs && echo cephfs); do
773 - python_foreach_impl __emake_python_bindings_do_impl
774 - done
775 - popd
776 -
777 - unset __emake_python_bindings_do_impl
778 -}
779 -
780 -pkg_pretend() {
781 - check-reqs_export_vars
782 - check-reqs_pkg_pretend
783 -}
784 -
785 -pkg_setup() {
786 - python_setup
787 - check-reqs_export_vars
788 - check-reqs_pkg_setup
789 - user_setup
790 -}
791 -
792 -src_prepare() {
793 - default
794 -
795 - # remove tests that need root access
796 - rm src/test/cli/ceph-authtool/cap*.t
797 -
798 - #rm -rf "${UNBUNDLE_LIBS[@]}"
799 -
800 - append-flags -fPIC
801 - eautoreconf
802 -}
803 -
804 -src_configure() {
805 - ECONFARGS=(
806 - --without-hadoop
807 - --includedir=/usr/include
808 - $(use_with cephfs)
809 - $(use_with debug)
810 - $(use_with fuse)
811 - $(use_with libaio)
812 - $(use_with libatomic libatomic-ops)
813 - $(use_with nss)
814 - $(use_with cryptopp)
815 - $(use_with radosgw)
816 - $(use_with gtk gtk2)
817 - $(use_enable static-libs static)
818 - $(use_with jemalloc)
819 - $(use_with xfs libxfs)
820 - $(use_with zfs libzfs)
821 - $(use_with lttng )
822 - $(use_with babeltrace)
823 - $(use_with ldap openldap)
824 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
825 - --with-mon
826 - --with-eventfd
827 - --with-cython
828 - --without-kinetic
829 - --without-librocksdb
830 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
831 - )
832 -
833 - # we can only use python2.7 for building at the moment
834 - ceph_run_econf "python2*"
835 -}
836 -
837 -ceph_run_econf() {
838 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
839 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
840 -
841 - pushd "${S}" >/dev/null || die
842 - #
843 - # This generates a QA warning about running econf in src_compile
844 - # and src_install. Unfortunately the only other way to do this would
845 - # involve building all of for each python implementation times, which
846 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
847 - # be needed with >=ceph-11.2.
848 - #
849 - python_setup "${1}"
850 - econf "${ECONFARGS[@]}"
851 -
852 - popd >/dev/null || die
853 -}
854 -
855 -src_compile() {
856 - emake
857 - emake_python_bindings all
858 -
859 - use test && emake check-local
860 -}
861 -
862 -src_test() {
863 - make check || die "make check failed"
864 -}
865 -
866 -src_install() {
867 - default
868 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
869 -
870 - prune_libtool_files --all
871 -
872 - exeinto /usr/$(get_libdir)/ceph
873 - newexe src/init-ceph ceph_init.sh
874 -
875 - insinto /etc/logrotate.d/
876 - newins "${FILESDIR}"/ceph.logrotate ${PN}
877 -
878 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
879 -
880 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
881 -
882 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
883 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
884 - newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
885 -
886 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
887 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
888 -
889 - udev_dorules udev/*.rules
890 -
891 - readme.gentoo_create_doc
892 -
893 - python_setup 'python2*'
894 - python_fix_shebang "${ED}"/usr/{,s}bin/
895 -
896 - # python_fix_shebang apparently is not idempotent
897 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
898 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
899 -}
900 -
901 -pkg_postinst() {
902 - readme.gentoo_print_elog
903 -}
904
905 diff --git a/sys-cluster/ceph/ceph-10.2.5-r5.ebuild b/sys-cluster/ceph/ceph-10.2.5-r5.ebuild
906 deleted file mode 100644
907 index 81523b24898..00000000000
908 --- a/sys-cluster/ceph/ceph-10.2.5-r5.ebuild
909 +++ /dev/null
910 @@ -1,292 +0,0 @@
911 -# Copyright 1999-2017 Gentoo Foundation
912 -# Distributed under the terms of the GNU General Public License v2
913 -
914 -EAPI=6
915 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
916 -
917 -inherit check-reqs autotools eutils python-r1 udev user \
918 - readme.gentoo-r1 systemd versionator flag-o-matic
919 -
920 -if [[ ${PV} == *9999* ]]; then
921 - inherit git-r3
922 - EGIT_REPO_URI="
923 - git://github.com/ceph/ceph.git
924 - https://github.com/ceph/ceph.git"
925 - SRC_URI=""
926 -else
927 - SRC_URI="http://ceph.com/download/${P}.tar.gz"
928 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
929 -fi
930 -
931 -DESCRIPTION="Ceph distributed filesystem"
932 -HOMEPAGE="http://ceph.com/"
933 -
934 -LICENSE="LGPL-2.1"
935 -SLOT="0"
936 -
937 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
938 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
939 -
940 -# unbundling code commented out pending bugs 584056 and 584058
941 -#>=dev-libs/jerasure-2.0.0-r1
942 -#>=dev-libs/gf-complete-2.0.0
943 -COMMON_DEPEND="
944 - app-arch/snappy
945 - app-arch/lz4:=
946 - app-arch/bzip2
947 - dev-libs/boost:=[threads]
948 - dev-libs/libaio
949 - dev-libs/leveldb[snappy]
950 - nss? ( dev-libs/nss )
951 - libatomic? ( dev-libs/libatomic_ops )
952 - cryptopp? ( dev-libs/crypto++:= )
953 - sys-apps/keyutils
954 - sys-apps/util-linux
955 - dev-libs/libxml2
956 - radosgw? ( dev-libs/fcgi )
957 - ldap? ( net-nds/openldap )
958 - babeltrace? ( dev-util/babeltrace )
959 - fuse? ( sys-fs/fuse:0 )
960 - xfs? ( sys-fs/xfsprogs )
961 - zfs? ( sys-fs/zfs )
962 - gtk? (
963 - x11-libs/gtk+:2
964 - dev-cpp/gtkmm:2.4
965 - gnome-base/librsvg
966 - )
967 - radosgw? (
968 - dev-libs/fcgi
969 - dev-libs/expat
970 - net-misc/curl
971 - )
972 - jemalloc? ( dev-libs/jemalloc )
973 - !jemalloc? ( dev-util/google-perftools )
974 - lttng? ( dev-util/lttng-ust )
975 - ${PYTHON_DEPS}
976 - "
977 -DEPEND="${COMMON_DEPEND}
978 - dev-python/cython[${PYTHON_USEDEP}]
979 - app-arch/cpio
980 - sys-apps/lsb-release
981 - virtual/pkgconfig
982 - dev-python/sphinx
983 - test? (
984 - sys-fs/btrfs-progs
985 - sys-apps/grep[pcre]
986 - dev-python/tox[${PYTHON_USEDEP}]
987 - dev-python/virtualenv[${PYTHON_USEDEP}]
988 - )"
989 -RDEPEND="${COMMON_DEPEND}
990 - sys-apps/hdparm
991 - sys-block/parted
992 - sys-fs/cryptsetup
993 - sys-apps/gptfdisk
994 - dev-python/flask[${PYTHON_USEDEP}]
995 - dev-python/requests[${PYTHON_USEDEP}]
996 - "
997 -REQUIRED_USE="
998 - $(python_gen_useflags 'python2*')
999 - ${PYTHON_REQUIRED_USE}
1000 - ^^ ( nss cryptopp )
1001 - ?? ( jemalloc tcmalloc )
1002 - "
1003 -
1004 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
1005 -REQUIRED_USE+=" radosgw"
1006 -
1007 -RESTRICT="test? ( userpriv )"
1008 -
1009 -# distribution tarball does not include everything needed for tests
1010 -RESTRICT+=" test"
1011 -
1012 -STRIP_MASK="/usr/lib*/rados-classes/*"
1013 -
1014 -UNBUNDLE_LIBS=(
1015 - src/erasure-code/jerasure/jerasure
1016 - src/erasure-code/jerasure/gf-complete
1017 -)
1018 -
1019 -PATCHES=(
1020 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
1021 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
1022 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
1023 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
1024 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
1025 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
1026 -)
1027 -
1028 -check-reqs_export_vars() {
1029 - if use debug; then
1030 - CHECKREQS_DISK_BUILD="23G"
1031 - CHECKREQS_DISK_USR="7G"
1032 - elif use amd64; then
1033 - CHECKREQS_DISK_BUILD="12G"
1034 - CHECKREQS_DISK_USR="450M"
1035 - else
1036 - CHECKREQS_DISK_BUILD="1400M"
1037 - CHECKREQS_DISK_USR="450M"
1038 - fi
1039 -
1040 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
1041 -}
1042 -
1043 -user_setup() {
1044 - enewgroup ceph ${CEPH_GID}
1045 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
1046 -}
1047 -
1048 -emake_python_bindings() {
1049 - local action="${1}" params binding module
1050 - shift
1051 - params=("${@}")
1052 -
1053 - __emake_python_bindings_do_impl() {
1054 - ceph_run_econf "${EPYTHON}"
1055 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
1056 -
1057 - # these don't work and aren't needed on python3
1058 - if [[ ${EBUILD_PHASE} == install ]]; then
1059 - for module in "${S}"/src/pybind/*.py; do
1060 - module_basename="$(basename "${module}")"
1061 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
1062 - continue
1063 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
1064 - python_domodule ${module}
1065 - fi
1066 - done
1067 - fi
1068 - }
1069 -
1070 - pushd "${S}/src"
1071 - for binding in rados rbd $(use cephfs && echo cephfs); do
1072 - python_foreach_impl __emake_python_bindings_do_impl
1073 - done
1074 - popd
1075 -
1076 - unset __emake_python_bindings_do_impl
1077 -}
1078 -
1079 -pkg_pretend() {
1080 - check-reqs_export_vars
1081 - check-reqs_pkg_pretend
1082 -}
1083 -
1084 -pkg_setup() {
1085 - python_setup
1086 - check-reqs_export_vars
1087 - check-reqs_pkg_setup
1088 - user_setup
1089 -}
1090 -
1091 -src_prepare() {
1092 - default
1093 -
1094 - # remove tests that need root access
1095 - rm src/test/cli/ceph-authtool/cap*.t
1096 -
1097 - #rm -rf "${UNBUNDLE_LIBS[@]}"
1098 -
1099 - append-flags -fPIC
1100 - eautoreconf
1101 -}
1102 -
1103 -src_configure() {
1104 - ECONFARGS=(
1105 - --without-hadoop
1106 - --includedir=/usr/include
1107 - $(use_with cephfs)
1108 - $(use_with debug)
1109 - $(use_with fuse)
1110 - $(use_with libaio)
1111 - $(use_with libatomic libatomic-ops)
1112 - $(use_with nss)
1113 - $(use_with cryptopp)
1114 - $(use_with radosgw)
1115 - $(use_with gtk gtk2)
1116 - $(use_enable static-libs static)
1117 - $(use_with jemalloc)
1118 - $(use_with xfs libxfs)
1119 - $(use_with zfs libzfs)
1120 - $(use_with lttng )
1121 - $(use_with babeltrace)
1122 - $(use_with ldap openldap)
1123 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
1124 - --with-mon
1125 - --with-eventfd
1126 - --with-cython
1127 - --without-kinetic
1128 - --without-librocksdb
1129 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
1130 - )
1131 -
1132 - # we can only use python2.7 for building at the moment
1133 - ceph_run_econf "python2*"
1134 -}
1135 -
1136 -ceph_run_econf() {
1137 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
1138 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
1139 -
1140 - pushd "${S}" >/dev/null || die
1141 - #
1142 - # This generates a QA warning about running econf in src_compile
1143 - # and src_install. Unfortunately the only other way to do this would
1144 - # involve building all of for each python implementation times, which
1145 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
1146 - # be needed with >=ceph-11.2.
1147 - #
1148 - python_setup "${1}"
1149 - econf "${ECONFARGS[@]}"
1150 -
1151 - popd >/dev/null || die
1152 -}
1153 -
1154 -src_compile() {
1155 - emake
1156 - emake_python_bindings all
1157 -
1158 - use test && emake check-local
1159 -}
1160 -
1161 -src_test() {
1162 - make check || die "make check failed"
1163 -}
1164 -
1165 -src_install() {
1166 - default
1167 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
1168 -
1169 - prune_libtool_files --all
1170 -
1171 - exeinto /usr/$(get_libdir)/ceph
1172 - newexe src/init-ceph ceph_init.sh
1173 -
1174 - insinto /etc/logrotate.d/
1175 - newins "${FILESDIR}"/ceph.logrotate ${PN}
1176 -
1177 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
1178 -
1179 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
1180 -
1181 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
1182 - newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
1183 - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
1184 -
1185 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
1186 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
1187 -
1188 - udev_dorules udev/*.rules
1189 -
1190 - readme.gentoo_create_doc
1191 -
1192 - python_setup 'python2*'
1193 - python_fix_shebang "${ED}"/usr/{,s}bin/
1194 -
1195 - # python_fix_shebang apparently is not idempotent
1196 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
1197 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
1198 -}
1199 -
1200 -pkg_postinst() {
1201 - readme.gentoo_print_elog
1202 -}
1203
1204 diff --git a/sys-cluster/ceph/ceph-10.2.6-r1.ebuild b/sys-cluster/ceph/ceph-10.2.6-r1.ebuild
1205 deleted file mode 100644
1206 index 843b516b452..00000000000
1207 --- a/sys-cluster/ceph/ceph-10.2.6-r1.ebuild
1208 +++ /dev/null
1209 @@ -1,292 +0,0 @@
1210 -# Copyright 1999-2017 Gentoo Foundation
1211 -# Distributed under the terms of the GNU General Public License v2
1212 -
1213 -EAPI=6
1214 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
1215 -
1216 -inherit check-reqs autotools eutils python-r1 udev user \
1217 - readme.gentoo-r1 systemd versionator flag-o-matic
1218 -
1219 -if [[ ${PV} == *9999* ]]; then
1220 - inherit git-r3
1221 - EGIT_REPO_URI="
1222 - git://github.com/ceph/ceph.git
1223 - https://github.com/ceph/ceph.git"
1224 - SRC_URI=""
1225 -else
1226 - SRC_URI="http://download.ceph.com/tarballs/${P}.tar.gz"
1227 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
1228 -fi
1229 -
1230 -DESCRIPTION="Ceph distributed filesystem"
1231 -HOMEPAGE="http://ceph.com/"
1232 -
1233 -LICENSE="LGPL-2.1"
1234 -SLOT="0"
1235 -
1236 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
1237 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
1238 -
1239 -# unbundling code commented out pending bugs 584056 and 584058
1240 -#>=dev-libs/jerasure-2.0.0-r1
1241 -#>=dev-libs/gf-complete-2.0.0
1242 -COMMON_DEPEND="
1243 - app-arch/snappy
1244 - app-arch/lz4:=
1245 - app-arch/bzip2
1246 - dev-libs/boost:=[threads]
1247 - dev-libs/libaio
1248 - dev-libs/leveldb[snappy]
1249 - nss? ( dev-libs/nss )
1250 - libatomic? ( dev-libs/libatomic_ops )
1251 - cryptopp? ( dev-libs/crypto++:= )
1252 - sys-apps/keyutils
1253 - sys-apps/util-linux
1254 - dev-libs/libxml2
1255 - radosgw? ( dev-libs/fcgi )
1256 - ldap? ( net-nds/openldap )
1257 - babeltrace? ( dev-util/babeltrace )
1258 - fuse? ( sys-fs/fuse:0 )
1259 - xfs? ( sys-fs/xfsprogs )
1260 - zfs? ( sys-fs/zfs )
1261 - gtk? (
1262 - x11-libs/gtk+:2
1263 - dev-cpp/gtkmm:2.4
1264 - gnome-base/librsvg
1265 - )
1266 - radosgw? (
1267 - dev-libs/fcgi
1268 - dev-libs/expat
1269 - net-misc/curl
1270 - )
1271 - jemalloc? ( dev-libs/jemalloc )
1272 - !jemalloc? ( dev-util/google-perftools )
1273 - lttng? ( dev-util/lttng-ust )
1274 - ${PYTHON_DEPS}
1275 - "
1276 -DEPEND="${COMMON_DEPEND}
1277 - dev-python/cython[${PYTHON_USEDEP}]
1278 - app-arch/cpio
1279 - virtual/pkgconfig
1280 - dev-python/sphinx
1281 - test? (
1282 - sys-fs/btrfs-progs
1283 - sys-apps/grep[pcre]
1284 - dev-python/tox[${PYTHON_USEDEP}]
1285 - dev-python/virtualenv[${PYTHON_USEDEP}]
1286 - )"
1287 -RDEPEND="${COMMON_DEPEND}
1288 - sys-apps/hdparm
1289 - sys-block/parted
1290 - sys-fs/cryptsetup
1291 - sys-apps/gptfdisk
1292 - dev-python/flask[${PYTHON_USEDEP}]
1293 - dev-python/requests[${PYTHON_USEDEP}]
1294 - "
1295 -REQUIRED_USE="
1296 - $(python_gen_useflags 'python2*')
1297 - ${PYTHON_REQUIRED_USE}
1298 - ^^ ( nss cryptopp )
1299 - ?? ( jemalloc tcmalloc )
1300 - "
1301 -
1302 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
1303 -REQUIRED_USE+=" radosgw"
1304 -
1305 -RESTRICT="test? ( userpriv )"
1306 -
1307 -# distribution tarball does not include everything needed for tests
1308 -RESTRICT+=" test"
1309 -
1310 -STRIP_MASK="/usr/lib*/rados-classes/*"
1311 -
1312 -UNBUNDLE_LIBS=(
1313 - src/erasure-code/jerasure/jerasure
1314 - src/erasure-code/jerasure/gf-complete
1315 -)
1316 -
1317 -PATCHES=(
1318 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
1319 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
1320 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
1321 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
1322 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
1323 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
1324 - "${FILESDIR}/${PN}-10.2.6-radosgw-swift-clean-up-flush-newline-behavior.patch"
1325 -)
1326 -
1327 -check-reqs_export_vars() {
1328 - if use debug; then
1329 - CHECKREQS_DISK_BUILD="23G"
1330 - CHECKREQS_DISK_USR="7G"
1331 - elif use amd64; then
1332 - CHECKREQS_DISK_BUILD="12G"
1333 - CHECKREQS_DISK_USR="450M"
1334 - else
1335 - CHECKREQS_DISK_BUILD="1400M"
1336 - CHECKREQS_DISK_USR="450M"
1337 - fi
1338 -
1339 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
1340 -}
1341 -
1342 -user_setup() {
1343 - enewgroup ceph ${CEPH_GID}
1344 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
1345 -}
1346 -
1347 -emake_python_bindings() {
1348 - local action="${1}" params binding module
1349 - shift
1350 - params=("${@}")
1351 -
1352 - __emake_python_bindings_do_impl() {
1353 - ceph_run_econf "${EPYTHON}"
1354 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
1355 -
1356 - # these don't work and aren't needed on python3
1357 - if [[ ${EBUILD_PHASE} == install ]]; then
1358 - for module in "${S}"/src/pybind/*.py; do
1359 - module_basename="$(basename "${module}")"
1360 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
1361 - continue
1362 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
1363 - python_domodule ${module}
1364 - fi
1365 - done
1366 - fi
1367 - }
1368 -
1369 - pushd "${S}/src"
1370 - for binding in rados rbd $(use cephfs && echo cephfs); do
1371 - python_foreach_impl __emake_python_bindings_do_impl
1372 - done
1373 - popd
1374 -
1375 - unset __emake_python_bindings_do_impl
1376 -}
1377 -
1378 -pkg_pretend() {
1379 - check-reqs_export_vars
1380 - check-reqs_pkg_pretend
1381 -}
1382 -
1383 -pkg_setup() {
1384 - python_setup
1385 - check-reqs_export_vars
1386 - check-reqs_pkg_setup
1387 - user_setup
1388 -}
1389 -
1390 -src_prepare() {
1391 - default
1392 -
1393 - # remove tests that need root access
1394 - rm src/test/cli/ceph-authtool/cap*.t
1395 -
1396 - #rm -rf "${UNBUNDLE_LIBS[@]}"
1397 -
1398 - append-flags -fPIC
1399 - eautoreconf
1400 -}
1401 -
1402 -src_configure() {
1403 - ECONFARGS=(
1404 - --without-hadoop
1405 - --includedir=/usr/include
1406 - $(use_with cephfs)
1407 - $(use_with debug)
1408 - $(use_with fuse)
1409 - $(use_with libaio)
1410 - $(use_with libatomic libatomic-ops)
1411 - $(use_with nss)
1412 - $(use_with cryptopp)
1413 - $(use_with radosgw)
1414 - $(use_with gtk gtk2)
1415 - $(use_enable static-libs static)
1416 - $(use_with jemalloc)
1417 - $(use_with xfs libxfs)
1418 - $(use_with zfs libzfs)
1419 - $(use_with lttng )
1420 - $(use_with babeltrace)
1421 - $(use_with ldap openldap)
1422 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
1423 - --with-mon
1424 - --with-eventfd
1425 - --with-cython
1426 - --without-kinetic
1427 - --without-librocksdb
1428 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
1429 - )
1430 -
1431 - # we can only use python2.7 for building at the moment
1432 - ceph_run_econf "python2*"
1433 -}
1434 -
1435 -ceph_run_econf() {
1436 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
1437 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
1438 -
1439 - pushd "${S}" >/dev/null || die
1440 - #
1441 - # This generates a QA warning about running econf in src_compile
1442 - # and src_install. Unfortunately the only other way to do this would
1443 - # involve building all of for each python implementation times, which
1444 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
1445 - # be needed with >=ceph-11.2.
1446 - #
1447 - python_setup "${1}"
1448 - econf "${ECONFARGS[@]}"
1449 -
1450 - popd >/dev/null || die
1451 -}
1452 -
1453 -src_compile() {
1454 - emake
1455 - emake_python_bindings all
1456 -
1457 - use test && emake check-local
1458 -}
1459 -
1460 -src_test() {
1461 - make check || die "make check failed"
1462 -}
1463 -
1464 -src_install() {
1465 - default
1466 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
1467 -
1468 - prune_libtool_files --all
1469 -
1470 - exeinto /usr/$(get_libdir)/ceph
1471 - newexe src/init-ceph ceph_init.sh
1472 -
1473 - insinto /etc/logrotate.d/
1474 - newins "${FILESDIR}"/ceph.logrotate ${PN}
1475 -
1476 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
1477 -
1478 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
1479 -
1480 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
1481 - newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
1482 - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
1483 -
1484 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
1485 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
1486 -
1487 - udev_dorules udev/*.rules
1488 -
1489 - readme.gentoo_create_doc
1490 -
1491 - python_setup 'python2*'
1492 - python_fix_shebang "${ED}"/usr/{,s}bin/
1493 -
1494 - # python_fix_shebang apparently is not idempotent
1495 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
1496 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
1497 -}
1498 -
1499 -pkg_postinst() {
1500 - readme.gentoo_print_elog
1501 -}
1502
1503 diff --git a/sys-cluster/ceph/ceph-10.2.6.ebuild b/sys-cluster/ceph/ceph-10.2.6.ebuild
1504 deleted file mode 100644
1505 index df59b17133e..00000000000
1506 --- a/sys-cluster/ceph/ceph-10.2.6.ebuild
1507 +++ /dev/null
1508 @@ -1,292 +0,0 @@
1509 -# Copyright 1999-2017 Gentoo Foundation
1510 -# Distributed under the terms of the GNU General Public License v2
1511 -
1512 -EAPI=6
1513 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
1514 -
1515 -inherit check-reqs autotools eutils python-r1 udev user \
1516 - readme.gentoo-r1 systemd versionator flag-o-matic
1517 -
1518 -if [[ ${PV} == *9999* ]]; then
1519 - inherit git-r3
1520 - EGIT_REPO_URI="
1521 - git://github.com/ceph/ceph.git
1522 - https://github.com/ceph/ceph.git"
1523 - SRC_URI=""
1524 -else
1525 - SRC_URI="http://download.ceph.com/tarballs/${P}.tar.gz"
1526 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
1527 -fi
1528 -
1529 -DESCRIPTION="Ceph distributed filesystem"
1530 -HOMEPAGE="http://ceph.com/"
1531 -
1532 -LICENSE="LGPL-2.1"
1533 -SLOT="0"
1534 -
1535 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
1536 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
1537 -
1538 -# unbundling code commented out pending bugs 584056 and 584058
1539 -#>=dev-libs/jerasure-2.0.0-r1
1540 -#>=dev-libs/gf-complete-2.0.0
1541 -COMMON_DEPEND="
1542 - app-arch/snappy
1543 - app-arch/lz4:=
1544 - app-arch/bzip2
1545 - dev-libs/boost:=[threads]
1546 - dev-libs/libaio
1547 - dev-libs/leveldb[snappy]
1548 - nss? ( dev-libs/nss )
1549 - libatomic? ( dev-libs/libatomic_ops )
1550 - cryptopp? ( dev-libs/crypto++:= )
1551 - sys-apps/keyutils
1552 - sys-apps/util-linux
1553 - dev-libs/libxml2
1554 - radosgw? ( dev-libs/fcgi )
1555 - ldap? ( net-nds/openldap )
1556 - babeltrace? ( dev-util/babeltrace )
1557 - fuse? ( sys-fs/fuse:0 )
1558 - xfs? ( sys-fs/xfsprogs )
1559 - zfs? ( sys-fs/zfs )
1560 - gtk? (
1561 - x11-libs/gtk+:2
1562 - dev-cpp/gtkmm:2.4
1563 - gnome-base/librsvg
1564 - )
1565 - radosgw? (
1566 - dev-libs/fcgi
1567 - dev-libs/expat
1568 - net-misc/curl
1569 - )
1570 - jemalloc? ( dev-libs/jemalloc )
1571 - !jemalloc? ( dev-util/google-perftools )
1572 - lttng? ( dev-util/lttng-ust )
1573 - ${PYTHON_DEPS}
1574 - "
1575 -DEPEND="${COMMON_DEPEND}
1576 - dev-python/cython[${PYTHON_USEDEP}]
1577 - app-arch/cpio
1578 - virtual/pkgconfig
1579 - dev-python/sphinx
1580 - test? (
1581 - sys-fs/btrfs-progs
1582 - sys-apps/grep[pcre]
1583 - dev-python/tox[${PYTHON_USEDEP}]
1584 - dev-python/virtualenv[${PYTHON_USEDEP}]
1585 - )"
1586 -RDEPEND="${COMMON_DEPEND}
1587 - sys-apps/hdparm
1588 - sys-block/parted
1589 - sys-fs/cryptsetup
1590 - sys-apps/gptfdisk
1591 - dev-python/flask[${PYTHON_USEDEP}]
1592 - dev-python/requests[${PYTHON_USEDEP}]
1593 - "
1594 -REQUIRED_USE="
1595 - $(python_gen_useflags 'python2*')
1596 - ${PYTHON_REQUIRED_USE}
1597 - ^^ ( nss cryptopp )
1598 - ?? ( jemalloc tcmalloc )
1599 - "
1600 -
1601 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
1602 -REQUIRED_USE+=" radosgw"
1603 -
1604 -RESTRICT="test? ( userpriv )"
1605 -
1606 -# distribution tarball does not include everything needed for tests
1607 -RESTRICT+=" test"
1608 -
1609 -STRIP_MASK="/usr/lib*/rados-classes/*"
1610 -
1611 -UNBUNDLE_LIBS=(
1612 - src/erasure-code/jerasure/jerasure
1613 - src/erasure-code/jerasure/gf-complete
1614 -)
1615 -
1616 -PATCHES=(
1617 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
1618 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
1619 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
1620 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
1621 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
1622 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
1623 - "${FILESDIR}/${PN}-10.2.6-radosgw-swift-clean-up-flush-newline-behavior.patch"
1624 -)
1625 -
1626 -check-reqs_export_vars() {
1627 - if use debug; then
1628 - CHECKREQS_DISK_BUILD="23G"
1629 - CHECKREQS_DISK_USR="7G"
1630 - elif use amd64; then
1631 - CHECKREQS_DISK_BUILD="12G"
1632 - CHECKREQS_DISK_USR="450M"
1633 - else
1634 - CHECKREQS_DISK_BUILD="1400M"
1635 - CHECKREQS_DISK_USR="450M"
1636 - fi
1637 -
1638 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
1639 -}
1640 -
1641 -user_setup() {
1642 - enewgroup ceph ${CEPH_GID}
1643 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
1644 -}
1645 -
1646 -emake_python_bindings() {
1647 - local action="${1}" params binding module
1648 - shift
1649 - params=("${@}")
1650 -
1651 - __emake_python_bindings_do_impl() {
1652 - ceph_run_econf "${EPYTHON}"
1653 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
1654 -
1655 - # these don't work and aren't needed on python3
1656 - if [[ ${EBUILD_PHASE} == install ]]; then
1657 - for module in "${S}"/src/pybind/*.py; do
1658 - module_basename="$(basename "${module}")"
1659 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
1660 - continue
1661 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
1662 - python_domodule ${module}
1663 - fi
1664 - done
1665 - fi
1666 - }
1667 -
1668 - pushd "${S}/src"
1669 - for binding in rados rbd $(use cephfs && echo cephfs); do
1670 - python_foreach_impl __emake_python_bindings_do_impl
1671 - done
1672 - popd
1673 -
1674 - unset __emake_python_bindings_do_impl
1675 -}
1676 -
1677 -pkg_pretend() {
1678 - check-reqs_export_vars
1679 - check-reqs_pkg_pretend
1680 -}
1681 -
1682 -pkg_setup() {
1683 - python_setup
1684 - check-reqs_export_vars
1685 - check-reqs_pkg_setup
1686 - user_setup
1687 -}
1688 -
1689 -src_prepare() {
1690 - default
1691 -
1692 - # remove tests that need root access
1693 - rm src/test/cli/ceph-authtool/cap*.t
1694 -
1695 - #rm -rf "${UNBUNDLE_LIBS[@]}"
1696 -
1697 - append-flags -fPIC
1698 - eautoreconf
1699 -}
1700 -
1701 -src_configure() {
1702 - ECONFARGS=(
1703 - --without-hadoop
1704 - --includedir=/usr/include
1705 - $(use_with cephfs)
1706 - $(use_with debug)
1707 - $(use_with fuse)
1708 - $(use_with libaio)
1709 - $(use_with libatomic libatomic-ops)
1710 - $(use_with nss)
1711 - $(use_with cryptopp)
1712 - $(use_with radosgw)
1713 - $(use_with gtk gtk2)
1714 - $(use_enable static-libs static)
1715 - $(use_with jemalloc)
1716 - $(use_with xfs libxfs)
1717 - $(use_with zfs libzfs)
1718 - $(use_with lttng )
1719 - $(use_with babeltrace)
1720 - $(use_with ldap openldap)
1721 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
1722 - --with-mon
1723 - --with-eventfd
1724 - --with-cython
1725 - --without-kinetic
1726 - --without-librocksdb
1727 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
1728 - )
1729 -
1730 - # we can only use python2.7 for building at the moment
1731 - ceph_run_econf "python2*"
1732 -}
1733 -
1734 -ceph_run_econf() {
1735 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
1736 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
1737 -
1738 - pushd "${S}" >/dev/null || die
1739 - #
1740 - # This generates a QA warning about running econf in src_compile
1741 - # and src_install. Unfortunately the only other way to do this would
1742 - # involve building all of for each python implementation times, which
1743 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
1744 - # be needed with >=ceph-11.2.
1745 - #
1746 - python_setup "${1}"
1747 - econf "${ECONFARGS[@]}"
1748 -
1749 - popd >/dev/null || die
1750 -}
1751 -
1752 -src_compile() {
1753 - emake
1754 - emake_python_bindings all
1755 -
1756 - use test && emake check-local
1757 -}
1758 -
1759 -src_test() {
1760 - make check || die "make check failed"
1761 -}
1762 -
1763 -src_install() {
1764 - default
1765 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
1766 -
1767 - prune_libtool_files --all
1768 -
1769 - exeinto /usr/$(get_libdir)/ceph
1770 - newexe src/init-ceph ceph_init.sh
1771 -
1772 - insinto /etc/logrotate.d/
1773 - newins "${FILESDIR}"/ceph.logrotate ${PN}
1774 -
1775 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
1776 -
1777 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
1778 -
1779 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
1780 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
1781 - newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
1782 -
1783 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
1784 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
1785 -
1786 - udev_dorules udev/*.rules
1787 -
1788 - readme.gentoo_create_doc
1789 -
1790 - python_setup 'python2*'
1791 - python_fix_shebang "${ED}"/usr/{,s}bin/
1792 -
1793 - # python_fix_shebang apparently is not idempotent
1794 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
1795 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
1796 -}
1797 -
1798 -pkg_postinst() {
1799 - readme.gentoo_print_elog
1800 -}
1801
1802 diff --git a/sys-cluster/ceph/ceph-10.2.7.ebuild b/sys-cluster/ceph/ceph-10.2.7.ebuild
1803 deleted file mode 100644
1804 index 09783bcaf46..00000000000
1805 --- a/sys-cluster/ceph/ceph-10.2.7.ebuild
1806 +++ /dev/null
1807 @@ -1,291 +0,0 @@
1808 -# Copyright 1999-2017 Gentoo Foundation
1809 -# Distributed under the terms of the GNU General Public License v2
1810 -
1811 -EAPI=6
1812 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
1813 -
1814 -inherit check-reqs autotools eutils python-r1 udev user \
1815 - readme.gentoo-r1 systemd versionator flag-o-matic
1816 -
1817 -if [[ ${PV} == *9999* ]]; then
1818 - inherit git-r3
1819 - EGIT_REPO_URI="
1820 - git://github.com/ceph/ceph.git
1821 - https://github.com/ceph/ceph.git"
1822 - SRC_URI=""
1823 -else
1824 - SRC_URI="http://download.ceph.com/tarballs/${P}.tar.gz"
1825 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
1826 -fi
1827 -
1828 -DESCRIPTION="Ceph distributed filesystem"
1829 -HOMEPAGE="http://ceph.com/"
1830 -
1831 -LICENSE="LGPL-2.1"
1832 -SLOT="0"
1833 -
1834 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
1835 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
1836 -
1837 -# unbundling code commented out pending bugs 584056 and 584058
1838 -#>=dev-libs/jerasure-2.0.0-r1
1839 -#>=dev-libs/gf-complete-2.0.0
1840 -COMMON_DEPEND="
1841 - app-arch/snappy
1842 - app-arch/lz4:=
1843 - app-arch/bzip2
1844 - dev-libs/boost:=[threads]
1845 - dev-libs/libaio
1846 - dev-libs/leveldb[snappy]
1847 - nss? ( dev-libs/nss )
1848 - libatomic? ( dev-libs/libatomic_ops )
1849 - cryptopp? ( dev-libs/crypto++:= )
1850 - sys-apps/keyutils
1851 - sys-apps/util-linux
1852 - dev-libs/libxml2
1853 - radosgw? ( dev-libs/fcgi )
1854 - ldap? ( net-nds/openldap )
1855 - babeltrace? ( dev-util/babeltrace )
1856 - fuse? ( sys-fs/fuse:0 )
1857 - xfs? ( sys-fs/xfsprogs )
1858 - zfs? ( sys-fs/zfs )
1859 - gtk? (
1860 - x11-libs/gtk+:2
1861 - dev-cpp/gtkmm:2.4
1862 - gnome-base/librsvg
1863 - )
1864 - radosgw? (
1865 - dev-libs/fcgi
1866 - dev-libs/expat
1867 - net-misc/curl
1868 - )
1869 - jemalloc? ( dev-libs/jemalloc )
1870 - !jemalloc? ( dev-util/google-perftools )
1871 - lttng? ( dev-util/lttng-ust )
1872 - ${PYTHON_DEPS}
1873 - "
1874 -DEPEND="${COMMON_DEPEND}
1875 - dev-python/cython[${PYTHON_USEDEP}]
1876 - app-arch/cpio
1877 - virtual/pkgconfig
1878 - dev-python/sphinx
1879 - test? (
1880 - sys-fs/btrfs-progs
1881 - sys-apps/grep[pcre]
1882 - dev-python/tox[${PYTHON_USEDEP}]
1883 - dev-python/virtualenv[${PYTHON_USEDEP}]
1884 - )"
1885 -RDEPEND="${COMMON_DEPEND}
1886 - sys-apps/hdparm
1887 - sys-block/parted
1888 - sys-fs/cryptsetup
1889 - sys-apps/gptfdisk
1890 - dev-python/flask[${PYTHON_USEDEP}]
1891 - dev-python/requests[${PYTHON_USEDEP}]
1892 - "
1893 -REQUIRED_USE="
1894 - $(python_gen_useflags 'python2*')
1895 - ${PYTHON_REQUIRED_USE}
1896 - ^^ ( nss cryptopp )
1897 - ?? ( jemalloc tcmalloc )
1898 - "
1899 -
1900 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
1901 -REQUIRED_USE+=" radosgw"
1902 -
1903 -#RESTRICT="test? ( userpriv )"
1904 -
1905 -# distribution tarball does not include everything needed for tests
1906 -RESTRICT+=" test"
1907 -
1908 -STRIP_MASK="/usr/lib*/rados-classes/*"
1909 -
1910 -UNBUNDLE_LIBS=(
1911 - src/erasure-code/jerasure/jerasure
1912 - src/erasure-code/jerasure/gf-complete
1913 -)
1914 -
1915 -PATCHES=(
1916 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
1917 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
1918 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
1919 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
1920 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
1921 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
1922 -)
1923 -
1924 -check-reqs_export_vars() {
1925 - if use debug; then
1926 - CHECKREQS_DISK_BUILD="23G"
1927 - CHECKREQS_DISK_USR="7G"
1928 - elif use amd64; then
1929 - CHECKREQS_DISK_BUILD="12G"
1930 - CHECKREQS_DISK_USR="450M"
1931 - else
1932 - CHECKREQS_DISK_BUILD="1400M"
1933 - CHECKREQS_DISK_USR="450M"
1934 - fi
1935 -
1936 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
1937 -}
1938 -
1939 -user_setup() {
1940 - enewgroup ceph ${CEPH_GID}
1941 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
1942 -}
1943 -
1944 -emake_python_bindings() {
1945 - local action="${1}" params binding module
1946 - shift
1947 - params=("${@}")
1948 -
1949 - __emake_python_bindings_do_impl() {
1950 - ceph_run_econf "${EPYTHON}"
1951 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
1952 -
1953 - # these don't work and aren't needed on python3
1954 - if [[ ${EBUILD_PHASE} == install ]]; then
1955 - for module in "${S}"/src/pybind/*.py; do
1956 - module_basename="$(basename "${module}")"
1957 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
1958 - continue
1959 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
1960 - python_domodule ${module}
1961 - fi
1962 - done
1963 - fi
1964 - }
1965 -
1966 - pushd "${S}/src"
1967 - for binding in rados rbd $(use cephfs && echo cephfs); do
1968 - python_foreach_impl __emake_python_bindings_do_impl
1969 - done
1970 - popd
1971 -
1972 - unset __emake_python_bindings_do_impl
1973 -}
1974 -
1975 -pkg_pretend() {
1976 - check-reqs_export_vars
1977 - check-reqs_pkg_pretend
1978 -}
1979 -
1980 -pkg_setup() {
1981 - python_setup
1982 - check-reqs_export_vars
1983 - check-reqs_pkg_setup
1984 - user_setup
1985 -}
1986 -
1987 -src_prepare() {
1988 - default
1989 -
1990 - # remove tests that need root access
1991 - rm src/test/cli/ceph-authtool/cap*.t
1992 -
1993 - #rm -rf "${UNBUNDLE_LIBS[@]}"
1994 -
1995 - append-flags -fPIC
1996 - eautoreconf
1997 -}
1998 -
1999 -src_configure() {
2000 - ECONFARGS=(
2001 - --without-hadoop
2002 - --includedir=/usr/include
2003 - $(use_with cephfs)
2004 - $(use_with debug)
2005 - $(use_with fuse)
2006 - $(use_with libaio)
2007 - $(use_with libatomic libatomic-ops)
2008 - $(use_with nss)
2009 - $(use_with cryptopp)
2010 - $(use_with radosgw)
2011 - $(use_with gtk gtk2)
2012 - $(use_enable static-libs static)
2013 - $(use_with jemalloc)
2014 - $(use_with xfs libxfs)
2015 - $(use_with zfs libzfs)
2016 - $(use_with lttng )
2017 - $(use_with babeltrace)
2018 - $(use_with ldap openldap)
2019 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
2020 - --with-mon
2021 - --with-eventfd
2022 - --with-cython
2023 - --without-kinetic
2024 - --without-librocksdb
2025 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
2026 - )
2027 -
2028 - # we can only use python2.7 for building at the moment
2029 - ceph_run_econf "python2*"
2030 -}
2031 -
2032 -ceph_run_econf() {
2033 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
2034 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
2035 -
2036 - pushd "${S}" >/dev/null || die
2037 - #
2038 - # This generates a QA warning about running econf in src_compile
2039 - # and src_install. Unfortunately the only other way to do this would
2040 - # involve building all of for each python implementation times, which
2041 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
2042 - # be needed with >=ceph-11.2.
2043 - #
2044 - python_setup "${1}"
2045 - econf "${ECONFARGS[@]}"
2046 -
2047 - popd >/dev/null || die
2048 -}
2049 -
2050 -src_compile() {
2051 - emake
2052 - emake_python_bindings all
2053 -
2054 - use test && emake check-local
2055 -}
2056 -
2057 -src_test() {
2058 - make check || die "make check failed"
2059 -}
2060 -
2061 -src_install() {
2062 - default
2063 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
2064 -
2065 - prune_libtool_files --all
2066 -
2067 - exeinto /usr/$(get_libdir)/ceph
2068 - newexe src/init-ceph ceph_init.sh
2069 -
2070 - insinto /etc/logrotate.d/
2071 - newins "${FILESDIR}"/ceph.logrotate ${PN}
2072 -
2073 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
2074 -
2075 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
2076 -
2077 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
2078 - newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
2079 - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
2080 -
2081 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
2082 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
2083 -
2084 - udev_dorules udev/*.rules
2085 -
2086 - readme.gentoo_create_doc
2087 -
2088 - python_setup 'python2*'
2089 - python_fix_shebang "${ED}"/usr/{,s}bin/
2090 -
2091 - # python_fix_shebang apparently is not idempotent
2092 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
2093 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
2094 -}
2095 -
2096 -pkg_postinst() {
2097 - readme.gentoo_print_elog
2098 -}
2099
2100 diff --git a/sys-cluster/ceph/files/ceph.initd-r1 b/sys-cluster/ceph/files/ceph.initd-r1
2101 deleted file mode 100644
2102 index 3fac993b473..00000000000
2103 --- a/sys-cluster/ceph/files/ceph.initd-r1
2104 +++ /dev/null
2105 @@ -1,48 +0,0 @@
2106 -#!/sbin/openrc-run
2107 -
2108 -ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}"
2109 -extra_commands="reload"
2110 -type=${RC_SVCNAME:5:3}
2111 -id=${RC_SVCNAME:9}
2112 -id=${id:-"0"}
2113 -command="/usr/bin/ceph-${type}"
2114 -pidfile="/run/ceph/${type}.${id}.pid"
2115 -command_args="-i ${id} --pid-file ${pidfile} -c ${ceph_conf}"
2116 -
2117 -depend() {
2118 - after net ntpd ntp-client chronyd
2119 - before netmount
2120 -}
2121 -
2122 -is_type_valid() {
2123 - case ${type} in
2124 - mon|mds|osd) return 0;;
2125 - *) return 1;;
2126 - esac
2127 -}
2128 -
2129 -start_pre() {
2130 - checkpath -d -q -o ceph $(dirname ${pidfile})
2131 -}
2132 -
2133 -start() {
2134 - ebegin "Starting Ceph ${type}.${id}"
2135 - if ! is_type_valid ;then
2136 - eerror "Please give valid Ceph Server Type: mds, mon, osd"
2137 - return 1
2138 - fi
2139 - start-stop-daemon --start -exec ${command} --user ceph --group ceph -- ${command_args}
2140 - eend $?
2141 -}
2142 -
2143 -stop() {
2144 - ebegin "Stopping Ceph ${type}.${id}"
2145 - start-stop-daemon --stop --user ceph --group ceph --pidfile ${pidfile}
2146 - eend $?
2147 -}
2148 -
2149 -reload() {
2150 - ebegin "Reloading Ceph ${type}.${id}"
2151 - start-stop-daemon --signal 1 --user ceph --group ceph --pidfile ${pidfile}
2152 - eend $?
2153 -}
2154
2155 diff --git a/sys-cluster/ceph/files/ceph.initd-r3 b/sys-cluster/ceph/files/ceph.initd-r3
2156 deleted file mode 100644
2157 index 9476aa9191a..00000000000
2158 --- a/sys-cluster/ceph/files/ceph.initd-r3
2159 +++ /dev/null
2160 @@ -1,40 +0,0 @@
2161 -#!/sbin/openrc-run
2162 -
2163 -ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}"
2164 -extra_commands="reload"
2165 -daemon_type="${RC_SVCNAME#ceph-}"
2166 -daemon_type="${daemon_type%%.*}"
2167 -daemon_id="${RC_SVCNAME#ceph-*.}"
2168 -daemon_id="${daemon_id:-0}"
2169 -command="/usr/bin/ceph-${daemon_type}"
2170 -pidfile="/run/ceph/${daemon_type}.${daemon_id}.pid"
2171 -command_args="-i ${daemon_id} --pid-file ${pidfile} -c ${ceph_conf}"
2172 -start_stop_daemon_args="--user ceph --group ceph"
2173 -
2174 -depend() {
2175 - after net ntpd ntp-client chronyd
2176 - before netmount
2177 -}
2178 -
2179 -is_type_valid() {
2180 - case ${daemon_type} in
2181 - mon|mds|osd) return 0;;
2182 - *) return 1;;
2183 - esac
2184 -}
2185 -
2186 -start_pre() {
2187 - checkpath -d -q -o ceph "$(dirname "${pidfile}")"
2188 - if ! is_type_valid ;then
2189 - eerror "Please give valid Ceph Server Type: mds, mon, osd"
2190 - return 1
2191 - fi
2192 -}
2193 -
2194 -reload() {
2195 - ebegin "Reloading Ceph ${daemon_type}.${daemon_id}"
2196 - start-stop-daemon --signal 1 ${start_stop_daemon_args} --pidfile "${pidfile}"
2197 - eend $?
2198 -}
2199 -
2200 -# vim:ft=gentoo-init-d:ts=4:sts=4:sw=4:noet: