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