nagios-plugins.spec.in 6.4 KB

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