[packagers] changes in nagios-nsca
Christoph Maser
cmr at financial.com
Fri Jul 21 17:05:36 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi i use send_nsca on a lot of hosts and none of them runs nsca or nagios, so i made a
change to your spec-file to split out send_nsca + config in a client package.
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEwO1AsLjW0HYht7URAp7zAJ4jh23o89dapoDl3aBCOXxt98FRFACcDrA1
nnFwtu4TJGxTjLS38egFn1o=
=2WHg
-----END PGP SIGNATURE-----
-------------- next part --------------
--- nagios-nsca.spec 2006-02-08 20:51:55.000000000 +0100
+++ nagios-nsca.spec.cmr 2006-07-21 17:03:42.000000000 +0200
@@ -10,7 +10,7 @@
Summary: Nagios Service Check Acceptor
Name: nagios-nsca
Version: 2.5
-Release: 2
+Release: 3
License: GPL
Group: Applications/Internet
URL: http://www.nagios.org/
@@ -27,6 +27,14 @@
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}
@@ -179,18 +187,26 @@
%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/
-%dir %{_localstatedir}/log/nagios/rw/
%{_sbindir}/nsca
-%{_sbindir}/send_nsca
+### FIXME: do we need the following line, after all this package requires nagios wich provides this dir
+%attr(2755,nagios,apache) %dir %{_localstatedir}/log/nagios/rw/
%changelog
+* Fri Jul 21 2006 Christoph Maser <cmr at financial.com> - 2.5-3
+- Split out send_nsca + config in a client package
+- fix permissions of /var/log/nagios/rw to be the same as in nagios package
+
* Wed Feb 08 2006 Dag Wieers <dag at wieers.com> - 2.5-2
- Removed -s option in sysv script. (Rick Johnson)
More information about the packagers
mailing list