]> git.pld-linux.org Git - SPECS.git/blob - lighttpd-rrd.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / lighttpd-rrd.spec
1 Summary:        Produce RRD graphs from lighttpd
2 Summary(pl.UTF-8):      Tworzenie wykresów RRD z lighttpd
3 Name:           lighttpd-rrd
4 Version:        0.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/WWW
8 Source0:        %{name}.conf
9 Source1:        %{name}-index.html
10 Source2:        %{name}-graph.sh
11 Source3:        %{name}.cron
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 Requires:       crondaemon
14 Requires:       lighttpd >= 1.4.13-5.5
15 Requires:       lighttpd-mod_alias
16 Requires:       lighttpd-mod_indexfile
17 Requires:       lighttpd-mod_rrdtool
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _webapp         %{name}
22 %define         _sysconfdir     /etc/lighttpd/webapps.d
23 %define         _appdir         /var/lib/lighttpd/rrd
24
25 %description
26 Produce graphs from RRD data produced by lighttpd mod_rrdtool module.
27
28 %description -l pl.UTF-8
29 Tworzenie wykresów z danych RRD tworzonych przez moduł mod_rrdtool
30 lighttpd.
31
32 %prep
33 %setup -qcT
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_sbindir},/etc/cron.d}
38
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}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 %service -q lighttpd restart
49
50 %postun
51 if [ "$1" = 0 ]; then
52         %service -q lighttpd restart
53 fi
54
55 %files
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}
61 %{_appdir}/index.html
This page took 0.204137 seconds and 3 git commands to generate.