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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed May 16 09:39:24 2012 UTC (5 years, 9 months ago) by ultrabug
Branch: MAIN
CVS Tags: HEAD
Version bump, drop old, fix #412787.

(Portage version: 2.1.10.59/cvs/Linux x86_64)

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-1.3.3-r1.ebuild,v 1.2 2012/05/04 07:20:30 jdhore Exp $
4
5 EAPI=4
6
7 inherit base autotools
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 ~hppa ~x86 ~x86-fbsd"
16 IUSE="doc infiniband ssl static-libs"
17
18 RDEPEND="!sys-cluster/heartbeat
19 ssl? ( dev-libs/nss )
20 infiniband? (
21 sys-infiniband/libibverbs
22 sys-infiniband/librdmacm
23 )"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig
26 doc? ( sys-apps/groff )"
27
28 PATCHES=(
29 "${FILESDIR}/${PN}-docs.patch"
30 )
31
32 DOCS=( README.recovery README.devmap SECURITY TODO AUTHORS )
33
34 src_prepare() {
35 base_src_prepare
36 eautoreconf
37 }
38
39 src_configure() {
40 # appends lib to localstatedir automatically
41 # FIXME: install just shared libs --disable-static does not work
42 econf \
43 --localstatedir=/var \
44 --docdir=/usr/share/doc/${PF} \
45 $(use_enable doc) \
46 $(use_enable ssl nss) \
47 $(use_enable infiniband rdma)
48 }
49
50 src_install() {
51 default
52 newinitd "${FILESDIR}"/${PN}.initd ${PN}
53
54 insinto /etc/logrotate.d
55 newins "${FILESDIR}"/${PN}.logrotate ${PN}
56
57 keepdir /var/lib/corosync
58 use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.a || die
59 }

  ViewVC Help
Powered by ViewVC 1.1.20