]> git.pld-linux.org Git - packages/nagios-nlg.git/blob - nagios-nlg.spec
old changes
[packages/nagios-nlg.git] / nagios-nlg.spec
1 %define         sver    %(echo %{version} | tr -d .)
2 %define         subver  b3
3 %define         rel             0.2
4 Summary:        Nagios Looking Glass
5 Name:           nagios-nlg
6 Version:        1.1.0
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
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _appdir %{_datadir}/nagwatch
18
19 %description
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.
26
27 %package s3_poller
28 Summary:        Data poller for Nagios Looking Glass
29 Group:          Applications/WWW
30 Requires:       php-common >= 4:5.0
31 Requires:       webserver(php)
32
33 %description s3_poller
34 Server-side processing of the status feeds from Nagios
35
36 %package s3_client
37 Summary:        Client for Nagios Looking Glass
38 Group:          Applications/WWW
39 Requires:       php-common >= 4:5.0
40 Requires:       webserver(php)
41
42 %description s3_client
43 The client that renders data from s3_poller on an AJAX-enabled
44 web-page with the relevant data.
45
46 %prep
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$,,'
49
50 rm -f client/sync-files/DELETE_ME.txt
51 rm -f server/index/DELETE_ME.txt
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/s3_{client,poller}}
56
57 # s3_client
58 cp -a client/* $RPM_BUILD_ROOT%{_datadir}/s3_client
59 # s3_poller
60 cp -a server/* $RPM_BUILD_ROOT%{_datadir}/s3_poller
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc *.txt
68 %{_datadir}/*
This page took 0.039392 seconds and 3 git commands to generate.