diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2008-11-13 18:56:18 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2008-11-13 18:56:18 +0000 |
commit | be5ea14caf91aecd1b753d426d9230e88b996dad (patch) | |
tree | a4b0509abc9256bb793775ae173d58892ebf8faa /sys-cluster/cman/files | |
parent | Marking glib-2.16.5 ppc64 for bug 236971 (diff) | |
download | gentoo-2-be5ea14caf91aecd1b753d426d9230e88b996dad.tar.gz gentoo-2-be5ea14caf91aecd1b753d426d9230e88b996dad.tar.bz2 gentoo-2-be5ea14caf91aecd1b753d426d9230e88b996dad.zip |
Ebuild cleanup, version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-cluster/cman/files')
-rw-r--r-- | sys-cluster/cman/files/cman-1.03.00-compile-hack.patch | 11 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-1.03.00-qdisk-makefile.patch | 11 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-1.04.00-qdisk-makefile.patch | 11 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-1.0x.conf | 24 | ||||
-rwxr-xr-x | sys-cluster/cman/files/cman-1.0x.rc | 171 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-2.02.00-include.patch | 20 | ||||
-rwxr-xr-x | sys-cluster/cman/files/qdiskd-1.0x.rc | 23 |
7 files changed, 0 insertions, 271 deletions
diff --git a/sys-cluster/cman/files/cman-1.03.00-compile-hack.patch b/sys-cluster/cman/files/cman-1.03.00-compile-hack.patch deleted file mode 100644 index 8cae6ddcc8fc..000000000000 --- a/sys-cluster/cman/files/cman-1.03.00-compile-hack.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- cluster-1.03.00/cman/qdisk/Makefile.orig 2006-08-30 15:50:39.000000000 +0200 -+++ cluster-1.03.00/cman/qdisk/Makefile 2006-08-30 15:50:48.000000000 +0200 -@@ -17,7 +17,7 @@ - - INCLUDES+=-I. -I../lib - CFLAGS +=-I${incdir} -I${top_srcdir}/config \ -- -Wall -Werror -Wstrict-prototypes -Wshadow -D_GNU_SOURCE -g -+ -Wall -Wstrict-prototypes -Wshadow -D_GNU_SOURCE -g - - TARGET=qdiskd mkqdisk - diff --git a/sys-cluster/cman/files/cman-1.03.00-qdisk-makefile.patch b/sys-cluster/cman/files/cman-1.03.00-qdisk-makefile.patch deleted file mode 100644 index e62dd03bf294..000000000000 --- a/sys-cluster/cman/files/cman-1.03.00-qdisk-makefile.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- cluster-1.03.00/cman/qdisk/Makefile.orig 2006-07-21 20:01:38.000000000 +0200 -+++ cluster-1.03.00/cman/qdisk/Makefile 2007-03-13 13:42:14.000000000 +0100 -@@ -32,7 +32,7 @@ - - qdiskd: disk.o crc32.o disk_util.o main.o score.o bitmap.o clulog.o \ - gettid.o proc.o ../lib/libcman.a -- gcc -o $@ $^ -lpthread -L../lib -lccs -+ gcc -o $@ $^ -L$(libdir) -lpthread -L../lib -lccs - - mkqdisk: disk.o crc32.o disk_util.o \ - proc.o mkqdisk.o diff --git a/sys-cluster/cman/files/cman-1.04.00-qdisk-makefile.patch b/sys-cluster/cman/files/cman-1.04.00-qdisk-makefile.patch deleted file mode 100644 index fe5dada4a426..000000000000 --- a/sys-cluster/cman/files/cman-1.04.00-qdisk-makefile.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- cluster-1.04.00/cman/qdisk/Makefile.orig 2007-05-26 15:23:03.000000000 +0200 -+++ cluster-1.04.00/cman/qdisk/Makefile 2007-05-26 15:23:23.000000000 +0200 -@@ -42,7 +42,7 @@ - - qdiskd: disk.o crc32.o disk_util.o main.o score.o bitmap.o clulog.o \ - gettid.o proc.o daemon_init.o ../lib/libcman.a -- gcc -o $@ $^ -lpthread -L../lib -lccs -+ gcc -o $@ $^ -L$(libdir) -lpthread -L../lib -lccs - - mkqdisk: disk.o crc32.o disk_util.o \ - proc.o mkqdisk.o diff --git a/sys-cluster/cman/files/cman-1.0x.conf b/sys-cluster/cman/files/cman-1.0x.conf deleted file mode 100644 index 6d967ccbb5d1..000000000000 --- a/sys-cluster/cman/files/cman-1.0x.conf +++ /dev/null @@ -1,24 +0,0 @@ -# CMAN_CLUSTER_TIMEOUT -- amount of time to wait for joinging a cluster -# before giving up. If CMAN_CLUSTER_TIMEOUT is positive, then we will -# wait CMAN_CLUSTER_TIMEOUT seconds before giving up and failing when -# a cluster is not joined. If CMAN_CLUSTER_TIMEOUT is zero, then -# wait indefinately for a cluster join. If CMAN_CLUSTER_TIMEOUT is -# negative, do not check to see that the cluster has been joined -CMAN_CLUSTER_TIMEOUT=120 - -# CMAN_QUORUM_TIMEOUT -- amount of time to wait for a quorate cluster on -# startup quorum is needed by many other applications, so we may as -# well wait here. If CMAN_QUORUM_TIMEOUT is less than 1, quorum will -# be ignored. -CMAN_QUORUM_TIMEOUT=300 - -# CMAN_SHUTDOWN_TIMEOUT -- amount of time to wait for cman to become a -# cluster member before calling cman_tool leave during shutdown. -# default is 60 seconds -CMAN_SHUTDOWN_TIMEOUT=60 - -# CMAN_JOIN_OPTIONS -#CMAN_JOIN_OPTS="-c ...." - -# CMAN_LEAVE_OPTIONS -#CMAN_LEAVE_OPTS="" diff --git a/sys-cluster/cman/files/cman-1.0x.rc b/sys-cluster/cman/files/cman-1.0x.rc deleted file mode 100755 index 0b765c217879..000000000000 --- a/sys-cluster/cman/files/cman-1.0x.rc +++ /dev/null @@ -1,171 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/files/cman-1.0x.rc,v 1.1 2008/03/17 16:47:11 xmerlin Exp $ - -depend() { - use net - need ccs - provide cluster-manager -} - -umount_gfs_filesystems() { - local sig retry - local remaining="$(awk '$3 == "gfs" { print $2 }' /proc/mounts | sort -r)" - - if [ -n "${remaining}" ] - then - sig= - retry=3 - while [ -n "${remaining}" -a "${retry}" -gt 0 ] - do - if [ "${retry}" -lt 3 ] - then - ebegin "Unmounting GFS filesystems (retry)" - umount ${remaining} &>/dev/null - eend $? "Failed to unmount GFS filesystems this retry" - else - ebegin "Unmounting GFS filesystems" - umount ${remaining} &>/dev/null - eend $? "Failed to unmount GFS filesystems" - fi - remaining="$(awk '$3 == "gfs" { if ($2 != "/") print $2 }' /proc/mounts | sort -r)" - [ -z "${remaining}" ] && break - /bin/fuser -k -m ${sig} ${remaining} &>/dev/null - sleep 5 - retry=$((${retry} -1)) - sig=-9 - done - fi -} - - -load_modules() { - local module modules - modules=$1 - - for module in ${modules}; do - ebegin "Loading ${module} kernel module" - modprobe ${module} > /dev/null - eend $? "Failed to load ${module} kernel module" - done -} - -unload_modules() { - local module modules - modules=$1 - - for module in ${modules}; do - ebegin "Unloading ${module} kernel module" - modprobe -r ${module} > /dev/null - eend $? "Failed to unload ${module} kernel module" - done -} - -unload_gfs_modules() { - if [ -f /proc/fs/gfs ]; then - modules="gfs lock_harness" - fi - if [ -d /proc/cluster/lock_dlm ]; then - modules="${modules} lock_dlm" - fi - if [ -d /proc/cluster/lock_gulm ]; then - modules="${modules} lock_gulm" - fi - unload_modules ${modules} -} - - -start() { - #if grep -qE "<[[:space:]]*gulm([[:space:]]|[>]|$)" /etc/cluster/cluster.conf - #then - # die "<gulm> section detected in /etc/cluster/cluster.conf" - #fi - - if [ ! -d /proc/cluster/config/cman ]; then - load_modules cman - fi - - ebegin "Starting cman" - /sbin/cman_tool -t ${CMAN_CLUSTER_TIMEOUT} \ - -w join ${CMAN_JOIN_OPTS} > /dev/null - - if [ "$?" -ne 0 ] - then - ewend 1 "Failed to start cman" - else - eend 0 - - # make sure that we are quorate? - if [ ${CMAN_QUORUM_TIMEOUT} -gt 0 ] - then - ebegin "Waiting for quorum (${CMAN_QUORUM_TIMEOUT} secs)" - /sbin/cman_tool -t ${CMAN_QUORUM_TIMEOUT} -q wait - eend $? - fi - fi -} - -stop() { - - # umount GFS filesystems - umount_gfs_filesystems - - # shutdown clvm, fenced services - # need to be fixed (clvm missing) - local fence_status="$(cman_tool services | awk '$1 ~ /Fence/ { print $3 }')" - if [ -n "${fence_status}" ]; then - if [ -x /sbin/fence_tool ]; then - ebegin "Stopping fence domain" - /sbin/fence_tool leave > /dev/null 2>&1 - eend $? - fi - fi - - # shutdown dlm, gfs - unload_gfs_modules - - ebegin "Stopping cman" - local retry stat - local cman_status - cman_status="$(cman_tool status | awk '$1 ~ /Membership/ { print $3 }')" - - if [ "${cman_status}" != "Not-in-Cluster" -a -d /proc/cluster/config/cman ]; then - retry=3 - stat=1 - while [ "${stat}" -eq 1 -a "${retry}" -gt 0 ] - do - /sbin/cman_tool -w -t ${CMAN_SHUTDOWN_TIMEOUT} \ - leave ${CMAN_LEAVE_OPTS} > /dev/null - - stat=$? - retry=$((${retry} -1)) - done - - #if [ "${stat}" -ne 0 ]; then - # /sbin/cman_tool -w -t 2 leave force > /dev/null - #fi - - #if [ "$?" -ne 0 ] - #then - # ewend 1 "Failed to stop cman" - #else - # eend 0 - #fi - else - stat=0 - fi - - eend ${stat} - - if [ "${stat}" -eq 0 ]; then - sleep 1s - - #ebegin "Unloading cman kernel module" - #modprobe -r cman &> /dev/null || return 0 - #eend $? - - unload_modules cman - fi -} - diff --git a/sys-cluster/cman/files/cman-2.02.00-include.patch b/sys-cluster/cman/files/cman-2.02.00-include.patch deleted file mode 100644 index 9dc8de388904..000000000000 --- a/sys-cluster/cman/files/cman-2.02.00-include.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- cluster-2.02.00/cman/lib/Makefile.orig 2008-02-26 15:37:43.000000000 +0000 -+++ cluster-2.02.00/cman/lib/Makefile 2008-03-16 15:08:59.000000000 +0000 -@@ -13,6 +13,8 @@ - - TARGET= libcman - -+include ../../make/defines.mk -+ - LIBDIRT=$(TARGET).a \ - $(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR) - -@@ -21,8 +23,6 @@ - - INCDIRT=$(TARGET).h - --include ../../make/defines.mk -- - SHAREDLIB=$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR} - STATICLIB=$(TARGET).a - diff --git a/sys-cluster/cman/files/qdiskd-1.0x.rc b/sys-cluster/cman/files/qdiskd-1.0x.rc deleted file mode 100755 index ed3e24c4cf35..000000000000 --- a/sys-cluster/cman/files/qdiskd-1.0x.rc +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/files/qdiskd-1.0x.rc,v 1.1 2008/03/17 16:47:11 xmerlin Exp $ - -depend() { - use net - need cluster-manager -} - -start() { - ebegin "Starting the Quorum Disk Daemon" - start-stop-daemon --start --quiet --exec /sbin/qdiskd -- -Q - eend $? "Failed to start qdiskd" -} - -stop() { - ebegin "Stopping the Quorum Disk Daemon" - - start-stop-daemon --stop --pidfile /var/run/qdiskd.pid - eend $? "Failed to stop qdiskd" -} - |