############################################################################## # # Copyright (C) 2006-2008 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License version 2. # ############################################################################### %define PEGASUS_PROVIDERS_DIR %{_libdir}/Pegasus/providers ############ SRPM ################### Name: clustermon Version: 0.18.1 Release: 1%{?dist} License: GPLv2 URL: http://sources.redhat.com/cluster/conga Group: System Environment/Base Summary: Monitoring and management of Red Hat Cluster Suite Source0: http://people.redhat.com/rmccabe/conga/fedora/src/ricci-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: clusterlib-devel BuildRequires: libxml2-devel openssl-devel dbus-devel pam-devel pkgconfig BuildRequires: net-snmp-devel tog-pegasus-devel %description This package contains Red Hat Cluster Suite SNMP/CIM module/agent/provider. %prep %setup -q -n ricci-%{version} %build sed -i -e 's/^VERSION.*/VERSION=%{version}/' make/version.in ricci/make/version.in sed -i -e 's/^RELEASE.*/RELEASE=%{release}/' make/version.in ricci/make/version.in %configure --arch=%{_arch} \ --docdir=%{_docdir} \ --pegasus_providers_dir=%{PEGASUS_PROVIDERS_DIR} \ --include_zope_and_plone=no make %{?_smp_mflags} clustermon %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install_clustermon %clean rm -rf %{buildroot} ### cluster module ### %package -n modcluster Group: System Environment/Base Summary: Red Hat Cluster Suite - remote management Requires: oddjob dbus Requires(post): chkconfig initscripts Requires(preun): chkconfig initscripts Requires(postun): initscripts %description -n modcluster Management module for Red Hat Cluster Suite. %files -n modcluster %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/oddjobd.conf.d/modcluster.oddjob.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/modcluster.systembus.conf %{_sysconfdir}/rc.d/init.d/modclusterd %{_libexecdir}/modcluster %{_sbindir}/modclusterd %{_docdir}/modcluster-%{version}/ %post -n modcluster /sbin/chkconfig --add modclusterd DBUS_PID=`cat /var/run/messagebus.pid 2>/dev/null` /bin/kill -s SIGHUP $DBUS_PID >&/dev/null # It's ok if this fails (it will fail when oddjob is not running). /sbin/service oddjobd reload >&/dev/null exit 0 %preun -n modcluster if [ "$1" == "0" ]; then /sbin/service modclusterd stop >&/dev/null /sbin/chkconfig --del modclusterd fi exit 0 %postun -n modcluster if [ "$1" == "0" ]; then DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null` /bin/kill -s SIGHUP $DBUS_PID >&/dev/null /sbin/service oddjobd reload >&/dev/null fi if [ "$1" == "1" ]; then /sbin/service modclusterd condrestart >&/dev/null fi exit 0 ### cluster-snmp ### %package -n cluster-snmp Group: System Environment/Base Summary: Red Hat Enterprise Linux Cluster Suite - SNMP agent Requires: modcluster = %{version}-%{release} Requires: net-snmp oddjob Requires(post): initscripts Requires(postun): initscripts %description -n cluster-snmp SNMP agent for Red Hat Cluster Suite. %files -n cluster-snmp %defattr(-,root,root) %{_libdir}/cluster-snmp/ %{_datadir}/snmp/mibs/REDHAT-MIB %{_datadir}/snmp/mibs/REDHAT-CLUSTER-MIB %{_docdir}/cluster-snmp-%{version}/ %post -n cluster-snmp /sbin/service snmpd condrestart >&/dev/null exit 0 %postun -n cluster-snmp # don't restart snmpd twice on upgrades if [ "$1" == "0" ]; then /sbin/service snmpd condrestart >&/dev/null fi exit 0 ### cluster-cim ### %package -n cluster-cim Group: System Environment/Base Summary: Red Hat Cluster Suite - CIM provider Requires: modcluster = %{version}-%{release} Requires: tog-pegasus oddjob Requires(post): initscripts Requires(postun): initscripts %description -n cluster-cim CIM provider for Red Hat Enterprise Linux Cluster Suite. %files -n cluster-cim %defattr(-,root,root) %{PEGASUS_PROVIDERS_DIR}/libRedHatClusterProvider.so %{_docdir}/cluster-cim-%{version}/ %post -n cluster-cim # pegasus might not be running, don't fail /sbin/service tog-pegasus condrestart >&/dev/null exit 0 %postun -n cluster-cim # don't restart pegasus twice on upgrades if [ "$1" == "0" ]; then /sbin/service tog-pegasus condrestart >&/dev/null fi # pegasus might not be running, don't fail exit 0 %changelog * Thu Aug 19 2010 Chris Feist <cfeist@redhat.com> - 0.18.1 - Update to latest sources for rawhide * Thu Jan 14 2010 Ryan McCabe <rmccabe@redhat.com> - 0.17.0-1 - Make the modclusterd init script exit with status 2 when invalid arguments are provided * Mon Aug 31 2009 Ryan McCabe <rmccabe@redhat.com> - 0.16.1-2 - Forward port from F11. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Apr 16 2009 Ryan McCabe <rmccabe@redhat.com> 0.16.1-1 - Fix memory corruption bug. - Cleanup stale code paths. * Mon Mar 30 2009 Ryan McCabe <rmccabe@redhat.com> 0.16.0-1 - Remove legacy RHEL4 and RHEL5-specific code. - Fix build issues uncovered by g++ 4.4 - Apply patch provided for bz480151 * Tue Feb 03 2009 Fabio M. Di Nitto <fdinitto@redhat.com> 0.15.0-8 - Merge sparc support patch from F10 branch. - BuildRequires clusterlib-devel instead of cmanlib-devel. * Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 0.15.0-7 - rebuild with new openssl * Wed Oct 15 2008 Ryan McCabe <rmccabe@redhat.com> 0.15.0-6 - Don't make failing to update the cluster version a fatal error when trying to set a new configuration file. * Mon Oct 06 2008 Ryan McCabe <rmccabe@redhat.com> 0.15.0-5 - Update the cman configuration version when propagating a new cluster.conf via "ccs_sync" * Fri Sep 26 2008 Fabio M. Di Nitto <fdinitto@redhat.com> 0.15.0-3 - Change BuildRequires from cman-devel to cmanlib-devel * Thu Sep 25 2008 Fabio M. Di Nitto <fdinitto@redhat.com> 0.15.0-2 - Add versioned BR on cman-devel * Tue Sep 09 2008 Ryan McCabe <rmccabe@redhat.com> 0.15.0-1 - Restore missing XVM.cpp file for modcluster * Fri Jun 06 2008 Ryan McCabe <rmccabe@redhat.com> 0.13.0-4 - Recognize F9 by name (Sulphur). * Tue May 20 2008 Ryan McCabe <rmccabe@redhat.com> 0.13.0-3 - Initial build.