update to 2.0.1 [release 2.0.1-1mamba;Sun May 11 2014]
This commit is contained in:
parent
498a5ccc90
commit
01b7df73c2
@ -1,13 +1,13 @@
|
||||
Name: nagios-plugins
|
||||
Version: 1.4.16
|
||||
Release: 2mamba
|
||||
Version: 2.0.1
|
||||
Release: 1mamba
|
||||
Summary: Host/service/network monitoring program plugins for Nagios
|
||||
Group: Network/Monitoring
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
@ -38,17 +38,8 @@ This package contains the basic plugins necessary for use with the Nagios packag
|
||||
|
||||
%prep
|
||||
%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
|
||||
#: << CBLOCK
|
||||
export PATH="/usr/sbin:$PATH"
|
||||
%configure \
|
||||
PATH_TO_FPING=%{_sbindir}/fping \
|
||||
@ -69,20 +60,12 @@ export PATH="/usr/sbin:$PATH"
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
pushd contrib
|
||||
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
|
||||
%makeinstall
|
||||
|
||||
make install \
|
||||
AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=%{buildroot} INSTALL=/bin/install
|
||||
# remove unpackaged plugins
|
||||
rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_uptime
|
||||
|
||||
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%clean
|
||||
@ -100,6 +83,9 @@ chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
|
||||
#CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg
|
||||
|
||||
%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
|
||||
- don't require nagios to allow nrpe only installations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user