[-]
[+]
|
Added |
heartbeat.spec
|
|
[-]
[+]
|
Added |
heartbeat-2.1.2-open.patch
^
|
@@ -0,0 +1,24 @@
+diff -Nur heartbeat-2.1.2.orig/heartbeat/heartbeat.c heartbeat-2.1.2/heartbeat/heartbeat.c
+--- heartbeat-2.1.2.orig/heartbeat/heartbeat.c 2007-08-01 20:06:54.000000000 -0600
++++ heartbeat-2.1.2/heartbeat/heartbeat.c 2007-08-14 22:21:46.000000000 -0600
+@@ -862,7 +862,7 @@
+
+ ourproc = procinfo->nprocs;
+
+- if (mp->vf->open(mp) != HA_OK){
++ if ((mp->vf->open)(mp) != HA_OK){
+ cl_log(LOG_ERR, "cannot open %s %s",
+ mp->type,
+ mp->name);
+diff -Nur heartbeat-2.1.2.orig/lib/clplumbing/cl_msg.c heartbeat-2.1.2/lib/clplumbing/cl_msg.c
+--- heartbeat-2.1.2.orig/lib/clplumbing/cl_msg.c 2007-08-01 20:06:54.000000000 -0600
++++ heartbeat-2.1.2/lib/clplumbing/cl_msg.c 2007-08-14 21:36:14.000000000 -0600
+@@ -145,7 +145,7 @@
+ return -1;
+ }
+
+- return open(filename, O_WRONLY|O_CREAT|O_APPEND);
++ return open(filename, O_WRONLY|O_CREAT|O_APPEND, 0755);
+
+ }
+
|
[-]
[+]
|
Added |
heartbeat-fedora-chkconfig.patch
^
|
@@ -0,0 +1,63 @@
+diff -Nur heartbeat-2.0.5.orig/heartbeat/init.d/heartbeat.in heartbeat-2.0.5/heartbeat/init.d/heartbeat.in
+--- heartbeat-2.0.5.orig/heartbeat/init.d/heartbeat.in 2006-04-14 21:25:33.000000000 +0200
++++ heartbeat-2.0.5/heartbeat/init.d/heartbeat.in 2006-04-27 20:32:29.000000000 +0200
+@@ -13,7 +13,7 @@
+ # We don't hate anyone, and like for everyone to use
+ # our software, no matter what OS or distribution you're using.
+ #
+-# chkconfig: 2345 @HB_INITSTARTPRI@ @HB_INITSTOPPRI@
++# chkconfig: - @HB_INITSTARTPRI@ @HB_INITSTOPPRI@
+ # description: Startup script high-availability services.
+ # processname: heartbeat
+ # pidfile: @localstatedir@/run/heartbeat.pid
+@@ -391,12 +391,7 @@
+ StartHA
+ RC=$?
+ Echo
+- if
+- [ $RC -eq 0 ]
+- then
+- [ ! -d $LOCKDIR ] && mkdir -p $LOCKDIR
+- touch $LOCKDIR/$SUBSYS
+- fi
++ [ $RC -eq 0 ] && touch /var/lock/subsys/heartbeat
+ RunStartStop post-start $RC
+ ;;
+
+@@ -413,11 +408,7 @@
+ StopHA
+ RC=$?
+ Echo
+- if
+- [ $RC -eq 0 ]
+- then
+- rm -f $LOCKDIR/$SUBSYS
+- fi
++ [ $RC -eq 0 ] && rm -f /var/lock/subsys/heartbeat
+ RunStartStop post-stop $RC
+ StopLogd
+ ;;
+diff -Nur heartbeat-2.0.5.orig/ldirectord/init.d/ldirectord heartbeat-2.0.5/ldirectord/init.d/ldirectord
+--- heartbeat-2.0.5.orig/ldirectord/init.d/ldirectord 2005-10-17 14:49:21.000000000 +0200
++++ heartbeat-2.0.5/ldirectord/init.d/ldirectord 2006-04-27 20:33:35.000000000 +0200
+@@ -2,7 +2,7 @@
+ #
+ # ldirectord Linux Director Daemon
+ #
+-# chkconfig: 2345 92 40
++# chkconfig: - 92 40
+ # description: Start and stop ldirectord on non-heartbeat systems
+ # Using the config file /etc/ha.d/ldirectord.cf
+ #
+@@ -59,9 +59,11 @@
+ case "$1" in
+ start)
+ action "Starting ldirectord" $DAEMON start
++ touch /var/lock/subsys/ldirectord
+ ;;
+ stop)
+ action "Stopping ldirectord" $DAEMON stop
++ rm -f /var/lock/subsys/ldirectord
+ ;;
+ restart)
+ action "Restarting ldirectord" $DAEMON restart
|
[-]
[+]
|
Added |
heartbeat-fedora-pam.patch
^
|
@@ -0,0 +1,15 @@
+diff -Nur heartbeat-2.0.5.orig/mgmt/daemon/mgmtd.pam heartbeat-2.0.5/mgmt/daemon/mgmtd.pam
+--- heartbeat-2.0.5.orig/mgmt/daemon/mgmtd.pam 2005-12-30 09:35:27.000000000 +0100
++++ heartbeat-2.0.5/mgmt/daemon/mgmtd.pam 2006-04-27 20:36:29.000000000 +0200
+@@ -1,3 +1,8 @@
+-auth required pam_unix.so
+-account required pam_unix.so
+-
++#%PAM-1.0
++auth sufficient pam_rootok.so
++auth sufficient pam_timestamp.so
++auth required pam_stack.so service=system-auth
++session required pam_permit.so
++session optional pam_xauth.so
++session optional pam_timestamp.so
++account required pam_permit.so
|
|
Added |
heartbeat-2.1.2-2.fc8.src.rpm
^
|
|
Added |
heartbeat-2.1.2.tar.gz
^
|