SPECS: lighttpd-rrd.spec (NEW) - new
glen
glen at pld-linux.org
Fri Dec 22 22:57:28 CET 2006
Author: glen Date: Fri Dec 22 21:57:28 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
lighttpd-rrd.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/lighttpd-rrd.spec
diff -u /dev/null SPECS/lighttpd-rrd.spec:1.1
--- /dev/null Fri Dec 22 22:57:28 2006
+++ SPECS/lighttpd-rrd.spec Fri Dec 22 22:57:23 2006
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+Summary: Produce RRD graphs from lighttpd
+Name: lighttpd-rrd
+Version: 0.2
+Release: 0.8
+License: GPL
+Group: Applications/WWW
+Source0: %{name}.conf
+Source1: %{name}-index.html
+Source2: %{name}-graph.sh
+Source3: %{name}.cron
+Requires: crondaemon
+Requires: lighttpd >= 1.4.13-5.5
+Requires: lighttpd-mod_indexfile
+Requires: lighttpd-mod_rrdtool
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _webapp %{name}
+%define _sysconfdir /etc/lighttpd/webapps.d
+%define _appdir /var/lib/lighttpd/rrd
+
+%description
+Produce graphs from RRD data produced by lighttpd mod_rrdtool module.
+
+%prep
+%setup -qc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_sbindir},/etc/cron.d}
+
+install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/rrd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_appdir}/index.html
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/lighttpd-rrdgraph
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q lighttpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+ %service -q lighttpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rrd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
+%attr(755,root,root) %{_sbindir}/lighttpd-rrdgraph
+%dir %attr(775,root,stats) %{_appdir}
+%{_appdir}/index.html
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/12/22 21:57:23 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list