diff options
-rw-r--r-- | sys-cluster/pacemaker-gui/ChangeLog | 11 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/files/mgmtd.init | 39 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-doc.patch | 11 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-gnutls.patch | 46 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/metadata.xml | 9 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild | 83 |
6 files changed, 199 insertions, 0 deletions
diff --git a/sys-cluster/pacemaker-gui/ChangeLog b/sys-cluster/pacemaker-gui/ChangeLog new file mode 100644 index 000000000000..34583cc295d4 --- /dev/null +++ b/sys-cluster/pacemaker-gui/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-cluster/pacemaker-gui +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker-gui/ChangeLog,v 1.1 2011/02/21 14:46:15 ultrabug Exp $ + +*pacemaker-gui-2.0.0 (21 Feb 2011) + + 21 Feb 2011; Ultrabug <ultrabug@gentoo.org> +pacemaker-gui-2.0.0.ebuild, + +files/pacemaker-gui-2.0.0-doc.patch, + +files/pacemaker-gui-2.0.0-gnutls.patch, +files/mgmtd.init, +metadata.xml: + Initial import + diff --git a/sys-cluster/pacemaker-gui/files/mgmtd.init b/sys-cluster/pacemaker-gui/files/mgmtd.init new file mode 100644 index 000000000000..a5548139d0c7 --- /dev/null +++ b/sys-cluster/pacemaker-gui/files/mgmtd.init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# 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/files/mgmtd.init,v 1.1 2011/02/21 14:46:15 ultrabug Exp $ + +PIDFILE="/var/run/pcmk-mgmtd.pid" +BINARY="/usr/lib/heartbeat/mgmtd" + +# Adjust on the installed stack +if [ -f /etc/init.d/corosync ]; then + DEPEND="pacemaker" + export HA_cluster_type="openais" +else + DEPEND="heartbeat" + export HA_cluster_type="heartbeat" +fi + +depend() { + need $DEPEND +} + +start() { + ebegin "Starting Pacemaker Management daemon" + start-stop-daemon --start --pidfile "${PIDFILE}" -m -x ${BINARY} -b -- -v + eend $? +} + +stop() { + ebegin "Stopping Pacemaker Management daemon" + start-stop-daemon --stop --pidfile "${PIDFILE}" + eend $? +} + +restart() { + ebegin "Restarting Pacemaker Management daemon" + svc_stop + svc_start + eend $? +} diff --git a/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-doc.patch b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-doc.patch new file mode 100644 index 000000000000..3d35d4741611 --- /dev/null +++ b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-doc.patch @@ -0,0 +1,11 @@ +--- Makefile.am 2010-03-26 12:05:47.000000000 +0100 ++++ Makefile.am.doc 2010-07-02 14:53:52.429888536 +0200 +@@ -41,7 +41,7 @@ + SNMP_SUBAGENT_DIR = snmp_subagent + endif + +-SUBDIRS = $(LIBLTDL_DIR) replace include lib mgmt $(CIM_PROVIDER_DIR) $(TSA_PLUGIN_DIR) $(SNMP_SUBAGENT_DIR) doc po ++SUBDIRS = $(LIBLTDL_DIR) replace include lib mgmt $(CIM_PROVIDER_DIR) $(TSA_PLUGIN_DIR) $(SNMP_SUBAGENT_DIR) po + + tgz: + rm -f $(TARFILE) diff --git a/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-gnutls.patch b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-gnutls.patch new file mode 100644 index 000000000000..5b6cb46b3b97 --- /dev/null +++ b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-gnutls.patch @@ -0,0 +1,46 @@ +--- configure.in 2010-06-28 17:52:56.949797667 +0000 ++++ configure.in 2010-06-28 17:54:51.839826869 +0000 +@@ -1490,8 +1490,6 @@ + LCRSODIR="$libdir" + fi + +-PKG_FEATURES="$PKG_FEATURES$STACKS" +- + AC_MSG_CHECKING(for supported stacks) + if test x"$STACKS" = x; then + AC_MSG_FAILURE(You must choose at least one cluster stack to support) +@@ -1973,7 +1971,9 @@ + GNUTLSLIBS="`$LIBGNUTLS_CONFIG --libs`"; + AC_MSG_RESULT($GNUTLSLIBS) + else +- AC_CHECK_LIB(gnutls, gnutls_init) ++ PKG_CHECK_MODULES(GNUTLS, [gnutls]) ++ GNUTLSHEAD=$GNUTLS_CFLAGS ++ GNUTLSLIBS=$GNUTLS_LIBS + fi + AC_SUBST(GNUTLSHEAD) + AC_SUBST(GNUTLSLIBS) + +--- lib/mgmt/Makefile.am 2010-03-26 11:05:47.000000000 +0000 ++++ lib/mgmt/Makefile.am 2010-06-28 17:56:38.339798756 +0000 +@@ -35,8 +35,7 @@ + + lib_LTLIBRARIES = libhbmgmttls.la libhbmgmtclient.la libhbmgmtcommon.la + libhbmgmttls_la_SOURCES = mgmt_tls_lib.c +-libhbmgmttls_la_LIBADD = $(COMMONLIBS) +-libhbmgmttls_la_LDFLAGS = $(GNUTLSLIBS) ++libhbmgmttls_la_LIBADD = $(COMMONLIBS) $(GNUTLSLIBS) + libhbmgmttls_la_CFLAGS = $(INCLUDES) $(GNUTLSHEAD) + + libhbmgmtclient_la_SOURCES = mgmt_client_lib.c +@@ -50,8 +49,8 @@ + guilib_LTLIBRARIES = _pymgmt.la + _pymgmt_la_SOURCES = pymgmt_wrap.c mgmt_client_lib.c mgmt_tls_lib.c mgmt_common_lib.c + _pymgmt_la_CFLAGS = @PYTHON_INCLUDES@ -I$(top_builddir)/include -w +-_pymgmt_la_LDFLAGS = -module $(GNUTLSLIBS) +-_pymgmt_la_LIBADD = $(top_builddir)/replace/libreplace.la ++_pymgmt_la_LDFLAGS = -module ++_pymgmt_la_LIBADD = $(top_builddir)/replace/libreplace.la $(GNUTLSLIBS) + + guilib_DATA = pymgmt.py + diff --git a/sys-cluster/pacemaker-gui/metadata.xml b/sys-cluster/pacemaker-gui/metadata.xml new file mode 100644 index 000000000000..423ae52b7d47 --- /dev/null +++ b/sys-cluster/pacemaker-gui/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>cluster</herd> + <longdescription>Pacemaker python GUI and management daemon</longdescription> + <use> + <flag name="heartbeat">Enable support for heartbeat based <pkg>sys-cluster/pacemaker</pkg>.</flag> + </use> +</pkgmetadata> diff --git a/sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild b/sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild new file mode 100644 index 000000000000..caa0b649f2b0 --- /dev/null +++ b/sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild @@ -0,0 +1,83 @@ +# 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.0.0.ebuild,v 1.1 2011/02/21 14:46:15 ultrabug Exp $ + +EAPI=3 +PYTHON_DEPEND="2" + +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/45aced6962a9.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="heartbeat nls snmp static-libs" + +CDEPEND=" + app-arch/bzip2 + dev-libs/glib:2 + dev-libs/libxslt + dev-libs/openssl + dev-python/pygtk + dev-python/pyxml + net-libs/gnutls + sys-apps/util-linux + sys-cluster/cluster-glue + >=sys-cluster/pacemaker-1.1 + heartbeat? ( sys-cluster/pacemaker[heartbeat] ) + sys-libs/ncurses + sys-libs/pam + sys-libs/zlib" +RDEPEND="${CDEPEND} + sys-devel/libtool" +DEPEND="${CDEPEND} + dev-lang/swig + dev-util/pkgconfig + nls? ( + dev-util/intltool + sys-devel/gettext + )" + +S="${WORKDIR}/Pacemaker-Python-GUI-45aced6962a9/" + +PATCHES=( + "${FILESDIR}/${P}-gnutls.patch" + "${FILESDIR}/${P}-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 static-libs static) \ + ${myopts} \ + --disable-fatal-warnings +} + +src_install() { + base_src_install + newinitd "${FILESDIR}"/mgmtd.init pcmk-mgmtd + dodoc README doc/AUTHORS || die +} + +pkg_postinst() { + elog "IMPORTANT: To login in the GUI, your user" + elog "must be part of the 'haclient' group." + elog " " + elog "To start the management daemon, run:" + elog "/etc/init.d/pcmk-mgmtd start" +} |