nagios-plugins.spec.in 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 %%{VER}
  9. %define release %%{REL}
  10. %define source %{archive}-%{version}
  11. Name: %{name}
  12. Version: %{version}
  13. Release: %{release}
  14. Copyright: GPL
  15. Source: %{source}.tar.gz
  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 %{source}
  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 CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT
  69. %doc ChangeLog command.cfg
  70. %defattr(775,root,root)
  71. %dir %{_prefix}/lib/nagios/plugins
  72. %if %custom
  73. %{_prefix}/lib/nagios/plugins/*
  74. %else
  75. %{_prefix}/lib/nagios/plugins/check_by_ssh
  76. %{_prefix}/lib/nagios/plugins/check_breeze
  77. %{_prefix}/lib/nagios/plugins/check_dig
  78. %{_prefix}/lib/nagios/plugins/check_disk
  79. %{_prefix}/lib/nagios/plugins/check_disk_smb
  80. %{_prefix}/lib/nagios/plugins/check_dns
  81. %{_prefix}/lib/nagios/plugins/check_dummy
  82. %{_prefix}/lib/nagios/plugins/check_flexlm
  83. %{_prefix}/lib/nagios/plugins/check_ftp
  84. %{_prefix}/lib/nagios/plugins/check_http
  85. %{_prefix}/lib/nagios/plugins/check_ifoperstatus
  86. %{_prefix}/lib/nagios/plugins/check_ifstatus
  87. %{_prefix}/lib/nagios/plugins/check_imap
  88. %{_prefix}/lib/nagios/plugins/check_ircd
  89. %{_prefix}/lib/nagios/plugins/check_load
  90. %{_prefix}/lib/nagios/plugins/check_log
  91. %{_prefix}/lib/nagios/plugins/check_mailq
  92. %{_prefix}/lib/nagios/plugins/check_mrtg
  93. %{_prefix}/lib/nagios/plugins/check_mrtgtraf
  94. %{_prefix}/lib/nagios/plugins/check_nagios
  95. %{_prefix}/lib/nagios/plugins/check_nntp
  96. %{_prefix}/lib/nagios/plugins/check_ntp
  97. %{_prefix}/lib/nagios/plugins/check_nwstat
  98. %{_prefix}/lib/nagios/plugins/check_oracle
  99. %{_prefix}/lib/nagios/plugins/check_overcr
  100. %{_prefix}/lib/nagios/plugins/check_ping
  101. %{_prefix}/lib/nagios/plugins/check_pop
  102. %{_prefix}/lib/nagios/plugins/check_procs
  103. %{_prefix}/lib/nagios/plugins/check_real
  104. %{_prefix}/lib/nagios/plugins/check_rpc
  105. %{_prefix}/lib/nagios/plugins/check_sensors
  106. %{_prefix}/lib/nagios/plugins/check_smtp
  107. %{_prefix}/lib/nagios/plugins/check_ssh
  108. %{_prefix}/lib/nagios/plugins/check_swap
  109. %{_prefix}/lib/nagios/plugins/check_tcp
  110. %{_prefix}/lib/nagios/plugins/check_time
  111. %{_prefix}/lib/nagios/plugins/check_udp
  112. %{_prefix}/lib/nagios/plugins/check_ups
  113. %{_prefix}/lib/nagios/plugins/check_users
  114. %{_prefix}/lib/nagios/plugins/check_vsz
  115. %{_prefix}/lib/nagios/plugins/check_wave
  116. %{_prefix}/lib/nagios/plugins/negate
  117. %{_prefix}/lib/nagios/plugins/utils.pm
  118. %{_prefix}/lib/nagios/plugins/utils.sh
  119. %{_prefix}/lib/nagios/plugins/urlize
  120. %endif
  121. %if ! %custom
  122. %files extras
  123. %defattr(775,root,root)
  124. %{_prefix}/lib/nagios/plugins/check_fping
  125. %{_prefix}/lib/nagios/plugins/check_game
  126. %{_prefix}/lib/nagios/plugins/check_ldap
  127. %{_prefix}/lib/nagios/plugins/check_mysql
  128. %{_prefix}/lib/nagios/plugins/check_pgsql
  129. %{_prefix}/lib/nagios/plugins/check_radius
  130. %{_prefix}/lib/nagios/plugins/check_snmp
  131. %{_prefix}/lib/nagios/plugins/check_hpjd
  132. %endif
  133. %changelog
  134. * Wed Jan 17 2001 Karl DeBisschop <karl@debisschop.net> (1.2.9-1)
  135. - switch from /usr/libexec to /usr/lib because FHS has no libexec
  136. - use 'custom' macro define to merge with nagios-plugins-custom spec
  137. - add check_game to extras
  138. * Mon Jun 26 2000 Karl DeBisschop <karl@debisschop.net>
  139. - Release 1.2.8-4 (check_ping bug fix)
  140. - use bzip2 insted of gzip for mandrake compatibility
  141. * Thu Jun 22 2000 Karl DeBisschop <karl@debisschop.net>
  142. - Release 1.2.8-3 (bug fixes)
  143. - Add macros to spec where possible
  144. * Fri Jun 16 2000 Karl DeBisschop <karl@debisschop.net>
  145. - Release 1.2.8-2 (bug fixes)
  146. * Fri Jun 09 2000 Karl DeBisschop <karl@debisschop.net>
  147. - Release to 1.2.8
  148. * Wed Jun 07 2000 Karl DeBisschop <karl@debisschop.net>
  149. - Upgrade to 1.2.8pre7
  150. * Sat Jun 03 2000 Karl DeBisschop <karl@debisschop.net>
  151. - Upgraded to 1.2.8pre5
  152. - use RPM_OPT_FALGS to set compiler options
  153. - cahneg group to Applications/System
  154. * Fri May 19 2000 Karl DeBisschop <karl@debisschop.net>
  155. - Upgraded to 1.2.8pre3 (release-3)
  156. * Mon Mar 20 2000 Karl DeBisschop <karl@debisschop.net>
  157. - Upgraded to 1.2.8b2
  158. * Tue Dec 14 1999 Adam Jacob <adam@cybertrails.com> (1.2.7-1cvs)
  159. - Upgraded package from 1.2.6 to 1.2.7 from the latest CVS code
  160. - Modified SPEC file to contain the proper build_root stuff. :)
  161. * Tue Oct 19 1999 Mike McHenry <mmchen@minn.net> (1.2.6)
  162. - Upgraded package from 1.2.4 to 1.2.6
  163. - Resolved dependancy issue with libpq.so
  164. - Added support for check_fping
  165. * Fri Sep 03 1999 Mike McHenry <mmchen@minn.net> (1.2.4)
  166. - Upgraded package from 1.2.2 to 1.2.4
  167. * Mon Aug 16 1999 Mike McHenry <mmchen@minn.net> (1.2.2)
  168. - First RPM build (1.2.2)