summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2006-07-14 13:32:43 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2006-07-14 13:32:43 +0000
commitecbb689ca91d59416305ea2ccf65daefd6294927 (patch)
tree88a23848171723b0fde0f93f737b2e2eba27f4bd /sys-cluster/rgmanager
parentEbuild cleanup. (diff)
downloadgentoo-2-ecbb689ca91d59416305ea2ccf65daefd6294927.tar.gz
gentoo-2-ecbb689ca91d59416305ea2ccf65daefd6294927.tar.bz2
gentoo-2-ecbb689ca91d59416305ea2ccf65daefd6294927.zip
1.02.00 updated to current stable.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-cluster/rgmanager')
-rw-r--r--sys-cluster/rgmanager/ChangeLog9
-rw-r--r--sys-cluster/rgmanager/files/digest-rgmanager-1.02.002
-rw-r--r--sys-cluster/rgmanager/files/digest-rgmanager-1.02.00-r16
-rw-r--r--sys-cluster/rgmanager/files/rgmanager-1.02.00-20060713-cvs-clunfslock.patch78
-rw-r--r--sys-cluster/rgmanager/rgmanager-1.02.00-r1.ebuild47
5 files changed, 141 insertions, 1 deletions
diff --git a/sys-cluster/rgmanager/ChangeLog b/sys-cluster/rgmanager/ChangeLog
index 736ac348b75e..7e9e7aaedad8 100644
--- a/sys-cluster/rgmanager/ChangeLog
+++ b/sys-cluster/rgmanager/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/rgmanager
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/rgmanager/ChangeLog,v 1.3 2006/07/13 09:25:23 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/rgmanager/ChangeLog,v 1.4 2006/07/14 13:32:43 xmerlin Exp $
+
+*rgmanager-1.02.00-r1 (14 Jul 2006)
+
+ 14 Jul 2006; Christian Zoffoli <xmerlin@gentoo.org>
+ +files/rgmanager-1.02.00-20060713-cvs-clunfslock.patch,
+ +rgmanager-1.02.00-r1.ebuild:
+ 1.02.00 updated to current stable.
*rgmanager-1.02.00 (13 Jul 2006)
diff --git a/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00 b/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00
index d6d5c9ac1fde..19b3b6264115 100644
--- a/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00
+++ b/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00
@@ -1 +1,3 @@
MD5 131c34c8b66d8d7d74384839ed4091d0 cluster-1.02.00.tar.gz 1356451
+RMD160 e9c0cdd1f5a7542c8a4ea38ccf6d057767269dc5 cluster-1.02.00.tar.gz 1356451
+SHA256 de45885146f1481808f7a34af5e6b7e2042895a4e3844eaa6161f942345c7849 cluster-1.02.00.tar.gz 1356451
diff --git a/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00-r1 b/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00-r1
new file mode 100644
index 000000000000..cdce29b00a82
--- /dev/null
+++ b/sys-cluster/rgmanager/files/digest-rgmanager-1.02.00-r1
@@ -0,0 +1,6 @@
+MD5 131c34c8b66d8d7d74384839ed4091d0 cluster-1.02.00.tar.gz 1356451
+RMD160 e9c0cdd1f5a7542c8a4ea38ccf6d057767269dc5 cluster-1.02.00.tar.gz 1356451
+SHA256 de45885146f1481808f7a34af5e6b7e2042895a4e3844eaa6161f942345c7849 cluster-1.02.00.tar.gz 1356451
+MD5 20e128f927af33c40f0142416b7252bd rgmanager-1.02.00-20060713-cvs.patch.gz 26622
+RMD160 2f76a39632fb4d0054ec17def2bd7f380ce2d74d rgmanager-1.02.00-20060713-cvs.patch.gz 26622
+SHA256 b52f065c8320cb4e643ca43ced1462bacff53de9db04a94dbb7120201d97d760 rgmanager-1.02.00-20060713-cvs.patch.gz 26622
diff --git a/sys-cluster/rgmanager/files/rgmanager-1.02.00-20060713-cvs-clunfslock.patch b/sys-cluster/rgmanager/files/rgmanager-1.02.00-20060713-cvs-clunfslock.patch
new file mode 100644
index 000000000000..78936c912f9c
--- /dev/null
+++ b/sys-cluster/rgmanager/files/rgmanager-1.02.00-20060713-cvs-clunfslock.patch
@@ -0,0 +1,78 @@
+diff -uNr src/utils/clunfslock.sh.orig src/utils/clunfslock.sh
+--- src/utils/clunfslock.sh.orig 1970-01-01 01:00:00.000000000 +0100
++++ src/utils/clunfslock.sh 2006-07-14 15:37:27.000000000 +0200
+@@ -0,0 +1,74 @@
++#!/bin/bash
++#
++# (C) 2006 Red Hat, Inc.
++#
++# Licensed under the GNU General Public License, Version 2.
++#
++# rpc.statd -H $0 to enable. This provides the HA-callout capability
++# for RHCS-managed NFS services. Note that you must edit
++# /etc/sysconfig/nfs in order to make this work; clumanager/rgmanager
++# will not interfere with a running nfs statd.
++#
++# Arg 3 (server as known to client) does not work; it's always 127.0.0.1
++# so we traverse all cluster mount points.
++#
++
++clustered_mounts()
++{
++ declare dev mp
++
++ while read dev mp; do
++ if [ "${dev:0:4}" != "/dev" ]; then
++ continue
++ fi
++
++ # XXX Need clumanager to create this on mount
++ if [ -d "$mp/.clumanager" ]; then
++ echo $dev $mp
++ fi
++ done < <(cat /proc/mounts | awk '{print $1,$2}')
++}
++
++
++add-client()
++{
++ declare dev mp
++
++ while read dev mp; do
++ [ -d "$mp/.clumanager/statd/sm" ] || \
++ mkdir -p $mp/.clumanager/statd/sm
++ touch $mp/.clumanager/statd/sm/$1
++ done < <(clustered_mounts)
++}
++
++
++del-client()
++{
++ while read $dev $mp; do
++ [ -d "$mp/.clumanager/statd/sm" ] || \
++ mkdir -p $mp/.clumanager/statd/sm
++ rm -f $mp/.clumanager/statd/sm/$1
++ done < <(clustered_mounts)
++}
++
++case "$1" in
++ add-client)
++ :
++ ;;
++ del-client)
++ :
++ ;;
++ *)
++ echo "Usage: $0 <add-client|del-client> <host> [server]"
++ exit 0
++esac
++
++
++if [ -z "$2" ]; then
++ echo "Usage: $0 <add-client|del-client> <host> [server]"
++ exit 1
++fi
++
++$1 $2 $3
++exit 0
++
diff --git a/sys-cluster/rgmanager/rgmanager-1.02.00-r1.ebuild b/sys-cluster/rgmanager/rgmanager-1.02.00-r1.ebuild
new file mode 100644
index 000000000000..92df481be0e0
--- /dev/null
+++ b/sys-cluster/rgmanager/rgmanager-1.02.00-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/rgmanager/rgmanager-1.02.00-r1.ebuild,v 1.1 2006/07/14 13:32:43 xmerlin Exp $
+
+inherit linux-mod eutils
+
+CVS_RELEASE="20060713"
+CLUSTER_VERSION="1.02.00"
+
+DESCRIPTION="Clustered resource group manager layered on top of Magma"
+HOMEPAGE="http://sources.redhat.com/cluster/"
+SRC_URI="ftp://sources.redhat.com/pub/cluster/releases/cluster-${CLUSTER_VERSION}.tar.gz
+ mirror://gentoo/${PN}-${PV}-${CVS_RELEASE}-cvs.patch.gz
+ http://dev.gentoo.org/~xmerlin/gfs/${PN}-${PV}-${CVS_RELEASE}-cvs.patch.gz"
+
+IUSE=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND=">=sys-cluster/magma-1.02.00-r1
+ >=sys-cluster/magma-plugins-1.02.00-r1
+ dev-libs/libxml2
+ "
+
+S="${WORKDIR}/cluster-${CLUSTER_VERSION}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/${PN}-${PV}-${CVS_RELEASE}-cvs.patch || die
+ epatch ${FILESDIR}/${PN}-${PV}-${CVS_RELEASE}-cvs-clunfslock.patch || die
+}
+
+src_compile() {
+ check_KV
+ ./configure --kernel_src=${KERNEL_DIR} || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ newinitd ${FILESDIR}/${PN}.rc ${PN} || die
+ newconfd ${FILESDIR}/${PN}.conf ${PN} || die
+}