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:37
Message-Id: 1478228548.cd1478e677c931068a70484a5bc9955186d17e57.dlan@gentoo
1 commit: cd1478e677c931068a70484a5bc9955186d17e57
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 02:39:17 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=cd1478e6
7
8 sys-cluster/ceph: version bump 0.94.9
9
10 Package-Manager: portage-2.3.2
11
12 sys-cluster/ceph/Manifest | 1 +
13 sys-cluster/ceph/ceph-0.94.9.ebuild | 176 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 177 insertions(+)
15
16 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
17 index c21cf2a..76407bc 100644
18 --- a/sys-cluster/ceph/Manifest
19 +++ b/sys-cluster/ceph/Manifest
20 @@ -1,4 +1,5 @@
21 DIST ceph-0.94.7.tar.gz 9164375 SHA256 aafe6cbab2f5db11376e5696a58d0711a90e93094a04eafe8d4d0910c8694d66 SHA512 e27631dceb01d59fab5fab22eaf7a8d0cbb474b44834a3b62bff4562e32723711431ee3ae66e2de26368b3b0e8f3619282a91c6934b88e722fcdfe6215bf8e68 WHIRLPOOL b2c0f5d26a1ffdfede29ec35cba6bf3c630cfcf0ea8d42542bcfc8ee36294d611c5316ff85e4ade9c8e1e66ad020cf5402bddcfa9557b29969ae6bb9a3870b60
22 +DIST ceph-0.94.9.tar.gz 9044702 SHA256 d5bc07e7aef75f74d75f0356e5dd2a17956cbad6bb552a1e96a0fabd80924050 SHA512 ef4bbcc4429e22a2d924fd52dc42f522d5327f67ee8c1781d7cf602c2932a485cb48db21bdc33e7c7fbc968eec59c17882ebb18e6405599e11a3abc248f1d376 WHIRLPOOL f348159e8d7dd5e1ac3810a51846f50f6cefdbc5fa4cd15c3127b1136eb960baca8ad8db33c78a5d6435720cf1e2c277e068d09f9b9dbcf0f8ad56d7ddd914dc
23 DIST ceph-10.2.2.tar.gz 11541035 SHA256 7adaaeffb5a787108b5e1494df9165b6420069c0ab710e6e4aad185f423b0f6d SHA512 b47138528af3078646b52e9ea9a561eca4120473e7584c9076e949f0e9bbbdd15aa88e2287a90bd1ddb09d06c29c40181c18da58f5126a442101169ef3419b8a WHIRLPOOL f744444f2064832cba46065bd0fe64996c92bf8ed7888c075dffa9efe1d84393bd2204b38cefe11d0804ea862d0f2ff2d114ea205ff163d60e061e2e4a01db15
24 DIST ceph-10.2.3.tar.gz 11596171 SHA256 dca933aa14db67b404d836ef510bd418091978edc2f0c74dfc530ba0aa5e8994 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19 WHIRLPOOL 981ebca66113a07a5cc6e5934272a72b29a2c19e03398f7b622c11df6ea0a05339558dfc2f11504403cbbd0efe0b090ad59f4b86206b46db57587744091aa26a
25 DIST ceph-9.2.1.tar.gz 9933444 SHA256 1918dfc3df80df5986c5b7ff6bc6c78064eef0f6c5e8269dba30e08c703a7c2f SHA512 1e84c1e2d64f4156a523658ed11552b045f75986922b7b7dbaf4719e73a0a6aadc71eb2b94ae363526f729534a592921a437468a41a3cea88c1b84e09de8505a WHIRLPOOL 3a0eb6712e5b0235707e86129e1d66f1184f50cd4980c30f6d8cc0e7dfd96d30b91177ed16dd7abf2ad4983c6a543eb91915f74f661f7d3e3c810b5b1d656aca
26
27 diff --git a/sys-cluster/ceph/ceph-0.94.9.ebuild b/sys-cluster/ceph/ceph-0.94.9.ebuild
28 new file mode 100644
29 index 00000000..9c81d29
30 --- /dev/null
31 +++ b/sys-cluster/ceph/ceph-0.94.9.ebuild
32 @@ -0,0 +1,176 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +PYTHON_COMPAT=( python2_7 )
39 +
40 +if [[ $PV = *9999* ]]; then
41 + scm_eclass=git-r3
42 + EGIT_REPO_URI="
43 + git://github.com/ceph/ceph.git
44 + https://github.com/ceph/ceph.git"
45 + SRC_URI=""
46 +else
47 + [[ -n ${UPSTREAM_VER} ]] && \
48 + UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
49 +
50 + SRC_URI="http://ceph.com/download/${P}.tar.gz
51 + ${UPSTREAM_PATCHSET_URI}"
52 +fi
53 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
54 +
55 +inherit check-reqs autotools eutils multilib python-single-r1 udev readme.gentoo-r1 systemd ${scm_eclass}
56 +
57 +DESCRIPTION="Ceph distributed filesystem"
58 +HOMEPAGE="http://ceph.com/"
59 +
60 +LICENSE="LGPL-2.1"
61 +SLOT="0"
62 +IUSE="babeltrace cryptopp debug fuse gtk libatomic +libaio lttng +nss radosgw static-libs jemalloc python tcmalloc xfs zfs"
63 +
64 +COMMON_DEPEND="
65 + app-arch/snappy
66 + dev-libs/boost:=[threads]
67 + dev-libs/fcgi
68 + dev-libs/libaio
69 + dev-libs/libedit
70 + dev-libs/leveldb[snappy]
71 + nss? ( dev-libs/nss )
72 + cryptopp? ( dev-libs/crypto++ )
73 + sys-apps/keyutils
74 + sys-apps/util-linux
75 + dev-libs/libxml2
76 + babeltrace? ( dev-util/babeltrace )
77 + fuse? ( sys-fs/fuse )
78 + libatomic? ( dev-libs/libatomic_ops )
79 + xfs? ( sys-fs/xfsprogs )
80 + zfs? ( sys-fs/zfs )
81 + gtk? (
82 + x11-libs/gtk+:2
83 + dev-cpp/gtkmm:2.4
84 + gnome-base/librsvg
85 + )
86 + radosgw? (
87 + dev-libs/fcgi
88 + dev-libs/expat
89 + net-misc/curl
90 + )
91 + jemalloc? ( dev-libs/jemalloc )
92 + !jemalloc? ( dev-util/google-perftools )
93 + lttng? ( dev-util/lttng-ust )
94 + ${PYTHON_DEPS}
95 + "
96 +DEPEND="${COMMON_DEPEND}
97 + virtual/pkgconfig"
98 +RDEPEND="${COMMON_DEPEND}
99 + sys-apps/hdparm
100 + dev-python/flask[${PYTHON_USEDEP}]
101 + dev-python/requests[${PYTHON_USEDEP}]
102 + "
103 +REQUIRED_USE="
104 + ${PYTHON_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 +CHECKREQS_DISK_BUILD="1400M"
115 +
116 +pkg_setup() {
117 + python_setup
118 +}
119 +
120 +src_prepare() {
121 + # Upstream's patchset
122 + if [[ -n ${UPSTREAM_VER} ]]; then
123 + einfo "Try to apply Ceph Upstream patch set"
124 + EPATCH_SUFFIX="patch" \
125 + EPATCH_FORCE="yes" \
126 + EPATCH_OPTS="-p1" \
127 + epatch "${WORKDIR}"/patches-upstream
128 + fi
129 +
130 + [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
131 +
132 + epatch_user
133 + eautoreconf
134 +}
135 +
136 +src_configure() {
137 + local myeconfargs=(
138 + --without-hadoop
139 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
140 + --includedir=/usr/include
141 + $(use_with debug)
142 + $(use_with fuse)
143 + $(use_with libaio)
144 + $(use_with libatomic libatomic-ops)
145 + $(use_with nss)
146 + $(use_with cryptopp)
147 + $(use_with radosgw)
148 + $(use_with gtk gtk2)
149 + $(use_enable static-libs static)
150 + $(use_with jemalloc)
151 + $(use_with xfs libxfs)
152 + $(use_with zfs libzfs)
153 + $(use_with lttng )
154 + $(use_with babeltrace)
155 + --without-kinetic
156 + --without-librocksdb
157 + )
158 +
159 + use jemalloc || \
160 + myeconfargs+=( $(usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal") )
161 +
162 + PYTHON="${EPYTHON}" \
163 + econf "${myeconfargs[@]}"
164 +}
165 +
166 +src_install() {
167 + default
168 +
169 + prune_libtool_files --all
170 +
171 + exeinto /usr/$(get_libdir)/ceph
172 + newexe src/init-ceph ceph_init.sh
173 +
174 + insinto /etc/logrotate.d/
175 + newins "${FILESDIR}"/ceph.logrotate ${PN}
176 +
177 + chmod 644 "${ED}"/usr/share/doc/${PF}/sample.*
178 +
179 + keepdir /var/lib/${PN}
180 + keepdir /var/lib/${PN}/tmp
181 + keepdir /var/log/${PN}/stat
182 +
183 + newinitd "${FILESDIR}/rbdmap.initd" rbdmap
184 + newinitd "${FILESDIR}/${PN}.initd-r1.1" ${PN}
185 + newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
186 +
187 + systemd_dounit "${FILESDIR}/ceph.target"
188 + systemd_newunit "${FILESDIR}/ceph-mds_at.service" "ceph-mds@.service"
189 + systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
190 + systemd_newunit "${FILESDIR}/ceph-osd_at.service" "ceph-osd@.service"
191 + systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
192 + systemd_newunit "${FILESDIR}/ceph-mon_at.service" "ceph-mon@.service"
193 + systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service"
194 +
195 + python_fix_shebang \
196 + "${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \
197 + "${ED}"/usr/bin/{ceph,ceph-rest-api,ceph-brag}
198 +
199 + #install udev rules
200 + udev_dorules udev/50-rbd.rules
201 + udev_dorules udev/95-ceph-osd.rules
202 +
203 + readme.gentoo_create_doc
204 +}
205 +
206 +pkg_postinst() {
207 + readme.gentoo_print_elog
208 +}