6 |
|
|
7 |
Summary: Nagios grapher |
Summary: Nagios grapher |
8 |
Name: nagraffiti |
Name: nagraffiti |
9 |
Version: 1.4 |
Version: 1.5 |
10 |
Release: %{rel} |
Release: %{rel} |
11 |
Source0: %{name}-www.tar.bz2 |
Source0: %{name}-www.tar.bz2 |
12 |
Source1: %{name}-backend.tar.bz2 |
Source1: %{name}-backend.tar.bz2 |
16 |
Requires: rrdtool-perl |
Requires: rrdtool-perl |
17 |
Provides: perl(Nagraffiti::Nagraph) |
Provides: perl(Nagraffiti::Nagraph) |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
19 |
|
BuildArch: noarch |
20 |
|
|
21 |
# mysql password path : |
# mysql password path : |
22 |
%define mysql_passwd_path %{_sysconfdir}/racvision/mysql/passwords |
%define mysql_passwd_path %{_sysconfdir}/racvision/mysql/passwords |
27 |
|
|
28 |
|
|
29 |
%description -l fr |
%description -l fr |
30 |
Nagraffiti est un traceur de donnée de performance issues de Nagios. Il peut utiliser NDO utils ou Livestatus pour collecter les données. |
Nagraffiti est un traceur de donnée de performance issues de Nagios. Il peut utiliser NDO utils ou Livestatus pour collecter les données. |
31 |
|
|
32 |
%prep |
%prep |
33 |
|
|
42 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT; |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT; |
43 |
|
|
44 |
|
|
45 |
|
# Racvision index info |
46 |
|
%{__install} -d $RPM_BUILD_ROOT/%{wwwpath}/../racvision/ |
47 |
|
%{__install} -p -m0644 www/nagraffiti.php $RPM_BUILD_ROOT/%{wwwpath}/../racvision/ |
48 |
|
|
49 |
|
# www files |
50 |
%{__install} -d $RPM_BUILD_ROOT/%{wwwpath}/classes |
%{__install} -d $RPM_BUILD_ROOT/%{wwwpath}/classes |
51 |
%{__install} -p -m0644 www/classes/*.php $RPM_BUILD_ROOT/%{wwwpath}/classes/ |
%{__install} -p -m0644 www/classes/*.php $RPM_BUILD_ROOT/%{wwwpath}/classes/ |
52 |
|
|
64 |
|
|
65 |
%{__install} -p -m0644 www/index.php $RPM_BUILD_ROOT/%{wwwpath}/ |
%{__install} -p -m0644 www/index.php $RPM_BUILD_ROOT/%{wwwpath}/ |
66 |
|
|
|
|
|
67 |
# Templates |
# Templates |
68 |
%{__install} -d $RPM_BUILD_ROOT/%{wwwpath}/templates |
%{__install} -d $RPM_BUILD_ROOT/%{wwwpath}/templates |
69 |
%{__install} -p -m0644 www/templates/*.php $RPM_BUILD_ROOT/%{wwwpath}/templates/ |
%{__install} -p -m0644 www/templates/*.php $RPM_BUILD_ROOT/%{wwwpath}/templates/ |
138 |
%postun |
%postun |
139 |
|
|
140 |
%files -f %{name}_lang |
%files -f %{name}_lang |
141 |
#%doc README |
%doc backend/README |
142 |
%defattr(-,%{nagraffiti_user},%{nagraffiti_user}) |
%defattr(-,%{nagraffiti_user},%{nagraffiti_user}) |
143 |
%config %{_sysconfdir}/%{name}/config.ini |
%config %{_sysconfdir}/%{name}/config.ini |
144 |
%config %{_sysconfdir}/%{name}/rra.cfg |
%config %{_sysconfdir}/%{name}/rra.cfg |
149 |
%{_sbindir}/nagraffiti-ndo-daemon.pl |
%{_sbindir}/nagraffiti-ndo-daemon.pl |
150 |
%{_sbindir}/nagraffiti-fifo-daemon.pl |
%{_sbindir}/nagraffiti-fifo-daemon.pl |
151 |
%{wwwpath} |
%{wwwpath} |
152 |
|
%{wwwpath}/../racvision/ |
153 |
|
|
154 |
%dir %{perl_vendorlib}/Nagraffiti |
%dir %{perl_vendorlib}/Nagraffiti |
155 |
%{perl_vendorlib}/Nagraffiti/*.pm |
%{perl_vendorlib}/Nagraffiti/*.pm |