summaryrefslogtreecommitdiff
path: root/sys-cluster/rgmanager
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-cluster/rgmanager
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-cluster/rgmanager')
-rw-r--r--sys-cluster/rgmanager/Manifest14
-rw-r--r--sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch36
-rw-r--r--sys-cluster/rgmanager/files/rgmanager-2.0x.conf4
-rw-r--r--sys-cluster/rgmanager/files/rgmanager-2.0x.rc109
-rw-r--r--sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch23
-rw-r--r--sys-cluster/rgmanager/files/rgmanager.confd7
-rw-r--r--sys-cluster/rgmanager/files/rgmanager.initd34
-rw-r--r--sys-cluster/rgmanager/metadata.xml8
-rw-r--r--sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild63
-rw-r--r--sys-cluster/rgmanager/rgmanager-2.03.09.ebuild62
-rw-r--r--sys-cluster/rgmanager/rgmanager-3.1.5.ebuild63
11 files changed, 423 insertions, 0 deletions
diff --git a/sys-cluster/rgmanager/Manifest b/sys-cluster/rgmanager/Manifest
new file mode 100644
index 000000000000..efe406e533cb
--- /dev/null
+++ b/sys-cluster/rgmanager/Manifest
@@ -0,0 +1,14 @@
+AUX rgmanager-2.03.09-CVE-2010-3389.patch 1404 SHA256 cd7c3ef38d317531c807768f195bb2eb64c1943aec9b114c47d557067171eb3e SHA512 35a9654e074a04fe1fb8dbce8262dfeab1f011ce611e630ec21c4cc0e7f3c1586a53cdb803e155ebf738c6a2f1e08959f96b004c4d5ac3560c585975e93929c6 WHIRLPOOL b24a28923c6bf7ac4ef20dde7d6772336221f214a302b23e9c3095c91a12fb3ab2e0e4383a32fde8b0b13ca89d40999284be2b0cda3dc797339a519dd1efbbd1
+AUX rgmanager-2.0x.conf 122 SHA256 7b0706d649375a41e17a3b394d09f2276ce4e7894dc34e1c76b4dbbd6432a1d9 SHA512 35e51d4ce26c51cf78ddf05aa82c03f168dff74c31aadba8a6435f57e8dd3c9db6a4ce6d7e763d7cef4f0e3c093382cb58c586c5d689129a655dc75543583110 WHIRLPOOL 7856a12f82f9238bc8063eb32106fcd8978021001e7225ac8c0b9256d8e6d9165915843396baa07a75b0edf1fcfc0a90099dbb145e3bfbdb483453f55d7af575
+AUX rgmanager-2.0x.rc 1871 SHA256 0643b0fca662187eb895ca1c61d15112cf8635f8a8f4330fdff92cf79ecb07e1 SHA512 f07f5a73b3c193e8ad80d43eeebd48c22bc7e77a3c51dc7a0cd5ffbea0b7bc9c00cdd949b21d640d56dd1726033dda346b76ca60b5ed01668f4dea93d08b8a7b WHIRLPOOL 5c85a13c7aefb7495e1a6d10e998eb9f8ec5369db20823ed98a26188c115e601322688cff48919ed5ed39cd82902a757145b797325e83ac7495d7398f1cd3856
+AUX rgmanager-3.1.5-fix_libxml2.patch 731 SHA256 b939dec463869b3b3c21b4a9dfad61f14eee57e0cd006e661387c408a0537ced SHA512 1ed141c77d138fd91e9ba290a43c1c2c90caa37746b9450ccd75fa1ec2633a8f718a8dece6f3819e8e8cb34ab6c4f1a1104fc5f52e9bcf664edd0f5b6e8022f9 WHIRLPOOL 79836501e4d15da9e40aff10fab8e1b5fc891da7264ac20b63ca7def2fbdb75f73f7dd02086c83c73b25137f3f7516eef1085c4c14c635dfd8af70715700f839
+AUX rgmanager.confd 157 SHA256 3104c1a46c8f7e9027854dc44b458e5f92075cd9b38b3bf7ea2ea31730767d12 SHA512 ffda3bd80dccb70dd75723dd63185354a69380f076aecbbc5e13cd8949730a139c518e03f8e75aa99d6f12f6d6e7b577030c0763fc7a167002945b166aebc56f WHIRLPOOL 31a892fc08fadce818e7f69181ad38e4dbecebfb256879bfaaf3035ea26c5845f84e962da8f3f01b1d07c752fb60dbe063639537bd7975467a21ea7ba5d57e29
+AUX rgmanager.initd 634 SHA256 4142f555ba942a61bd0a668fe5a9e489714b58eab63aecae3d7f401bb7494869 SHA512 345146c9f4bc7492a39b6a0b50d4529046843b353a2d66443ca35f8b759d7bec833addca650210b2a699b66012de09410ad86be49ad82cd92f84cd2754254559 WHIRLPOOL 9602bf9ea207f76ff089ec40d68409aaf667e7350e7b55e7d7a863b0443064e05b016ade9b4d5e78c05f50b021e17e970935d79d902bb6997bce5d9bb8efae59
+DIST cluster-2.03.09.tar.gz 1784357 SHA256 b6d6f35f58b2f8628c369391e0fd01b1803af40029ec1e6ef88865dda38b855f SHA512 5dbcf978336a6b7998df0d3dfcff037e1e77e9e69b43d78eb573a65432445e572e69d7783e7874e9edf2632627f02426f428103831e10f5d1f338afa91a62c28 WHIRLPOOL 30158d495677d9cd0d8a8915dd062f75b60ca99a5d937fa10862d746608bab0e500565e94d14f6b2a4f6e8dc13674d342347aecd24546df6d3f578c0cf87113d
+DIST cluster-3.1.5.tar.gz 651449 SHA256 95be1b484f9c58af3c47a9d46dc2802d37f1b2b9028053f243a2c8bd1f07623e SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a WHIRLPOOL 9d511effd14f9644dea11d1aba22878846beaa6bad4686358ad552c918c2cb72bc5a59605ad2dd576f626ea95f48c9d6b0b8c79f75eb4a721f65b8a60d0728cf
+EBUILD rgmanager-2.03.09-r1.ebuild 1530 SHA256 21de86b827eebee3a867d25cf3daa5f9b44e6fe375c2c522c0b3e175bd5df839 SHA512 4a8d4a655c8107f23e26844b5785fb1d44a9cb427a05e2a2c66ae5ac3b59df7b5f22e948ec2d127117c02ade4d70daaa7bd45e4d5aaa14878b9ce2a734fb4eef WHIRLPOOL bafa32989ad392f6531968b4e588e96616b2cadbbc60ea5ab1c939fd06db7ac61a5387f7adaf087577a0e6025fe2f9019bbea9a2415d75764d7e3ee17ce84660
+EBUILD rgmanager-2.03.09.ebuild 1526 SHA256 70a8ee31c7d78fd1a856a65d854da8aef7a1410455c36df82a62e9b3dbf3e0f4 SHA512 dc3c457934da82e25b1ac4673b04acd4b0d220fab201837bfe7bb64633d0df4d78e479d65c1e500dec8bdc23fa105e54250eec57aefd81ce62b25a3a31609fa5 WHIRLPOOL 1ffe537bcd6e9f82d666c0a682963d80104709649d8ca80f9f8a56b50098ad6fd872cd9297148c67fdf0d972023233bb7582ae8c199ee985783d4e12110c331b
+EBUILD rgmanager-3.1.5.ebuild 1400 SHA256 33de5599ed917641916c9828877cbee0f1d0b1d63289434d6612bca0e21b2cb3 SHA512 4292c6b6a31f136a963747698181b995c8e56a509f7db9a92f9c56860fdf7cad47d474a843c5060cd0388bad90c6a30cced047dfc0a497cf09e17697137669a2 WHIRLPOOL 8c2cb47097d8f41a45695d62b94408914131b29f411d7f44f769f42683dea8f2f3301c3e42add01fad4e4aa4bf2326561866c90517854634c297107629f1ba0c
+MISC ChangeLog 3396 SHA256 1c06132553360899fe9b9d26ee871cef62e2fe86c5c7281e5bf8109d8f528788 SHA512 a1ff65ec69d2315edd08d1144db8fb871a0fd6b39d0396352be20299f65ee6e7e849fa8ac6b70d5cc94f6af309dc637f475c1d4b424f5fe6eaaff61729eab2b7 WHIRLPOOL 28a1fcb52f0f5f99578620a43b327930613dbab9bb24f4392dfdc25278e8220d5cbf42a513d1bc112dcfa573c033f10976ef56e9e6bf101a6e4ed29cd167bea3
+MISC ChangeLog-2015 3619 SHA256 b1e13e34205591a6ff23a1e5c20718ab483279e99a48fb26fbc1aa819b80efe6 SHA512 435d94b1dce411568b73945f9f2968206bc6ad22e9536c643e9ff024e81a3badc9b9c2c070a8a4ffecb716c4f72418786b1950a3e5d3afc0de5603ac81032963 WHIRLPOOL 06a2752cc367ab39e5e68eb9f1645c8723890b8cd6b2844008c592e37848c9f1a41fc401b56779dd0ebe5c5a9971f902faa0debdbf040d0394d17afd8dcd2715
+MISC metadata.xml 253 SHA256 5030a84d36a522ae62530f6406dbda5099255457f76b3ed419dcffc6d7383667 SHA512 0894860713279dc39bbe7ce3491002710b62c4476198984a0deb6328cb0012c19d7a5546299960bbe600ee240e62a603dd4c4fa04325a753cc0b7c4044c30aba WHIRLPOOL c55ba84102cbd078e50dd719902811669b3913122f44e982c90039b27067446810d881e73a22ed410edc41a409a273fd355be8a6d627bb0e67717b6a33d5fe1e
diff --git a/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch b/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch
new file mode 100644
index 000000000000..86e1f138eed1
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch
@@ -0,0 +1,36 @@
+https://bugs.gentoo.org/show_bug.cgi?id=352213
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598549
+
+Patch by Jari Aalto <jari.aalto@cante.net>
+--- a/rgmanager/src/resources/SAPDatabase
++++ b/rgmanager/src/resources/SAPDatabase
+@@ -670,8 +670,11 @@
+ fi
+
+ # as root user we need the library path to the SAP kernel to be able to call executables
+-if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
+- LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
++if [ "$DIR_EXECUTABLE" ]; then
++ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
++ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
++ export LD_LIBRARY_PATH
++ fi
+ fi
+ sidadm="`echo $SID | tr [:upper:] [:lower:]`adm"
+
+--- a/rgmanager/src/resources/SAPInstance
++++ b/rgmanager/src/resources/SAPInstance
+@@ -382,8 +382,11 @@
+ fi
+
+ # as root user we need the library path to the SAP kernel to be able to call sapcontrol
+-if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
+- LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
++if [ "$DIR_EXECUTABLE" ]; then
++ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
++ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
++ export LD_LIBRARY_PATH
++ fi
+ fi
+ sidadm="`echo $SID | tr [:upper:] [:lower:]`adm"
+
diff --git a/sys-cluster/rgmanager/files/rgmanager-2.0x.conf b/sys-cluster/rgmanager/files/rgmanager-2.0x.conf
new file mode 100644
index 000000000000..ba5587060f76
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager-2.0x.conf
@@ -0,0 +1,4 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+RGMGR_OPTS=""
diff --git a/sys-cluster/rgmanager/files/rgmanager-2.0x.rc b/sys-cluster/rgmanager/files/rgmanager-2.0x.rc
new file mode 100644
index 000000000000..d7d77d47fbe2
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager-2.0x.rc
@@ -0,0 +1,109 @@
+#!/sbin/openrc-run
+# Copyright 1999-2005 Gentoo Foundation
+# Adaption of the original RedHat script
+# Original Copyright (C) 2003 Red Hat, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ need cman
+}
+
+# We'd like a reload method as well
+opts="${opts} reload"
+
+ID="Cluster Resource Manager"
+RGMGRD=$(which clurgmgrd)
+RMTABD=$(which clurmtabd)
+CFG_FILE="/etc/cluster/cluster.conf"
+
+LOG_ERR=3
+LOG_WARNING=4
+LOG_NOTICE=5
+LOG_INFO=6
+
+#
+# If we're not configured, then don't start anything.
+#
+[ -f "$CFG_FILE" ] || exit 0
+
+
+#
+# log_and_print <level> <message>
+#
+function log_and_print()
+{
+ if [ -z "$1" -o -z "$2" ]; then
+ return 1;
+ fi
+
+ clulog -p $$ -n "rgmanager" -s $1 "$2"
+ echo $2
+
+ return 0;
+}
+
+
+#
+# Bring down the cluster on a node.
+#
+function stop_cluster()
+{
+ kill -TERM $(pidof $RGMGRD)
+
+ while [ 0 ]; do
+ if [ -n "`pidof $RGMGRD`" ]; then
+ while [ -n "`pidof $RGMGRD`" ]; do
+ sleep 1
+ done
+ einfo "Waiting for $(basename ${RGMGRD})"
+ else
+ eend "Services are stopped."
+ fi
+
+ # Ensure all NFS rmtab daemons are dead.
+ killall $(basename ${RMTABD}) &> /dev/null
+
+ rm -f /var/run/$(basename ${RGMGRD}).pid
+
+ return 0
+ done
+}
+
+
+
+function start() {
+ ebegin "Starting cluster resource manager"
+ start-stop-daemon --start --quiet --exec ${RGMGRD} ${RGMGR_OPTS}
+ ret=$?
+ if [ $ret -eq 0 ]; then
+ touch /var/lock/subsys/rgmanager
+ fi
+ eend $ret
+}
+
+function restart() {
+ pidof ${RGMGRD} &> /dev/null
+ if [ ${?} -ne 1 ]; then
+ svc_stop
+ fi
+ svc_start
+}
+
+function reload() {
+ clulog -p ${LOG_NOTICE} "Reloading Resource Configuration."
+ ebegin "Reloading Resource Configuration "
+ kill -s HUP $(pidof ${RGMGRD} )
+ rv=${?}
+ eend
+ exit ${rv}
+}
+
+function stop() {
+ ebegin "Shutting down cluster resource manager"
+ if [ -n "$(pidof ${RGMGRD})" ]; then
+ stop_cluster
+ fi
+ rm -f /var/lock/subsys/rgmanager
+ eend
+}
diff --git a/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch b/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch
new file mode 100644
index 000000000000..eff23ef495bc
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch
@@ -0,0 +1,23 @@
+* Use double underline as header-protectors to avoid collision with icu's platform.h
+* (pulled in via libxml2 when built with icu support) resulting in int64_t defined twice
+* (once in icu's ptypes.h and once in stdint.h)
+* patch by Tiziano Mueller <dev-zero@gentoo.org>
+--- a/rgmanager/include/platform.h 2011-03-07 19:58:22.000000000 +0100
++++ b/rgmanager/include/platform.h 2011-03-08 15:59:36.773871936 +0100
+@@ -1,8 +1,8 @@
+ /** @file
+ * Defines for byte-swapping
+ */
+-#ifndef _PLATFORM_H
+-#define _PLATFORM_H
++#ifndef __PLATFORM_H
++#define __PLATFORM_H
+
+ #include <endian.h>
+ #include <sys/param.h>
+@@ -56,4 +56,4 @@
+ #define PACKED __attribute__((packed))
+ #endif
+
+-#endif /* _PLATFORM_H */
++#endif /* __PLATFORM_H */
diff --git a/sys-cluster/rgmanager/files/rgmanager.confd b/sys-cluster/rgmanager/files/rgmanager.confd
new file mode 100644
index 000000000000..fa9f66830bd5
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager.confd
@@ -0,0 +1,7 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PIDFILE="/var/run/rgmanager.pid"
+
+RGMGR_OPTS=""
+
diff --git a/sys-cluster/rgmanager/files/rgmanager.initd b/sys-cluster/rgmanager/files/rgmanager.initd
new file mode 100644
index 000000000000..caaa86f551e7
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager.initd
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Adaption of the original RedHat script
+# Original Copyright (C) 2003 Red Hat, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+# need cman
+}
+
+start() {
+ ebegin "Starting cluster resource manager"
+
+ # recreate run-directory
+ mkdir -p /var/run/cluster
+
+ start-stop-daemon \
+ --start \
+ --quiet \
+ --exec "/usr/sbin/rgmanager" \
+ --pidfile "${PIDFILE}" \
+ -- ${RGMGR_OPTS}
+ eend $ret
+}
+
+stop() {
+ ebegin "Shutting down cluster resource manager"
+ start-stop-daemon \
+ --stop \
+ --pidfile "${PIDFILE}" \
+ --retry 0
+ eend $?
+}
diff --git a/sys-cluster/rgmanager/metadata.xml b/sys-cluster/rgmanager/metadata.xml
new file mode 100644
index 000000000000..4a09d7ba8d61
--- /dev/null
+++ b/sys-cluster/rgmanager/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild b/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild
new file mode 100644
index 000000000000..916463bc0271
--- /dev/null
+++ b/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils multilib versionator
+
+CLUSTER_RELEASE=${PV}
+MY_P=cluster-${CLUSTER_RELEASE}
+
+MAJ_PV="$(get_major_version)"
+MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)"
+
+DESCRIPTION="Clustered resource group manager"
+HOMEPAGE="https://sourceware.org/cluster/wiki/"
+SRC_URI="ftp://sourceware.org/pub/cluster/releases/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="=sys-cluster/ccs-${CLUSTER_RELEASE}*
+ =sys-cluster/dlm-lib-${CLUSTER_RELEASE}*
+ =sys-cluster/cman-lib-${CLUSTER_RELEASE}*"
+
+DEPEND="${RDEPEND}
+ dev-libs/libxml2[-icu]
+ =sys-libs/slang-2*"
+
+S=${WORKDIR}/${MY_P}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-CVE-2010-3389.patch
+ sed -i -e 's/-Werror//g' src/{clulib,utils,daemons}/Makefile || die
+}
+
+src_configure() {
+ (cd "${WORKDIR}"/${MY_P};
+ ./configure \
+ --cc="$(tc-getCC)" \
+ --cflags="-Wall" \
+ --disable_kernel_check \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --dlmlibdir=/usr/$(get_libdir) \
+ --dlmincdir=/usr/include \
+ --cmanlibdir=/usr/$(get_libdir) \
+ --cmanincdir=/usr/include \
+ ) || die "configure problem"
+}
+
+src_compile() {
+ # There's a problem with -O2 right now, a patch was submitted.
+ env -u CFLAGS emake -j1 clean all || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ newinitd "${FILESDIR}"/${PN}-2.0x.rc ${PN} || die
+ newconfd "${FILESDIR}"/${PN}-2.0x.conf ${PN} || die
+}
diff --git a/sys-cluster/rgmanager/rgmanager-2.03.09.ebuild b/sys-cluster/rgmanager/rgmanager-2.03.09.ebuild
new file mode 100644
index 000000000000..6b626ebc17ac
--- /dev/null
+++ b/sys-cluster/rgmanager/rgmanager-2.03.09.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils versionator
+
+CLUSTER_RELEASE="${PV}"
+MY_P="cluster-${CLUSTER_RELEASE}"
+
+MAJ_PV="$(get_major_version)"
+MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)"
+
+DESCRIPTION="Clustered resource group manager"
+HOMEPAGE="https://sourceware.org/cluster/wiki/"
+SRC_URI="ftp://sourceware.org/pub/cluster/releases/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="=sys-cluster/ccs-${CLUSTER_RELEASE}*
+ =sys-cluster/dlm-lib-${CLUSTER_RELEASE}*
+ =sys-cluster/cman-lib-${CLUSTER_RELEASE}*
+ "
+
+DEPEND="${RDEPEND}
+ dev-libs/libxml2
+ =sys-libs/slang-2*
+ "
+
+S="${WORKDIR}/${MY_P}/${PN}"
+
+src_compile() {
+ (cd "${WORKDIR}"/${MY_P};
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cflags="-Wall" \
+ --disable_kernel_check \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --dlmlibdir=/usr/lib \
+ --dlmincdir=/usr/include \
+ --cmanlibdir=/usr/lib \
+ --cmanincdir=/usr/include \
+ ) || die "configure problem"
+
+ # fix the manual pages have executable bit
+ sed -i -e '
+ /\tinstall -d/s/install/& -m 0755/; t
+ /\tinstall/s/install/& -m 0644/' \
+ man/Makefile
+
+ # There's a problem with -O2 right now, a patch was submitted.
+ env -u CFLAGS emake -j1 clean all || die "compile problem"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install problem"
+
+ newinitd "${FILESDIR}"/${PN}-2.0x.rc ${PN} || die
+ newconfd "${FILESDIR}"/${PN}-2.0x.conf ${PN} || die
+}
diff --git a/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild b/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild
new file mode 100644
index 000000000000..14508c6668c9
--- /dev/null
+++ b/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils multilib versionator
+
+CLUSTER_RELEASE="${PV}"
+MY_P="cluster-${CLUSTER_RELEASE}"
+
+MAJ_PV="$(get_major_version)"
+MIN_PV="$(get_version_component_range 2-3)"
+
+DESCRIPTION="Clustered resource group manager"
+HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage"
+SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus"
+
+DEPEND="~sys-cluster/libcman-${PV}
+ ~sys-cluster/liblogthread-${PV}
+ ~sys-cluster/libccs-${PV}
+ ~sys-cluster/libdlm-${PV}
+ dev-libs/libxml2
+ =sys-libs/slang-2*
+ dbus? ( sys-apps/dbus )"
+RDEPEND="${DEPEND}
+ ~sys-cluster/cman-${PV}"
+
+S=${WORKDIR}/${MY_P}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix_libxml2.patch"
+}
+
+src_configure() {
+ local myopts=""
+ use dbus || myopts="--disable_dbus"
+ cd "${WORKDIR}"/${MY_P}
+ ./configure \
+ --cc="$(tc-getCC)" \
+ --cflags="-Wall" \
+ --libdir=/usr/$(get_libdir) \
+ --disable_kernel_check \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --dlmlibdir=/usr/$(get_libdir) \
+ --dlmincdir=/usr/include \
+ --cmanlibdir=/usr/$(get_libdir) \
+ --cmanincdir=/usr/include \
+ ${myopts} \
+ || die "configure problem"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}