Author: glen                         Date: Tue Feb 22 12:56:41 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- 2.0b1 work in progress

---- Files affected:
SPECS:
   nagios.spec (1.36 -> 1.36.2.1) 

---- Diffs:

================================================================
Index: SPECS/nagios.spec
diff -u SPECS/nagios.spec:1.36 SPECS/nagios.spec:1.36.2.1
--- SPECS/nagios.spec:1.36      Mon Jan 17 11:40:26 2005
+++ SPECS/nagios.spec   Tue Feb 22 13:56:35 2005
@@ -10,16 +10,18 @@
 #   - cgi.cfg contains sensitive information
 #   - /etc/nagios/*.cfg should be readable by nagios (and webserver if -cgi is 
used)
 #   - all files should be owned by root as there's no write permission needed
+
 Summary:       Host/service/network monitoring program
 Summary(pl):   Program do monitorowania serwerów/usług/sieci
 Summary(pt_BR):        Programa para monitoraçăo de máquinas e serviços
 Name:          nagios
-Version:       1.2
-Release:       7.4
+Version:       2.0
+%define        _rc     b1
+Release:       0.%{_rc}.1.3
 License:       GPL v2
 Group:         Networking
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 414d70e5269d5b8d7c21bf3ee129309f
+Source0:       
http://dl.sourceforge.net/%{name}/%{name}-%{version}%{?_rc}.tar.gz
+# Source0-md5: 994a89bd6d344f72a0520b72fb615857
 Source1:       %{name}-apache.conf
 Source2:       %{name}.init
 Source3:       http://dl.sourceforge.net/nagios/imagepak-base.tar.gz
@@ -103,7 +105,7 @@
 Group:         Networking
 # for dirs... and accessing local logs(?)
 Requires:      %{name} = %{version}-%{release}
-Requires:      apache
+Requires:      webserver
 
 %description cgi
 CGI webinterface for Nagios.
@@ -131,7 +133,7 @@
 aplicativos para o Nagios.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}%{?_rc}
 %{?with_pgsql:%patch0 -p1}
 %patch1 -p0
 %patch2 -p1
@@ -155,11 +157,11 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d 
$RPM_BUILD_ROOT{/etc/{rc.d/init.d,httpd},%{_includedir}/%{name},%{_libdir}/%{name}/plugins}
 \
-       $RPM_BUILD_ROOT{%{_var}/log/%{name},%{_localstatedir}}
+       
$RPM_BUILD_ROOT{%{_var}/log/%{name},%{_localstatedir},%{_sysconfdir}/private}
 
-install common/locations.h     $RPM_BUILD_ROOT%{_includedir}/%{name}
+install include/locations.h    $RPM_BUILD_ROOT%{_includedir}/%{name}
 
-%{__make} install install-html install-config install-init install-commandmode 
fullinstall \
+%{__make} install install-html install-init install-commandmode fullinstall \
        DESTDIR=$RPM_BUILD_ROOT \
        INSTALL_OPTS="" \
        INIT_OPTS="" \
@@ -168,13 +170,18 @@
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/%{name}.conf
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
-### Install logos
-tar -xvz -C $RPM_BUILD_ROOT%{_datadir}/images/logos -f %{SOURCE3}
+# install templated configuration files
+install sample-config/{nagios,cgi}.cfg $RPM_BUILD_ROOT%{_sysconfdir}
+install sample-config/resource.cfg $RPM_BUILD_ROOT%{_sysconfdir}/private
+install 
sample-config/template-object/{bigger,checkcommands,minimal,misccommands}.cfg 
$RPM_BUILD_ROOT%{_sysconfdir}
 
-# rename configs without sample extension
-for f in $RPM_BUILD_ROOT%{_sysconfdir}/*-sample; do
-       mv $f ${f%%-sample}
-done
+# install CGIs
+
+# install event handlers
+cp -a contrib/eventhandlers $RPM_BUILD_ROOT%{_libdir}/%{name}/eventhandlers
+
+# Install logos
+tar -xvz -C $RPM_BUILD_ROOT%{_datadir}/images/logos -f %{SOURCE3}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -255,7 +262,7 @@
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog README* UPGRADING contrib/database
+%doc Changelog README* UPGRADING INSTALLING LICENSE 
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(751,root,nagios) %dir %{_sysconfdir}
 %attr(644,root,nagios) %config(noreplace) %verify(not size mtime md5) 
%{_sysconfdir}/[!c]*
@@ -263,11 +270,15 @@
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/plugins
 %attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/nagiostats
 %attr(771,nagios,http) %{_var}/log/%{name}
 %attr(775,nagios,nagios) %dir %{_localstatedir}
 %attr(775,nagios,nagios) %dir %{_localstatedir}/archives
 %attr(2775,nagios,http) %dir %{_localstatedir}/rw
 
+%defattr(755,root,root,755)
+%{_libdir}/%{name}/eventhandlers
+
 %files cgi
 %defattr(644,root,root,755)
 %attr(640,root,http) %config(noreplace) %verify(not size mtime md5) 
/etc/httpd/%{name}.conf
@@ -287,6 +298,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36.2.1  2005/02/22 12:56:35  glen
+- 2.0b1 work in progress
+
 Revision 1.36  2005/01/17 10:40:26  glen
 - rename configs from -sample
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/nagios.spec?r1=1.36&r2=1.36.2.1&f=u


_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to