]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe.spec
97833a2037f414b3a9ad1d95648286b471eb8c1f
[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.0
5 Release:        5
6 License:        GPL v2
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5:  70ef9502a3b7e49fa520dbceabfa04d0
10 Source1:        nrpe.init
11 URL:            http://www.nagios.org/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  openssl-tools
15 BuildRequires:  rpmbuild(macros) >= 1.202
16 Requires(post,postun):  /sbin/chkconfig
17 Requires:       nagios-common
18 Requires:       nagios-plugins
19 Requires:       rc-scripts
20 Provides:       nagios-core
21 Obsoletes:      netsaint-nrpe
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _sysconfdir     /etc/nagios
25 %define         _datadir        %{_prefix}/share/%{name}
26 %define         _plugindir      %{_libdir}/nagios/plugins
27 %define         _libexecdir     %{_plugindir}
28 %define         _localstatedir  %{_var}/log/nagios
29 %define         nsport          5666
30
31 %description
32 Nagios nrpe allows you to remotely execute plugins on other hosts and
33 report the plugin output back to the monitoring host.
34
35 %description -l pl
36 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach, a
37 wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
38
39 %package plugin
40 Summary:        check_nrpe plugin for Nagios
41 Summary(pl):    Wtyczka check_nrpe dla Nagiosa
42 Group:          Networking
43 Requires:       nagios-core
44
45 %description plugin
46 check_nrpe plugin for Nagios. This plugin allows running plugins on
47 remote machines using nrpe service.
48
49 %description plugin -l pl
50 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
51 na innych komputerach za pomoc± demona nrpe.
52
53 %prep
54 %setup -q -n nrpe-%{version}
55
56 %build
57 %{__aclocal}
58 %{__autoconf}
59
60 %configure \
61         --with-init-dir=/etc/rc.d/init.d \
62         --with-nrpe-port=%{nsport} \
63         --with-nrpe-user=nagios \
64         --with-nrpe-grp=nagios \
65
66 %{__make} all
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
71         $RPM_BUILD_ROOT%{_localstatedir}
72
73 install nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
75 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
76 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post
82 /sbin/chkconfig --add nrpe
83 if [ -f /var/lock/subsys/nrpe ]; then
84         /etc/rc.d/init.d/nrpe restart 1>&2
85 fi
86
87 %preun
88 if [ "$1" = "0" ] ; then
89         if [ -f /var/lock/subsys/nrpe ]; then
90                 /etc/rc.d/init.d/nrpe stop 1>&2
91         fi
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.132167 seconds and 2 git commands to generate.