]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe.spec
- adapter
[packages/nagios-nrpe.git] / nagios-nrpe.spec
1 Summary:        Nagios remote plugin execution service/plugin
2 Summary(pl):    Demon i wtyczka zdalnego wywo³ywania wtyczek Nagios
3 Name:           nagios-nrpe
4 Version:        2.5.1
5 Release:        1
6 License:        GPL v2
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5:  e083553deaf47a79fd23906d823afc59
10 Source1:        nrpe.init
11 Patch0:         %{name}-config.patch
12 URL:            http://www.nagios.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  openssl-tools
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       nagios-common
19 Requires:       nagios-plugins
20 Requires:       rc-scripts
21 Provides:       nagios-core
22 Obsoletes:      netsaint-nrpe
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _sysconfdir     /etc/nagios
26 %define         _datadir        %{_prefix}/share/%{name}
27 %define         _plugindir      %{_libdir}/nagios/plugins
28 %define         _libexecdir     %{_plugindir}
29 %define         _localstatedir  %{_var}/log/nagios
30 %define         nsport          5666
31
32 %description
33 Nagios nrpe allows you to remotely execute plugins on other hosts and
34 report the plugin output back to the monitoring host.
35
36 %description -l pl
37 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach, a
38 wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
39
40 %package plugin
41 Summary:        check_nrpe plugin for Nagios
42 Summary(pl):    Wtyczka check_nrpe dla Nagiosa
43 Group:          Networking
44 Requires:       nagios-core
45
46 %description plugin
47 check_nrpe plugin for Nagios. This plugin allows running plugins on
48 remote machines using nrpe service.
49
50 %description plugin -l pl
51 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
52 na innych komputerach za pomoc± demona nrpe.
53
54 %prep
55 %setup -q -n nrpe-%{version}
56 %patch0 -p1
57
58 %build
59 %{__aclocal}
60 %{__autoconf}
61
62 %configure \
63         --with-init-dir=/etc/rc.d/init.d \
64         --with-nrpe-port=%{nsport} \
65         --with-nrpe-user=nagios \
66         --with-nrpe-grp=nagios \
67         --enable-ssl \
68         --enable-command-args
69
70 %{__make} all
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
75         $RPM_BUILD_ROOT%{_localstatedir}
76
77 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
78 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
79 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
80 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 /sbin/chkconfig --add nrpe
87 %service nrpe restart
88
89 %preun
90 if [ "$1" = "0" ] ; then
91         %service nrpe stop
92         /sbin/chkconfig --del nrpe
93 fi
94
95 %files
96 %defattr(644,root,root,755)
97 %doc Changelog LEGAL README* SECURITY
98 %attr(754,root,root) /etc/rc.d/init.d/nrpe
99 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
100 %attr(755,root,root) %{_sbindir}/nrpe
101
102 %files plugin
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_plugindir}/*
This page took 0.072713 seconds and 3 git commands to generate.