Gentoo Archives: gentoo-commits

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