From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga ./clustermon.spec.in.in make/version.in
Date: 17 Aug 2006 19:12:55 -0000 [thread overview]
Message-ID: <20060817191255.11253.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-08-17 19:12:54
Modified files:
. : clustermon.spec.in.in
make : version.in
Log message:
- don't start modcluster after instalation
- minor spec file changes
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/clustermon.spec.in.in.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/make/version.in.diff?cvsroot=cluster&r1=1.14&r2=1.15
--- conga/clustermon.spec.in.in 2006/08/16 06:34:19 1.7
+++ conga/clustermon.spec.in.in 2006/08/17 19:12:54 1.8
@@ -29,35 +29,29 @@
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: glibc-devel gcc-c++ libxml2-devel make
+BuildRequires: glibc-devel gcc-c++ libxml2-devel
BuildRequires: openssl-devel dbus-devel pam-devel
BuildRequires: net-snmp-devel tog-pegasus-devel
%description
-This package contains source code of
-Red Hat Enterprise Linux Cluster Suite ricci/SNMP/CIM module/agent/provider.
+This package contains Red Hat Enterprise Linux Cluster Suite
+SNMP/CIM module/agent/provider.
%prep
%setup -q
-
%build
-rm -rf $RPM_BUILD_ROOT
-#./configure --arch=%{_arch} --sbindir=%{_sbindir} --libdir=%{_libdir} --docdir=%{_docdir}
%configure --arch=%{_arch} \
--docdir=%{_docdir} \
--pegasus_providers_dir=%{PEGASUS_PROVIDERS_DIR} \
--include_zope_and_plone=no
-#make %{?_smp_mflags}
-make clustermon
-
+make %{?_smp_mflags} clustermon
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_clustermon
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -68,8 +62,7 @@
%package -n modcluster
-Group: System Environment/Base
-Summary: Red Hat Enterprise Linux Cluster Suite remote management
+Summary: Red Hat Enterprise Linux Cluster Suite - remote management
Requires: oddjob dbus openssl
Requires: initscripts util-linux
@@ -80,7 +73,7 @@
Conflicts: ricci-modcluster
%description -n modcluster
-ricci management module for Red Hat Enterprise Linux Cluster Suite.
+Management module for Red Hat Enterprise Linux Cluster Suite.
%files -n modcluster
@@ -98,28 +91,23 @@
if [ "1$?" != "10" ]; then
/sbin/chkconfig --add modclusterd
fi
-/bin/kill -s SIGHUP `cat /var/run/messagebus.pid`
+/bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
-# start modclusterd only if not explicitly disabled (in current runlevel)
-RUNS=(`/sbin/runlevel`)
-RUNLEVEL=${RUNS[1]}
-STATE=`/sbin/chkconfig --list modclusterd | sed -e s,.*\\\t$RUNLEVEL:\\\\\(o[nf]f\\\?\\\\\).*,\\\1,`
-if [ "1$STATE" = "1on" ]; then
- /sbin/service modclusterd start > /dev/null 2>&1
-fi
-
%preun -n modcluster
-/sbin/service modclusterd stop > /dev/null 2>&1
-if [ "1$1" = "10" ]; then
+if [ "1$1" == "10" ]; then
+ /sbin/service modclusterd stop > /dev/null 2>&1
/sbin/chkconfig --del modclusterd
fi
%postun -n modcluster
-if [ "1$1" = "10" ]; then
- /bin/kill -s SIGHUP `cat /var/run/messagebus.pid`
+if [ "1$1" == "10" ]; then
+ /bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
fi
+if [ "1$1" == "11" ]; then
+ /sbin/service modclusterd condrestart > /dev/null 2>&1
+fi
@@ -128,8 +116,7 @@
%package -n cluster-snmp
-Group: System Environment/Base
-Summary: Red Hat Enterprise Linux Cluster Suite remote management
+Summary: Red Hat Enterprise Linux Cluster Suite - SNMP agent
Requires: modcluster = %{version}-%{release}
Requires: net-snmp
@@ -153,7 +140,7 @@
%postun -n cluster-snmp
# don't restart snmpd twice on upgrades
-if [ "1$1" = "10" ]; then
+if [ "1$1" == "10" ]; then
/sbin/service snmpd condrestart > /dev/null 2>&1
fi
@@ -165,8 +152,7 @@
%package -n cluster-cim
-Group: System Environment/Base
-Summary: Red Hat Enterprise Linux Cluster Suite remote management
+Summary: Red Hat Enterprise Linux Cluster Suite - CIM provider
Requires: modcluster = %{version}-%{release}
Requires: tog-pegasus
@@ -190,7 +176,7 @@
%postun -n cluster-cim
# don't restart pegasus twice on upgrades
-if [ "1$1" = "10" ]; then
+if [ "1$1" == "10" ]; then
/sbin/service tog-pegasus condrestart > /dev/null 2>&1
fi
# pegasus might not be running, don't fail %postun
@@ -206,11 +192,10 @@
%changelog
-* Wed Aug 16 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-11.7
+* Wed Aug 16 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-12
- Move modcluster from /usr/sbin to /usr/libexec
-
-* Tue Aug 15 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-11.6
- Implement support for Cluster Suite 5
+- Don't auto-start modclusterd after installation, do it manually
* Wed Aug 09 2006 Stanko Kupcevic <kupcevic@redhat.com> 0.8-11
- Spinoff: separate clustermon.srpm (modcluster, cluster-snmp and
--- conga/make/version.in 2006/08/15 21:31:29 1.14
+++ conga/make/version.in 2006/08/17 19:12:54 1.15
@@ -1,2 +1,2 @@
VERSION=0.8
-RELEASE=11.6
+RELEASE=12
next reply other threads:[~2006-08-17 19:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-17 19:12 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-12-04 21:13 [Cluster-devel] conga ./clustermon.spec.in.in make/version.in rmccabe
2007-12-06 3:03 rmccabe
2008-01-02 22:45 rmccabe
2008-01-21 23:17 rmccabe
2008-03-28 1:15 rmccabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060817191255.11253.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.