%define haclient_groupid 65021 %define hacluster_userid 65021 Name: heartbeat Version: 2.1.3 Release: 4mamba Summary: Heartbeat - heartbeat subsystem for High-Availability Linux Group: System/Clustering Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://linux-ha.org Source0: http://linux-ha.org/download/heartbeat-%{version}.tar.gz Source1: heartbeat-ha.cf Source2: heartbeat-ha-config.sh Source3: heartbeat-initscript Patch0: %{name}-1.2.3-CAN-2005-2231.patch Patch1: %{name}-1.2.3-CVE-2006-3121.patch Patch2: %{name}-1.2.3-CVE-2006-3815.patch Patch3: %{name}-1.2.3-gcc4.patch Patch4: %{name}-1.2.3-heartbeat_logrotate.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbzip2-devel BuildRequires: libcurl-devel BuildRequires: libe2fs-devel BuildRequires: libgcrypt-devel BuildRequires: libglib-devel BuildRequires: libgnutls-devel BuildRequires: libgpg-error-devel BuildRequires: libltdl-devel BuildRequires: libncurses-devel BuildRequires: libnetsnmp-devel BuildRequires: libopenssl-devel BuildRequires: libxml2-devel BuildRequires: libz-devel BuildRequires: pam-devel BuildRequires: perl-devel BuildRequires: perl-libwww BuildRequires: perl-Mail-Tools ## AUTOBUILDREQ-END BuildRequires: libnet-devel >= 1.1.1 BuildRequires: libdb47-devel BuildRequires: pkgconfig BuildRequires: bison, flex, perl, python BuildRequires: net-tools, util-linux BuildRequires: swig BuildRoot: %{_tmppath}/%{name}-%{version}-root # FIXME: # Enabling the new Cluster Resource Manager... no # Enabling the new Local Resource Manager... no # checking which swig/perl version... # swig not found # Enabling SWIG language bindings... no (swig not found) %description Linux-HA heartbeat package. This package monitors hosts and informs the cluster when one of them dies. It includes Horms's code from "fake" below for IP address takeover. It currently works for 2-node clusters and supports multiple interfaces per node. We've support resource groups, support nice_failback, strong authentication, serial and UDP broadcast/multicast/unicast heartbeats. %package devel Summary: Devel package for heartbeat Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Linux-HA heartbeat devel package. This package monitors hosts and informs the cluster when one of them dies. It includes Horms's code from "fake" below for IP address takeover. It currently works for 2-node clusters and supports multiple interfaces per node. We've support resource groups, support nice_failback, strong authentication, serial and UDP broadcast/multicast/unicast heartbeats. %package ldirectord Summary: Monitor daemon for maintaining high availability resources Group: System/Clustering Requires: %{name} = %{version}-%{release} # Requires: # perl, perl-libwww-perl perl-Net-SSLeay, ipvsadm, perl-HTML-Parser # perl-ldap, perl-Mail-IMAPClient, perl-libnet, perl-libwww-perl # perl-Net-SSLeay, perl-HTML-Parser, perl-ldap. perl-Mail-IMAPClient # perl-libnet and ipvsadm available from www.ultramonkey.org and others %description ldirectord ldirectord is a stand-alone daemon to monitor services of real for virtual services provided by The Linux Virtual Server (http://www.linuxvirtualserver.org/). It is simple to install and works with the heartbeat code (http://www.linux-ha.org/). %package gui Summary: Graphical User Interface for heartbeat Group: Graphical Desktop/Applications/Utilities Requires: %{name} = %{version}-%{release} %description gui Graphical User Interface for heartbeat. %prep %setup -q #%patch0 -p1 -b .cve_2005_2331 #%patch1 -p1 -b .cve_2006_3121 #%patch2 -p1 -b .cve_2006_3815 #%patch3 -p1 -b .gcc4 %patch4 -p1 -b .heartbeat_logrotate %build %configure \ --enable-fatal-warnings=no \ --with-initdir=%{_initrddir} \ --enable-swig # --enable-crm # --enable-snmp-subagent # --enable-lrm # --enable-snmp-subagent # --enable-eventd %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall cp %{buildroot}%{_datadir}/doc/heartbeat-%{version}/{authkeys,ha.cf,haresources} \ %{buildroot}%{_sysconfdir}/ha.d/ cp %{S:1} %{buildroot}%{_sysconfdir}/ha.d/ha.cf install -m 0755 %{S:2} %{buildroot}%{_bindir}/ha-config.sh install -m 0755 %{S:3} %{buildroot}%{_initrddir}/heartbeat sed -i "s|^#auth 1|auth 1|" %{buildroot}%{_sysconfdir}/ha.d/authkeys sed -i "s|^#1 crc|1 crc|" %{buildroot}%{_sysconfdir}/ha.d/authkeys install -d %{buildroot}/var/log/ha %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre groupadd -g %{haclient_groupid} haclient &>/dev/null useradd -u %{hacluster_userid} -g haclient \ -s /bin/false hacluster &>/dev/null exit 0 %preun if [ $1 -eq 0 ]; then [ -e %{_localstatedir}/run/heartbeat.pid ] && \ %{_initrddir}/heartbeat stop chkconfig --del heartbeat userdel hacluster &>/dev/null groupdel haclient &>/dev/null fi exit 0 %post /sbin/ldconfig if [ $1 -eq 1 ]; then ha-config.sh && chkconfig --add heartbeat fi exit 0 %postun /sbin/ldconfig if [ $1 -eq 1 ]; then [ -e %{_localstatedir}/run/heartbeat.pid ] && \ %{_initrddir}/heartbeat restart fi exit 0 %preun ldirectord if [ $1 -eq 0 ]; then %{_initrddir}/ldirectord stop chkconfig --del ldirectord userdel hacluster &>/dev/null groupdel haclient &>/dev/null fi exit 0 %postun ldirectord if [ $1 -eq 1 ]; then [ -e %{_localstatedir}/run/ldirectord.pid ] && \ %{_initrddir}/ldirectord restart fi exit 0 %files gui %defattr(-,root,root) %{_bindir}/hb_gui %dir %{_libdir}/heartbeat-gui %{_libdir}/heartbeat-gui/* %dir %{_datadir}/heartbeat-gui %{_datadir}/heartbeat-gui/* %files %defattr(-,root,root) %{_sysconfdir}/pam.d/hbmgmtd %{_bindir}/cl_respawn %{_bindir}/cl_status %{_bindir}/ha-config.sh %{_sbindir}/* %dir %{_sysconfdir}/ha.d %{_sysconfdir}/ha.d/harc %{_sysconfdir}/ha.d/shellfuncs %{_sysconfdir}/ha.d/rc.d %{_sysconfdir}/ha.d/README.config %{_sysconfdir}/ha.d/resource.d/ %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/ha.d/authkeys %config(noreplace) %{_sysconfdir}/ha.d/ha.cf %config(noreplace) %{_sysconfdir}/ha.d/haresources %{_initrddir}/heartbeat %{_sysconfdir}/logrotate.d/* %exclude %{_sysconfdir}/logrotate.d/ldirectord %{_libdir}/*.so.* %dir %{_libdir}/heartbeat %{_libdir}/heartbeat/* %dir %{_libdir}/ocf %{_libdir}/ocf/* %dir %{_libdir}/pils %{_libdir}/pils/* %dir %{_libdir}/stonith %{_libdir}/stonith/* %dir %{_datadir}/heartbeat/lrmtest %{_datadir}/heartbeat/lrmtest/* %dir %{_datadir}/heartbeat/cts %{_datadir}/heartbeat/cts/* %{_datadir}/heartbeat/BasicSanityCheck %{_datadir}/heartbeat/ResourceManager %{_datadir}/heartbeat/TestHeartbeatComm %{_datadir}/heartbeat/crm.dtd %{_datadir}/heartbeat/ha_* %{_datadir}/heartbeat/hb_* %{_datadir}/heartbeat/mach_down %{_datadir}/heartbeat/req_resource %{_datadir}/heartbeat/stonithdtest/STONITHDBasicSanityCheck %{_datadir}/heartbeat/utillib.sh %{_datadir}/locale/zh_CN/LC_MESSAGES/haclient.mo #%attr(600,root,root) %{_libdir}/heartbeat/fifo #%dir %attr (750, root, haclient) %{_localstatedir}/lib/heartbeat/api %dir %{_localstatedir}/log/ha #%dir %attr (755, root, haclient) %{_localstatedir}/lib/heartbeat/ckpt #%attr (755, hacluster, haclient) %{_localstatedir}/lib/heartbeat/ccm #%attr (1770, root, haclient) %{_localstatedir}/lib/heartbeat/casual %{_docdir}/heartbeat-%{version}/* %{_mandir}/man8/* %{_mandir}/man1/* %files devel %defattr(-,root,root) %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_includedir}/* %files ldirectord %defattr(-,root,root) #%{_sysconfdir}/ha.d/conf %{_initrddir}/ldirectord %{_sbindir}/ldirectord #%{_sbindir}/supervise-ldirectord-config %{_sysconfdir}/logrotate.d/ldirectord #%{_sysconfdir}/ha.d/resource.d/ldirectord %{_mandir}/man8/ldirectord* #%{_mandir}/man8/supervise-ldirectord-config* %doc ldirectord/ldirectord.cf %changelog * Fri Oct 22 2010 Automatic Build System 2.1.3-4mamba - automatic rebuild by autodist * Sun Aug 08 2010 Automatic Build System 2.1.3-3mamba - automatic rebuild by autodist * Thu Feb 04 2010 Silvan Calarco 2.1.3-2mamba - rebuilt to remove executable requirements * Sun Sep 28 2008 Silvan Calarco 2.1.3-1mamba - update to 2.1.3 * Thu Oct 05 2006 Davide Madrisan 1.2.3-6qilnx - fixed logfile paths in the syslog configuration file for hearbeat (patch#4) - do not include the logrotate file ldirectord in both main and ldirectord subpackage * Wed Aug 30 2006 Davide Madrisan 1.2.3-5qilnx - security update: CVE-2006-3121, CVE-2006-3815 (bugtraq#209) - gcc4 fixes (patch#3) * Thu Aug 11 2005 Davide Madrisan 1.2.3-4qilnx - security fix QSA-2005-088 (CAN-2005-2231) * Tue Apr 05 2005 Silvan Calarco 1.2.3-3qilnx - use 'getent host' instead of resolveip in configuration script to resolve host names * Wed Sep 29 2004 Silvan Calarco 1.2.3-2qilnx - added automatic configuration script (takes info from QiLinux installation) - fixed initscript newlines * Wed Sep 29 2004 Silvan Calarco 1.2.3-1qilnx - new version build * Wed May 12 2004 Silvan Calarco 1.2.2-1qilnx - new version build - added default configuration files * Wed Apr 28 2004 Silvan Calarco 1.2.1-1qilnx - first build