blob: 4db179943f60d67d15e3328ae5600b163107f62d (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker-gui/pacemaker-gui-2.1.1.ebuild,v 1.3 2012/11/23 11:05:57 ultrabug Exp $
EAPI=4
PYTHON_DEPEND="2"
MY_P="pacemaker-mgmt-${PV}"
MY_TREE="e4db9d3"
inherit python base autotools
DESCRIPTION="Pacemaker python GUI and management daemon"
HOMEPAGE="http://hg.clusterlabs.org/pacemaker/pygui/"
SRC_URI="https://github.com/gao-yan/pacemaker-mgmt/tarball/${MY_P} -> ${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="-gtk heartbeat nls snmp static-libs"
CDEPEND="
app-arch/bzip2
dev-libs/glib:2
dev-libs/libxslt
dev-libs/openssl
net-libs/gnutls
sys-apps/util-linux
sys-cluster/cluster-glue
( >=sys-cluster/pacemaker-1.1 <sys-cluster/pacemaker-1.1.8 )
heartbeat? ( sys-cluster/pacemaker[heartbeat] )
gtk? (
dev-python/pygtk
)
sys-libs/ncurses
sys-libs/pam
sys-libs/zlib"
RDEPEND="${CDEPEND}
sys-devel/libtool"
DEPEND="${CDEPEND}
gtk? ( dev-lang/swig )
virtual/pkgconfig
nls? (
dev-util/intltool
sys-devel/gettext
)"
S="${WORKDIR}/gao-yan-pacemaker-mgmt-${MY_TREE}"
PATCHES=(
"${FILESDIR}/${PN}-2.1.1-doc.patch"
)
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
base_src_prepare
eautoreconf
}
src_configure() {
local myopts=""
use heartbeat || myopts="--with-ais-support"
econf $(use_with heartbeat heartbeat-support) \
$(use_enable snmp) \
$(use_enable nls) \
$(use_enable gtk mgmt-client) \
$(use_enable static-libs static) \
${myopts} \
--disable-fatal-warnings
}
src_install() {
base_src_install
use static-libs || find "${D}"/usr/$(get_libdir)/ -name "*.la" -delete
dodoc README doc/AUTHORS || die
}
pkg_postinst() {
elog "IMPORTANT: To have the mgmtd daemon started with your cluster,"
elog "you must add this directive in /etc/corosync/service.d/pacemaker :"
elog ""
elog "use_mgmtd: 1"
elog ""
elog "NB: To access the GUI, your user must be part of the 'haclient' group"
}
|