diff --git a/nagios-plugins-0011-fix-perl-shebang.patch b/nagios-plugins-0011-fix-perl-shebang.patch new file mode 100644 index 0000000..e98132e --- /dev/null +++ b/nagios-plugins-0011-fix-perl-shebang.patch @@ -0,0 +1,12 @@ +diff -up nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am.ntp_pl nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am +--- nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am.ntp_pl 2018-02-14 13:26:31.059759029 +0100 ++++ nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am 2018-02-14 13:26:07.819777787 +0100 +@@ -14,7 +14,7 @@ SUFFIXES = .pl .sh + VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t + + libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \ +- check_log check_oracle check_rpc check_sensors check_wave \ ++ check_log check_ntp check_oracle check_rpc check_sensors check_wave \ + check_ifstatus check_ifoperstatus check_mailq check_file_age \ + utils.sh utils.pm + diff --git a/nagios-plugins.spec b/nagios-plugins.spec index 8fea71c..fd8b31b 100644 --- a/nagios-plugins.spec +++ b/nagios-plugins.spec @@ -19,6 +19,7 @@ Patch1: nagios-plugins-0001-Fix-mysql-f27.patch Patch2: nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch Patch7: nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch Patch10: nagios-plugins-0010-include-mysql-version-header.patch +Patch11: nagios-plugins-0011-fix-perl-shebang.patch BuildRequires: %{_bindir}/mailq BuildRequires: %{_bindir}/ps @@ -594,6 +595,9 @@ Provides check_wave support for Nagios. %if 0%{?rhel} > 7 %patch10 -p1 -b .mysqlversionh %endif +%if 0%{?fedora} >27 +%patch11 -p1 -b .fix_perl_shebang +%endif %build @@ -845,6 +849,7 @@ chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm * Wed Feb 14 2018 Karsten Hopp - 2.2.1-12 - fix conditionals - include mysql_version for MYSQL_PORT macro +- fix perl shebang in plugin-scripts/check_ntp * Thu Feb 08 2018 Fedora Release Engineering - 2.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild