diff options
author | Ultrabug <ultrabug@ultrabug.net> | 2010-10-26 14:20:19 +0200 |
---|---|---|
committer | Ultrabug <ultrabug@ultrabug.net> | 2010-10-26 14:20:19 +0200 |
commit | 532df433007234339b12845d3aecbf599b35a406 (patch) | |
tree | 21a9a939d30b188b5016e927a360827e04af7b92 /sys-cluster/pacemaker-gui | |
parent | [sys-cluster/pacemaker] proposed version bump (diff) | |
download | sci-532df433007234339b12845d3aecbf599b35a406.tar.gz sci-532df433007234339b12845d3aecbf599b35a406.tar.bz2 sci-532df433007234339b12845d3aecbf599b35a406.zip |
[sys-cluster/pacemaker-gui] proposed ebuild
Diffstat (limited to 'sys-cluster/pacemaker-gui')
-rw-r--r-- | sys-cluster/pacemaker-gui/ChangeLog | 12 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/Manifest | 8 | ||||
-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/files/pacemaker-gui-2.0.0-mgmt_crm.patch | 20 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/metadata.xml | 13 | ||||
-rw-r--r-- | sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild | 92 |
8 files changed, 241 insertions, 0 deletions
diff --git a/sys-cluster/pacemaker-gui/ChangeLog b/sys-cluster/pacemaker-gui/ChangeLog new file mode 100644 index 000000000..8d661e12d --- /dev/null +++ b/sys-cluster/pacemaker-gui/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-cluster/pacemaker-gui +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*pacemaker-gui-2.0.0 (11 Aug 2010) + + 11 Aug 2010; Ultrabug + +pacemaker-gui-2.0.0.ebuild, +files/pacemaker-gui-2.0.0-doc.patch, + +files/pacemaker-gui-2.0.0-gnutls.patch, +metadata.xml, + +files/mgmtd.init, +ChangeLog: + Initial ebuild proposal. Ebuild written by Ultrabug with the kind + help of Xarthisius, scarabeus and jsbonder. diff --git a/sys-cluster/pacemaker-gui/Manifest b/sys-cluster/pacemaker-gui/Manifest new file mode 100644 index 000000000..d2941b068 --- /dev/null +++ b/sys-cluster/pacemaker-gui/Manifest @@ -0,0 +1,8 @@ +AUX mgmtd.init 810 RMD160 14942aa1fc5dd6dbc49de1dc1c7b6120a5c88da3 SHA1 7e44d69ce08e0d4f06df36347f1fa68674a11559 SHA256 bf5cb45a8ea9cdd6807c489b711bf3e9a3f75e15ad7d20c61ce41608448276af +AUX pacemaker-gui-2.0.0-doc.patch 427 RMD160 9db55433397f25884e255cf19c0062fd24a19b2d SHA1 148f8cde46ff165fe76f1dfd8a56a05fbd284ff9 SHA256 8aa4602f9ceb3e426293f0f660b3e54dd1cd651f776319a4bc65f5b91186ed56 +AUX pacemaker-gui-2.0.0-gnutls.patch 1554 RMD160 474d03b50b3dc09b2495dd7c70962e0bdfe02802 SHA1 f6d810037195b5c72fcd2b677d4b2749b2c0fccf SHA256 aadc022cfdd5f04660fb4051a80b4921baa36761ae4c72ac5ecbeccf811f8677 +AUX pacemaker-gui-2.0.0-mgmt_crm.patch 842 RMD160 0f5612ee211d1b82f13ef9bf9f4f0ac5a1cc42b8 SHA1 3e3bb6438508cf1ed9a13b1377d12cf3c0915284 SHA256 c81187b4e9aa2686c5ad7dd78c6d5100bb4f4115bc22eac9a01b4bac75abcfc8 +DIST 0f1490eaa8d8.tar.bz2 335025 RMD160 1dc6817f12b84bdbb5977c9e795050105f36ea33 SHA1 54811e73b592c79616323df77ef10f9458e379fd SHA256 726fc64ba47cca418499f92e1bcf1f948965d5cd9b1723a419ade8e99396365c +EBUILD pacemaker-gui-2.0.0.ebuild 1998 RMD160 bdb983b56b15c2ad4264d2c433ca791d5ddb4fa6 SHA1 0aa7fb4ff0663ad388a649cdffa7e763dd082b5e SHA256 8306776371e257100006ae99c0e8299f85c3a1935a54587778fc3f23e21ab9ed +MISC ChangeLog 460 RMD160 41ae0d000c27b150642724e4d8e7ef10c7518656 SHA1 74fa7fe3e5da0a4c97f39abe447c8d0431869068 SHA256 d274c42ae55e6ec81a7b61bdf128e20d3f450648e04b2164335dce9d915f6b9c +MISC metadata.xml 490 RMD160 925cc48d5b7b6c419375955d855d1622045e1d7b SHA1 40ba30b9e241c2d664e22613410d4d033f01120d SHA256 dfe28f44ad8e1d85e6bdcb98a03d7302635deceedfd88968c12405cd77695105 diff --git a/sys-cluster/pacemaker-gui/files/mgmtd.init b/sys-cluster/pacemaker-gui/files/mgmtd.init new file mode 100644 index 000000000..d9d215852 --- /dev/null +++ b/sys-cluster/pacemaker-gui/files/mgmtd.init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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 000000000..3d35d4741 --- /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 000000000..5b6cb46b3 --- /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/files/pacemaker-gui-2.0.0-mgmt_crm.patch b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-mgmt_crm.patch new file mode 100644 index 000000000..037f1eace --- /dev/null +++ b/sys-cluster/pacemaker-gui/files/pacemaker-gui-2.0.0-mgmt_crm.patch @@ -0,0 +1,20 @@ +--- a/mgmt/daemon/mgmt_crm.c 2010-06-28 17:48:35.209806899 +0000 ++++ b/mgmt/daemon/mgmt_crm.c 2010-06-28 17:50:16.779798538 +0000 +@@ -1304,7 +1304,7 @@ + } else { + buffer = crm_concat("fail-count", argv[2], '-'); + delete_attr(cib_conn, cib_sync_call, XML_CIB_TAG_STATUS, dest_node, NULL, NULL, +- NULL, buffer, NULL, FALSE); ++ NULL, buffer, FALSE); + crm_free(dest_node); + crm_free(buffer); + mgmt_log(LOG_INFO, "Delete fail-count for %s from %s", argv[2], argv[1]); +@@ -1313,7 +1313,7 @@ + sleep(2); /* wait for the refresh */ + now_s = crm_itoa(now); + update_attr(cib_conn, cib_sync_call, +- XML_CIB_TAG_CRMCONFIG, NULL, NULL, NULL, NULL, "last-lrm-refresh", now_s, FALSE); ++ XML_CIB_TAG_CRMCONFIG, NULL, NULL, NULL, "last-lrm-refresh", now_s, FALSE); + crm_free(now_s); + + crmd_channel->ops->destroy(crmd_channel); diff --git a/sys-cluster/pacemaker-gui/metadata.xml b/sys-cluster/pacemaker-gui/metadata.xml new file mode 100644 index 000000000..800cdb83c --- /dev/null +++ b/sys-cluster/pacemaker-gui/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ha-cluster</herd> + <maintainer> + <email>ultrabug@ultrabug.net</email> + </maintainer> + <longdescription>Legacy GUI for Configuring Pacemaker</longdescription> + <use> + <flag name="ais">Enable <pkg>sys-cluster/openais</pkg> support.</flag> + <flag name="heartbeat">Enable <pkg>sys-cluster/heartbeat</pkg> support.</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 000000000..e851f90ef --- /dev/null +++ b/sys-cluster/pacemaker-gui/pacemaker-gui-2.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 +PYTHON_DEPEND="2" + +inherit python base autotools + +DESCRIPTION="Pacemaker client GUI and management daemon" +HOMEPAGE="http://hg.clusterlabs.org/pacemaker/pygui/" +SRC_URI="http://hg.clusterlabs.org/pacemaker/pygui/archive/0f1490eaa8d8.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="+ais 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 + dev-lang/swig + sys-cluster/cluster-glue + >=sys-cluster/pacemaker-1.1[ais?,heartbeat?] + !heartbeat? ( !ais? ( sys-cluster/pacemaker[ais] ) ) + sys-libs/ncurses + sys-libs/pam + sys-libs/zlib" +RDEPEND="${CDEPEND} + sys-devel/libtool" +DEPEND="${CDEPEND} + dev-util/pkgconfig + nls? ( + dev-util/intltool + sys-devel/gettext + )" + +S="${WORKDIR}/Pacemaker-Python-GUI-0f1490eaa8d8/" + +PATCHES=( + "${FILESDIR}"/${P}-gnutls.patch + "${FILESDIR}"/${P}-doc.patch +) + +pkg_setup() { + python_set_active_version 2 + if ! use ais && ! use heartbeat; then + ewarn "You disabled both cluster implementations" + ewarn "Silently enabling OpenAIS/CoroSync support." + fi +} + +src_prepare() { + base_src_prepare + eautoreconf +} + +src_configure() { + local myopts="" + + use heartbeat || use ais || myopts="--with-ais-support" + econf $(use_with ais ais-support) \ + $(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." + echo + elog "To start the management daemon, run:" + elog "/etc/init.d/pcmk-mgmtd start" + echo + elog "To launch the GUI, simply run : crm_gui" + echo +} |