]> git.pld-linux.org Git - packages/nagios-nrpe.git/blobdiff - nagios-nrpe.spec
Up to 4.1.0
[packages/nagios-nrpe.git] / nagios-nrpe.spec
index 0b34add64ce21be1076044c75cbc8b8bbcfff0aa..20460adf20c2e887a5b4e13b7104ef0835bdc764 100644 (file)
@@ -1,24 +1,24 @@
 Summary:       Nagios remote plugin execution service/plugin
 Summary(pl.UTF-8):     Demon i wtyczka zdalnego wywoływania wtyczek Nagios
 Name:          nagios-nrpe
-Version:       3.2.0
+Version:       4.1.0
 Release:       1
 License:       GPL v2
 Group:         Networking
-Source0:       http://downloads.sourceforge.net/nagios/nrpe-%{version}.tar.gz
-# Source0-md5: 5c81355bcd8b9929ca904879075e1ff5
+Source0:       https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-%{version}/nrpe-%{version}.tar.gz
+# Source0-md5: ace32f8d41e9b9138ea5d40b8beed274
 Source1:       nrpe.init
 Source2:       nrpe-command.cfg
 Source3:       %{name}.tmpfiles
 Source4:       commands.cfg
 Patch0:                %{name}-config.patch
 Patch1:                nrpe_check_control.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:      nagios-common >= 4.3.3-2
 Requires:      rc-scripts >= 0.4.1.26
 Provides:      nagios-core
 Obsoletes:     netsaint-nrpe
@@ -69,6 +69,8 @@ na innych komputerach za pomocą demona nrpe.
 %patch1 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
 %configure \
        --with-nrpe-port=%{nsport} \
        --with-nrpe-user=nagios \
@@ -109,7 +111,8 @@ if [ "$1" = "0" ] ; then
        /sbin/chkconfig --del nrpe
 fi
 
-%triggerpostun -- %{name} < 2.15-5
+%triggerpostun -- %{name} < 2.6-1.1
+# < 2.15-5
 # skip *this* trigger on downgrade
 [ $1 -le 1 ] && exit 0
 
@@ -129,7 +132,7 @@ sed -i -e '/^command\[/d' %{_sysconfdir}/nrpe.cfg
 
 %service nrpe restart
 
-%triggerpostun -- %{name} < 2.6-1.1
+# < 2.6-1.1
 %{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
 
 %triggerpostun -n nagios-plugin-check_nrpe -- nagios-plugin-check_nrpe < 2.12-7.1
@@ -143,7 +146,6 @@ fi
 %defattr(644,root,root,755)
 %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
This page took 0.094962 seconds and 4 git commands to generate.