nagios-plugins.spec.in 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Name: nagios-plugins
  2. Version: %%{VERSION}
  3. Release: %%{RELEASE}
  4. Summary: Host/service/network monitoring program plugins for Nagios
  5. Group: Applications/System
  6. License: GPL
  7. URL: http://nagiosplug.sourceforge.net/
  8. Source0: http://dl.sf.net/sourceforge/nagiosplug/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. Prefix: %{_prefix}/lib/nagios/plugins
  11. Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net>
  12. Vendor: Nagios Plugin Development Group
  13. Provides: nagios-plugins
  14. %{!?custom:%global custom 0}
  15. Obsoletes: nagios-plugins-custom nagios-plugins-extras
  16. # Requires
  17. %description
  18. Nagios is a program that will monitor hosts and services on your
  19. network, and to email or page you when a problem arises or is
  20. resolved. Nagios runs on a unix server as a background or daemon
  21. process, intermittently running checks on various services that you
  22. specify. The actual service checks are performed by separate "plugin"
  23. programs which return the status of the checks to Nagios. This package
  24. contains those plugins.
  25. %prep
  26. %setup -q
  27. %build
  28. ./configure \
  29. --prefix=%{_prefix} \
  30. --exec-prefix=%{_exec_prefix} \
  31. --libexecdir=%{_exec_prefix}/lib/nagios/plugins \
  32. --sysconfdir=%{_sysconfdir}/nagios \
  33. --datadir=%{_datadir} \
  34. --with-cgiurl=/nagios/cgi-bin
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=${RPM_BUILD_ROOT} install
  39. install -d ${RPM_BUILD_ROOT}/etc/nagios
  40. install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios
  41. %find_lang %{name}
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files -f %{name}.lang
  45. %defattr(-,root,root)
  46. %config(missingok,noreplace) /etc/nagios/command.cfg
  47. %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
  48. %doc ChangeLog command.cfg
  49. %defattr(775,root,root)
  50. %dir %{_exec_prefix}/lib/nagios/plugins
  51. %{_datadir}/locale/de/LC_MESSAGES/nagios-plugins.mo
  52. %{_datadir}/locale/fr/LC_MESSAGES/nagios-plugins.mo
  53. %{_exec_prefix}/lib/nagios/plugins
  54. %changelog
  55. * Mon May 23 2005 Sean Finney <seanius@seanius.net> - cvs head
  56. - just include the nagios plugins directory, which will automatically include
  57. all generated plugins (which keeps the build from failing on systems that
  58. don't have all build-dependencies for every plugin)
  59. * Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1
  60. - extensive rewrite to facilitate processing into various distro-compatible specs
  61. * Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1
  62. - extensive rewrite to facilitate processing into various distro-compatible specs