1 |
commit: 263850f7c011470dc6072bdfaeb5ef018f22ffa0 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 23:55:24 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 23:55:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=263850f7 |
7 |
|
8 |
sys-cluster/ceph: Clean out old versions in the 9.2 and 10.2 series |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
sys-cluster/ceph/Manifest | 2 - |
13 |
sys-cluster/ceph/ceph-10.2.0.ebuild | 250 -------------------------------- |
14 |
sys-cluster/ceph/ceph-10.2.1.ebuild | 263 ---------------------------------- |
15 |
sys-cluster/ceph/ceph-10.2.2.ebuild | 262 --------------------------------- |
16 |
sys-cluster/ceph/ceph-9.2.1-r1.ebuild | 193 ------------------------- |
17 |
sys-cluster/ceph/ceph-9.2.1.ebuild | 192 ------------------------- |
18 |
6 files changed, 1162 deletions(-) |
19 |
|
20 |
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest |
21 |
index 6b25179..f68e75c 100644 |
22 |
--- a/sys-cluster/ceph/Manifest |
23 |
+++ b/sys-cluster/ceph/Manifest |
24 |
@@ -1,6 +1,4 @@ |
25 |
DIST ceph-0.80.10.tar.bz2 4136018 SHA256 a7ca8a3d0710ab88adcd5c52aebe0a8ee573e247c1ccf5d84eea8a9ff07a51fa SHA512 7823a489b7654457512d300050410b4a91d615fbb467d341c76e76b77364d6a2afa763bceb2c6cd8ed05a45d7b0aef4c3baf80155cc3223e940b439e0571f3c9 WHIRLPOOL a03fc3a4ca8c49157ff3b51528418ca62c3520c4141e402863cf3475a11b240be5297f731bf1a4e77a01a476e80f5e06c0722d688fbb8ad2db26ef1975a450da |
26 |
DIST ceph-0.94.6.tar.gz 9131464 SHA256 d2e65e21bdecdfa1fffb2661e9be2d5382bd975a0eb8296df0e96bacc11c251f SHA512 4920857d7493769929754877e3f255cc816400757b014b0c075d65ce9c83c47a86725540fa012eb95f9c6395a477945d3a46322f3055f05345298858fec53997 WHIRLPOOL cb1a230dc1f07903b3712d9d23df718b12df219255b680737d3a746e9cbeee0d0c3ddb21da6dad1e31fb4d77aa9b3283e2dbd6e59ca38146db2ae91c5e7d4229 |
27 |
-DIST ceph-10.2.0.tar.gz 11667920 SHA256 1a39d919beccaa26ddfbaeac04eebb80f4d43946a59a18e2e25a9a805d5b262d SHA512 1277f08aa7f8e30d962e455d611ff21667334c27012b7a4c2e22faf0e03c0f3e3278c561ce7ea7548d065c26824e8d212b01303201d0749648b741d2a4eb0125 WHIRLPOOL 3d6e85888f74b629f67107199c4c5de5dffc2f7bdb639a24aaea8cce447710996281685623f667b95786b5218ec586ea1c0b497237ff344b857eb6cbffc28713 |
28 |
-DIST ceph-10.2.1.tar.gz 11697889 SHA256 f9f2f61b9d172f7ac55cde4c22564cf49d2421cdb312b0e7d191de5ab8ca8e9a SHA512 b0dfbca4ce1ebeb069455e7df068d0d3e777080f1bbf10553395106b8dbf198a74f381036c64dbe28854a221c5c5c4a0ac5eed2700b7658e829297610bcd8243 WHIRLPOOL 54c321506fc31875dfec4c4ee13335c8228ef311817cb1021694133303dd0bc9a7216aa46ad3ca529a95909b9974ece14e13db722a106f3130ed4dbc0899a07b |
29 |
DIST ceph-10.2.2.tar.gz 11541035 SHA256 7adaaeffb5a787108b5e1494df9165b6420069c0ab710e6e4aad185f423b0f6d SHA512 b47138528af3078646b52e9ea9a561eca4120473e7584c9076e949f0e9bbbdd15aa88e2287a90bd1ddb09d06c29c40181c18da58f5126a442101169ef3419b8a WHIRLPOOL f744444f2064832cba46065bd0fe64996c92bf8ed7888c075dffa9efe1d84393bd2204b38cefe11d0804ea862d0f2ff2d114ea205ff163d60e061e2e4a01db15 |
30 |
DIST ceph-9.2.1.tar.gz 9933444 SHA256 1918dfc3df80df5986c5b7ff6bc6c78064eef0f6c5e8269dba30e08c703a7c2f SHA512 1e84c1e2d64f4156a523658ed11552b045f75986922b7b7dbaf4719e73a0a6aadc71eb2b94ae363526f729534a592921a437468a41a3cea88c1b84e09de8505a WHIRLPOOL 3a0eb6712e5b0235707e86129e1d66f1184f50cd4980c30f6d8cc0e7dfd96d30b91177ed16dd7abf2ad4983c6a543eb91915f74f661f7d3e3c810b5b1d656aca |
31 |
|
32 |
diff --git a/sys-cluster/ceph/ceph-10.2.0.ebuild b/sys-cluster/ceph/ceph-10.2.0.ebuild |
33 |
deleted file mode 100644 |
34 |
index 34a1ae6..0000000 |
35 |
--- a/sys-cluster/ceph/ceph-10.2.0.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,250 +0,0 @@ |
38 |
-# Copyright 1999-2016 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
-# $Id$ |
41 |
- |
42 |
-EAPI=6 |
43 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
44 |
- |
45 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
46 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
47 |
- |
48 |
-if [[ ${PV} == *9999* ]]; then |
49 |
- inherit git-r3 |
50 |
- EGIT_REPO_URI=" |
51 |
- git://github.com/ceph/ceph.git |
52 |
- https://github.com/ceph/ceph.git" |
53 |
- SRC_URI="" |
54 |
-else |
55 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
56 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
57 |
-fi |
58 |
- |
59 |
-DESCRIPTION="Ceph distributed filesystem" |
60 |
-HOMEPAGE="http://ceph.com/" |
61 |
- |
62 |
-LICENSE="LGPL-2.1" |
63 |
-SLOT="0" |
64 |
- |
65 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
66 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs tcmalloc test xfs zfs" |
67 |
- |
68 |
-COMMON_DEPEND=" |
69 |
- app-arch/snappy |
70 |
- dev-libs/boost:=[threads] |
71 |
- dev-libs/fcgi |
72 |
- dev-libs/libaio |
73 |
- dev-libs/libedit |
74 |
- dev-python/sphinx[$(python_gen_usedep 'python2*')] |
75 |
- dev-libs/leveldb[snappy] |
76 |
- nss? ( dev-libs/nss ) |
77 |
- libatomic? ( dev-libs/libatomic_ops ) |
78 |
- cryptopp? ( dev-libs/crypto++ ) |
79 |
- sys-apps/keyutils |
80 |
- sys-apps/util-linux |
81 |
- dev-libs/libxml2 |
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 |
- test? ( |
108 |
- sys-fs/btrfs-progs |
109 |
- sys-apps/grep[pcre] |
110 |
- dev-python/tox[${PYTHON_USEDEP}] |
111 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
112 |
- )" |
113 |
-RDEPEND="${COMMON_DEPEND} |
114 |
- sys-apps/which |
115 |
- sys-apps/hdparm |
116 |
- sys-block/parted |
117 |
- sys-fs/cryptsetup |
118 |
- sys-apps/gptfdisk |
119 |
- sys-apps/findutils |
120 |
- dev-python/flask[${PYTHON_USEDEP}] |
121 |
- dev-python/requests[${PYTHON_USEDEP}] |
122 |
- " |
123 |
-REQUIRED_USE=" |
124 |
- $(python_gen_useflags 'python2*') |
125 |
- ${PYTHON_REQUIRED_USE} |
126 |
- ^^ ( nss cryptopp ) |
127 |
- ?? ( jemalloc tcmalloc ) |
128 |
- " |
129 |
- |
130 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
131 |
-REQUIRED_USE+=" radosgw" |
132 |
- |
133 |
-RESTRICT="test? ( userpriv )" |
134 |
- |
135 |
-# distribution tarball does not include everything needed for tests |
136 |
-RESTRICT+=" test" |
137 |
- |
138 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
139 |
- |
140 |
-PATCHES=( |
141 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
142 |
-) |
143 |
- |
144 |
-check-reqs_export_vars() { |
145 |
- if use debug; then |
146 |
- CHECKREQS_DISK_BUILD="23G" |
147 |
- CHECKREQS_DISK_USR="7G" |
148 |
- elif use amd64; then |
149 |
- CHECKREQS_DISK_BUILD="12G" |
150 |
- CHECKREQS_DISK_USR="450M" |
151 |
- else |
152 |
- CHECKREQS_DISK_BUILD="1400M" |
153 |
- CHECKREQS_DISK_USR="450M" |
154 |
- fi |
155 |
- |
156 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
157 |
-} |
158 |
- |
159 |
-user_setup() { |
160 |
- enewgroup ceph |
161 |
- enewuser ceph -1 -1 /var/lib/ceph ceph |
162 |
-} |
163 |
- |
164 |
-emake_python_bindings() { |
165 |
- local action="${1}" params binding |
166 |
- shift |
167 |
- params=("${@}") |
168 |
- |
169 |
- __emake_python_bindings_do_impl() { |
170 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
171 |
- |
172 |
- # these don't work and aren't needed on python3 |
173 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
174 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
175 |
- fi |
176 |
- } |
177 |
- |
178 |
- pushd "${S}/src" |
179 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
180 |
- python_foreach_impl __emake_python_bindings_do_impl |
181 |
- done |
182 |
- popd |
183 |
- |
184 |
- unset __emake_python_bindings_do_impl |
185 |
-} |
186 |
- |
187 |
-pkg_pretend() { |
188 |
- check-reqs_export_vars |
189 |
- check-reqs_pkg_pretend |
190 |
-} |
191 |
- |
192 |
-pkg_setup() { |
193 |
- python_setup |
194 |
- check-reqs_export_vars |
195 |
- check-reqs_pkg_setup |
196 |
- user_setup |
197 |
-} |
198 |
- |
199 |
-src_prepare() { |
200 |
- default |
201 |
- |
202 |
- # remove tests that need root access |
203 |
- rm src/test/cli/ceph-authtool/cap*.t |
204 |
- |
205 |
- append-flags -fPIC |
206 |
- eautoreconf |
207 |
-} |
208 |
- |
209 |
-src_configure() { |
210 |
- local myeconfargs=( |
211 |
- --without-hadoop |
212 |
- --includedir=/usr/include |
213 |
- $(use_with cephfs) |
214 |
- $(use_with debug) |
215 |
- $(use_with fuse) |
216 |
- $(use_with libaio) |
217 |
- $(use_with libatomic libatomic-ops) |
218 |
- $(use_with nss) |
219 |
- $(use_with cryptopp) |
220 |
- $(use_with radosgw) |
221 |
- $(use_with gtk gtk2) |
222 |
- $(use_enable static-libs static) |
223 |
- $(use_with jemalloc) |
224 |
- $(use_with xfs libxfs) |
225 |
- $(use_with zfs libzfs) |
226 |
- $(use_with lttng ) |
227 |
- $(use_with babeltrace) |
228 |
- $(use_with ldap openldap) |
229 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
230 |
- --with-mon |
231 |
- --with-eventfd |
232 |
- --with-cython |
233 |
- --without-kinetic |
234 |
- --without-librocksdb |
235 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
236 |
- ) |
237 |
- |
238 |
- # we can only use python2.7 for building at the moment |
239 |
- python_export python2.7 PYTHON EPYTHON |
240 |
- econf "${myeconfargs[@]}" |
241 |
-} |
242 |
- |
243 |
-src_compile() { |
244 |
- emake |
245 |
- emake_python_bindings all |
246 |
- |
247 |
- use test && emake check-local |
248 |
-} |
249 |
- |
250 |
-src_test() { |
251 |
- make check || die "make check failed" |
252 |
-} |
253 |
- |
254 |
-src_install() { |
255 |
- default |
256 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
257 |
- |
258 |
- prune_libtool_files --all |
259 |
- |
260 |
- exeinto /usr/$(get_libdir)/ceph |
261 |
- newexe src/init-ceph ceph_init.sh |
262 |
- |
263 |
- insinto /etc/logrotate.d/ |
264 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
265 |
- |
266 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
267 |
- |
268 |
- fowners ceph:ceph /var/lib/ceph |
269 |
- |
270 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
271 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
272 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
273 |
- |
274 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
275 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
276 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
277 |
- |
278 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
279 |
- |
280 |
- udev_dorules udev/*.rules |
281 |
- |
282 |
- readme.gentoo_create_doc |
283 |
-} |
284 |
- |
285 |
-pkg_postinst() { |
286 |
- readme.gentoo_print_elog |
287 |
-} |
288 |
|
289 |
diff --git a/sys-cluster/ceph/ceph-10.2.1.ebuild b/sys-cluster/ceph/ceph-10.2.1.ebuild |
290 |
deleted file mode 100644 |
291 |
index 1ab15d9..0000000 |
292 |
--- a/sys-cluster/ceph/ceph-10.2.1.ebuild |
293 |
+++ /dev/null |
294 |
@@ -1,263 +0,0 @@ |
295 |
-# Copyright 1999-2016 Gentoo Foundation |
296 |
-# Distributed under the terms of the GNU General Public License v2 |
297 |
-# $Id$ |
298 |
- |
299 |
-EAPI=6 |
300 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
301 |
- |
302 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
303 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
304 |
- |
305 |
-if [[ ${PV} == *9999* ]]; then |
306 |
- inherit git-r3 |
307 |
- EGIT_REPO_URI=" |
308 |
- git://github.com/ceph/ceph.git |
309 |
- https://github.com/ceph/ceph.git" |
310 |
- SRC_URI="" |
311 |
-else |
312 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
313 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
314 |
-fi |
315 |
- |
316 |
-DESCRIPTION="Ceph distributed filesystem" |
317 |
-HOMEPAGE="http://ceph.com/" |
318 |
- |
319 |
-LICENSE="LGPL-2.1" |
320 |
-SLOT="0" |
321 |
- |
322 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
323 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs tcmalloc test xfs zfs" |
324 |
- |
325 |
-# unbundling code commented out pending bugs 584056 and 584058 |
326 |
-#>=dev-libs/jerasure-2.0.0-r1 |
327 |
-#>=dev-libs/gf-complete-2.0.0 |
328 |
-COMMON_DEPEND=" |
329 |
- app-arch/snappy |
330 |
- dev-libs/boost:=[threads] |
331 |
- dev-libs/libaio |
332 |
- dev-libs/libedit |
333 |
- dev-python/sphinx[$(python_gen_usedep 'python2*')] |
334 |
- dev-libs/leveldb[snappy] |
335 |
- nss? ( dev-libs/nss ) |
336 |
- libatomic? ( dev-libs/libatomic_ops ) |
337 |
- cryptopp? ( dev-libs/crypto++ ) |
338 |
- sys-apps/keyutils |
339 |
- sys-apps/util-linux |
340 |
- dev-libs/libxml2 |
341 |
- radosgw? ( dev-libs/fcgi ) |
342 |
- ldap? ( net-nds/openldap ) |
343 |
- babeltrace? ( dev-util/babeltrace ) |
344 |
- fuse? ( sys-fs/fuse ) |
345 |
- xfs? ( sys-fs/xfsprogs ) |
346 |
- zfs? ( sys-fs/zfs ) |
347 |
- gtk? ( |
348 |
- x11-libs/gtk+:2 |
349 |
- dev-cpp/gtkmm:2.4 |
350 |
- gnome-base/librsvg |
351 |
- ) |
352 |
- radosgw? ( |
353 |
- dev-libs/fcgi |
354 |
- dev-libs/expat |
355 |
- net-misc/curl |
356 |
- ) |
357 |
- jemalloc? ( dev-libs/jemalloc ) |
358 |
- !jemalloc? ( dev-util/google-perftools ) |
359 |
- lttng? ( dev-util/lttng-ust ) |
360 |
- ${PYTHON_DEPS} |
361 |
- " |
362 |
-DEPEND="${COMMON_DEPEND} |
363 |
- dev-python/cython[${PYTHON_USEDEP}] |
364 |
- app-arch/cpio |
365 |
- sys-apps/lsb-release |
366 |
- virtual/pkgconfig |
367 |
- test? ( |
368 |
- sys-fs/btrfs-progs |
369 |
- sys-apps/grep[pcre] |
370 |
- dev-python/tox[${PYTHON_USEDEP}] |
371 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
372 |
- )" |
373 |
-RDEPEND="${COMMON_DEPEND} |
374 |
- sys-apps/which |
375 |
- sys-apps/hdparm |
376 |
- sys-block/parted |
377 |
- sys-fs/cryptsetup |
378 |
- sys-apps/gptfdisk |
379 |
- sys-apps/findutils |
380 |
- dev-python/flask[${PYTHON_USEDEP}] |
381 |
- dev-python/requests[${PYTHON_USEDEP}] |
382 |
- " |
383 |
-REQUIRED_USE=" |
384 |
- $(python_gen_useflags 'python2*') |
385 |
- ${PYTHON_REQUIRED_USE} |
386 |
- ^^ ( nss cryptopp ) |
387 |
- ?? ( jemalloc tcmalloc ) |
388 |
- " |
389 |
- |
390 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
391 |
-REQUIRED_USE+=" radosgw" |
392 |
- |
393 |
-RESTRICT="test? ( userpriv )" |
394 |
- |
395 |
-# distribution tarball does not include everything needed for tests |
396 |
-RESTRICT+=" test" |
397 |
- |
398 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
399 |
- |
400 |
-UNBUNDLE_LIBS=( |
401 |
- src/erasure-code/jerasure/jerasure |
402 |
- src/erasure-code/jerasure/gf-complete |
403 |
-) |
404 |
- |
405 |
-PATCHES=( |
406 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
407 |
- #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch" |
408 |
- "${FILESDIR}/${P}-libzfs.patch" |
409 |
- "${FILESDIR}/${P}-armv7l-doesnt-support-momit-leaf-frame-pointer.patch" |
410 |
-) |
411 |
- |
412 |
-check-reqs_export_vars() { |
413 |
- if use debug; then |
414 |
- CHECKREQS_DISK_BUILD="23G" |
415 |
- CHECKREQS_DISK_USR="7G" |
416 |
- elif use amd64; then |
417 |
- CHECKREQS_DISK_BUILD="12G" |
418 |
- CHECKREQS_DISK_USR="450M" |
419 |
- else |
420 |
- CHECKREQS_DISK_BUILD="1400M" |
421 |
- CHECKREQS_DISK_USR="450M" |
422 |
- fi |
423 |
- |
424 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
425 |
-} |
426 |
- |
427 |
-user_setup() { |
428 |
- enewgroup ceph |
429 |
- enewuser ceph -1 -1 /var/lib/ceph ceph |
430 |
-} |
431 |
- |
432 |
-emake_python_bindings() { |
433 |
- local action="${1}" params binding |
434 |
- shift |
435 |
- params=("${@}") |
436 |
- |
437 |
- __emake_python_bindings_do_impl() { |
438 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
439 |
- |
440 |
- # these don't work and aren't needed on python3 |
441 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
442 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
443 |
- fi |
444 |
- } |
445 |
- |
446 |
- pushd "${S}/src" |
447 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
448 |
- python_foreach_impl __emake_python_bindings_do_impl |
449 |
- done |
450 |
- popd |
451 |
- |
452 |
- unset __emake_python_bindings_do_impl |
453 |
-} |
454 |
- |
455 |
-pkg_pretend() { |
456 |
- check-reqs_export_vars |
457 |
- check-reqs_pkg_pretend |
458 |
-} |
459 |
- |
460 |
-pkg_setup() { |
461 |
- python_setup |
462 |
- check-reqs_export_vars |
463 |
- check-reqs_pkg_setup |
464 |
- user_setup |
465 |
-} |
466 |
- |
467 |
-src_prepare() { |
468 |
- default |
469 |
- |
470 |
- # remove tests that need root access |
471 |
- rm src/test/cli/ceph-authtool/cap*.t |
472 |
- |
473 |
- #rm -rf "${UNBUNDLE_LIBS[@]}" |
474 |
- |
475 |
- append-flags -fPIC |
476 |
- eautoreconf |
477 |
-} |
478 |
- |
479 |
-src_configure() { |
480 |
- local myeconfargs=( |
481 |
- --without-hadoop |
482 |
- --includedir=/usr/include |
483 |
- $(use_with cephfs) |
484 |
- $(use_with debug) |
485 |
- $(use_with fuse) |
486 |
- $(use_with libaio) |
487 |
- $(use_with libatomic libatomic-ops) |
488 |
- $(use_with nss) |
489 |
- $(use_with cryptopp) |
490 |
- $(use_with radosgw) |
491 |
- $(use_with gtk gtk2) |
492 |
- $(use_enable static-libs static) |
493 |
- $(use_with jemalloc) |
494 |
- $(use_with xfs libxfs) |
495 |
- $(use_with zfs libzfs) |
496 |
- $(use_with lttng ) |
497 |
- $(use_with babeltrace) |
498 |
- $(use_with ldap openldap) |
499 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
500 |
- --with-mon |
501 |
- --with-eventfd |
502 |
- --with-cython |
503 |
- --without-kinetic |
504 |
- --without-librocksdb |
505 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
506 |
- ) |
507 |
- |
508 |
- # we can only use python2.7 for building at the moment |
509 |
- python_export python2.7 PYTHON EPYTHON |
510 |
- econf "${myeconfargs[@]}" |
511 |
-} |
512 |
- |
513 |
-src_compile() { |
514 |
- emake |
515 |
- emake_python_bindings all |
516 |
- |
517 |
- use test && emake check-local |
518 |
-} |
519 |
- |
520 |
-src_test() { |
521 |
- make check || die "make check failed" |
522 |
-} |
523 |
- |
524 |
-src_install() { |
525 |
- default |
526 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
527 |
- |
528 |
- prune_libtool_files --all |
529 |
- |
530 |
- exeinto /usr/$(get_libdir)/ceph |
531 |
- newexe src/init-ceph ceph_init.sh |
532 |
- |
533 |
- insinto /etc/logrotate.d/ |
534 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
535 |
- |
536 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
537 |
- |
538 |
- fowners ceph:ceph /var/lib/ceph |
539 |
- |
540 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
541 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
542 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
543 |
- |
544 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
545 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
546 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
547 |
- |
548 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
549 |
- |
550 |
- udev_dorules udev/*.rules |
551 |
- |
552 |
- readme.gentoo_create_doc |
553 |
-} |
554 |
- |
555 |
-pkg_postinst() { |
556 |
- readme.gentoo_print_elog |
557 |
-} |
558 |
|
559 |
diff --git a/sys-cluster/ceph/ceph-10.2.2.ebuild b/sys-cluster/ceph/ceph-10.2.2.ebuild |
560 |
deleted file mode 100644 |
561 |
index 75b8a87..0000000 |
562 |
--- a/sys-cluster/ceph/ceph-10.2.2.ebuild |
563 |
+++ /dev/null |
564 |
@@ -1,262 +0,0 @@ |
565 |
-# Copyright 1999-2016 Gentoo Foundation |
566 |
-# Distributed under the terms of the GNU General Public License v2 |
567 |
-# $Id$ |
568 |
- |
569 |
-EAPI=6 |
570 |
-PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
571 |
- |
572 |
-inherit check-reqs autotools eutils python-r1 udev user \ |
573 |
- readme.gentoo-r1 systemd versionator flag-o-matic |
574 |
- |
575 |
-if [[ ${PV} == *9999* ]]; then |
576 |
- inherit git-r3 |
577 |
- EGIT_REPO_URI=" |
578 |
- git://github.com/ceph/ceph.git |
579 |
- https://github.com/ceph/ceph.git" |
580 |
- SRC_URI="" |
581 |
-else |
582 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
583 |
- KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
584 |
-fi |
585 |
- |
586 |
-DESCRIPTION="Ceph distributed filesystem" |
587 |
-HOMEPAGE="http://ceph.com/" |
588 |
- |
589 |
-LICENSE="LGPL-2.1" |
590 |
-SLOT="0" |
591 |
- |
592 |
-IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio" |
593 |
-IUSE+=" libatomic lttng +nss +radosgw static-libs tcmalloc test xfs zfs" |
594 |
- |
595 |
-# unbundling code commented out pending bugs 584056 and 584058 |
596 |
-#>=dev-libs/jerasure-2.0.0-r1 |
597 |
-#>=dev-libs/gf-complete-2.0.0 |
598 |
-COMMON_DEPEND=" |
599 |
- app-arch/snappy |
600 |
- app-arch/lz4:= |
601 |
- app-arch/bzip2 |
602 |
- dev-libs/boost:=[threads] |
603 |
- dev-libs/libaio |
604 |
- dev-libs/leveldb[snappy] |
605 |
- nss? ( dev-libs/nss ) |
606 |
- libatomic? ( dev-libs/libatomic_ops ) |
607 |
- cryptopp? ( dev-libs/crypto++ ) |
608 |
- sys-apps/keyutils |
609 |
- sys-apps/util-linux |
610 |
- dev-libs/libxml2 |
611 |
- radosgw? ( dev-libs/fcgi ) |
612 |
- ldap? ( net-nds/openldap ) |
613 |
- babeltrace? ( dev-util/babeltrace ) |
614 |
- fuse? ( sys-fs/fuse ) |
615 |
- xfs? ( sys-fs/xfsprogs ) |
616 |
- zfs? ( sys-fs/zfs ) |
617 |
- gtk? ( |
618 |
- x11-libs/gtk+:2 |
619 |
- dev-cpp/gtkmm:2.4 |
620 |
- gnome-base/librsvg |
621 |
- ) |
622 |
- radosgw? ( |
623 |
- dev-libs/fcgi |
624 |
- dev-libs/expat |
625 |
- net-misc/curl |
626 |
- ) |
627 |
- jemalloc? ( dev-libs/jemalloc ) |
628 |
- !jemalloc? ( dev-util/google-perftools ) |
629 |
- lttng? ( dev-util/lttng-ust ) |
630 |
- ${PYTHON_DEPS} |
631 |
- " |
632 |
-DEPEND="${COMMON_DEPEND} |
633 |
- dev-python/cython[${PYTHON_USEDEP}] |
634 |
- app-arch/cpio |
635 |
- sys-apps/lsb-release |
636 |
- virtual/pkgconfig |
637 |
- dev-python/sphinx |
638 |
- test? ( |
639 |
- sys-fs/btrfs-progs |
640 |
- sys-apps/grep[pcre] |
641 |
- dev-python/tox[${PYTHON_USEDEP}] |
642 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
643 |
- )" |
644 |
-RDEPEND="${COMMON_DEPEND} |
645 |
- sys-apps/hdparm |
646 |
- sys-block/parted |
647 |
- sys-fs/cryptsetup |
648 |
- sys-apps/gptfdisk |
649 |
- dev-python/flask[${PYTHON_USEDEP}] |
650 |
- dev-python/requests[${PYTHON_USEDEP}] |
651 |
- " |
652 |
-REQUIRED_USE=" |
653 |
- $(python_gen_useflags 'python2*') |
654 |
- ${PYTHON_REQUIRED_USE} |
655 |
- ^^ ( nss cryptopp ) |
656 |
- ?? ( jemalloc tcmalloc ) |
657 |
- " |
658 |
- |
659 |
-# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup') |
660 |
-REQUIRED_USE+=" radosgw" |
661 |
- |
662 |
-RESTRICT="test? ( userpriv )" |
663 |
- |
664 |
-# distribution tarball does not include everything needed for tests |
665 |
-RESTRICT+=" test" |
666 |
- |
667 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
668 |
- |
669 |
-UNBUNDLE_LIBS=( |
670 |
- src/erasure-code/jerasure/jerasure |
671 |
- src/erasure-code/jerasure/gf-complete |
672 |
-) |
673 |
- |
674 |
-PATCHES=( |
675 |
- "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch" |
676 |
- #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch" |
677 |
- "${FILESDIR}/${PN}-10.2.1-libzfs.patch" |
678 |
- "${FILESDIR}/${PN}-10.2.1-armv7l-doesnt-support-momit-leaf-frame-pointer.patch" |
679 |
-) |
680 |
- |
681 |
-check-reqs_export_vars() { |
682 |
- if use debug; then |
683 |
- CHECKREQS_DISK_BUILD="23G" |
684 |
- CHECKREQS_DISK_USR="7G" |
685 |
- elif use amd64; then |
686 |
- CHECKREQS_DISK_BUILD="12G" |
687 |
- CHECKREQS_DISK_USR="450M" |
688 |
- else |
689 |
- CHECKREQS_DISK_BUILD="1400M" |
690 |
- CHECKREQS_DISK_USR="450M" |
691 |
- fi |
692 |
- |
693 |
- export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
694 |
-} |
695 |
- |
696 |
-user_setup() { |
697 |
- enewgroup ceph |
698 |
- enewuser ceph -1 -1 /var/lib/ceph ceph |
699 |
-} |
700 |
- |
701 |
-emake_python_bindings() { |
702 |
- local action="${1}" params binding |
703 |
- shift |
704 |
- params=("${@}") |
705 |
- |
706 |
- __emake_python_bindings_do_impl() { |
707 |
- emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}" |
708 |
- |
709 |
- # these don't work and aren't needed on python3 |
710 |
- if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then |
711 |
- rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py |
712 |
- fi |
713 |
- } |
714 |
- |
715 |
- pushd "${S}/src" |
716 |
- for binding in rados rbd $(use cephfs && echo cephfs); do |
717 |
- python_foreach_impl __emake_python_bindings_do_impl |
718 |
- done |
719 |
- popd |
720 |
- |
721 |
- unset __emake_python_bindings_do_impl |
722 |
-} |
723 |
- |
724 |
-pkg_pretend() { |
725 |
- check-reqs_export_vars |
726 |
- check-reqs_pkg_pretend |
727 |
-} |
728 |
- |
729 |
-pkg_setup() { |
730 |
- python_setup |
731 |
- check-reqs_export_vars |
732 |
- check-reqs_pkg_setup |
733 |
- user_setup |
734 |
-} |
735 |
- |
736 |
-src_prepare() { |
737 |
- default |
738 |
- |
739 |
- # remove tests that need root access |
740 |
- rm src/test/cli/ceph-authtool/cap*.t |
741 |
- |
742 |
- #rm -rf "${UNBUNDLE_LIBS[@]}" |
743 |
- |
744 |
- append-flags -fPIC |
745 |
- eautoreconf |
746 |
-} |
747 |
- |
748 |
-src_configure() { |
749 |
- local myeconfargs=( |
750 |
- --without-hadoop |
751 |
- --includedir=/usr/include |
752 |
- $(use_with cephfs) |
753 |
- $(use_with debug) |
754 |
- $(use_with fuse) |
755 |
- $(use_with libaio) |
756 |
- $(use_with libatomic libatomic-ops) |
757 |
- $(use_with nss) |
758 |
- $(use_with cryptopp) |
759 |
- $(use_with radosgw) |
760 |
- $(use_with gtk gtk2) |
761 |
- $(use_enable static-libs static) |
762 |
- $(use_with jemalloc) |
763 |
- $(use_with xfs libxfs) |
764 |
- $(use_with zfs libzfs) |
765 |
- $(use_with lttng ) |
766 |
- $(use_with babeltrace) |
767 |
- $(use_with ldap openldap) |
768 |
- $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") |
769 |
- --with-mon |
770 |
- --with-eventfd |
771 |
- --with-cython |
772 |
- --without-kinetic |
773 |
- --without-librocksdb |
774 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
775 |
- ) |
776 |
- |
777 |
- # we can only use python2.7 for building at the moment |
778 |
- python_export python2.7 PYTHON EPYTHON |
779 |
- econf "${myeconfargs[@]}" |
780 |
-} |
781 |
- |
782 |
-src_compile() { |
783 |
- emake |
784 |
- emake_python_bindings all |
785 |
- |
786 |
- use test && emake check-local |
787 |
-} |
788 |
- |
789 |
-src_test() { |
790 |
- make check || die "make check failed" |
791 |
-} |
792 |
- |
793 |
-src_install() { |
794 |
- default |
795 |
- emake_python_bindings install-exec "DESTDIR=\"${D}\"" |
796 |
- |
797 |
- prune_libtool_files --all |
798 |
- |
799 |
- exeinto /usr/$(get_libdir)/ceph |
800 |
- newexe src/init-ceph ceph_init.sh |
801 |
- |
802 |
- insinto /etc/logrotate.d/ |
803 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
804 |
- |
805 |
- keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
806 |
- |
807 |
- fowners ceph:ceph /var/lib/ceph |
808 |
- |
809 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
810 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
811 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
812 |
- |
813 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
814 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
815 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
816 |
- |
817 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
818 |
- |
819 |
- udev_dorules udev/*.rules |
820 |
- |
821 |
- readme.gentoo_create_doc |
822 |
-} |
823 |
- |
824 |
-pkg_postinst() { |
825 |
- readme.gentoo_print_elog |
826 |
-} |
827 |
|
828 |
diff --git a/sys-cluster/ceph/ceph-9.2.1-r1.ebuild b/sys-cluster/ceph/ceph-9.2.1-r1.ebuild |
829 |
deleted file mode 100644 |
830 |
index 494094e..0000000 |
831 |
--- a/sys-cluster/ceph/ceph-9.2.1-r1.ebuild |
832 |
+++ /dev/null |
833 |
@@ -1,193 +0,0 @@ |
834 |
-# Copyright 1999-2016 Gentoo Foundation |
835 |
-# Distributed under the terms of the GNU General Public License v2 |
836 |
-# $Id$ |
837 |
- |
838 |
-EAPI=5 |
839 |
-PYTHON_COMPAT=( python2_7 ) |
840 |
- |
841 |
-if [[ $PV = *9999* ]]; then |
842 |
- scm_eclass=git-r3 |
843 |
- EGIT_REPO_URI=" |
844 |
- git://github.com/ceph/ceph.git |
845 |
- https://github.com/ceph/ceph.git" |
846 |
- SRC_URI="" |
847 |
-else |
848 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
849 |
-fi |
850 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
851 |
- |
852 |
-inherit check-reqs autotools eutils multilib python-single-r1 udev user readme.gentoo systemd versionator ${scm_eclass} |
853 |
- |
854 |
-DESCRIPTION="Ceph distributed filesystem" |
855 |
-HOMEPAGE="http://ceph.com/" |
856 |
- |
857 |
-LICENSE="LGPL-2.1" |
858 |
-SLOT="0" |
859 |
-IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc tcmalloc xfs zfs" |
860 |
- |
861 |
-COMMON_DEPEND=" |
862 |
- app-arch/snappy |
863 |
- dev-libs/boost:=[threads] |
864 |
- dev-libs/fcgi |
865 |
- dev-libs/libaio |
866 |
- dev-libs/libedit |
867 |
- dev-libs/leveldb[snappy] |
868 |
- nss? ( dev-libs/nss ) |
869 |
- cryptopp? ( dev-libs/crypto++ ) |
870 |
- sys-apps/keyutils |
871 |
- sys-apps/util-linux |
872 |
- dev-libs/libxml2 |
873 |
- babeltrace? ( dev-util/babeltrace ) |
874 |
- fuse? ( sys-fs/fuse ) |
875 |
- libatomic? ( dev-libs/libatomic_ops ) |
876 |
- xfs? ( sys-fs/xfsprogs ) |
877 |
- zfs? ( sys-fs/zfs ) |
878 |
- gtk? ( |
879 |
- x11-libs/gtk+:2 |
880 |
- dev-cpp/gtkmm:2.4 |
881 |
- gnome-base/librsvg |
882 |
- ) |
883 |
- radosgw? ( |
884 |
- dev-libs/fcgi |
885 |
- dev-libs/expat |
886 |
- net-misc/curl |
887 |
- ) |
888 |
- jemalloc? ( dev-libs/jemalloc ) |
889 |
- !jemalloc? ( dev-util/google-perftools ) |
890 |
- lttng? ( dev-util/lttng-ust ) |
891 |
- ${PYTHON_DEPS} |
892 |
- " |
893 |
-DEPEND="${COMMON_DEPEND} |
894 |
- virtual/pkgconfig" |
895 |
-RDEPEND="${COMMON_DEPEND} |
896 |
- sys-apps/hdparm |
897 |
- dev-python/flask[${PYTHON_USEDEP}] |
898 |
- dev-python/requests[${PYTHON_USEDEP}] |
899 |
- " |
900 |
-REQUIRED_USE=" |
901 |
- ${PYTHON_REQUIRED_USE} |
902 |
- ^^ ( nss cryptopp ) |
903 |
- ?? ( jemalloc tcmalloc ) |
904 |
- " |
905 |
- |
906 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
907 |
- |
908 |
-PATCHES=( |
909 |
- "${FILESDIR}"/${PN}-0.79-libzfs.patch |
910 |
- "${FILESDIR}"/${P}-libxfs.patch |
911 |
-) |
912 |
- |
913 |
-check-reqs_export_vars() { |
914 |
- # check-reqs does not support use flags, and there is a lot of variability |
915 |
- # in Ceph. |
916 |
- # 16G /var/tmp/portage/sys-cluster/ceph-9999-r1/work/ceph-9999 |
917 |
- # 6.7G /var/tmp/portage/sys-cluster/ceph-9999-r1/image/usr |
918 |
- # 23G /var/tmp/portage/sys-cluster/ceph-9999-r1 |
919 |
- # Size requirements tested for Hammer & Jewel releases |
920 |
- if use debug; then |
921 |
- export CHECKREQS_DISK_BUILD="23G" |
922 |
- export CHECKREQS_DISK_USR="7G" |
923 |
- else |
924 |
- export CHECKREQS_DISK_BUILD="9G" |
925 |
- export CHECKREQS_DISK_USR="450M" |
926 |
- fi |
927 |
- |
928 |
- export CHECKREQS_MEMORY="7G" |
929 |
-} |
930 |
- |
931 |
-user_setup() { |
932 |
- enewgroup ceph |
933 |
- enewuser ceph -1 -1 /var/lib/ceph ceph |
934 |
-} |
935 |
- |
936 |
-pkg_setup() { |
937 |
- python_setup |
938 |
- check-reqs_export_vars |
939 |
- check-reqs_pkg_setup |
940 |
- user_setup |
941 |
-} |
942 |
- |
943 |
-src_prepare() { |
944 |
- [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" |
945 |
- |
946 |
- epatch_user |
947 |
- eautoreconf |
948 |
-} |
949 |
- |
950 |
-pkg_pretend() { |
951 |
- check-reqs_export_vars |
952 |
- check-reqs_pkg_pretend |
953 |
-} |
954 |
- |
955 |
-src_configure() { |
956 |
- local myeconfargs=( |
957 |
- --without-hadoop |
958 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
959 |
- --includedir=/usr/include |
960 |
- $(use_with debug) |
961 |
- $(use_with fuse) |
962 |
- $(use_with libaio) |
963 |
- $(use_with libatomic libatomic-ops) |
964 |
- $(use_with nss) |
965 |
- $(use_with cryptopp) |
966 |
- $(use_with radosgw) |
967 |
- $(use_with gtk gtk2) |
968 |
- $(use_enable static-libs static) |
969 |
- $(use_with jemalloc) |
970 |
- $(use_with xfs libxfs) |
971 |
- $(use_with zfs libzfs) |
972 |
- $(use_with lttng ) |
973 |
- $(use_with babeltrace) |
974 |
- --without-kinetic |
975 |
- --without-librocksdb |
976 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
977 |
- ) |
978 |
- |
979 |
- use jemalloc || \ |
980 |
- myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") ) |
981 |
- |
982 |
- PYTHON="${EPYTHON}" \ |
983 |
- econf "${myeconfargs[@]}" |
984 |
-} |
985 |
- |
986 |
-src_install() { |
987 |
- default |
988 |
- |
989 |
- prune_libtool_files --all |
990 |
- |
991 |
- exeinto /usr/$(get_libdir)/ceph |
992 |
- newexe src/init-ceph ceph_init.sh |
993 |
- |
994 |
- insinto /etc/logrotate.d/ |
995 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
996 |
- |
997 |
- chmod 644 "${ED}"/usr/share/doc/${PF}/sample.* |
998 |
- |
999 |
- keepdir /var/lib/${PN} |
1000 |
- keepdir /var/lib/${PN}/tmp |
1001 |
- keepdir /var/log/${PN}/stat |
1002 |
- |
1003 |
- fowners ceph:ceph /var/lib/ceph |
1004 |
- |
1005 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
1006 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
1007 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
1008 |
- |
1009 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
1010 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
1011 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
1012 |
- |
1013 |
- python_fix_shebang \ |
1014 |
- "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \ |
1015 |
- "${ED}"/usr/bin/{ceph,ceph-rest-api,ceph-detect-init,ceph-brag} |
1016 |
- |
1017 |
- #install udev rules |
1018 |
- udev_dorules udev/50-rbd.rules |
1019 |
- udev_dorules udev/95-ceph-osd.rules |
1020 |
- |
1021 |
- readme.gentoo_create_doc |
1022 |
-} |
1023 |
- |
1024 |
-pkg_postinst() { |
1025 |
- readme.gentoo_print_elog |
1026 |
-} |
1027 |
|
1028 |
diff --git a/sys-cluster/ceph/ceph-9.2.1.ebuild b/sys-cluster/ceph/ceph-9.2.1.ebuild |
1029 |
deleted file mode 100644 |
1030 |
index cb09af1..0000000 |
1031 |
--- a/sys-cluster/ceph/ceph-9.2.1.ebuild |
1032 |
+++ /dev/null |
1033 |
@@ -1,192 +0,0 @@ |
1034 |
-# Copyright 1999-2016 Gentoo Foundation |
1035 |
-# Distributed under the terms of the GNU General Public License v2 |
1036 |
-# $Id$ |
1037 |
- |
1038 |
-EAPI=5 |
1039 |
-PYTHON_COMPAT=( python2_7 ) |
1040 |
- |
1041 |
-if [[ $PV = *9999* ]]; then |
1042 |
- scm_eclass=git-r3 |
1043 |
- EGIT_REPO_URI=" |
1044 |
- git://github.com/ceph/ceph.git |
1045 |
- https://github.com/ceph/ceph.git" |
1046 |
- SRC_URI="" |
1047 |
-else |
1048 |
- SRC_URI="http://ceph.com/download/${P}.tar.gz" |
1049 |
-fi |
1050 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
1051 |
- |
1052 |
-inherit check-reqs autotools eutils multilib python-single-r1 udev user readme.gentoo systemd versionator ${scm_eclass} |
1053 |
- |
1054 |
-DESCRIPTION="Ceph distributed filesystem" |
1055 |
-HOMEPAGE="http://ceph.com/" |
1056 |
- |
1057 |
-LICENSE="LGPL-2.1" |
1058 |
-SLOT="0" |
1059 |
-IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc tcmalloc xfs zfs" |
1060 |
- |
1061 |
-COMMON_DEPEND=" |
1062 |
- app-arch/snappy |
1063 |
- dev-libs/boost:=[threads] |
1064 |
- dev-libs/fcgi |
1065 |
- dev-libs/libaio |
1066 |
- dev-libs/libedit |
1067 |
- dev-libs/leveldb[snappy] |
1068 |
- nss? ( dev-libs/nss ) |
1069 |
- cryptopp? ( dev-libs/crypto++ ) |
1070 |
- sys-apps/keyutils |
1071 |
- sys-apps/util-linux |
1072 |
- dev-libs/libxml2 |
1073 |
- babeltrace? ( dev-util/babeltrace ) |
1074 |
- fuse? ( sys-fs/fuse ) |
1075 |
- libatomic? ( dev-libs/libatomic_ops ) |
1076 |
- xfs? ( sys-fs/xfsprogs ) |
1077 |
- zfs? ( sys-fs/zfs ) |
1078 |
- gtk? ( |
1079 |
- x11-libs/gtk+:2 |
1080 |
- dev-cpp/gtkmm:2.4 |
1081 |
- gnome-base/librsvg |
1082 |
- ) |
1083 |
- radosgw? ( |
1084 |
- dev-libs/fcgi |
1085 |
- dev-libs/expat |
1086 |
- net-misc/curl |
1087 |
- ) |
1088 |
- jemalloc? ( dev-libs/jemalloc ) |
1089 |
- !jemalloc? ( dev-util/google-perftools ) |
1090 |
- lttng? ( dev-util/lttng-ust ) |
1091 |
- ${PYTHON_DEPS} |
1092 |
- " |
1093 |
-DEPEND="${COMMON_DEPEND} |
1094 |
- virtual/pkgconfig" |
1095 |
-RDEPEND="${COMMON_DEPEND} |
1096 |
- sys-apps/hdparm |
1097 |
- dev-python/flask[${PYTHON_USEDEP}] |
1098 |
- dev-python/requests[${PYTHON_USEDEP}] |
1099 |
- " |
1100 |
-REQUIRED_USE=" |
1101 |
- ${PYTHON_REQUIRED_USE} |
1102 |
- ^^ ( nss cryptopp ) |
1103 |
- ?? ( jemalloc tcmalloc ) |
1104 |
- " |
1105 |
- |
1106 |
-STRIP_MASK="/usr/lib*/rados-classes/*" |
1107 |
- |
1108 |
-PATCHES=( |
1109 |
- "${FILESDIR}"/${PN}-0.79-libzfs.patch |
1110 |
-) |
1111 |
- |
1112 |
-check-reqs_export_vars() { |
1113 |
- # check-reqs does not support use flags, and there is a lot of variability |
1114 |
- # in Ceph. |
1115 |
- # 16G /var/tmp/portage/sys-cluster/ceph-9999-r1/work/ceph-9999 |
1116 |
- # 6.7G /var/tmp/portage/sys-cluster/ceph-9999-r1/image/usr |
1117 |
- # 23G /var/tmp/portage/sys-cluster/ceph-9999-r1 |
1118 |
- # Size requirements tested for Hammer & Jewel releases |
1119 |
- if use debug; then |
1120 |
- export CHECKREQS_DISK_BUILD="23G" |
1121 |
- export CHECKREQS_DISK_USR="7G" |
1122 |
- else |
1123 |
- export CHECKREQS_DISK_BUILD="9G" |
1124 |
- export CHECKREQS_DISK_USR="450M" |
1125 |
- fi |
1126 |
- |
1127 |
- export CHECKREQS_MEMORY="7G" |
1128 |
-} |
1129 |
- |
1130 |
-user_setup() { |
1131 |
- enewgroup ceph |
1132 |
- enewuser ceph -1 -1 /var/lib/ceph ceph |
1133 |
-} |
1134 |
- |
1135 |
-pkg_setup() { |
1136 |
- python_setup |
1137 |
- check-reqs_export_vars |
1138 |
- check-reqs_pkg_setup |
1139 |
- user_setup |
1140 |
-} |
1141 |
- |
1142 |
-src_prepare() { |
1143 |
- [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" |
1144 |
- |
1145 |
- epatch_user |
1146 |
- eautoreconf |
1147 |
-} |
1148 |
- |
1149 |
-pkg_pretend() { |
1150 |
- check-reqs_export_vars |
1151 |
- check-reqs_pkg_pretend |
1152 |
-} |
1153 |
- |
1154 |
-src_configure() { |
1155 |
- local myeconfargs=( |
1156 |
- --without-hadoop |
1157 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
1158 |
- --includedir=/usr/include |
1159 |
- $(use_with debug) |
1160 |
- $(use_with fuse) |
1161 |
- $(use_with libaio) |
1162 |
- $(use_with libatomic libatomic-ops) |
1163 |
- $(use_with nss) |
1164 |
- $(use_with cryptopp) |
1165 |
- $(use_with radosgw) |
1166 |
- $(use_with gtk gtk2) |
1167 |
- $(use_enable static-libs static) |
1168 |
- $(use_with jemalloc) |
1169 |
- $(use_with xfs libxfs) |
1170 |
- $(use_with zfs libzfs) |
1171 |
- $(use_with lttng ) |
1172 |
- $(use_with babeltrace) |
1173 |
- --without-kinetic |
1174 |
- --without-librocksdb |
1175 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
1176 |
- ) |
1177 |
- |
1178 |
- use jemalloc || \ |
1179 |
- myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") ) |
1180 |
- |
1181 |
- PYTHON="${EPYTHON}" \ |
1182 |
- econf "${myeconfargs[@]}" |
1183 |
-} |
1184 |
- |
1185 |
-src_install() { |
1186 |
- default |
1187 |
- |
1188 |
- prune_libtool_files --all |
1189 |
- |
1190 |
- exeinto /usr/$(get_libdir)/ceph |
1191 |
- newexe src/init-ceph ceph_init.sh |
1192 |
- |
1193 |
- insinto /etc/logrotate.d/ |
1194 |
- newins "${FILESDIR}"/ceph.logrotate ${PN} |
1195 |
- |
1196 |
- chmod 644 "${ED}"/usr/share/doc/${PF}/sample.* |
1197 |
- |
1198 |
- keepdir /var/lib/${PN} |
1199 |
- keepdir /var/lib/${PN}/tmp |
1200 |
- keepdir /var/log/${PN}/stat |
1201 |
- |
1202 |
- fowners ceph:ceph /var/lib/ceph |
1203 |
- |
1204 |
- newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
1205 |
- newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} |
1206 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
1207 |
- |
1208 |
- systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service" |
1209 |
- systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
1210 |
- systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
1211 |
- |
1212 |
- python_fix_shebang \ |
1213 |
- "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \ |
1214 |
- "${ED}"/usr/bin/{ceph,ceph-rest-api,ceph-detect-init,ceph-brag} |
1215 |
- |
1216 |
- #install udev rules |
1217 |
- udev_dorules udev/50-rbd.rules |
1218 |
- udev_dorules udev/95-ceph-osd.rules |
1219 |
- |
1220 |
- readme.gentoo_create_doc |
1221 |
-} |
1222 |
- |
1223 |
-pkg_postinst() { |
1224 |
- readme.gentoo_print_elog |
1225 |
-} |