1 |
dlan 14/05/21 07:43:24 |
2 |
|
3 |
Modified: ceph-9999.ebuild ChangeLog metadata.xml |
4 |
Added: ceph-0.80.1.ebuild |
5 |
Removed: ceph-0.79.ebuild |
6 |
Log: |
7 |
version bump 0.80.1, fix bug #510396, #507956, thanks @babykart, @Changyuan Yu, @LeeL |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55) |
10 |
|
11 |
Revision Changes Path |
12 |
1.10 sys-cluster/ceph/ceph-9999.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild?rev=1.10&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild?rev=1.10&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild?r1=1.9&r2=1.10 |
17 |
|
18 |
Index: ceph-9999.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild,v |
21 |
retrieving revision 1.9 |
22 |
retrieving revision 1.10 |
23 |
diff -u -r1.9 -r1.10 |
24 |
--- ceph-9999.ebuild 17 Apr 2014 23:51:20 -0000 1.9 |
25 |
+++ ceph-9999.ebuild 21 May 2014 07:43:23 -0000 1.10 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2014 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild,v 1.9 2014/04/17 23:51:20 dlan Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-9999.ebuild,v 1.10 2014/05/21 07:43:23 dlan Exp $ |
31 |
|
32 |
EAPI=5 |
33 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
34 |
@@ -24,7 +24,7 @@ |
35 |
|
36 |
LICENSE="LGPL-2.1" |
37 |
SLOT="0" |
38 |
-IUSE="cryptopp debug fuse gtk libatomic +libaio libxfs libzfs +nss radosgw static-libs tcmalloc" |
39 |
+IUSE="cryptopp debug fuse gtk libatomic +libaio +nss radosgw static-libs tcmalloc xfs zfs" |
40 |
|
41 |
CDEPEND=" |
42 |
app-arch/snappy |
43 |
@@ -40,8 +40,8 @@ |
44 |
dev-libs/libxml2 |
45 |
fuse? ( sys-fs/fuse ) |
46 |
libatomic? ( dev-libs/libatomic_ops ) |
47 |
- libxfs? ( sys-fs/xfsprogs ) |
48 |
- libzfs? ( sys-fs/zfs ) |
49 |
+ xfs? ( sys-fs/xfsprogs ) |
50 |
+ zfs? ( sys-fs/zfs ) |
51 |
gtk? ( |
52 |
x11-libs/gtk+:2 |
53 |
dev-cpp/gtkmm:2.4 |
54 |
@@ -79,9 +79,6 @@ |
55 |
src_prepare() { |
56 |
[[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" |
57 |
|
58 |
- sed -e "/bin=/ s:lib:$(get_libdir):" "${FILESDIR}"/${PN}.initd \ |
59 |
- > "${T}"/${PN}.initd || die |
60 |
- |
61 |
epatch_user |
62 |
eautoreconf |
63 |
} |
64 |
@@ -101,8 +98,8 @@ |
65 |
$(use_with gtk gtk2) \ |
66 |
$(use_enable static-libs static) \ |
67 |
$(use_with tcmalloc) \ |
68 |
- $(use_with libxfs) \ |
69 |
- $(use_with libzfs) |
70 |
+ $(use_with xfs libxfs) \ |
71 |
+ $(use_with zfs libzfs) |
72 |
} |
73 |
|
74 |
src_install() { |
75 |
@@ -114,7 +111,7 @@ |
76 |
newexe src/init-ceph ceph_init.sh |
77 |
|
78 |
insinto /etc/logrotate.d/ |
79 |
- newins src/logrotate.conf ${PN} |
80 |
+ newins "${FILESDIR}"/ceph.logrotate ${PN} |
81 |
|
82 |
chmod 644 "${ED}"/usr/share/doc/${PF}/sample.* |
83 |
|
84 |
@@ -122,8 +119,8 @@ |
85 |
keepdir /var/lib/${PN}/tmp |
86 |
keepdir /var/log/${PN}/stat |
87 |
|
88 |
- newinitd "${T}/${PN}.initd" ${PN} |
89 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
90 |
+ newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} |
91 |
+ newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
92 |
|
93 |
_python_rewrite_shebang \ |
94 |
"${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \ |
95 |
@@ -139,4 +136,12 @@ |
96 |
elog " sys-block/parted to manage disk partions" |
97 |
elog " sys-fs/btrfs-progs to use btrfs filesytem" |
98 |
elog " sys-fs/cryptsetup to use encrypted devices with dm-crypt" |
99 |
+ elog "" |
100 |
+ elog "To have many daemons of one type, create your own script:" |
101 |
+ elog "" |
102 |
+ elog "cd /etc/init.d" |
103 |
+ elog "for dmn in mds.a mon.a osd.0 osd.1 osd.2; do" |
104 |
+ elog " ln -s ceph ceph-${dmn};" |
105 |
+ elog " rc-update add ceph-${dmn} default;" |
106 |
+ elog "done" |
107 |
} |
108 |
|
109 |
|
110 |
|
111 |
1.50 sys-cluster/ceph/ChangeLog |
112 |
|
113 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ChangeLog?rev=1.50&view=markup |
114 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ChangeLog?rev=1.50&content-type=text/plain |
115 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ChangeLog?r1=1.49&r2=1.50 |
116 |
|
117 |
Index: ChangeLog |
118 |
=================================================================== |
119 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v |
120 |
retrieving revision 1.49 |
121 |
retrieving revision 1.50 |
122 |
diff -u -r1.49 -r1.50 |
123 |
--- ChangeLog 17 Apr 2014 23:51:20 -0000 1.49 |
124 |
+++ ChangeLog 21 May 2014 07:43:24 -0000 1.50 |
125 |
@@ -1,6 +1,14 @@ |
126 |
# ChangeLog for sys-cluster/ceph |
127 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
128 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v 1.49 2014/04/17 23:51:20 dlan Exp $ |
129 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v 1.50 2014/05/21 07:43:24 dlan Exp $ |
130 |
+ |
131 |
+*ceph-0.80.1 (21 May 2014) |
132 |
+ |
133 |
+ 21 May 2014; Yixun Lan <dlan@g.o> -ceph-0.79.ebuild, |
134 |
+ +ceph-0.80.1.ebuild, ceph-9999.ebuild, +files/ceph.confd-r1, |
135 |
+ +files/ceph.initd-r1, +files/ceph.logrotate, metadata.xml: |
136 |
+ version bump 0.80.1, fix bug #510396, #507956, thanks @babykart, @Changyuan |
137 |
+ Yu, @LeeL |
138 |
|
139 |
*ceph-0.79 (17 Apr 2014) |
140 |
|
141 |
|
142 |
|
143 |
|
144 |
1.5 sys-cluster/ceph/metadata.xml |
145 |
|
146 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/metadata.xml?rev=1.5&view=markup |
147 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/metadata.xml?rev=1.5&content-type=text/plain |
148 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/metadata.xml?r1=1.4&r2=1.5 |
149 |
|
150 |
Index: metadata.xml |
151 |
=================================================================== |
152 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ceph/metadata.xml,v |
153 |
retrieving revision 1.4 |
154 |
retrieving revision 1.5 |
155 |
diff -u -r1.4 -r1.5 |
156 |
--- metadata.xml 17 Apr 2014 23:51:20 -0000 1.4 |
157 |
+++ metadata.xml 21 May 2014 07:43:24 -0000 1.5 |
158 |
@@ -15,9 +15,9 @@ |
159 |
<flag name='fuse'>Build fuse client</flag> |
160 |
<flag name='libatomic'>Use libatomic instead of builtin atomic operations</flag> |
161 |
<flag name='libaio'>Use libaio as asynchronous input/output library</flag> |
162 |
- <flag name='libxfs'>Add xfs support</flag> |
163 |
- <flag name='libzfs'>Add zfs support</flag> |
164 |
<flag name='nss'>Use <pkg>dev-libs/nss</pkg> for cryptography</flag> |
165 |
<flag name='radosgw'>Add radosgw support</flag> |
166 |
+ <flag name='xfs'>Add xfs support</flag> |
167 |
+ <flag name='zfs'>Add zfs support</flag> |
168 |
</use> |
169 |
</pkgmetadata> |
170 |
|
171 |
|
172 |
|
173 |
1.1 sys-cluster/ceph/ceph-0.80.1.ebuild |
174 |
|
175 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ceph-0.80.1.ebuild?rev=1.1&view=markup |
176 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/ceph-0.80.1.ebuild?rev=1.1&content-type=text/plain |
177 |
|
178 |
Index: ceph-0.80.1.ebuild |
179 |
=================================================================== |
180 |
# Copyright 1999-2014 Gentoo Foundation |
181 |
# Distributed under the terms of the GNU General Public License v2 |
182 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-0.80.1.ebuild,v 1.1 2014/05/21 07:43:23 dlan Exp $ |
183 |
|
184 |
EAPI=5 |
185 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
186 |
|
187 |
if [[ $PV = *9999* ]]; then |
188 |
scm_eclass=git-r3 |
189 |
EGIT_REPO_URI=" |
190 |
git://github.com/ceph/ceph.git |
191 |
https://github.com/ceph/ceph.git" |
192 |
SRC_URI="" |
193 |
KEYWORDS="" |
194 |
else |
195 |
SRC_URI="http://ceph.com/download/${P}.tar.bz2" |
196 |
KEYWORDS="~amd64 ~x86" |
197 |
fi |
198 |
|
199 |
inherit autotools eutils multilib python-any-r1 udev ${scm_eclass} |
200 |
|
201 |
DESCRIPTION="Ceph distributed filesystem" |
202 |
HOMEPAGE="http://ceph.com/" |
203 |
|
204 |
LICENSE="LGPL-2.1" |
205 |
SLOT="0" |
206 |
IUSE="cryptopp debug fuse gtk libatomic +libaio +nss radosgw static-libs tcmalloc xfs zfs" |
207 |
|
208 |
CDEPEND=" |
209 |
app-arch/snappy |
210 |
dev-libs/boost:=[threads] |
211 |
dev-libs/fcgi |
212 |
dev-libs/libaio |
213 |
dev-libs/libedit |
214 |
dev-libs/leveldb[snappy] |
215 |
nss? ( dev-libs/nss ) |
216 |
cryptopp? ( dev-libs/crypto++ ) |
217 |
sys-apps/keyutils |
218 |
sys-apps/util-linux |
219 |
dev-libs/libxml2 |
220 |
fuse? ( sys-fs/fuse ) |
221 |
libatomic? ( dev-libs/libatomic_ops ) |
222 |
xfs? ( sys-fs/xfsprogs ) |
223 |
zfs? ( sys-fs/zfs ) |
224 |
gtk? ( |
225 |
x11-libs/gtk+:2 |
226 |
dev-cpp/gtkmm:2.4 |
227 |
gnome-base/librsvg |
228 |
) |
229 |
radosgw? ( |
230 |
dev-libs/fcgi |
231 |
dev-libs/expat |
232 |
net-misc/curl |
233 |
) |
234 |
tcmalloc? ( dev-util/google-perftools ) |
235 |
$(python_gen_any_dep ' |
236 |
virtual/python-argparse[${PYTHON_USEDEP}] |
237 |
' ) |
238 |
${PYTHON_DEPS} |
239 |
" |
240 |
DEPEND="${CDEPEND} |
241 |
virtual/pkgconfig" |
242 |
RDEPEND="${CDEPEND} |
243 |
sys-apps/hdparm |
244 |
$(python_gen_any_dep ' |
245 |
dev-python/flask[${PYTHON_USEDEP}] |
246 |
dev-python/requests[${PYTHON_USEDEP}] |
247 |
' )" |
248 |
REQUIRED_USE=" |
249 |
^^ ( nss cryptopp ) |
250 |
" |
251 |
|
252 |
STRIP_MASK="/usr/lib*/rados-classes/*" |
253 |
|
254 |
PATCHES=( |
255 |
"${FILESDIR}"/${PN}-fix-gnustack.patch |
256 |
"${FILESDIR}"/${PN}-0.79-libzfs.patch |
257 |
) |
258 |
|
259 |
pkg_setup() { |
260 |
python-any-r1_pkg_setup |
261 |
} |
262 |
|
263 |
src_prepare() { |
264 |
[[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" |
265 |
|
266 |
epatch_user |
267 |
eautoreconf |
268 |
} |
269 |
|
270 |
src_configure() { |
271 |
econf \ |
272 |
--without-hadoop \ |
273 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
274 |
--includedir=/usr/include \ |
275 |
$(use_with debug) \ |
276 |
$(use_with fuse) \ |
277 |
$(use_with libaio) \ |
278 |
$(use_with libatomic libatomic-ops) \ |
279 |
$(use_with nss) \ |
280 |
$(use_with cryptopp) \ |
281 |
$(use_with radosgw) \ |
282 |
$(use_with gtk gtk2) \ |
283 |
$(use_enable static-libs static) \ |
284 |
$(use_with tcmalloc) \ |
285 |
$(use_with xfs libxfs) \ |
286 |
$(use_with zfs libzfs) |
287 |
} |
288 |
|
289 |
src_install() { |
290 |
default |
291 |
|
292 |
prune_libtool_files --all |
293 |
|
294 |
exeinto /usr/$(get_libdir)/ceph |
295 |
newexe src/init-ceph ceph_init.sh |
296 |
|
297 |
insinto /etc/logrotate.d/ |
298 |
newins "${FILESDIR}"/ceph.logrotate ${PN} |
299 |
|
300 |
chmod 644 "${ED}"/usr/share/doc/${PF}/sample.* |
301 |
|
302 |
keepdir /var/lib/${PN} |
303 |
keepdir /var/lib/${PN}/tmp |
304 |
keepdir /var/log/${PN}/stat |
305 |
|
306 |
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} |
307 |
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
308 |
|
309 |
_python_rewrite_shebang \ |
310 |
"${ED}"/usr/sbin/{ceph-disk,ceph-create-keys} \ |
311 |
"${ED}"/usr/bin/{ceph,ceph-rest-api} |
312 |
|
313 |
#install udev rules |
314 |
udev_dorules udev/50-rbd.rules |
315 |
udev_dorules udev/95-ceph-osd.rules |
316 |
} |
317 |
|
318 |
pkg_postinst() { |
319 |
elog "We suggest to install following packages" |
320 |
elog " sys-block/parted to manage disk partions" |
321 |
elog " sys-fs/btrfs-progs to use btrfs filesytem" |
322 |
elog " sys-fs/cryptsetup to use encrypted devices with dm-crypt" |
323 |
elog "" |
324 |
elog "To have many daemons of one type, create your own script:" |
325 |
elog "" |
326 |
elog "cd /etc/init.d" |
327 |
elog "for dmn in mds.a mon.a osd.0 osd.1 osd.2; do" |
328 |
elog " ln -s ceph ceph-${dmn};" |
329 |
elog " rc-update add ceph-${dmn} default;" |
330 |
elog "done" |
331 |
} |