]> git.pld-linux.org Git - projects/template-specs.git/blame - nagios-plugin.spec
- BR macros for fpm restart
[projects/template-specs.git] / nagios-plugin.spec
CommitLineData
2ec158f4 1%define plugin check_template
f8e85385 2Summary: Nagios plugin to check ...
4ef9307b 3Summary(pl.UTF_8): Wtyczka Nagiosa sprawdzająca ...
2ec158f4 4Name: nagios-plugin-%{plugin}
f8e85385
ER
5Version: 0.1
6Release: 0.1
7License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
8Group: Networking
9#Source0: -
560a5433 10# Source0-md5: -
f8e85385
ER
11#Patch0: %{name}-defaultpass.patch
12URL: -
13Requires: nagios-core
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
f8e85385 17%define _sysconfdir /etc/nagios/plugins
2ec158f4 18%define plugindir %{_prefix}/lib/nagios/plugins
f8e85385
ER
19
20%description
4ef9307b
JB
21Nagios plugin to check ...
22
23%description -l pl.UTF-8
24Wtyczka Nagiosa sprawdzająca ...
f8e85385
ER
25
26%prep
27%setup -qcT
2ec158f4 28install %{SOURCE0} %{plugin}
f8e85385
ER
29#%patch0 -p1
30
31cat > nagios.cfg <<'EOF'
32# Usage:
2ec158f4 33# %{plugin}
f8e85385 34define command {
2ec158f4
ER
35 command_name %{plugin}
36 command_line %{plugindir}/%{plugin}
f8e85385
ER
37}
38EOF
39
40%install
41rm -rf $RPM_BUILD_ROOT
2ec158f4
ER
42install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
43install %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
44cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
f8e85385
ER
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
2ec158f4
ER
51%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
52%attr(755,root,root) %{plugindir}/%{plugin}
This page took 0.02871 seconds and 4 git commands to generate.