| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| %if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel} |
| %define pkg_group System Environment/Daemons |
| %else |
| %define pkg_group Productivity/Clustering/HA |
| %endif |
| |
| %if ! %{defined _rundir} |
| %define _rundir %{_localstatedir}/run |
| %endif |
| |
| Name: nagios-agents-metadata |
| Summary: OCF metadata for nagios agents |
| License: GPL-2.0+ and GPL-3.0 |
| Group: %{pkg_group} |
| Version: 1.0 |
| Release: 0 |
| Url: https://github.com/ClusterLabs/nagios-agents-metadata |
| Source: nagios-agents-metadata-%{version}.tar.xz |
| BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| Provides: nagios-plugins-metadata |
| Requires: monitoring-plugins-fping |
| Requires: monitoring-plugins-http |
| Requires: monitoring-plugins-ldap |
| Requires: monitoring-plugins-mysql |
| Requires: monitoring-plugins-pgsql |
| Requires: monitoring-plugins-tcp |
| Requires: resource-agents |
| |
| %description |
| XML files containing metadata which facilitates using nagios |
| plugins as resource agents. These files were produced from help |
| pages of individual nagios plugins. |
| |
| %install |
| |
| |
| tar -xjf %{SOURCE} |
| mkdir -p %{buildroot}%{_datadir}/nagios/plugins-metadata |
| for file in $(find plugins-metadata -type f); do |
| install -m 644 $file %{buildroot}%{_datadir}/nagios/plugins-metadata |
| done |
| |
| |
| |
| %files |
| |
| %defattr(-,root,root) |
| %dir %{_datadir}/nagios |
| %dir %{_datadir}/nagios/plugins-metadata |
| %attr(0644,root,root) %{_datadir}/nagios/plugins-metadata/* |
| |
| %changelog |