/[gentoo-x86]/sys-cluster/ceph/ceph-0.34.ebuild
Gentoo

Contents of /sys-cluster/ceph/ceph-0.34.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 31 17:29:31 2011 UTC (9 years ago) by alexxy
Branch: MAIN
[sys-cluster/ceph] Version bump

(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-0.31.ebuild,v 1.1 2011/07/28 21:27:33 alexxy Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils multilib
8
9 DESCRIPTION="Ceph distributed filesystem"
10 HOMEPAGE="http://ceph.newdream.net/"
11 SRC_URI="http://ceph.newdream.net/download/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug fuse gtk libatomic radosgw static-libs"
17
18 CDEPEND="
19 dev-libs/boost
20 dev-libs/libedit
21 dev-libs/crypto++
22 sys-apps/keyutils
23 fuse? ( sys-fs/fuse )
24 libatomic? ( dev-libs/libatomic_ops )
25 gtk? (
26 x11-libs/gtk+:2
27 dev-cpp/gtkmm:2.4
28 )
29 radosgw? (
30 dev-libs/fcgi
31 dev-libs/expat
32 )
33 "
34 DEPEND="${CDEPEND}
35 dev-util/pkgconfig"
36 RDEPEND="${CDEPEND}
37 sys-fs/btrfs-progs"
38
39 STRIP_MASK="/usr/lib*/rados-classes/*"
40
41 src_prepare() {
42 sed -e 's:invoke-rc\.d.*:/etc/init.d/ceph reload >/dev/null:' \
43 -i src/logrotate.conf || die
44 sed -i "/^docdir =/d" src/Makefile.am || die #fix doc path
45 # disable testsnaps
46 sed -e '/testsnaps/d' -i src/Makefile.am || die
47 epatch "${FILESDIR}/${PN}-0.26-autotools.patch"
48 eautoreconf
49 }
50
51 src_configure() {
52 econf \
53 --without-hadoop \
54 --without-tcmalloc \
55 --docdir=/usr/share/doc/${PF} \
56 --includedir=/usr/include \
57 $(use_with debug) \
58 $(use_with fuse) \
59 $(use_with libatomic libatomic-ops) \
60 $(use_with radosgw) \
61 $(use_with gtk gtk2) \
62 $(use_enable static-libs static)
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install || die
67 find "${D}" -type f -name "*.la" -exec rm -f {} \;
68
69 rmdir "${D}/usr/sbin"
70
71 exeinto /usr/$(get_libdir)/ceph || die
72 newexe src/init-ceph ceph_init.sh || die
73
74 insinto /etc/logrotate.d/ || die
75 newins src/logrotate.conf ${PN} || die
76
77 chmod 644 "${D}"/usr/share/doc/${PF}/sample.* || die
78
79 keepdir /var/lib/${PN} || die
80 keepdir /var/lib/${PN}/tmp || die
81 keepdir /var/log/${PN}/stat || die
82 keepdir /var/run/${PN} || die
83
84 newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
85 newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
86 }

  ViewVC Help
Powered by ViewVC 1.1.20