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: Wed, 02 Sep 2015 06:18:57
Message-Id: 1441203521.eb9ae7205eada7f3ba82ca729f4397fecee65a2d.dlan@gentoo
1 commit: eb9ae7205eada7f3ba82ca729f4397fecee65a2d
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 14:17:18 2015 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 14:18:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb9ae720
7
8 sys-cluster/ceph: version bump 0.94.3
9
10 Gentoo-Bug: 559338
11
12 Package-Manager: portage-2.2.20.1
13
14 sys-cluster/ceph/Manifest | 1 +
15 sys-cluster/ceph/ceph-0.94.3.ebuild | 159 ++++++++++++++++++++++++++++++++++++
16 sys-cluster/ceph/metadata.xml | 1 +
17 3 files changed, 161 insertions(+)
18
19 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
20 index 855472f..83fde26 100644
21 --- a/sys-cluster/ceph/Manifest
22 +++ b/sys-cluster/ceph/Manifest
23 @@ -1,3 +1,4 @@
24 DIST ceph-0.80.10.tar.bz2 4136018 SHA256 a7ca8a3d0710ab88adcd5c52aebe0a8ee573e247c1ccf5d84eea8a9ff07a51fa SHA512 7823a489b7654457512d300050410b4a91d615fbb467d341c76e76b77364d6a2afa763bceb2c6cd8ed05a45d7b0aef4c3baf80155cc3223e940b439e0571f3c9 WHIRLPOOL a03fc3a4ca8c49157ff3b51528418ca62c3520c4141e402863cf3475a11b240be5297f731bf1a4e77a01a476e80f5e06c0722d688fbb8ad2db26ef1975a450da
25 DIST ceph-0.80.9.tar.bz2 4061267 SHA256 59fa4a60f96e648b023e05690ef4d0042cbdacf4d2f50880162ff484bfbb7797 SHA512 b2f62510c6615bcb884c201852ae11abc94faf5b51899c4e326aab4c5e1ef2c7bca8002e1c46c41fd9e82ea16f570c4ee33ee9ff0c5e7c6dfb6a2bc8da15db95 WHIRLPOOL ddbcf45b781466525b6d577ab155ea32094388aabb98e03b7186ecd90d743cbb05fbedcf212df5f5a78eddf4458bfba92f6c8220c61f8ddb89a2f4b8ce7f87f1
26 DIST ceph-0.94.2.tar.bz2 7041327 SHA256 2cf36977e17d5782cdcfc885dcc2226c9c6e1454c1650f53a1e38a73e96544e8 SHA512 10b7ad611ff72b9367996e297f12dbef44c0d896ccf20133405b1d244dd1f9c9e813642918c01c16936aad58315912a87ca8dc2dcf3071311cfb14bde7e62790 WHIRLPOOL 207c8909927d520403554cc02880f8ed340602c98b2cfd4d9078afa76b79a83c5e070237f821f785eb2779cd63b3f015b85f08b031e48a7b1a862f1194947fb9
27 +DIST ceph-0.94.3.tar.bz2 7063143 SHA256 d042155302656a9110bd385b316cf9434a7da6b6f52faef42b378cb3d1bbddb8 SHA512 de3a8ff5c6f7f1c85ba304964023f9c196d8717fa7e070b88d3fbd7f904d54882a2a110c2cb7d96795642ce1082ca0304c2179724bf2bf426a37580de4f009c6 WHIRLPOOL c6adad828f3ad7e56939cdda676c75ebd23fe8d1ab138c862e9c766549b9bfb135e4ff32a57d833209a498acd7d77467f195ae9d11828a0a6bfb4c67cc168137
28
29 diff --git a/sys-cluster/ceph/ceph-0.94.3.ebuild b/sys-cluster/ceph/ceph-0.94.3.ebuild
30 new file mode 100644
31 index 0000000..37a5c8e
32 --- /dev/null
33 +++ b/sys-cluster/ceph/ceph-0.94.3.ebuild
34 @@ -0,0 +1,159 @@
35 +# Copyright 1999-2015 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 + SRC_URI="http://ceph.com/download/${P}.tar.bz2"
50 +fi
51 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
52 +
53 +inherit autotools eutils multilib python-any-r1 udev readme.gentoo systemd ${scm_eclass}
54 +
55 +DESCRIPTION="Ceph distributed filesystem"
56 +HOMEPAGE="http://ceph.com/"
57 +
58 +LICENSE="LGPL-2.1"
59 +SLOT="0"
60 +IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc tcmalloc xfs zfs"
61 +
62 +CDEPEND="
63 + app-arch/snappy
64 + dev-libs/boost:=[threads]
65 + dev-libs/fcgi
66 + dev-libs/libaio
67 + dev-libs/libedit
68 + dev-libs/leveldb[snappy]
69 + nss? ( dev-libs/nss )
70 + cryptopp? ( dev-libs/crypto++ )
71 + sys-apps/keyutils
72 + sys-apps/util-linux
73 + dev-libs/libxml2
74 + babeltrace? ( dev-util/babeltrace )
75 + fuse? ( sys-fs/fuse )
76 + libatomic? ( dev-libs/libatomic_ops )
77 + xfs? ( sys-fs/xfsprogs )
78 + zfs? ( sys-fs/zfs )
79 + gtk? (
80 + x11-libs/gtk+:2
81 + dev-cpp/gtkmm:2.4
82 + gnome-base/librsvg
83 + )
84 + radosgw? (
85 + dev-libs/fcgi
86 + dev-libs/expat
87 + net-misc/curl
88 + )
89 + jemalloc? ( dev-libs/jemalloc )
90 + !jemalloc? ( dev-util/google-perftools )
91 + lttng? ( dev-util/lttng-ust )
92 + $(python_gen_any_dep '
93 + ' )
94 + ${PYTHON_DEPS}
95 + "
96 +DEPEND="${CDEPEND}
97 + virtual/pkgconfig"
98 +RDEPEND="${CDEPEND}
99 + sys-apps/hdparm
100 + $(python_gen_any_dep '
101 + dev-python/flask[${PYTHON_USEDEP}]
102 + dev-python/requests[${PYTHON_USEDEP}]
103 + ' )"
104 +REQUIRED_USE="
105 + ^^ ( nss cryptopp )
106 + ?? ( jemalloc tcmalloc )
107 + "
108 +
109 +STRIP_MASK="/usr/lib*/rados-classes/*"
110 +
111 +PATCHES=(
112 + "${FILESDIR}"/${PN}-0.79-libzfs.patch
113 +)
114 +
115 +pkg_setup() {
116 + python-any-r1_pkg_setup
117 +}
118 +
119 +src_prepare() {
120 + [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
121 +
122 + epatch_user
123 + eautoreconf
124 +}
125 +
126 +src_configure() {
127 + local myeconfargs=(
128 + --without-hadoop
129 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
130 + --includedir=/usr/include
131 + $(use_with debug)
132 + $(use_with fuse)
133 + $(use_with libaio)
134 + $(use_with libatomic libatomic-ops)
135 + $(use_with nss)
136 + $(use_with cryptopp)
137 + $(use_with radosgw)
138 + $(use_with gtk gtk2)
139 + $(use_enable static-libs static)
140 + $(use_with jemalloc)
141 + $(use_with xfs libxfs)
142 + $(use_with zfs libzfs)
143 + --without-kinetic
144 + --without-librocksdb
145 + $(use_with lttng )
146 + $(use_with babeltrace)
147 + )
148 +
149 + use jemalloc || \
150 + myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") )
151 +
152 + econf "${myeconfargs[@]}"
153 +}
154 +
155 +src_install() {
156 + default
157 +
158 + prune_libtool_files --all
159 +
160 + exeinto /usr/$(get_libdir)/ceph
161 + newexe src/init-ceph ceph_init.sh
162 +
163 + insinto /etc/logrotate.d/
164 + newins "${FILESDIR}"/ceph.logrotate ${PN}
165 +
166 + chmod 644 "${ED}"/usr/share/doc/${PF}/sample.*
167 +
168 + keepdir /var/lib/${PN}
169 + keepdir /var/lib/${PN}/tmp
170 + keepdir /var/log/${PN}/stat
171 +
172 + newinitd "${FILESDIR}/rbdmap.initd" rbdmap
173 + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
174 + newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
175 +
176 + systemd_dounit "${FILESDIR}/ceph.target"
177 + systemd_newunit "${FILESDIR}/ceph-mds_at.service" "ceph-mds@.service"
178 + systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
179 + systemd_newunit "${FILESDIR}/ceph-osd_at.service" "ceph-osd@.service"
180 + systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
181 + systemd_newunit "${FILESDIR}/ceph-mon_at.service" "ceph-mon@.service"
182 + systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service"
183 +
184 + python_fix_shebang \
185 + "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \
186 + "${ED}"/usr/bin/{ceph,ceph-rest-api}
187 +
188 + #install udev rules
189 + udev_dorules udev/50-rbd.rules
190 + udev_dorules udev/95-ceph-osd.rules
191 +
192 + readme.gentoo_create_doc
193 +}
194
195 diff --git a/sys-cluster/ceph/metadata.xml b/sys-cluster/ceph/metadata.xml
196 index 8e46f85..44d7dc8 100644
197 --- a/sys-cluster/ceph/metadata.xml
198 +++ b/sys-cluster/ceph/metadata.xml
199 @@ -19,6 +19,7 @@ Ceph is a distributed network file system designed to provide excellent performa
200 <flag name='babeltrace'>Add support for LTTng babeltrace</flag>
201 <flag name='nss'>Use <pkg>dev-libs/nss</pkg> for cryptography</flag>
202 <flag name='radosgw'>Add radosgw support</flag>
203 + <flag name='jemalloc'>Use <pkg>dev-libs/jemalloc</pkg> for allocations</flag>
204 <flag name='xfs'>Add xfs support</flag>
205 <flag name='zfs'>Add zfs support</flag>
206 </use>