nagios-plugins.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. %{!?custom:%global custom 0}
  2. %define archive nagios-plugins
  3. %if %custom
  4. %define name %{archive}-custom
  5. %else
  6. %define name %{archive}
  7. %endif
  8. %define version 1.3.0
  9. %define release alpha1
  10. %define source http://nagiosplug.sourceforge.net/src/%{archive}-%{version}-%{release}.tar.gz
  11. Name: %{name}
  12. Version: %{version}
  13. Release: %{release}
  14. Copyright: GPL
  15. Source: %{source}
  16. BuildRoot: %{_tmppath}/%{name}-buildroot
  17. Prefix: %{_prefix}/lib/nagios/plugins
  18. Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net>
  19. Vendor: Nagios Plugin Development Group
  20. %if %custom
  21. Obsoletes: nagios-plugins nagios-plugins-extras
  22. %else
  23. Obsoletes: nagios-plugins-custom
  24. %endif
  25. AutoReqProv: no
  26. Summary: Host/service/network monitoring program plugins for Nagios
  27. Group: Applications/System
  28. %description
  29. Nagios is a program that will monitor hosts and services on your
  30. network, and to email or page you when a problem arises or is
  31. resolved. Nagios runs on a unix server as a background or daemon
  32. process, intermittently running checks on various services that you
  33. specify. The actual service checks are performed by separate "plugin"
  34. programs which return the status of the checks to Nagios.
  35. This package contains the basic plugins necessary for use with the
  36. Nagios package. This package should install cleanly on almost any
  37. RPM-based system.
  38. %package extras
  39. Summary: Plugins which depend on the presence of other packages
  40. Group: Applications/System
  41. %description extras
  42. Nagios is a program that will monitor hosts and services on your
  43. network, and to email or page you when a problem arises or is
  44. resolved. Nagios runs on a unix server as a background or daemon
  45. process, intermittently running checks on various services that you
  46. specify. The actual service checks are performed by separate "plugin"
  47. programs which return the status of the checks to Nagios.
  48. This package contains plugins which use additional libraries or system
  49. calls that are not installed on all systems. As a result, most users
  50. will need to install the '--nodeps' option when invoking `rpm`
  51. %prep
  52. %setup -q -n %{archive}-%{version}-%{release}
  53. %build
  54. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
  55. --prefix=%{_prefix}/lib/nagios/plugins \
  56. --libexecdir=%{_prefix}/lib/nagios/plugins \
  57. --with-cgiurl=/nagios/cgi-bin
  58. make
  59. %install
  60. make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=${RPM_BUILD_ROOT} install
  61. install -d ${RPM_BUILD_ROOT}/etc/nagios
  62. install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %files
  66. %defattr(-,root,root)
  67. %config(missingok,noreplace) /etc/nagios/command.cfg
  68. %doc INSTALL README REQUIREMENTS COPYING ChangeLog command.cfg
  69. %defattr(775,root,root)
  70. %dir %{_prefix}/lib/nagios/plugins
  71. %if %custom
  72. %{_prefix}/lib/nagios/plugins/*
  73. %else
  74. %{_prefix}/lib/nagios/plugins/check_by_ssh
  75. %{_prefix}/lib/nagios/plugins/check_breeze
  76. %{_prefix}/lib/nagios/plugins/check_disk
  77. %{_prefix}/lib/nagios/plugins/check_disk_smb
  78. %{_prefix}/lib/nagios/plugins/check_dns
  79. %{_prefix}/lib/nagios/plugins/check_dummy
  80. %{_prefix}/lib/nagios/plugins/check_flexlm
  81. %{_prefix}/lib/nagios/plugins/check_ftp
  82. %{_prefix}/lib/nagios/plugins/check_http
  83. %{_prefix}/lib/nagios/plugins/check_imap
  84. %{_prefix}/lib/nagios/plugins/check_ircd
  85. %{_prefix}/lib/nagios/plugins/check_load
  86. %{_prefix}/lib/nagios/plugins/check_log
  87. %{_prefix}/lib/nagios/plugins/check_mrtg
  88. %{_prefix}/lib/nagios/plugins/check_mrtgtraf
  89. %{_prefix}/lib/nagios/plugins/check_nagios
  90. %{_prefix}/lib/nagios/plugins/check_nntp
  91. %{_prefix}/lib/nagios/plugins/check_ntp
  92. %{_prefix}/lib/nagios/plugins/check_nwstat
  93. %{_prefix}/lib/nagios/plugins/check_oracle
  94. %{_prefix}/lib/nagios/plugins/check_overcr
  95. %{_prefix}/lib/nagios/plugins/check_ping
  96. %{_prefix}/lib/nagios/plugins/check_pop
  97. %{_prefix}/lib/nagios/plugins/check_procs
  98. %{_prefix}/lib/nagios/plugins/check_real
  99. %{_prefix}/lib/nagios/plugins/check_rpc
  100. %{_prefix}/lib/nagios/plugins/check_sensors
  101. %{_prefix}/lib/nagios/plugins/check_smtp
  102. %{_prefix}/lib/nagios/plugins/check_ssh
  103. %{_prefix}/lib/nagios/plugins/check_swap
  104. %{_prefix}/lib/nagios/plugins/check_tcp
  105. %{_prefix}/lib/nagios/plugins/check_time
  106. %{_prefix}/lib/nagios/plugins/check_udp
  107. %{_prefix}/lib/nagios/plugins/check_ups
  108. %{_prefix}/lib/nagios/plugins/check_users
  109. %{_prefix}/lib/nagios/plugins/check_vsz
  110. %{_prefix}/lib/nagios/plugins/check_wave
  111. %{_prefix}/lib/nagios/plugins/utils.pm
  112. %{_prefix}/lib/nagios/plugins/utils.sh
  113. %{_prefix}/lib/nagios/plugins/urlize
  114. %endif
  115. %if ! %custom
  116. %files extras
  117. %defattr(775,root,root)
  118. %{_prefix}/lib/nagios/plugins/check_fping
  119. %{_prefix}/lib/nagios/plugins/check_game
  120. %{_prefix}/lib/nagios/plugins/check_ldap
  121. %{_prefix}/lib/nagios/plugins/check_mysql
  122. %{_prefix}/lib/nagios/plugins/check_pgsql
  123. %{_prefix}/lib/nagios/plugins/check_radius
  124. %{_prefix}/lib/nagios/plugins/check_snmp
  125. %{_prefix}/lib/nagios/plugins/check_hpjd
  126. %endif
  127. %changelog
  128. * Wed Jan 17 2001 Karl DeBisschop <karl@debisschop.net> (1.2.9-1)
  129. - switch from /usr/libexec to /usr/lib because FHS has no libexec
  130. - use 'custom' macro define to merge with nagios-plugins-custom spec
  131. - add check_game to extras
  132. * Mon Jun 26 2000 Karl DeBisschop <karl@debisschop.net>
  133. - Release 1.2.8-4 (check_ping bug fix)
  134. - use bzip2 insted of gzip for mandrake compatibility
  135. * Thu Jun 22 2000 Karl DeBisschop <karl@debisschop.net>
  136. - Release 1.2.8-3 (bug fixes)
  137. - Add macros to spec where possible
  138. * Fri Jun 16 2000 Karl DeBisschop <karl@debisschop.net>
  139. - Release 1.2.8-2 (bug fixes)
  140. * Fri Jun 09 2000 Karl DeBisschop <karl@debisschop.net>
  141. - Release to 1.2.8
  142. * Wed Jun 07 2000 Karl DeBisschop <karl@debisschop.net>
  143. - Upgrade to 1.2.8pre7
  144. * Sat Jun 03 2000 Karl DeBisschop <karl@debisschop.net>
  145. - Upgraded to 1.2.8pre5
  146. - use RPM_OPT_FALGS to set compiler options
  147. - cahneg group to Applications/System
  148. * Fri May 19 2000 Karl DeBisschop <karl@debisschop.net>
  149. - Upgraded to 1.2.8pre3 (release-3)
  150. * Mon Mar 20 2000 Karl DeBisschop <karl@debisschop.net>
  151. - Upgraded to 1.2.8b2
  152. * Tue Dec 14 1999 Adam Jacob <adam@cybertrails.com> (1.2.7-1cvs)
  153. - Upgraded package from 1.2.6 to 1.2.7 from the latest CVS code
  154. - Modified SPEC file to contain the proper build_root stuff. :)
  155. * Tue Oct 19 1999 Mike McHenry <mmchen@minn.net> (1.2.6)
  156. - Upgraded package from 1.2.4 to 1.2.6
  157. - Resolved dependancy issue with libpq.so
  158. - Added support for check_fping
  159. * Fri Sep 03 1999 Mike McHenry <mmchen@minn.net> (1.2.4)
  160. - Upgraded package from 1.2.2 to 1.2.4
  161. * Mon Aug 16 1999 Mike McHenry <mmchen@minn.net> (1.2.2)
  162. - First RPM build (1.2.2)