]> git.pld-linux.org Git - packages/nagios-nrdp.git/commitdiff
- add -client package for send_nrdp
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 8 Jan 2012 00:24:59 +0000 (00:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-nrdp.spec -> 1.2

nagios-nrdp.spec

index 9fa85eff04fe9e2194c087bc3ed28a54d8269a35..7417d7d2d7d74a4f0e6ed099eaaa70fdb3377578 100644 (file)
@@ -1,16 +1,19 @@
+# TODO
+# - send_nrdp  is crap, it never reports any errors back
 %define                pkg     nrdp
 %define                php_min_version 5.1.0
 %include       /usr/lib/rpm/macros.php
 Summary:       Nagios Remote Data Processor (NDRP)
 Name:          nagios-%{pkg}
 Version:       1.2
-Release:       0.4
+Release:       0.6
 License:       GPL v2 (server), BSD (send_nrdp)
 Group:         Applications/WWW
 Source0:       http://assets.nagios.com/downloads/nrdp/nrdp.zip
 # Source0-md5: e67bb3c660b22d80abd8a06a4853d814
 Patch0:                config.patch
 URL:           http://exchange.nagios.org/directory/Addons/Passive-Checks/NRDP--2D-Nagios-Remote-Data-Processor/details
+BuildRequires: rpmbuild(macros) >= 1.553
 Requires:      nagios
 Requires:      nagios-cgi
 Requires:      php-common >= 4:%{php_min_version}
@@ -37,19 +40,31 @@ customized to fit individual users' needs. It uses standard ports
 protocols (HTTP(S) and XML) and can be implemented as a replacement
 for NSCA.
 
+%package client
+Summary:       NRDP Host and Service Check Client
+Group:         Networking
+Requires:      php-common >= 4:%{php_min_version}
+Requires:      php-date
+
+%description client
+Client to send results to Nagios Remote Data Processor (NDRP) server.
+
 %prep
 %setup -qc
 mv %{pkg}/* .
 %patch0 -p1
+%undos clients/send_nrdp.php
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/nagios/%{pkg}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/nagios/%{pkg},%{_bindir}}
 cp -a server/* /$RPM_BUILD_ROOT%{_appdir}
 
 mv $RPM_BUILD_ROOT{%{_appdir}/config.inc.php,%{_sysconfdir}/%{pkg}.php}
 ln -s %{_sysconfdir}/%{pkg}.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
 
+install -p clients/send_nrdp.php $RPM_BUILD_ROOT%{_bindir}/send_nrdp
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -61,3 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 
 # tmp dir for data exchange nagios/webserver
 %attr(2770,root,nagcmd) %dir /var/lib/nagios/%{pkg}
+
+%files client
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/send_nrdp
This page took 0.075758 seconds and 4 git commands to generate.