Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # diff -up monitoring-plugins.spec.ORIG monitoring-plugins.spec
- --- monitoring-plugins.spec.ORIG 2014-10-31 06:37:17.204000000 -0400
- +++ monitoring-plugins.spec 2014-10-31 06:52:27.375000000 -0400
- @@ -1,23 +1,24 @@
- %global _hardened_build 1
- -%global previous_name nagios-plugins
- +#%global previous_name nagios-plugins
- +%global previous_name monitoring-plugins
- Name: monitoring-plugins
- -Version: 1.5
- -Release: 4%{?dist}
- +Version: 2.1
- +Release: 0%{?dist}
- Summary: Host/service/network monitoring program plugins for a variety of different systems
- Group: Applications/System
- License: GPLv2+
- URL: https://www.%{name}.org/
- Source0: https://www.%{name}.org/download/%{previous_name}-%{version}.tar.gz
- -Source1: %{name}.README.Fedora
- -Patch2: %{name}-0002-Remove-assignment-of-not-parsed-to-jitter.patch
- -Patch4: %{name}-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch
- -# https://bugzilla.redhat.com/512559
- -Patch5: %{name}-0005-Prevent-check_swap-from-returning-OK-if-no-swap-acti.patch
- -Patch7: %{name}-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
- -# https://bugzilla.redhat.com/913085
- -Patch10: %{name}-0010-fix-smart-attribute-comparison.patch
- +# Source1: %{name}.README.Fedora
- +# Patch2: %{name}-0002-Remove-assignment-of-not-parsed-to-jitter.patch
- +# Patch4: %{name}-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch
- +# # https://bugzilla.redhat.com/512559
- +# Patch5: %{name}-0005-Prevent-check_swap-from-returning-OK-if-no-swap-acti.patch
- +# Patch7: %{name}-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
- +# # https://bugzilla.redhat.com/913085
- +# Patch10: %{name}-0010-fix-smart-attribute-comparison.patch
- BuildRequires: autoconf automake
- BuildRequires: openldap-devel
- @@ -87,7 +88,7 @@ Requires: %{name}-mysql
- Requires: %{name}-nagios
- Requires: %{name}-nt
- Requires: %{name}-ntp
- -Requires: %{name}-ntp-perl
- +#Requires: %{name}-ntp-perl
- Requires: %{name}-nwstat
- Requires: %{name}-oracle
- Requires: %{name}-overcr
- @@ -387,15 +388,15 @@ Requires: monitoring-plugins = %{version
- %description ntp
- Provides check_ntp support.
- -%package ntp-perl
- -Summary: Monitoring Plugin - check_ntp.pl
- -Group: Applications/System
- -Requires: monitoring-plugins = %{version}-%{release}
- -Requires: %{_sbindir}/ntpdate
- -Requires: %{_sbindir}/ntpq
- +# %package ntp-perl
- +# Summary: Monitoring Plugin - check_ntp.pl
- +# Group: Applications/System
- +# Requires: monitoring-plugins = %{version}-%{release}
- +# Requires: %{_sbindir}/ntpdate
- +# Requires: %{_sbindir}/ntpq
- -%description ntp-perl
- -Provides check_ntp.pl support.
- +# %description ntp-perl
- +# Provides check_ntp.pl support.
- %package nwstat
- Summary: Monitoring Plugin - check_nwstat
- @@ -584,11 +585,11 @@ Provides check_wave support.
- %prep
- %setup -qn %{previous_name}-%{version}
- -%patch2 -p1 -b .not_parsed
- -%patch4 -p1 -b .no_need_fo_fix_paths
- -%patch5 -p1 -b .fix_missing_swap
- -%patch7 -p1 -b .ext_ntp_cmds
- -%patch10 -p1 -b .ssd_smart_params
- +# %patch2 -p1 -b .not_parsed
- +# %patch4 -p1 -b .no_need_fo_fix_paths
- +# %patch5 -p1 -b .fix_missing_swap
- +# %patch7 -p1 -b .ext_ntp_cmds
- +# %patch10 -p1 -b .ssd_smart_params
- %build
- %configure \
- @@ -616,10 +617,10 @@ make check_pgsql
- cd ..
- -mv plugins-scripts/check_ntp.pl plugins-scripts/check_ntp.pl.in
- -gawk -f plugins-scripts/subst plugins-scripts/check_ntp.pl.in > plugins-scripts/check_ntp.pl
- +# mv plugins-scripts/check_ntp.pl plugins-scripts/check_ntp.pl.in
- +# gawk -f plugins-scripts/subst plugins-scripts/check_ntp.pl.in > plugins-scripts/check_ntp.pl
- -cp %{SOURCE1} ./README.Fedora
- +# cp %{SOURCE1} ./README.Fedora
- %install
- sed -i 's,^MKINSTALLDIRS.*,MKINSTALLDIRS = ../mkinstalldirs,' po/Makefile
- @@ -628,7 +629,7 @@ install -m 0755 plugins-root/check_icmp
- install -m 0755 plugins-root/check_dhcp %{buildroot}/%{_libdir}/monitoring/plugins
- install -m 0755 plugins/check_ide_smart %{buildroot}/%{_libdir}/monitoring/plugins
- install -m 0755 plugins/check_ldap %{buildroot}/%{_libdir}/monitoring/plugins
- -install -m 0755 plugins-scripts/check_ntp.pl %{buildroot}/%{_libdir}/monitoring/plugins
- +#install -m 0755 plugins-scripts/check_ntp.pl %{buildroot}/%{_libdir}/monitoring/plugins
- install -m 0755 plugins/check_radius %{buildroot}/%{_libdir}/monitoring/plugins
- install -m 0755 plugins/check_pgsql %{buildroot}/%{_libdir}/monitoring/plugins
- @@ -756,8 +757,8 @@ chmod 644 %{buildroot}/%{_libdir}/monito
- %{_libdir}/monitoring/plugins/check_ntp_peer
- %{_libdir}/monitoring/plugins/check_ntp_time
- -%files ntp-perl
- -%{_libdir}/monitoring/plugins/check_ntp.pl
- +# %files ntp-perl
- +# %{_libdir}/monitoring/plugins/check_ntp.pl
- %files nwstat
- %{_libdir}/monitoring/plugins/check_nwstat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement