/[gentoo-x86]/sys-cluster/corosync/corosync-2.0.0.ebuild
Gentoo

Contents of /sys-cluster/corosync/corosync-2.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 29 13:41:52 2012 UTC (7 months, 2 weeks ago) by ultrabug
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bump corosync-2 series for testing

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key B658FA13)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/corosync-2.0.0.ebuild,v 1.1 2012/05/16 12:39:47 ultrabug Exp $
4
5 EAPI=4
6
7 inherit autotools base
8
9 DESCRIPTION="OSI Certified implementation of a complete cluster engine"
10 HOMEPAGE="http://www.corosync.org/"
11 SRC_URI="ftp://ftp:${PN}.org@${PN}.org/downloads/${P}/${P}.tar.gz"
12
13 LICENSE="BSD-2 public-domain"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc infiniband static-libs"
17
18 # TODO: support those new configure flags
19 # --enable-watchdog : Watchdog support
20 # --enable-augeas : Install the augeas lens for corosync.conf
21 # --enable-snmp : SNMP protocol support
22 # --enable-xmlconf : XML configuration support
23 # --enable-systemd : Install systemd service files
24 RDEPEND="!sys-cluster/heartbeat
25 infiniband? (
26 sys-infiniband/libibverbs
27 sys-infiniband/librdmacm
28 )
29 dev-libs/nss
30 sys-cluster/libqb"
31 DEPEND="${RDEPEND}
32 virtual/pkgconfig
33 doc? ( sys-apps/groff )"
34
35 PATCHES=(
36 "${FILESDIR}/${PN}-2.0.0-docs.patch"
37 "${FILESDIR}/${PN}-2.0.0-rpath.patch"
38 )
39
40 DOCS=( README.recovery SECURITY TODO AUTHORS )
41
42 src_prepare() {
43 base_src_prepare
44 eautoreconf
45 }
46
47 src_configure() {
48 # appends lib to localstatedir automatically
49 # FIXME: install just shared libs --disable-static does not work
50 econf \
51 --localstatedir=/var \
52 --docdir=/usr/share/doc/${PF} \
53 $(use_enable doc) \
54 $(use_enable infiniband rdma)
55 }
56
57 src_compile() {
58 # Fix parallel compilation problem with libcmap
59 MAKEOPTS="-j1" base_src_compile
60 }
61
62 src_install() {
63 default
64 newinitd "${FILESDIR}"/${PN}.initd ${PN}
65
66 insinto /etc/logrotate.d
67 newins "${FILESDIR}"/${PN}.logrotate ${PN}
68
69 keepdir /var/lib/corosync
70 use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.a || die
71 }

  ViewVC Help
Powered by ViewVC 1.1.20