summaryrefslogtreecommitdiff
blob: fa4b5d5c4fda178efe11eeb0e2571081d3f39843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Feedback is greatly appreciated!
#

inherit multilib

IUSE="examples"
DESCRIPTION="Heartbeat scripts (OCF Resource Agents, STONITH plugins etc.)"
HOMEPAGE="http://dev.gentoo.org/~wschlich/"
SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${P}.tar.bz2"
RESTRICT="mirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="sys-cluster/heartbeat"

src_compile() {
	: NOP
}

src_install() {
	exeinto /usr/$(get_libdir)/ocf/resource.d/custom
	doexe ${S}/ocf-ra/*

	exeinto /usr/$(get_libdir)/stonith/plugins/external/custom
	doexe ${S}/stonith/*

	if use examples; then
		local docdir=/usr/share/doc/${PF}/${_E_DOCDESTTREE_}
		insinto ${docdir}
		doins -r ${S}/examples
		ecompressdir ${docdir}
	fi
}