You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-cluster/pacemaker-gui/pacemaker-gui-2.1.0-r1.ebuild

93 lines
2.0 KiB

# Copyright 1999-2011 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.0-r1.ebuild,v 1.1 2011/12/27 14:11:56 ultrabug Exp $
EAPI=4
PYTHON_DEPEND="2"
MY_P="pacemaker-mgmt-${PV}"
inherit python base autotools
DESCRIPTION="Pacemaker python GUI and management daemon"
HOMEPAGE="http://hg.clusterlabs.org/pacemaker/pygui/"
SRC_URI="http://hg.clusterlabs.org/pacemaker/pygui/archive/${MY_P}.tar.bz2"
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
heartbeat? ( sys-cluster/pacemaker[heartbeat] )
gtk? (
dev-python/pygtk
dev-python/pyxml
)
sys-libs/ncurses
sys-libs/pam
sys-libs/zlib"
RDEPEND="${CDEPEND}
sys-devel/libtool"
DEPEND="${CDEPEND}
gtk? ( dev-lang/swig )
dev-util/pkgconfig
nls? (
dev-util/intltool
sys-devel/gettext
)"
S="${WORKDIR}/Pacemaker-Python-GUI-${MY_P}/"
PATCHES=(
"${FILESDIR}/${PN}-2.0.0-gnutls.patch"
"${FILESDIR}/${PN}-2.0.0-doc.patch"
)
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
base_src_prepare
if ! use gtk;
then
sed -i -e 's/ client//g' mgmt/Makefile.am
epatch "${FILESDIR}/${PN}-2.0.0-noGTK.patch"
fi
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 static-libs static) \
${myopts} \
--disable-fatal-warnings
}
src_install() {
base_src_install
use static-libs || rm "${D}"/usr/$(get_libdir)/*.la
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"
}