[svn] r6520 - trunk/rpms/nagios-nsca

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Fri Oct 17 16:36:16 CEST 2008


Author: cmr
Date: 2008-10-17 15:36:16 +0100 (Fri, 17 Oct 2008)
New Revision: 6520

Modified:
   trunk/rpms/nagios-nsca/nagios-nsca.spec
Log:
update nagios-nsca package, add nagios-nsca-client subpackage


Modified: trunk/rpms/nagios-nsca/nagios-nsca.spec
===================================================================
--- trunk/rpms/nagios-nsca/nagios-nsca.spec	2008-10-16 09:44:54 UTC (rev 6519)
+++ trunk/rpms/nagios-nsca/nagios-nsca.spec	2008-10-17 14:36:16 UTC (rev 6520)
@@ -9,8 +9,8 @@
 
 Summary: Nagios Service Check Acceptor
 Name: nagios-nsca
-Version: 2.6
-Release: 2
+Version: 2.7.2
+Release: 1
 License: GPL
 Group: Applications/Internet
 URL: http://www.nagios.org/
@@ -27,14 +27,17 @@
 The purpose of this addon is to allow you to execute NetSaint/Nagios
 plugins on a remote host in as transparent a manner as possible.
 
+%package client
+Summary: nagios send_nsca
+Group: Applications/Internet
+Provides: send_nsca
+
+%description  client
+A client program to send passive service check results to a nagios-nsca daemon.
+
 %prep
 %setup -n %{real_name}-%{version}
 
-#%{__perl} -pi.orig -e '
-#       s|^(command_file)=\@localstatedir\@/rw/nagios.cmd|$1=%{_localstatedir}/spool/nagios/nagios.cmd|;
-#       s|^(alternate_dump_file)=\@localstatedir\@/rw/nsca.dump|$1=%{_localstatedir}/spool/nagios/nsca.dump|;
-#   ' nsca.cfg.in
-
 %{__cat} <<EOF >nsca.xinetd.dag
 # default: off
 # description: NSCA (Nagios Service Check Acceptor)
@@ -144,7 +147,7 @@
 %build
 %configure \
     --sysconfdir="%{_sysconfdir}/nagios" \
-    --localstatedir="%{_localstatedir}/log/nagios" \
+    --localstatedir="%{_localstatedir}/nagios" \
     --with-nsca-user="nagios" \
     --with-nsca-grp="nagios" \
     --with-nsca-port="5667"
@@ -159,11 +162,7 @@
 %{__install} -Dp -m0644 sample-config/send_nsca.cfg %{buildroot}%{_sysconfdir}/nagios/send_nsca.cfg
 %{__install} -Dp -m0755 nsca.sysv %{buildroot}%{_initrddir}/nsca
 %{__install} -Dp -m0644 nsca.xinetd.dag %{buildroot}%{_sysconfdir}/xinetd.d/nsca
-#%{__install} -Dp -m0644 sample-config/nsca.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/nsca
 
-#%{__install} -d -m0755 %{buildroot}%{_localstatedir}/spool/nagios/
-%{__install} -d -m0755 %{buildroot}%{_localstatedir}/log/nagios/rw/
-
 %post
 /sbin/chkconfig --add nsca
 
@@ -179,10 +178,15 @@
 %clean
 %{__rm} -rf %{buildroot}
 
+%files client
+%config(noreplace) %{_sysconfdir}/nagios/send_nsca.cfg
+%{_sbindir}/send_nsca
+
+
 %files
 %defattr(-, root, root, 0755)
 %doc Changelog LEGAL README SECURITY
-%config(noreplace) %{_sysconfdir}/nagios/
+%config(noreplace) %{_sysconfdir}/nagios/nsca.cfg
 %config(noreplace) %{_sysconfdir}/xinetd.d/nsca
 %config %{_initrddir}/nsca
 #%dir %{_localstatedir}/spool/nagios/
@@ -190,9 +194,14 @@
 %{_sbindir}/send_nsca
 
 %defattr(-, nagios, apache, 2755)
-%dir %{_localstatedir}/log/nagios/rw/
 
 %changelog
+* Fri Oct 17 2008 Christoph Maser <cmr at financial.com> - 2.7.2-1
+- Updated to release 2.7.2
+- Add -client subpackage
+- change locastate dir to %{_localstatedir}/nagios
+- remove %{_localstatedir}/log/nagios/rw/ (comes from nagios package)
+
 * Mon Jan 28 2008 Dag Wieers <dag at wieers.com> - 2.6-2
 - Fixed ownership of %%{_localstatedir}/log/nagios/rw/. (Josh Kelley)
 




More information about the commits mailing list