Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/
Date: Fri, 04 Dec 2015 23:26:24
Message-Id: 1449271562.46f6175809d896fdaca8fb149609522eac9b86e0.robbat2@gentoo
1 commit: 46f6175809d896fdaca8fb149609522eac9b86e0
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 4 23:22:41 2015 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 4 23:26:02 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f61758
7
8 sys-cluster/ceph: bump, in p.mask for now.
9
10 Package-Manager: portage-2.2.24
11
12 sys-cluster/ceph/Manifest | 2 +
13 sys-cluster/ceph/ceph-10.0.0.ebuild | 182 ++++++++++++++++++++++++++++++++++++
14 sys-cluster/ceph/ceph-9.0.3.ebuild | 182 ++++++++++++++++++++++++++++++++++++
15 3 files changed, 366 insertions(+)
16
17 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
18 index 86aee4b..a4df18b 100644
19 --- a/sys-cluster/ceph/Manifest
20 +++ b/sys-cluster/ceph/Manifest
21 @@ -1,3 +1,5 @@
22 DIST ceph-0.80.10.tar.bz2 4136018 SHA256 a7ca8a3d0710ab88adcd5c52aebe0a8ee573e247c1ccf5d84eea8a9ff07a51fa SHA512 7823a489b7654457512d300050410b4a91d615fbb467d341c76e76b77364d6a2afa763bceb2c6cd8ed05a45d7b0aef4c3baf80155cc3223e940b439e0571f3c9 WHIRLPOOL a03fc3a4ca8c49157ff3b51528418ca62c3520c4141e402863cf3475a11b240be5297f731bf1a4e77a01a476e80f5e06c0722d688fbb8ad2db26ef1975a450da
23 DIST ceph-0.94.4.tar.bz2 7082496 SHA256 09b3a134c4eb06f770a72769d2aec3900c2c7f1d25092f93b0e8e73ab17e577c SHA512 3ae714d110d63717e7e49d07ac5523cbbd06b8fa140b842576f6afea780aec2408ccd053c109bf5e011018ff1c544366113e83e09ea79925e32d46e7360317ab WHIRLPOOL 8b53fb0410e6168d6385360005b29b919d7d4f255e06cc874fcbb35f1dc5566c0e97bbce50ec7ea2da479a0f068bf254abec474d155186085d500a0f4ea9eb01
24 DIST ceph-0.94.5.tar.bz2 7084809 SHA256 7658bec8cf6e6c8f5ceb1e85116c4df2582c497ae686295abebc6fc82ec79211 SHA512 8bf57eceda37ec058bd7b9cf98ba0eda11c361156da4cea0aa99a3059d61fc2120ebb27f1bb07bae42e13836b57a5db8f3888401481e9125780a6df21ca90529 WHIRLPOOL cfedf299f86e19ff87615e851e4639d4045c0e26756d8896498e2e6eb8304808bc78837ec68b01936abd7fd2563aafe973109ba72d66b368304c38e38fc680f5
25 +DIST ceph-10.0.0.tar.gz 10429823 SHA256 fd92052e0de135e1f35ea2add44b5b8add28a2a8235639d69c33cced06a4a357 SHA512 f0e36bf83c97d1dc0328fbba96897e583c6d29b11dc54ea7fa0186ffaa1cf4d26519f336083825d64dda70bd290dc45bd6f3f17ff67ada33322caee5f2f3ce07 WHIRLPOOL f443ab25ab8f89455d76f509f215b55519f9338d3b9daec318b097de4dffff7009a01521da0d963c4b5549485b6aebca1c0a705746cf2e64fef8e9f5e66676cf
26 +DIST ceph-9.0.3.tar.bz2 7082795 SHA256 98ad66b35d3747d56e04fcf32a5387b765f86f43c6f09393fe9c7f17e4ae5418 SHA512 fdaebf26076490394229ef1716278ae82e6397651e25b911553db9f93b0d7ba8849320d770aef1363952e7c8e672616f5e61523fc4b79642fe81f1d2d71c4225 WHIRLPOOL cc11218246efe1d1f0a095ddc3466eacc64ffd032093cc0642a420ed9eb7fdd956b25693cc46e2dace216a6ec577c1c4d26457cf86f0319fe71c5a1125342128
27
28 diff --git a/sys-cluster/ceph/ceph-10.0.0.ebuild b/sys-cluster/ceph/ceph-10.0.0.ebuild
29 new file mode 100644
30 index 0000000..e2936b9
31 --- /dev/null
32 +++ b/sys-cluster/ceph/ceph-10.0.0.ebuild
33 @@ -0,0 +1,182 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +if [[ $PV = *9999* ]]; then
42 + scm_eclass=git-r3
43 + EGIT_REPO_URI="
44 + git://github.com/ceph/ceph.git
45 + https://github.com/ceph/ceph.git"
46 + SRC_URI=""
47 +else
48 + SRC_URI="http://ceph.com/download/${P}.tar.gz"
49 +fi
50 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
51 +
52 +inherit check-reqs autotools eutils multilib python-single-r1 udev readme.gentoo systemd ${scm_eclass}
53 +
54 +DESCRIPTION="Ceph distributed filesystem"
55 +HOMEPAGE="http://ceph.com/"
56 +
57 +LICENSE="LGPL-2.1"
58 +SLOT="0"
59 +IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc tcmalloc xfs zfs"
60 +
61 +CDEPEND="
62 + app-arch/snappy
63 + dev-libs/boost:=[threads]
64 + dev-libs/fcgi
65 + dev-libs/libaio
66 + dev-libs/libedit
67 + dev-libs/leveldb[snappy]
68 + nss? ( dev-libs/nss )
69 + cryptopp? ( dev-libs/crypto++ )
70 + sys-apps/keyutils
71 + sys-apps/util-linux
72 + dev-libs/libxml2
73 + babeltrace? ( dev-util/babeltrace )
74 + fuse? ( sys-fs/fuse )
75 + libatomic? ( dev-libs/libatomic_ops )
76 + xfs? ( sys-fs/xfsprogs )
77 + zfs? ( sys-fs/zfs )
78 + gtk? (
79 + x11-libs/gtk+:2
80 + dev-cpp/gtkmm:2.4
81 + gnome-base/librsvg
82 + )
83 + radosgw? (
84 + dev-libs/fcgi
85 + dev-libs/expat
86 + net-misc/curl
87 + )
88 + jemalloc? ( dev-libs/jemalloc )
89 + !jemalloc? ( dev-util/google-perftools )
90 + lttng? ( dev-util/lttng-ust )
91 + ${PYTHON_DEPS}
92 + "
93 +DEPEND="${CDEPEND}
94 + virtual/pkgconfig"
95 +RDEPEND="${CDEPEND}
96 + sys-apps/hdparm
97 + dev-python/flask[${PYTHON_USEDEP}]
98 + dev-python/requests[${PYTHON_USEDEP}]
99 + "
100 +REQUIRED_USE="
101 + ${PYTHON_REQUIRED_USE}
102 + ^^ ( nss cryptopp )
103 + ?? ( jemalloc tcmalloc )
104 + "
105 +
106 +STRIP_MASK="/usr/lib*/rados-classes/*"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/${PN}-0.79-libzfs.patch
110 +)
111 +CHECKREQS_DISK_BUILD="1400M"
112 +
113 +check-reqs_export_vars() {
114 + # check-reqs does not support use flags, and there is a lot of variability
115 + # in Ceph.
116 + # 16G /var/tmp/portage/sys-cluster/ceph-9999-r1/work/ceph-9999
117 + # 6.7G /var/tmp/portage/sys-cluster/ceph-9999-r1/image/usr
118 + # 23G /var/tmp/portage/sys-cluster/ceph-9999-r1
119 + # Size requirements tested for Hammer & Jewel releases
120 + if use debug; then
121 + export CHECKREQS_DISK_BUILD="23G"
122 + export CHECKREQS_DISK_USR="7G"
123 + else
124 + export CHECKREQS_DISK_BUILD="1400M"
125 + export CHECKREQS_DISK_USR="450M"
126 + fi
127 +}
128 +
129 +pkg_setup() {
130 + python_setup
131 + check-reqs_export_vars
132 + check-reqs_pkg_setup
133 +}
134 +
135 +src_prepare() {
136 + [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
137 +
138 + epatch_user
139 + eautoreconf
140 +}
141 +
142 +pkg_pretend() {
143 + check-reqs_export_vars
144 + check-reqs_pkg_pretend
145 +}
146 +
147 +src_configure() {
148 + local myeconfargs=(
149 + --without-hadoop
150 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
151 + --includedir=/usr/include
152 + $(use_with debug)
153 + $(use_with fuse)
154 + $(use_with libaio)
155 + $(use_with libatomic libatomic-ops)
156 + $(use_with nss)
157 + $(use_with cryptopp)
158 + $(use_with radosgw)
159 + $(use_with gtk gtk2)
160 + $(use_enable static-libs static)
161 + $(use_with jemalloc)
162 + $(use_with xfs libxfs)
163 + $(use_with zfs libzfs)
164 + --without-kinetic
165 + --without-librocksdb
166 + $(use_with lttng )
167 + $(use_with babeltrace)
168 + )
169 +
170 + use jemalloc || \
171 + myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") )
172 +
173 + PYTHON="${EPYTHON}" \
174 + econf "${myeconfargs[@]}"
175 +}
176 +
177 +src_install() {
178 + default
179 +
180 + prune_libtool_files --all
181 +
182 + exeinto /usr/$(get_libdir)/ceph
183 + newexe src/init-ceph ceph_init.sh
184 +
185 + insinto /etc/logrotate.d/
186 + newins "${FILESDIR}"/ceph.logrotate ${PN}
187 +
188 + chmod 644 "${ED}"/usr/share/doc/${PF}/sample.*
189 +
190 + keepdir /var/lib/${PN}
191 + keepdir /var/lib/${PN}/tmp
192 + keepdir /var/log/${PN}/stat
193 +
194 + newinitd "${FILESDIR}/rbdmap.initd" rbdmap
195 + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
196 + newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
197 +
198 + systemd_dounit "${FILESDIR}/ceph.target"
199 + systemd_newunit "${FILESDIR}/ceph-mds_at.service" "ceph-mds@.service"
200 + systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
201 + systemd_newunit "${FILESDIR}/ceph-osd_at.service" "ceph-osd@.service"
202 + systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
203 + systemd_newunit "${FILESDIR}/ceph-mon_at.service" "ceph-mon@.service"
204 + systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service"
205 +
206 + python_fix_shebang \
207 + "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \
208 + "${ED}"/usr/bin/{ceph,ceph-rest-api}
209 +
210 + #install udev rules
211 + udev_dorules udev/50-rbd.rules
212 + udev_dorules udev/95-ceph-osd.rules
213 +
214 + readme.gentoo_create_doc
215 +}
216
217 diff --git a/sys-cluster/ceph/ceph-9.0.3.ebuild b/sys-cluster/ceph/ceph-9.0.3.ebuild
218 new file mode 100644
219 index 0000000..c50d81a
220 --- /dev/null
221 +++ b/sys-cluster/ceph/ceph-9.0.3.ebuild
222 @@ -0,0 +1,182 @@
223 +# Copyright 1999-2015 Gentoo Foundation
224 +# Distributed under the terms of the GNU General Public License v2
225 +# $Id$
226 +
227 +EAPI=5
228 +PYTHON_COMPAT=( python2_7 )
229 +
230 +if [[ $PV = *9999* ]]; then
231 + scm_eclass=git-r3
232 + EGIT_REPO_URI="
233 + git://github.com/ceph/ceph.git
234 + https://github.com/ceph/ceph.git"
235 + SRC_URI=""
236 +else
237 + SRC_URI="http://ceph.com/download/${P}.tar.bz2"
238 +fi
239 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
240 +
241 +inherit check-reqs autotools eutils multilib python-single-r1 udev readme.gentoo systemd ${scm_eclass}
242 +
243 +DESCRIPTION="Ceph distributed filesystem"
244 +HOMEPAGE="http://ceph.com/"
245 +
246 +LICENSE="LGPL-2.1"
247 +SLOT="0"
248 +IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc tcmalloc xfs zfs"
249 +
250 +CDEPEND="
251 + app-arch/snappy
252 + dev-libs/boost:=[threads]
253 + dev-libs/fcgi
254 + dev-libs/libaio
255 + dev-libs/libedit
256 + dev-libs/leveldb[snappy]
257 + nss? ( dev-libs/nss )
258 + cryptopp? ( dev-libs/crypto++ )
259 + sys-apps/keyutils
260 + sys-apps/util-linux
261 + dev-libs/libxml2
262 + babeltrace? ( dev-util/babeltrace )
263 + fuse? ( sys-fs/fuse )
264 + libatomic? ( dev-libs/libatomic_ops )
265 + xfs? ( sys-fs/xfsprogs )
266 + zfs? ( sys-fs/zfs )
267 + gtk? (
268 + x11-libs/gtk+:2
269 + dev-cpp/gtkmm:2.4
270 + gnome-base/librsvg
271 + )
272 + radosgw? (
273 + dev-libs/fcgi
274 + dev-libs/expat
275 + net-misc/curl
276 + )
277 + jemalloc? ( dev-libs/jemalloc )
278 + !jemalloc? ( dev-util/google-perftools )
279 + lttng? ( dev-util/lttng-ust )
280 + ${PYTHON_DEPS}
281 + "
282 +DEPEND="${CDEPEND}
283 + virtual/pkgconfig"
284 +RDEPEND="${CDEPEND}
285 + sys-apps/hdparm
286 + dev-python/flask[${PYTHON_USEDEP}]
287 + dev-python/requests[${PYTHON_USEDEP}]
288 + "
289 +REQUIRED_USE="
290 + ${PYTHON_REQUIRED_USE}
291 + ^^ ( nss cryptopp )
292 + ?? ( jemalloc tcmalloc )
293 + "
294 +
295 +STRIP_MASK="/usr/lib*/rados-classes/*"
296 +
297 +PATCHES=(
298 + "${FILESDIR}"/${PN}-0.79-libzfs.patch
299 +)
300 +CHECKREQS_DISK_BUILD="1400M"
301 +
302 +check-reqs_export_vars() {
303 + # check-reqs does not support use flags, and there is a lot of variability
304 + # in Ceph.
305 + # 16G /var/tmp/portage/sys-cluster/ceph-9999-r1/work/ceph-9999
306 + # 6.7G /var/tmp/portage/sys-cluster/ceph-9999-r1/image/usr
307 + # 23G /var/tmp/portage/sys-cluster/ceph-9999-r1
308 + # Size requirements tested for Hammer & Jewel releases
309 + if use debug; then
310 + export CHECKREQS_DISK_BUILD="23G"
311 + export CHECKREQS_DISK_USR="7G"
312 + else
313 + export CHECKREQS_DISK_BUILD="1400M"
314 + export CHECKREQS_DISK_USR="450M"
315 + fi
316 +}
317 +
318 +pkg_setup() {
319 + python_setup
320 + check-reqs_export_vars
321 + check-reqs_pkg_setup
322 +}
323 +
324 +src_prepare() {
325 + [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
326 +
327 + epatch_user
328 + eautoreconf
329 +}
330 +
331 +pkg_pretend() {
332 + check-reqs_export_vars
333 + check-reqs_pkg_pretend
334 +}
335 +
336 +src_configure() {
337 + local myeconfargs=(
338 + --without-hadoop
339 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
340 + --includedir=/usr/include
341 + $(use_with debug)
342 + $(use_with fuse)
343 + $(use_with libaio)
344 + $(use_with libatomic libatomic-ops)
345 + $(use_with nss)
346 + $(use_with cryptopp)
347 + $(use_with radosgw)
348 + $(use_with gtk gtk2)
349 + $(use_enable static-libs static)
350 + $(use_with jemalloc)
351 + $(use_with xfs libxfs)
352 + $(use_with zfs libzfs)
353 + --without-kinetic
354 + --without-librocksdb
355 + $(use_with lttng )
356 + $(use_with babeltrace)
357 + )
358 +
359 + use jemalloc || \
360 + myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") )
361 +
362 + PYTHON="${EPYTHON}" \
363 + econf "${myeconfargs[@]}"
364 +}
365 +
366 +src_install() {
367 + default
368 +
369 + prune_libtool_files --all
370 +
371 + exeinto /usr/$(get_libdir)/ceph
372 + newexe src/init-ceph ceph_init.sh
373 +
374 + insinto /etc/logrotate.d/
375 + newins "${FILESDIR}"/ceph.logrotate ${PN}
376 +
377 + chmod 644 "${ED}"/usr/share/doc/${PF}/sample.*
378 +
379 + keepdir /var/lib/${PN}
380 + keepdir /var/lib/${PN}/tmp
381 + keepdir /var/log/${PN}/stat
382 +
383 + newinitd "${FILESDIR}/rbdmap.initd" rbdmap
384 + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
385 + newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
386 +
387 + systemd_dounit "${FILESDIR}/ceph.target"
388 + systemd_newunit "${FILESDIR}/ceph-mds_at.service" "ceph-mds@.service"
389 + systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
390 + systemd_newunit "${FILESDIR}/ceph-osd_at.service" "ceph-osd@.service"
391 + systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
392 + systemd_newunit "${FILESDIR}/ceph-mon_at.service" "ceph-mon@.service"
393 + systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service"
394 +
395 + python_fix_shebang \
396 + "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \
397 + "${ED}"/usr/bin/{ceph,ceph-rest-api}
398 +
399 + #install udev rules
400 + udev_dorules udev/50-rbd.rules
401 + udev_dorules udev/95-ceph-osd.rules
402 +
403 + readme.gentoo_create_doc
404 +}