Summary: Nagios remote plugin execution service/plugin
Summary(pl.UTF-8): Demon i wtyczka zdalnego wywoływania wtyczek Nagios
Name: nagios-nrpe
-Version: 2.15
-Release: 6
+Version: 4.0.3
+Release: 1
License: GPL v2
Group: Networking
-Source0: http://downloads.sourceforge.net/nagios/nrpe-%{version}.tar.gz
-# Source0-md5: 3921ddc598312983f604541784b35a50
+Source0: https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-%{version}/nrpe-%{version}.tar.gz
+# Source0-md5: 42252d3c721c87ebb5e38b748f187e8d
Source1: nrpe.init
Source2: nrpe-command.cfg
Source3: %{name}.tmpfiles
Source4: commands.cfg
Patch0: %{name}-config.patch
Patch1: nrpe_check_control.patch
-Patch2: CVE-2014-2913-nasty-metacharacters.patch
-URL: http://www.nagios.org/
+URL: https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-Nagios-Remote-Plugin-Executor/details
BuildRequires: openssl-devel
BuildRequires: openssl-tools
BuildRequires: rpmbuild(macros) >= 1.647
Requires(post,preun): /sbin/chkconfig
-Requires: nagios-common
-Requires: rc-scripts
+Requires: nagios-common >= 4.3.3-2
+Requires: rc-scripts >= 0.4.1.26
Provides: nagios-core
Obsoletes: netsaint-nrpe
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/nagios
%define _datadir %{_prefix}/share/%{name}
%define _plugindir %{_libdir}/nagios/plugins
-%define _libexecdir %{_plugindir}
%define _localstatedir %{_var}/log/nagios
%define nsport 5666
%undos contrib/nrpe_check_control.c
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
%configure \
--with-nrpe-port=%{nsport} \
--with-nrpe-user=nagios \
--with-nrpe-group=nagios \
+ --with-piddir=/var/run/nrpe \
--enable-ssl \
--with-ssl-lib=%{_libdir} \
--enable-command-args
%files
%defattr(644,root,root,755)
-%doc Changelog LEGAL README* SECURITY
+%doc CHANGELOG.md LEGAL README* SECURITY.md update-cfg.pl
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
-%attr(750,root,nagios) %dir %{_sysconfdir}/nrpe.d
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.d/commands.cfg
%attr(755,root,root) %{_sbindir}/nrpe
%attr(754,root,root) /etc/rc.d/init.d/nrpe