update to 2.0.1 [release 2.0.1-1mamba;Sun May 11 2014]

This commit is contained in:
Davide Madrisan 2024-01-06 07:31:08 +01:00
parent 498a5ccc90
commit 01b7df73c2

View File

@ -1,13 +1,13 @@
Name: nagios-plugins Name: nagios-plugins
Version: 1.4.16 Version: 2.0.1
Release: 2mamba Release: 1mamba
Summary: Host/service/network monitoring program plugins for Nagios Summary: Host/service/network monitoring program plugins for Nagios
Group: Network/Monitoring Group: Network/Monitoring
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://nagiosplugins.org/ URL: http://nagiosplugins.org/
Source0: http://downloads.sourceforge.net/sourceforge/nagiosplug/%{name}-%{version}.tar.gz Source0: http://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
Patch0: %{name}-1.4.16-undef_gets.patch Patch0: %{name}-1.4.16-undef_gets.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -38,17 +38,8 @@ This package contains the basic plugins necessary for use with the Nagios packag
%prep %prep
%setup -q %setup -q
#-D -T
#: << CBLOCK
%patch0 -p1
# fix strange perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
%build %build
#: << CBLOCK
export PATH="/usr/sbin:$PATH" export PATH="/usr/sbin:$PATH"
%configure \ %configure \
PATH_TO_FPING=%{_sbindir}/fping \ PATH_TO_FPING=%{_sbindir}/fping \
@ -69,20 +60,12 @@ export PATH="/usr/sbin:$PATH"
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
pushd contrib %makeinstall
find . -type f -exec /usr/bin/perl \
-e 's/^#!\/usr\/local\/bin\/perl/#!\/usr\/bin\/perl/gi' -p -i \{\} \;
find . -type f -exec /usr/bin/perl \
-e 's/^#!\/nyet\/bin\/perl/#!\/usr\/bin\/perl/gi' -p -i \{\} \;
find . -type f -exec /usr/bin/perl \
-e 's/^#!\/bin\/perl/#!\/usr\/bin\/perl/gi' -p -i \{\} \;
popd
make install \ # remove unpackaged plugins
AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=%{buildroot} INSTALL=/bin/install rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_uptime
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
%find_lang %{name} %find_lang %{name}
%clean %clean
@ -100,6 +83,9 @@ chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
#CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg #CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg
%changelog %changelog
* Sun May 11 2014 Davide Madrisan <davide.madrisan@gmail.com> 2.0.1-1mamba
- update to 2.0.1
* Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.16-2mamba * Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.16-2mamba
- don't require nagios to allow nrpe only installations - don't require nagios to allow nrpe only installations