1 Summary: Nagios Looking Glass
5 License: Creative Commons v2.5
6 Group: Applications/WWW
7 Source0: http://www.andyshellam.eu/download.php?file=nlg_106.tar.gz
8 # Source0-md5: 9cee281a7c40c59902fc420d14e9c7db
9 URL: http://www.andyshellam.eu/nlg/
10 BuildRequires: sed >= 4.0
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 %define _appdir %{_datadir}/nagwatch
17 Nagios Looking Glass is a web-based application that allows Nagios system
18 administrators to provide up-to-the-minute status information about their
19 Nagios-monitored network directly to their end users. The application is
20 designed to provide a read-only "dashboard" view into the network without the
21 complexity and security risks that arise by giving end users access to the
25 Summary: Data poller for Nagios Looking Glass
26 Group: Applications/WWW
27 Requires: php-common >= 4:5.0
28 Requires: webserver(php)
30 %description s3_poller
31 Server-side processing of the status feeds from Nagios
34 Summary: Client for Nagios Looking Glass
35 Group: Applications/WWW
36 Requires: php-common >= 4:5.0
37 Requires: webserver(php)
39 %description s3_client
40 The client that renders data from s3_poller on an AJAX-enabled web-page with
45 find '(' -name '*.php' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
47 rm -f client/sync-files/DELETE_ME.txt
48 rm -f server/index/DELETE_ME.txt
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/s3_{client,poller}}
55 cp -a client/* $RPM_BUILD_ROOT%{_datadir}/s3_client
57 cp -a server/* $RPM_BUILD_ROOT%{_datadir}/s3_poller
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)