summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 028ccb3)
raw | patch | inline | side by side (parent: 028ccb3)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 3 Jan 2013 17:10:19 +0000 (18:10 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 3 Jan 2013 17:10:19 +0000 (18:10 +0100) |
contrib/redhat/collectd.spec | patch | blob | history | |
contrib/redhat/collection3.conf | [new file with mode: 0644] | patch | blob |
contrib/redhat/php-collection.conf | [new file with mode: 0644] | patch | blob |
index 1c9438bf0004fcc68b063de5a4764d00bd2efbc4..830e54a44087ed6bceaf4874d6ee2ffd50696b51 100644 (file)
The Write Redis plugin stores values in Redis, a “data structures server”.
%endif
+%package collection3
+Summary: Web-based viewer for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: httpd
+%description collection3
+collection3 is a graphing front-end for the RRD files created by and filled
+with collectd. It is written in Perl and should be run as an CGI-script.
+Graphs are generated on-the-fly, so no cron job or similar is necessary.
+
+%package php-collection
+Summary: collect php webfrontent
+Group: System Environment/Daemons
+Requires: collectd = %{version}-%{release}
+Requires: httpd
+Requires: php
+Requires: php-rrdtool
+%description php-collection
+PHP graphing frontend for RRD files created by and filled with collectd.
+
%package contrib
Summary: Contrib files for collectd
Group: System Environment/Daemons
%{__install} -d %{buildroot}%{_sharedstatedir}/collectd/
%{__install} -d %{buildroot}%{_sysconfdir}/collectd.d/
+%{__mkdir} -p %{buildroot}%{_localstatedir}/www
+%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
+
+%{__cp} -a contrib/collection3 %{buildroot}%{_localstatedir}/www
+%{__cp} -a contrib/redhat/collection3.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
+
+%{__cp} -a contrib/php-collection %{buildroot}%{_localstatedir}/www
+%{__cp} -a contrib/redhat/php-collection.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
+
### Clean up docs
find contrib/ -type f -exec %{__chmod} a-x {} \;
# *.la files shouldn't be distributed.
%{_libdir}/%{name}/write_redis.so
%endif
+%files collection3
+%{_localstatedir}/www/collection3
+%{_sysconfdir}/httpd/conf.d/collection3.conf
+
+%files php-collection
+%{_localstatedir}/www/php-collection
+%{_sysconfdir}/httpd/conf.d/php-collection.conf
+
%files contrib
%doc contrib/
%changelog
+* Thu Jan 03 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-2
+- collection3 and php-collection viewers are now in separate packages
+
* Fri Dec 21 2012 Marc Fournier <marc.fournier@camptocamp.com> 5.2.0-1
- New upstream version
- Enabled aggregation plugin
diff --git a/contrib/redhat/collection3.conf b/contrib/redhat/collection3.conf
--- /dev/null
@@ -0,0 +1,5 @@
+Alias /collection3/ /var/www/collection3/
+<Directory /var/www/collection3/>
+ Options +Indexes
+ AllowOverride all
+</Directory>
diff --git a/contrib/redhat/php-collection.conf b/contrib/redhat/php-collection.conf
--- /dev/null
@@ -0,0 +1,6 @@
+Alias /php-collection/ /var/www/php-collection/
+<Directory /var/www/php-collection/>
+ DirectoryIndex index.php
+ Options -Indexes
+ AddType application/x-httpd-php .php
+</Directory>