nagios-plugins.spec.in 7.0 KB

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