Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 420643
Collapse All | Expand All

(-)5b68b71a6c5a (+67 lines)
Added Link Here
1
# HG changeset patch
2
# Parent 0a61ca268448c669883d4640222024e6c06ee5ce
3
diff -r 0a61ca268448 -r e051d59c28d2 configure.ac
4
--- a/configure.ac	Tue Jun 12 20:52:16 2012 +0900
Added Link Here
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header$
4
5
EAPI="2"
6
7
inherit autotools multilib eutils base
8
9
DESCRIPTION="Resources pack for Heartbeat / Pacemaker"
10
HOMEPAGE="http://www.linux-ha.org/wiki/Resource_Agents"
11
SRC_URI="https://github.com/ClusterLabs/${PN}/tarball/v${PV} -> ${P}.tar.gz"
12
MY_TREE="2fafa06"
13
14
LICENSE="GPL-2"
15
SLOT="0"
16
KEYWORDS="~amd64 ~x86"
17
IUSE="doc"
18
19
RDEPEND="sys-apps/iproute2
20
	sys-cluster/cluster-glue
21
	!<sys-cluster/heartbeat-3.0"
22
DEPEND="${RDEPEND}
23
        doc? (
24
                dev-libs/libxslt
25
                app-text/docbook-xsl-stylesheets
26
	)"
27
28
S="${WORKDIR}/ClusterLabs-resource-agents-${MY_TREE}"
29
30
PATCHES=(
31
	"${FILESDIR}/3.9.3-docs.patch"
32
)
33
34
src_prepare() {
35
	base_src_prepare
36
	eautoreconf
37
}
38
39
src_configure() {
40
	econf \
41
		--with-version=${PV} \
42
		--disable-dependency-tracking \
43
		--disable-fatal-warnings \
44
		--localstatedir=/var \
45
		--docdir=/usr/share/doc/${PF} \
46
		--libdir=/usr/$(get_libdir) \
47
		$(use_enable doc) \
48
		--with-ocf-root=/usr/$(get_libdir)/ocf
49
}
50
51
src_install() {
52
	base_src_install
53
	rm -rf "${D}"/etc/init.d/ldirectord || die
54
}
55
56
pkg_postinst() {
57
	elog "To use Resource Agents installed in /usr/$(get_libdir)/ocf/resource.d"
58
	elog "you have to emerge required runtime dependencies manually."
59
	elog ""
60
	elog "Description and dependencies of all Agents can be found on"
61
	elog "http://www.linux-ha.org/wiki/Resource_Agents"
62
	elog "or in the documentation of this package."
63
}

Return to bug 420643