description Nagios Remote Plugin Executor
long_description Allows \"local\" Nagios plugins to run on remote hosts and \
report back to a Nagios server.
homepage http://nagios.org
master_sites sourceforge:project/nagios/nrpe-2.x/nrpe-${version}
checksums md5 b2d75e2962f1e3151ef58794d60c9e97
patchfiles patch-init-script.in
configure.args --mandir=${prefix}/share/man \
--with-nrpe-user=nagios \
--with-nrpe-group=nagios \
--libexecdir=${prefix}/libexec/nagios \
--bindir=${prefix}/sbin \
--sysconfdir=${prefix}/etc/${name} \
--with-kerberos-inc=/usr/include/kerberosIV \
--with-ssl-lib=${prefix}/lib \
--with-ssl-inc=${prefix} \
startupitem.start "${prefix}/share/${name}/init-script start"
startupitem.stop "${prefix}/share/${name}/init-script stop"
reinplace "s|dir/libssl.so|dir/libssl.dylib|g" ${worksrcpath}/configure
reinplace "s|__PREFIX__|${prefix}|g" "${worksrcpath}/init-script.in"
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
xinstall -d -m 755 ${destroot}${prefix}/libexec/nagios
xinstall -m 755 ${worksrcpath}/src/nrpe ${destroot}${prefix}/sbin/nrpe
xinstall -m 755 ${worksrcpath}/src/check_nrpe ${destroot}${prefix}/libexec/nagios
xinstall -m 755 ${worksrcpath}/sample-config/nrpe.cfg ${destroot}${prefix}/etc/${name}/nrpe.cfg.sample
xinstall -m 755 ${worksrcpath}/init-script ${destroot}${prefix}/share/${name}
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 ${worksrcpath}/README.SSL ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${destroot}${prefix}/var/run/nrpe
destroot.keepdirs ${destroot}${prefix}/var/run/nrpe
system "chown nagios:nagios ${destroot}${prefix}/sbin/nrpe"
system "chown nagios:nagios ${destroot}${prefix}/libexec/nagios/check_nrpe"