]> git.pld-linux.org Git - SPECS.git/blob - nagios-plugin-check_apc.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / nagios-plugin-check_apc.spec
1 #
2 # another version of this plugin is here:
3 # http://www.opennet.ru/base/sys/apc_ups_nagios.txt.html
4
5 %define         plugin  check_apc
6 Summary:        Nagios Plugin for apcupsd APC Smart-UPS
7 Summary(pl.UTF-8):      Wtyczka Nagiosa do sprawdzania apcupsd APC Smart-UPS
8 Name:           nagios-plugin-check_apc
9 Version:        0.0.2
10 Release:        0.3
11 License:        GPL
12 Group:          Networking
13 Source0:        http://www.negative1.org/check_apc/check_apc
14 # Source0-md5:  8d3770144e00a4ab41879c7a8b876065
15 Patch0:         %{name}-path.patch
16 URL:            http://www.negative1.org/
17 Requires:       apcupsd
18 Requires:       nagios-common
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sysconfdir     /etc/nagios/plugins
23 %define         plugindir       %{_libdir}/nagios/plugins
24
25 %description
26 check_apc is a Nagios plugin that can be used with apcupsd or apcsnmp
27 to monitor an APC UPS.
28
29 %description -l pl.UTF-8
30 check_apc to wtyczka Nagiosa do monitorowania UPS-ów APC przy użyciu
31 apcupsd lub apcsnmp.
32
33 %prep
34 %setup -qcT
35 install -p %{SOURCE0} .
36 %patch0 -p1
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{plugindir}
41 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{plugindir}/%{plugin}
This page took 0.136558 seconds and 3 git commands to generate.