1 Summary: Produce RRD graphs from lighttpd
2 Summary(pl.UTF-8): Tworzenie wykresów RRD z lighttpd
7 Group: Applications/WWW
9 Source1: %{name}-index.html
10 Source2: %{name}-graph.sh
12 BuildRequires: rpmbuild(macros) >= 1.268
14 Requires: lighttpd >= 1.4.13-5.5
15 Requires: lighttpd-mod_alias
16 Requires: lighttpd-mod_indexfile
17 Requires: lighttpd-mod_rrdtool
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _webapp %{name}
22 %define _sysconfdir /etc/lighttpd/webapps.d
23 %define _appdir /var/lib/lighttpd/rrd
26 Produce graphs from RRD data produced by lighttpd mod_rrdtool module.
28 %description -l pl.UTF-8
29 Tworzenie wykresów z danych RRD tworzonych przez moduł mod_rrdtool
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_sbindir},/etc/cron.d}
39 install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/rrd.conf
40 install %{SOURCE1} $RPM_BUILD_ROOT%{_appdir}/index.html
41 install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/lighttpd-rrdgraph
42 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
45 rm -rf $RPM_BUILD_ROOT
48 %service -q lighttpd restart
52 %service -q lighttpd restart
56 %defattr(644,root,root,755)
57 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rrd.conf
58 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
59 %attr(755,root,root) %{_sbindir}/lighttpd-rrdgraph
60 %dir %attr(775,root,stats) %{_appdir}