]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- resource.cfg and nagios.cfg also based on upstream version
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 3 Aug 2009 15:54:48 +0000 (15:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cgi.cfg.patch -> 1.2
    config.patch -> 1.2
    nagios.spec -> 1.127

cgi.cfg.patch [deleted file]
config.patch
nagios.spec

diff --git a/cgi.cfg.patch b/cgi.cfg.patch
deleted file mode 100644 (file)
index b2bb52d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
---- nagios-3.1.2/sample-config/cgi.cfg.in      2009-08-03 18:30:03.896753761 +0300
-+++ svn/nagios-config/trunk/cgi.cfg    2009-08-03 18:25:38.142614386 +0300
-@@ -1,8 +1,6 @@
- #################################################################
- #
--# CGI.CFG - Sample CGI Configuration File for Nagios @VERSION@
--#
--# Last Modified: 06-17-2009
-+# CGI.CFG - CGI Configuration File for Nagios
- #
- #################################################################
-@@ -46,9 +45,9 @@
- # This option determines whether or not a context-sensitive
- # help icon will be displayed for most of the CGIs.
- # Values: 0 = disables context-sensitive help
- #         1 = enables context-sensitive help
--show_context_help=0
-+show_context_help=1
-@@ -269,7 +233,7 @@
- # OS and distribution, so you may have to tweak this to
- # work on your system.
--ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
-+ping_syntax=/usr/bin/ping -n -U -c 5 $HOSTADDRESS$
-@@ -359,4 +323,4 @@
- #splunk_url=http://127.0.0.1:8000/
--
-+# vim:ts=8:sw=8:syn=cfg
index b2bb52d98594e9d3ea2e5166418cfb5abd5c2bfb..7cc6b54b66eab27d4431a516546343f2715b8210 100644 (file)
  
 -
 +# vim:ts=8:sw=8:syn=cfg
+--- nagios-3.1.2/sample-config/resource.cfg.in 2009-08-03 18:41:56.770015075 +0300
++++ svn/nagios-config/trunk/resource.cfg       2009-08-03 18:42:15.413396493 +0300
+@@ -1,8 +1,6 @@
+ ###########################################################################
+ #
+-# RESOURCE.CFG - Sample Resource File for Nagios @VERSION@
+-#
+-# Last Modified: 09-10-2003
++# RESOURCE.CFG - Resource File for Nagios
+ #
+ # You can define $USERx$ macros in this file, which can in turn be used
+ # in command definitions in your host config file(s).  $USERx$ macros are
+--- nagios-3.1.2/sample-config/nagios.cfg.in~  2009-08-03 18:45:46.405840760 +0300
++++ nagios-3.1.2/sample-config/nagios.cfg.in   2009-08-03 18:45:46.405840760 +0300
+@@ -1,13 +1,11 @@
+ ##############################################################################
+ #
+-# NAGIOS.CFG - Sample Main Config File for Nagios @VERSION@
++# NAGIOS.CFG - Main Config File for Nagios
+ #
+ # Read the documentation for more information on this configuration
+ # file.  I've provided some comments here, but things may not be so
+ # clear without further explanation.
+ #
+-# Last Modified: 12-14-2008
+-#
+ ##############################################################################
+@@ -16,7 +14,7 @@
+ # for historical purposes.  This should be the first option specified
+ # in the config file!!!
+-log_file=@localstatedir@/nagios.log
++log_file=/var/log/nagios/nagios.log
+@@ -49,6 +47,10 @@
+ # extension) in a particular directory by using the cfg_dir
+ # directive as shown below:
++cfg_dir=/etc/nagios/plugins
++cfg_dir=/etc/nagios/local
++#cfg_dir=etc/nagios/objects
++
+ #cfg_dir=@sysconfdir@/servers
+ #cfg_dir=@sysconfdir@/printers
+ #cfg_dir=@sysconfdir@/switches
+@@ -264,7 +266,7 @@
+ # This is the directory where archived (rotated) log files should be
+ # placed (assuming you've chosen to do log rotation).
+-log_archive_path=@localstatedir@/archives
++log_archive_path=/var/log/nagios/archives
+@@ -850,8 +852,8 @@
+ # Performance data is only written to these files if the
+ # enable_performance_data option (above) is set to 1.
+-#host_perfdata_file=/tmp/host-perfdata
+-#service_perfdata_file=/tmp/service-perfdata
++#host_perfdata_file=@localstatedir@/host-perfdata
++#service_perfdata_file=@localstatedir@/service-perfdata
+@@ -1065,7 +1067,7 @@
+ #     strict-iso8601  (YYYY-MM-DDTHH:MM:SS)
+ #
+-date_format=us
++date_format=iso8601
+@@ -1306,7 +1308,7 @@
+ # DEBUG FILE
+ # This option determines where Nagios should write debugging information.
+-debug_file=@localstatedir@/nagios.debug
++debug_file=/var/log/nagios/nagios.debug
index 5e191bcdd4e1885bbb5b230c093d7c55261ec4bb..0f807264a64eee62d1ee450630b91ad21bcc4cec 100644 (file)
@@ -27,7 +27,7 @@ Patch1:               %{name}-iconv-in-libc.patch
 Patch2:                %{name}-webapps.patch
 Patch3:                %{name}-cgi-http_charset.patch
 Patch4:                %{name}-cmd-typo.patch
-Patch5:                cgi.cfg.patch
+Patch5:                config.patch
 URL:           http://www.nagios.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -198,7 +198,7 @@ sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE6} > lighttpd.conf
        s,/usr/local/nagios/share,@datadir@,g
        # we want all authorized users have default access
        s,=nagiosadmin,=*,g
-' sample-config/cgi.cfg.in
+' sample-config/*.cfg.in
 
 %build
 cp -f /usr/share/automake/config.sub .
@@ -245,7 +245,8 @@ install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}
 
 # install templated configuration files
 tar jxf %{SOURCE5} --strip-components=1 -C $RPM_BUILD_ROOT%{_sysconfdir}
-sed -i -e 's,%{_prefix}/lib/,%{_libdir}/,' $RPM_BUILD_ROOT%{_sysconfdir}/resource.cfg
+cp -a sample-config/resource.cfg $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a sample-config/nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}
 
 # webserver files
 install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
This page took 0.035562 seconds and 4 git commands to generate.