nagios-plugins.spec.in 7.4 KB

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