]> git.pld-linux.org Git - SPECS.git/blob - nagios-bpi.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / nagios-bpi.spec
1 # TODO
2 # - check_bpi checker package
3 # - this piece of shit is insecure, don't use it in enviroment you don't trust:
4 #     config_functions/fix_config.php allows you to write config file, which is
5 #     included to any page of nagios bpi
6 #     why it's even "featured" upload of nagios.org? ah yes,
7 #     exchange.nagios.org itself is similar shit.
8 # - it doesn't even check for errors for simple file operation:
9 #     file_put_contents(CONFIGFILE, $new);
10 #     print "<p>File successfully written!</p>";
11 # - system jquery
12 Summary:        Nagios Business Process Intelligence Featured Popular
13 Name:           nagios-bpi
14 Version:        1.3.1
15 Release:        0.1
16 License:        GPL v2
17 Group:          Applications/WWW
18 Source0:        http://assets.nagios.com/downloads/exchange/nagiosbpi/nagiosbpi.zip
19 # Source0-md5:  571771978a3bc00604abdee4bbe1c8c4
20 Patch0:         paths.patch
21 URL:            http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details
22 BuildRequires:  unzip
23 Requires:       nagios-cgi
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _webapps        /etc/webapps
28 %define         _webapp         nagiosbpi
29 %define         _sysconfdir     %{_webapps}/%{_webapp}
30 %define         appdir          %{_datadir}/nagios/%{_webapp}
31
32 %description
33 Nagios Business Process Intelligence is an advanced grouping tool that
34 allows you to set more complex dependencies to determine groups
35 states. Nagios BPI provides an interface to effectively view the
36 'real' state of the network. Rules for group states can be determined
37 by the user, and parent-child relationships are easily identified when
38 you need to 'drill down' on a problem. This tool can also be used in
39 conjunction with a check plugin to allow for notifications through
40 Nagios.
41
42 %prep
43 # use versioned build dir
44 %setup -qc
45 mv nagiosbpi/* .
46 %patch0 -p1
47
48 rmdir tmp
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{appdir}}
53 cp -p *.php *.js *.css constants.conf $RPM_BUILD_ROOT%{appdir}
54 cp -a config_functions functions images $RPM_BUILD_ROOT%{appdir}
55
56 # relocate
57 cp -p bpi.conf $RPM_BUILD_ROOT%{_sysconfdir}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc INSTALL TODO
65 %dir %attr(770,root,http) %{_sysconfdir}
66 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bpi.conf
67 %{appdir}
This page took 0.76369 seconds and 3 git commands to generate.