summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2005-07-29 00:25:04 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2005-07-29 00:25:04 +0000
commitc9e37e09d225f74b99c60dd0119a11edb263c617 (patch)
tree78d33e51aa4cba0a1b659b78f5b746aa7eadb7b1
parentAdd patch from upstream to fix UTF8 support #100633 by Petteri Räty. (diff)
downloadhistorical-c9e37e09d225f74b99c60dd0119a11edb263c617.tar.gz
historical-c9e37e09d225f74b99c60dd0119a11edb263c617.tar.bz2
historical-c9e37e09d225f74b99c60dd0119a11edb263c617.zip
fixed bug #97175.
Package-Manager: portage-2.0.51.19
-rw-r--r--sys-cluster/heartbeat/ChangeLog8
-rw-r--r--sys-cluster/heartbeat/Manifest15
-rw-r--r--sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r11
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-1.2.3-debian_security_fixes285
-rw-r--r--sys-cluster/heartbeat/heartbeat-1.2.3-r1.ebuild76
5 files changed, 378 insertions, 7 deletions
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog
index 7d21860d8a7e..46da282124ea 100644
--- a/sys-cluster/heartbeat/ChangeLog
+++ b/sys-cluster/heartbeat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-cluster/heartbeat
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.33 2005/03/11 12:33:14 sekretarz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.34 2005/07/29 00:25:04 xmerlin Exp $
+
+*heartbeat-1.2.3-r1 (29 Jul 2005)
+
+ 29 Jul 2005; Christian Zoffoli <xmerlin@gentoo.org>
+ +files/heartbeat-1.2.3-debian_security_fixes, +heartbeat-1.2.3-r1.ebuild:
+ fixed bug #97175.
11 Mar 2005; Karol Wojtaszek <sekretarz@gentoo.org> :
Added to ~amd64, bug #84522
diff --git a/sys-cluster/heartbeat/Manifest b/sys-cluster/heartbeat/Manifest
index 95999f731db9..917451367f1a 100644
--- a/sys-cluster/heartbeat/Manifest
+++ b/sys-cluster/heartbeat/Manifest
@@ -1,15 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 72cd506bc581948c4a68e28017430c64 heartbeat-1.2.3.ebuild 1875
-MD5 b47f2e0abec8c8e8fc0fec18d8062916 ChangeLog 5128
+MD5 7ec992b1c67df6492d7e6377ee693c55 ChangeLog 5312
MD5 469a4f6cad0c54b4faed31a2852af816 metadata.xml 339
+MD5 36f8ae4d9ff9d6c1a912e0a5f0b26ffe heartbeat-1.2.3-r1.ebuild 1982
+MD5 72cd506bc581948c4a68e28017430c64 heartbeat-1.2.3.ebuild 1875
MD5 6cf2ecfcee6a47d187e99cc1fa3081f0 files/digest-heartbeat-1.2.3 68
MD5 343f80e3711eec80114c5ca01d38b8b0 files/heartbeat-init 821
+MD5 703eafb05d6e931e32e4762f7559df7c files/heartbeat-1.2.3-debian_security_fixes 9340
+MD5 6cf2ecfcee6a47d187e99cc1fa3081f0 files/digest-heartbeat-1.2.3-r1 68
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCMaGfZ/iYVBmujdURAjfNAJsEE9Kn4B5GKVVst0p3i7ThtFwOoACgnm/t
-hPRzDyoM76h3Pp2Nq22zZAU=
-=eRk1
+iD8DBQFC6XeIgMUyd/cdjWsRAiiJAJ4gnDlzwsfqliCmRVAg7kZ3AkMDNgCeJJ97
+6iAiWBu8P0kA125yASL73Ac=
+=Eaxt
-----END PGP SIGNATURE-----
diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1
new file mode 100644
index 000000000000..1db4b5d1aa0a
--- /dev/null
+++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1
@@ -0,0 +1 @@
+MD5 9fd126e5dff51cc8c1eee223c252a4af heartbeat-1.2.3.tar.gz 1772513
diff --git a/sys-cluster/heartbeat/files/heartbeat-1.2.3-debian_security_fixes b/sys-cluster/heartbeat/files/heartbeat-1.2.3-debian_security_fixes
new file mode 100644
index 000000000000..1b8992a1bb2a
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-1.2.3-debian_security_fixes
@@ -0,0 +1,285 @@
+--- heartbeat-1.2.3.orig/heartbeat/lib/BasicSanityCheck.in 2004-09-17 08:36:27.000000000 +0200
++++ heartbeat-1.2.3/heartbeat/lib/BasicSanityCheck.in 2005-07-13 21:20:57.000000000 +0200
+@@ -43,7 +43,8 @@ DEFAULTINTERFACE=eth0 # But we really gu
+ IDENTSTRING="Linux-HA TEST configuration file - REMOVEME!!"
+ DUMMYNODE=ImAlwaysDead.com
+ LOCALNODE=`uname -n`
+-LOGFILE=/tmp/linux-ha.testlog
++LOGFILE=`tempfile -p l-ha. -s testlog`
++TMPFILE=`tempfile -p l-ha.`
+ RSCDIR=$HADIR/resource.d
+ errcount=0
+
+@@ -228,9 +229,9 @@ else print $0 ; next } \
+ if (done ==1 || $1 == "#" || $1 == " ") next; \
+ if ($1 == "auth") {method = $2; next} \
+ if ($1 != method) {done=1; method =$1; pass=2; nextfile}}' \
+-$HADIR/authkeys $HADIR/authkeys >/tmp/tmpfile
++$HADIR/authkeys $HADIR/authkeys >$TMPFILE
+
+-mv /tmp/tmpfile $HADIR/authkeys
++mv $TMPFILE $HADIR/authkeys
+ chmod 600 $HADIR/authkeys
+ }
+ # Check for the given count of the given string
+@@ -532,7 +533,7 @@ StonithCheck() {
+
+
+ AppHBCheck() {
+- CFFILE=/tmp/$$.apphbd.cf
++ CFFILE=`tempfile`
+ clientcount=5
+ cat <<-! >$CFFILE
+ realtime yes
+--- heartbeat-1.2.3.orig/heartbeat/resource.d/WAS.in 2002-03-24 00:39:42.000000000 +0100
++++ heartbeat-1.2.3/heartbeat/resource.d/WAS.in 2005-07-13 21:26:00.000000000 +0200
+@@ -302,7 +302,7 @@ WAS_report_status() {
+ # This is actually faster than WAS_status above...
+ #
+ WAS_monitor() {
+- tmpfile=/tmp/$$.was-mon
++ tmpfile=`tempfile`
+ SnoopPort=`GetWASSnoopPort $1`
+ output=`$WGET -nv -O$tmpfile http://localhost:$SnoopPort/servlet/snoop 2>&1`
+ rc=$?
+--- heartbeat-1.2.3.orig/lib/plugins/stonith/meatware.c 2004-04-20 10:50:06.000000000 +0200
++++ heartbeat-1.2.3/lib/plugins/stonith/meatware.c 2005-07-13 21:13:06.000000000 +0200
+@@ -308,7 +308,7 @@ static int
+ meatware_reset_req(Stonith * s, int request, const char * host)
+ {
+ int fd, rc;
+- const char * meatpipe_pr = "/tmp/.meatware"; /* if you intend to
++ const char * meatpipe_pr = "/var/run/meatware"; /* if you intend to
+ change this, modify
+ meatclient.c as well */
+
+--- heartbeat-1.2.3.orig/lib/stonith/meatclient.c 2004-04-20 11:08:51.000000000 +0200
++++ heartbeat-1.2.3/lib/stonith/meatclient.c 2005-07-13 21:12:35.000000000 +0200
+@@ -55,7 +55,7 @@ int
+ main(int argc, char** argv)
+ {
+ char * cmdname;
+- const char * meatpipe_pr = "/tmp/.meatware"; /* if you intend to
++ const char * meatpipe_pr = "/var/run/meatware"; /* if you intend to
+ change this, modify
+ meatware.c as well */
+ char * opthost = NULL;
+--- heartbeat-1.2.3.orig/cts/CM_hb.py.in
++++ heartbeat-1.2.3/cts/CM_hb.py.in
+@@ -57,7 +57,7 @@
+ "StartDRBDCmd" : "@sysconfdir@/init.d/drbd start >/dev/null 2>&1",
+ "StopDRBDCmd" : "@sysconfdir@/init.d/drbd stop",
+ "StatusDRBDCmd" : "@sysconfdir@/init.d/drbd status",
+- "DRBDCheckconf" : "@sysconfdir@/init.d/drbd checkconfig >/tmp/drbdconf 2>&1",
++ "DRBDCheckconf" : "@sysconfdir@/init.d/drbd checkconfig >/var/run/drbdconf 2>&1",
+ "BreakCommCmd" : "@libdir@/heartbeat/TestHeartbeatComm break-communication >/dev/null 2>&1",
+ "FixCommCmd" : "@libdir@/heartbeat/TestHeartbeatComm fix-communication >/dev/null 2>&1",
+ "IPaddrCmd" : "@sysconfdir@/ha.d/resource.d/IPaddr %s status",
+only in patch2:
+unchanged:
+--- heartbeat-1.2.3.orig/cts/CTStests.py.in
++++ heartbeat-1.2.3/cts/CTStests.py.in
+@@ -870,7 +870,7 @@
+ time.sleep(5) # We get extra messages right after startup.
+
+
+- fstmpfile = "/tmp/band_estimate"
++ fstmpfile = "/var/run/band_estimate"
+ dumpcmd = "tcpdump -p -n -c 102 -i any udp port %d > %s 2>&1" \
+ % (port, fstmpfile);
+
+@@ -1073,9 +1073,9 @@
+ while 1:
+ if (time.time()>done):
+ return self.failure("the drbd could't sync")
+- self.CM.rsh(node,"cp /proc/drbd /tmp >/dev/null 2>&1")
+- if self.CM.rsh.cp("%s:/tmp/drbd" % node,"/tmp"):
+- line = open("/tmp/drbd").readlines()[2]
++ self.CM.rsh(node,"cp /proc/drbd /var/run >/dev/null 2>&1")
++ if self.CM.rsh.cp("%s:/var/run/drbd" % node,"/var/run"):
++ line = open("/tmp/var/run").readlines()[2]
+ p = line.find("Primary")
+ s1 = line.find("Secondary")
+ s2 = line.rfind("Secondary")
+@@ -1111,8 +1111,8 @@
+ def getdevice(self,node):
+ device=None
+ if self.CM.rsh(node,self.CM["DRBDCheckconf"])==0:
+- self.CM.rsh.cp("%s:/tmp/drbdconf" % node, "/tmp")
+- lines=open("/tmp/drbdconf","r")
++ self.CM.rsh.cp("%s:/var/run/drbdconf" % node, "/var/run")
++ lines=open("/var/run/drbdconf","r")
+ for line in lines:
+ if line.find("%s:device" % node)!=-1:
+ device=string.split(line," ")[8]
+--- a/heartbeat/resource.d/IPaddr.in 12 Sep 2004 00:06:10 -0000 1.52.2.7
++++ b/heartbeat/resource.d/IPaddr.in 16 Jul 2005 14:46:19 -0000
+@@ -24,7 +24,6 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ HA_D=@sysconfdir@/ha.d
+-CONF_D=@sysconfdir@/ha.d/conf
+ . ${HA_D}/shellfuncs
+
+ IFCONFIG=@IFCONFIG@
+@@ -564,8 +563,8 @@
+
+ ha_log "info: Sending Gratuitous Arp for $BASEIP on $IF [$TARGET_INTERFACE]"
+
+- [ -r ${CONF_D}/arp_config ] && . ${CONF_D}/arp_config
+- [ -r "${CONF_D}/arp_config:${TARGET_INTERFACE}" ] && . "${CONF_D}/arp_config:${TARGET_INTERFACE}"
++ [ -r ${HA_CONFDIR}/arp_config ] && . ${HA_CONFDIR}/arp_config
++ [ -r "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}" ] && . "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}"
+
+ # Set default values (can be overridden as described above)
+
+--- a/heartbeat/resource.d/IPaddr2.in 4 Apr 2005 08:28:09 -0000 1.8.2.6
++++ b/heartbeat/resource.d/IPaddr2.in 16 Jul 2005 14:46:19 -0000
+@@ -254,10 +254,10 @@
+ #
+ # Run send_arp to note peers about new mac address
+ #
+- [ -r ${CONF_D}/arp_config ] && . ${CONF_D}/arp_config
+- if [ -r "${CONF_D}/arp_config:${TARGET_INTERFACE}" ]
++ [ -r ${HA_CONFDIR}/arp_config ] && . ${HA_CONFDIR}/arp_config
++ if [ -r "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}" ]
+ then
+- . "${CONF_D}/arp_config:${TARGET_INTERFACE}"
++ . "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}"
+ fi
+
+ # Set default values (can be overridden as described above)
+--- a/heartbeat/resource.d/SendArp.in 20 Apr 2004 05:05:29 -0000 1.1.2.1
++++ b/heartbeat/resource.d/SendArp.in 16 Jul 2005 14:46:19 -0000
+@@ -70,10 +70,10 @@
+ ;;
+ esac
+
+- [ -r ${CONF_D}/arp_config ] && . ${CONF_D}/arp_config
+- if [ -r "${CONF_D}/arp_config:${TARGET_INTERFACE}" ]
++ [ -r ${HA_CONFDIR}/arp_config ] && . ${HA_CONFDIR}/arp_config
++ if [ -r "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}" ]
+ then
+- . "${CONF_D}/arp_config:${TARGET_INTERFACE}"
++ . "${HA_CONFDIR}/arp_config:${TARGET_INTERFACE}"
+ fi
+
+ # Set default values
+--- a/heartbeat/shellfuncs.in 24 Jun 2003 07:18:20 -0000 1.6
++++ b/heartbeat/shellfuncs.in 16 Jul 2005 14:46:19 -0000
+@@ -6,6 +6,7 @@
+ exec_prefix=@exec_prefix@
+ : ${HA_DIR=@sysconfdir@/ha.d}
+ : ${HA_RCDIR=$HA_DIR/rc.d}
++: ${HA_CONFDIR=$HA_DIR/conf}
+ : ${HA_CF=$HA_DIR/ha.cf}
+ : ${HA_VARLIB=@localstatedir@/lib/heartbeat}
+ : ${HA_RSCTMP=@localstatedir@/lib/heartbeat/rsctmp}
+--- a/heartbeat/resource.d/IPaddr2.in 30 Aug 2004 09:08:24 -0000 1.8.2.5
++++ b/heartbeat/resource.d/IPaddr2.in 4 Apr 2005 08:28:09 -0000 1.8.2.6
+@@ -356,12 +356,16 @@
+ esac
+ fi
+
+- if
+- [ -z "$IF" ]
+- then
+- : Requested interface not in use
+- exit 0
+- fi
++ #
++ # Do we already service this IP address?
++ #
++ case `status $1` in
++ stopped|loopback)
++ : Requested interface not in use
++ exit 0
++ ;;
++ esac
++
+
+ #
+ # If there is local_giveip script, run it.
+--- a/heartbeat/resource.d/LVM.in 20 Apr 2004 05:05:29 -0000 1.2.4.1
++++ b/heartbeat/resource.d/LVM.in 10 Jun 2005 07:46:28 -0000
+@@ -102,8 +102,15 @@ LVM_methods() {
+ #
+ LVM_status() {
+
+- vgdisplay $1 | grep -i 'Status.*available' >/dev/null
+-
++ if
++ [ "$LVM_VERSION" -eq "200" ]
++ then
++ vgdisplay -v $1 | grep -i 'Status[ \t]*available' &>/dev/null
++ return $?
++ else
++ vgdisplay $1 | grep -i 'Status.*available' >/dev/null
++ return $?
++ fi
+ }
+
+ #
+@@ -111,15 +118,27 @@ LVM_status() {
+ #
+ LVM_report_status() {
+
+- VGOUT=`vgdisplay $1 2>&1`
++ if
++ [ "$LVM_VERSION" -eq "200" ]
++ then
++ VGOUT=`vgdisplay -v $1 2>&1`
++ echo "$VGOUT" | grep -i 'Status[ \t]*available' >/dev/null
++ rc=$?
++ else
++ VGOUT=`vgdisplay $1 2>&1`
++ echo "$VGOUT" | grep -i 'Status.*available' >/dev/null
++ rc=$?
++ fi
++
+ if
+- echo "$VGOUT" | grep -i 'Status.*available' >/dev/null
++ [ $rc -eq 0 ]
+ then
+ : Volume $1 is available
+ else
+ echo "LVM Volume $1 is not available (stopped)"
+ return 1
+ fi
++
+ if
+ echo "$VGOUT" | grep -i 'Access.*read/write' >/dev/null
+ then
+@@ -155,7 +174,15 @@ LVM_monitor() {
+ LVM_start() {
+
+ ha_log "Activating volume group $1"
+- run vgscan $1
++
++ if
++ [ "$LVM_VERSION" -eq "200" ]
++ then
++ run vgscan
++ else
++ run vgscan $1
++ fi
++
+ run vgchange -a y $1 || return 1
+
+ if
+@@ -196,6 +223,15 @@ if
+ then
+ LVM_methods
+ exit $?
++fi
++
++LVM_VERSION=`/sbin/lvmiopversion`
++rc=$?
++if
++ [ $rc -ne 0 ]
++then
++ ha_log "ERROR: LVM: $1 could not determine LVM version"
++ return $rc
+ fi
+
+ VOLUME=$1
diff --git a/sys-cluster/heartbeat/heartbeat-1.2.3-r1.ebuild b/sys-cluster/heartbeat/heartbeat-1.2.3-r1.ebuild
new file mode 100644
index 000000000000..987bbd46a25e
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-1.2.3-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-1.2.3-r1.ebuild,v 1.1 2005/07/29 00:25:04 xmerlin Exp $
+
+inherit flag-o-matic
+
+DESCRIPTION="Heartbeat high availability cluster manager"
+HOMEPAGE="http://www.linux-ha.org"
+SRC_URI="http://www.linux-ha.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 -mips ~ppc ~amd64"
+IUSE="ldirectord"
+
+DEPEND="dev-libs/popt
+ =dev-libs/glib-1.2*
+ net-libs/libnet
+ ldirectord? ( sys-cluster/ipvsadm
+ dev-perl/libwww-perl
+ dev-perl/perl-ldap
+ dev-perl/libnet )"
+
+# need to add dev-perl/Mail-IMAPClient inside ldirectord above
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/heartbeat-1.2.3-debian_security_fixes || die
+}
+
+src_compile() {
+ append-ldflags -Wl,-z,now
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-group-name=cluster \
+ --with-group-id=65 \
+ --with-ccmuser-name=cluster \
+ --with-ccmuser-id=65 || die
+ emake -j 1 || die "compile problem"
+}
+
+pkg_preinst() {
+ # check for cluster group, if it doesn't exist make it
+ if ! grep -q cluster.*65 /etc/group ; then
+ groupadd -g 65 cluster
+ fi
+ # check for cluster user, if it doesn't exist make it
+ if ! grep -q cluster.*65 /etc/passwd ; then
+ useradd -u 65 -g cluster -s /dev/null -d /var/lib/heartbeat cluster
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ # heartbeat modules need these dirs
+ keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat
+
+ keepdir /etc/ha.d/conf
+
+ # if ! USE="ldirectord" then don't install it
+ if ! use ldirectord ; then
+ rm ${D}/etc/init.d/ldirectord
+ rm ${D}/etc/logrotate.d/ldirectord
+ rm ${D}/usr/man/man8/supervise-ldirectord-config.8
+ rm ${D}/usr/man/man8/ldirectord.8
+ rm ${D}/usr/sbin/ldirectord
+ rm ${D}/usr/sbin/supervise-ldirectord-config
+ fi
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/heartbeat-init heartbeat
+}