automatic version update by autodist [release 4.4.6-1mamba;Sun Mar 07 2021]

This commit is contained in:
Automatic Build System 2024-01-06 07:30:35 +01:00
parent 993b970398
commit c2d89c9551

View File

@ -3,14 +3,14 @@
%define cmdgrp nagioscmd
Name: nagios
Version: 4.2.4
Version: 4.4.6
Release: 1mamba
Summary: An Open Source host, service and network monitoring program
Group: Network/Monitoring
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.nagios.org/
URL: https://www.nagios.org/
Source0: http://downloads.sourceforge.net/sourceforge/nagios/nagios-%{version}.tar.gz
Source1: nagios.htaccess
Source2: nagios.service
@ -40,7 +40,6 @@ BuildRequires: perl(Test::Simple)
Requires: mailx
Requires: nagios-plugins
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
NAGIOS is an application, system and network monitoring application.
@ -71,6 +70,8 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package provides include files that Nagios-related applications may compile against.
#% debug_package
%prep
%setup -q
#%patch0 -p1
@ -93,7 +94,8 @@ This package provides include files that Nagios-related applications may compile
--enable-embedded-perl \
--enable-event-broker \
--enable-nanosleep \
--with-init-dir=%{_initrddir} \
--with-init-type=systemd \
--with-inetd-type=systemd \
--with-cgiurl=/%{name}/cgi-bin \
--with-htmlurl=/%{name} \
--with-httpd_conf=%{_sysconfdir}/httpd/httpd.d \
@ -106,7 +108,7 @@ This package provides include files that Nagios-related applications may compile
--with-template-objects \
--with-template-extinfo \
--with-mail=/bin/mailx \
STRIP=/bin/true
STRIP=/bin/false
# --with-command-group=%{cmdgrp} \
@ -114,9 +116,9 @@ This package provides include files that Nagios-related applications may compile
sed -e "s|@libdir@/|%{_libdir}/|" %{S:1} > %{name}.htaccess
sed -i -e "\
s|\(NagiosCommandFile=\).*|\1%{_localstatedir}/spool/%{name}/rw/nagios.cmd|" \
daemon-init
#sed -i -e "\
#s|\(NagiosCommandFile=\).*|\1%{_localstatedir}/spool/%{name}/rw/nagios.cmd|" \
# daemon-init
cd sample-config
sed -i \
@ -153,6 +155,7 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/httpd/httpd.d
make \
DESTDIR=%{buildroot} \
STRIP=/bin/true \
INSTALL_OPTS="" COMMAND_OPTS="" INIT_OPTS="" \
CGIDIR="%{_libdir}/%{name}/cgi-bin" \
CFGDIR="%{_sysconfdir}/%{name}" fullinstall
@ -266,8 +269,6 @@ exit 0
%dir %{_sysconfdir}/nagios/conf.d
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/nagios/*.cfg
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/objects/*.cfg
#%dir %{_sysconfdir}/%{name}/objects
#%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/objects/*.cfg
%dir %{_sysconfdir}/nagios/private
%attr(640,root,%{nsgrp}) %config(noreplace) %{_sysconfdir}/nagios/private/resource.cfg
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
@ -284,8 +285,8 @@ exit 0
%defattr(-,root,root)
%dir %{_datadir}/%{name}/html
%{_datadir}/%{name}/html/*
%config(noreplace) %{_datadir}/%{name}/html/config.inc.php
%config(noreplace) %{_datadir}/%{name}/html/images/sblogo.png
#%config(noreplace) %{_datadir}/%{name}/html/config.inc.php
#%config(noreplace) %{_datadir}/%{name}/html/images/sblogo.png
%dir %{_libdir}/nagios/cgi-bin
%{_libdir}/nagios/cgi-bin/*
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/nagios.conf
@ -300,6 +301,9 @@ exit 0
%{_libdir}/nagios/libnagios.a
%changelog
* Sun Mar 07 2021 Automatic Build System <autodist@mambasoft.it> 4.4.6-1mamba
- automatic version update by autodist
* Sat Nov 18 2017 Automatic Build System <autodist@mambasoft.it> 4.2.4-1mamba
- automatic update by autodist