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