]> git.pld-linux.org Git - packages/nagios-nlg.git/blob - nagios-nlg.spec
c4a2ba6acbf7bef4befb99930336747e2fe98ce8
[packages/nagios-nlg.git] / nagios-nlg.spec
1 Summary:        Nagios Looking Glass
2 Name:           nagios-nlg
3 Version:        1.0.6
4 Release:        0.3
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
11 BuildArch:      noarch
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _appdir %{_datadir}/nagwatch
15
16 %description
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
22 Nagios web console. 
23
24 %package s3_poller
25 Summary:        Data poller for Nagios Looking Glass
26 Group:          Applications/WWW
27 Requires:       php-common >= 4:5.0
28 Requires:       webserver(php)
29
30 %description s3_poller
31 Server-side processing of the status feeds from Nagios
32
33 %package s3_client
34 Summary:        Client for Nagios Looking Glass
35 Group:          Applications/WWW
36 Requires:       php-common >= 4:5.0
37 Requires:       webserver(php)
38
39 %description s3_client
40 The client that renders data from s3_poller on an AJAX-enabled web-page with
41 the relevant data.
42
43 %prep
44 %setup -q -n nlg_106
45 find '(' -name '*.php' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
46
47 rm -f client/sync-files/DELETE_ME.txt
48 rm -f server/index/DELETE_ME.txt
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/s3_{client,poller}}
53
54 # s3_client
55 cp -a client/* $RPM_BUILD_ROOT%{_datadir}/s3_client
56 # s3_poller
57 cp -a server/* $RPM_BUILD_ROOT%{_datadir}/s3_poller
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc *.txt docs/*.pdf
65 %{_datadir}/*
This page took 0.059871 seconds and 2 git commands to generate.