]> git.pld-linux.org Git - packages/nagios-nrpe.git/blame - nagios-nrpe.spec
- fix path
[packages/nagios-nrpe.git] / nagios-nrpe.spec
CommitLineData
9f54c7ed 1Summary: Nagios remote plugin execution service/plugin
32b335f7 2Summary(pl.UTF-8): Demon i wtyczka zdalnego wywoływania wtyczek Nagios
884ffea2 3Name: nagios-nrpe
e9a59d74 4Version: 2.12
f1bc52ab 5Release: 5
6095acef
PZ
6License: GPL v2
7Group: Networking
8Source0: http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
e9a59d74 9# Source0-md5: b2d75e2962f1e3151ef58794d60c9e97
283125e4 10Source1: nrpe.init
8a6ed10e 11Source2: nrpe-command.cfg
dc04870c 12Patch0: %{name}-config.patch
6095acef
PZ
13URL: http://www.nagios.org/
14BuildRequires: autoconf
15BuildRequires: automake
bef67369 16BuildRequires: openssl-devel
f384e93f 17BuildRequires: openssl-tools
c18c6a62 18BuildRequires: rpmbuild(macros) >= 1.268
74881710 19Requires(post,preun): /sbin/chkconfig
fab2344e 20Requires: nagios-common
783f405f 21Requires: rc-scripts
7186fe13 22Provides: nagios-core
c1473eca 23Obsoletes: netsaint-nrpe
884ffea2 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6095acef
PZ
25
26%define _sysconfdir /etc/nagios
27%define _datadir %{_prefix}/share/%{name}
28%define _plugindir %{_libdir}/nagios/plugins
fcdb117d 29%define _libexecdir %{_plugindir}
6095acef 30%define _localstatedir %{_var}/log/nagios
6095acef
PZ
31%define nsport 5666
32
33%description
e47ef220
ER
34NRPE is an addon for Nagios that allows you to execute "local" plugins
35(like check_disk, check_procs, etc.) on remote hosts. The check_nrpe
36plugin is called from Nagios and makes plugin execution requests to
37the NRPE daemon running on the remote host (either as a standalone
38daemon or as a service under inetd). Supports passing command
39arguments to server, as well as native SSL/TLS encryption (anonymous
40DH mode).
6095acef 41
84d968ba
JR
42%description -l pl.UTF-8
43NRPE to dodatek do Nagiosa pozwalający na wywoływanie "lokalnych"
d951bfe3 44wtyczek (takich jak check_disk, check_procs itp.) na zdalnych
84d968ba
JR
45maszynach. Wtyczka check_nrpe jest wywoływana z poziomu Nagiosa i
46wysyła żądania uruchomienia wtyczek do demona NRPE działającego na
47zdalnej maszynie (jako samodzielny demon lub usługa inetd). Obsługuje
48przekazywanie argumentów poleceń do serwera, a także natywne
d951bfe3 49szyfrowanie SSL/TLS (w trybie anonimowego DH).
6095acef
PZ
50
51%package plugin
52Summary: check_nrpe plugin for Nagios
32b335f7 53Summary(pl.UTF-8): Wtyczka check_nrpe dla Nagiosa
6095acef 54Group: Networking
e8316598 55Requires: nagios-core
6095acef
PZ
56
57%description plugin
58check_nrpe plugin for Nagios. This plugin allows running plugins on
59remote machines using nrpe service.
60
84d968ba 61%description plugin -l pl.UTF-8
783f405f 62Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
84d968ba 63na innych komputerach za pomocą demona nrpe.
6095acef
PZ
64
65%prep
283125e4 66%setup -q -n nrpe-%{version}
e3dd2648 67%patch0 -p1
6095acef
PZ
68
69%build
70%{__aclocal}
71%{__autoconf}
72
73%configure \
74 --with-init-dir=/etc/rc.d/init.d \
75 --with-nrpe-port=%{nsport} \
e8316598
ER
76 --with-nrpe-user=nagios \
77 --with-nrpe-grp=nagios \
ba61d89b
JK
78 --enable-ssl \
79 --enable-command-args
6095acef
PZ
80
81%{__make} all
82
83%install
84rm -rf $RPM_BUILD_ROOT
8a6ed10e 85install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/plugins,%{_libdir}/nagios/plugins,%{_sbindir}} \
ce845d3e 86 $RPM_BUILD_ROOT{%{_localstatedir},/var/run/nrpe}
6095acef 87
ba61d89b 88install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
b959846e 89sed -e 's,@plugindir@,%{_plugindir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/plugins/nrpe.cfg
283125e4 90install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
6095acef
PZ
91install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
92install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
6095acef 97%post
50034c16 98/sbin/chkconfig --add nrpe
c18c6a62 99%service nrpe restart
6095acef
PZ
100
101%preun
102if [ "$1" = "0" ] ; then
c18c6a62 103 %service nrpe stop
50034c16 104 /sbin/chkconfig --del nrpe
6095acef
PZ
105fi
106
ce845d3e
ER
107%triggerpostun -- %{name} < 2.6-1.1
108%{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
109
6095acef
PZ
110%files
111%defattr(644,root,root,755)
112%doc Changelog LEGAL README* SECURITY
783f405f 113%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
6095acef 114%attr(755,root,root) %{_sbindir}/nrpe
ce845d3e
ER
115%attr(754,root,root) /etc/rc.d/init.d/nrpe
116%dir %attr(775,root,nagios) /var/run/nrpe
6095acef
PZ
117
118%files plugin
119%defattr(644,root,root,755)
8a6ed10e
ER
120%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins/nrpe.cfg
121%attr(755,root,root) %{_plugindir}/check_nrpe
This page took 0.115238 seconds and 4 git commands to generate.