Author: glen                         Date: Tue Jan  3 09:39:35 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package sample-config/mrtg.cfg into -mrtggraphs

---- Files affected:
packages/nagios:
   nagios.spec (1.167 -> 1.168) 

---- Diffs:

================================================================
Index: packages/nagios/nagios.spec
diff -u packages/nagios/nagios.spec:1.167 packages/nagios/nagios.spec:1.168
--- packages/nagios/nagios.spec:1.167   Fri Sep 30 13:54:08 2011
+++ packages/nagios/nagios.spec Tue Jan  3 10:39:30 2012
@@ -150,6 +150,17 @@
 %description cgi -l pl.UTF-8
 Interfejs CGI dla Nagiosa.
 
+%package mrtggraphs
+Summary:       MRTG Graphs: Nagios Statistics
+Group:         Applications/Networking
+Requires:      %{name} = %{version}-%{release}
+Provides:      mrtg-start
+
+%description mrtggraphs
+This pacakge graphs several Nagios statistics which can be useful for
+debugging and trending purposes. The nagiostats binary is used to
+generate the data.
+
 %package doc
 Summary:       HTML Documentation for Nagios
 Group:         Documentation
@@ -275,7 +286,7 @@
 %endif
 
 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
-cp -a include/*.h      $RPM_BUILD_ROOT%{_includedir}/%{name}
+cp -p include/*.h      $RPM_BUILD_ROOT%{_includedir}/%{name}
 
 %{__make} install-unstripped \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -308,6 +319,10 @@
 cp -a sample-config $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name '*.in' | xargs rm
 
+# mrtg script
+install -d $RPM_BUILD_ROOT/etc/mrtg/conf.d
+cp -a sample-config/mrtg.cfg $RPM_BUILD_ROOT/etc/mrtg/conf.d/%{name}.cfg
+
 # Object data/cache files
 for i in {objects.{cache,precache},{retention,status}.dat,%{name}.{tmp,pid}}; 
do
        > $RPM_BUILD_ROOT%{_localstatedir}/$i
@@ -456,6 +471,10 @@
 
 %attr(770,root,nagios) %dir %{_var}/spool/%{name}
 
+%files mrtggraphs
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/mrtg/conf.d/%{name}.cfg
+
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}
@@ -505,6 +524,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.168  2012/01/03 09:39:30  glen
+- package sample-config/mrtg.cfg into -mrtggraphs
+
 Revision 1.167  2011/09/30 11:54:08  arekm
 - rel 1; works for me
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios/nagios.spec?r1=1.167&r2=1.168&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to