Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. # diff -up monitoring-plugins.spec.ORIG monitoring-plugins.spec
  2. --- monitoring-plugins.spec.ORIG 2014-10-31 06:37:17.204000000 -0400
  3. +++ monitoring-plugins.spec 2014-10-31 06:52:27.375000000 -0400
  4. @@ -1,23 +1,24 @@
  5. %global _hardened_build 1
  6. -%global previous_name nagios-plugins
  7. +#%global previous_name nagios-plugins
  8. +%global previous_name monitoring-plugins
  9.  
  10. Name: monitoring-plugins
  11. -Version: 1.5
  12. -Release: 4%{?dist}
  13. +Version: 2.1
  14. +Release: 0%{?dist}
  15. Summary: Host/service/network monitoring program plugins for a variety of different systems
  16.  
  17. Group: Applications/System
  18. License: GPLv2+
  19. URL: https://www.%{name}.org/
  20. Source0: https://www.%{name}.org/download/%{previous_name}-%{version}.tar.gz
  21. -Source1: %{name}.README.Fedora
  22. -Patch2: %{name}-0002-Remove-assignment-of-not-parsed-to-jitter.patch
  23. -Patch4: %{name}-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch
  24. -# https://bugzilla.redhat.com/512559
  25. -Patch5: %{name}-0005-Prevent-check_swap-from-returning-OK-if-no-swap-acti.patch
  26. -Patch7: %{name}-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
  27. -# https://bugzilla.redhat.com/913085
  28. -Patch10: %{name}-0010-fix-smart-attribute-comparison.patch
  29. +# Source1: %{name}.README.Fedora
  30. +# Patch2: %{name}-0002-Remove-assignment-of-not-parsed-to-jitter.patch
  31. +# Patch4: %{name}-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch
  32. +# # https://bugzilla.redhat.com/512559
  33. +# Patch5: %{name}-0005-Prevent-check_swap-from-returning-OK-if-no-swap-acti.patch
  34. +# Patch7: %{name}-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
  35. +# # https://bugzilla.redhat.com/913085
  36. +# Patch10: %{name}-0010-fix-smart-attribute-comparison.patch
  37.  
  38. BuildRequires: autoconf automake
  39. BuildRequires: openldap-devel
  40. @@ -87,7 +88,7 @@ Requires: %{name}-mysql
  41. Requires: %{name}-nagios
  42. Requires: %{name}-nt
  43. Requires: %{name}-ntp
  44. -Requires: %{name}-ntp-perl
  45. +#Requires: %{name}-ntp-perl
  46. Requires: %{name}-nwstat
  47. Requires: %{name}-oracle
  48. Requires: %{name}-overcr
  49. @@ -387,15 +388,15 @@ Requires: monitoring-plugins = %{version
  50. %description ntp
  51. Provides check_ntp support.
  52.  
  53. -%package ntp-perl
  54. -Summary: Monitoring Plugin - check_ntp.pl
  55. -Group: Applications/System
  56. -Requires: monitoring-plugins = %{version}-%{release}
  57. -Requires: %{_sbindir}/ntpdate
  58. -Requires: %{_sbindir}/ntpq
  59. +# %package ntp-perl
  60. +# Summary: Monitoring Plugin - check_ntp.pl
  61. +# Group: Applications/System
  62. +# Requires: monitoring-plugins = %{version}-%{release}
  63. +# Requires: %{_sbindir}/ntpdate
  64. +# Requires: %{_sbindir}/ntpq
  65.  
  66. -%description ntp-perl
  67. -Provides check_ntp.pl support.
  68. +# %description ntp-perl
  69. +# Provides check_ntp.pl support.
  70.  
  71. %package nwstat
  72. Summary: Monitoring Plugin - check_nwstat
  73. @@ -584,11 +585,11 @@ Provides check_wave support.
  74. %prep
  75. %setup -qn %{previous_name}-%{version}
  76.  
  77. -%patch2 -p1 -b .not_parsed
  78. -%patch4 -p1 -b .no_need_fo_fix_paths
  79. -%patch5 -p1 -b .fix_missing_swap
  80. -%patch7 -p1 -b .ext_ntp_cmds
  81. -%patch10 -p1 -b .ssd_smart_params
  82. +# %patch2 -p1 -b .not_parsed
  83. +# %patch4 -p1 -b .no_need_fo_fix_paths
  84. +# %patch5 -p1 -b .fix_missing_swap
  85. +# %patch7 -p1 -b .ext_ntp_cmds
  86. +# %patch10 -p1 -b .ssd_smart_params
  87.  
  88. %build
  89. %configure \
  90. @@ -616,10 +617,10 @@ make check_pgsql
  91.  
  92. cd ..
  93.  
  94. -mv plugins-scripts/check_ntp.pl plugins-scripts/check_ntp.pl.in
  95. -gawk -f plugins-scripts/subst plugins-scripts/check_ntp.pl.in > plugins-scripts/check_ntp.pl
  96. +# mv plugins-scripts/check_ntp.pl plugins-scripts/check_ntp.pl.in
  97. +# gawk -f plugins-scripts/subst plugins-scripts/check_ntp.pl.in > plugins-scripts/check_ntp.pl
  98.  
  99. -cp %{SOURCE1} ./README.Fedora
  100. +# cp %{SOURCE1} ./README.Fedora
  101.  
  102. %install
  103. sed -i 's,^MKINSTALLDIRS.*,MKINSTALLDIRS = ../mkinstalldirs,' po/Makefile
  104. @@ -628,7 +629,7 @@ install -m 0755 plugins-root/check_icmp
  105. install -m 0755 plugins-root/check_dhcp %{buildroot}/%{_libdir}/monitoring/plugins
  106. install -m 0755 plugins/check_ide_smart %{buildroot}/%{_libdir}/monitoring/plugins
  107. install -m 0755 plugins/check_ldap %{buildroot}/%{_libdir}/monitoring/plugins
  108. -install -m 0755 plugins-scripts/check_ntp.pl %{buildroot}/%{_libdir}/monitoring/plugins
  109. +#install -m 0755 plugins-scripts/check_ntp.pl %{buildroot}/%{_libdir}/monitoring/plugins
  110. install -m 0755 plugins/check_radius %{buildroot}/%{_libdir}/monitoring/plugins
  111. install -m 0755 plugins/check_pgsql %{buildroot}/%{_libdir}/monitoring/plugins
  112.  
  113. @@ -756,8 +757,8 @@ chmod 644 %{buildroot}/%{_libdir}/monito
  114. %{_libdir}/monitoring/plugins/check_ntp_peer
  115. %{_libdir}/monitoring/plugins/check_ntp_time
  116.  
  117. -%files ntp-perl
  118. -%{_libdir}/monitoring/plugins/check_ntp.pl
  119. +# %files ntp-perl
  120. +# %{_libdir}/monitoring/plugins/check_ntp.pl
  121.  
  122. %files nwstat
  123. %{_libdir}/monitoring/plugins/check_nwstat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement