[packages/collectd] - migrate to apache 2.4 - rel 3
baggins
baggins at pld-linux.org
Wed May 15 18:28:05 CEST 2013
commit 197c419778f112a5f988507f4e803593a55ab448
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed May 15 18:27:50 2013 +0200
- migrate to apache 2.4
- rel 3
collectd-apache.conf | 19 +++++++++++++++++++
collectd-http.conf | 5 +----
collectd.spec | 11 +++++++----
3 files changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/collectd.spec b/collectd.spec
index 026c049..0eadc0f 100644
--- a/collectd.spec
+++ b/collectd.spec
@@ -68,7 +68,7 @@ Summary: Collects system information in RRD files
Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
Name: collectd
Version: 5.1.0
-Release: 2
+Release: 3
License: GPL v2
Group: Daemons
Source0: http://collectd.org/files/%{name}-%{version}.tar.bz2
@@ -77,6 +77,7 @@ Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}-http.conf
Source4: %{name}-lighttpd.conf
+Source5: %{name}-apache.conf
Source10: %{name}-df.conf
Source11: %{name}-rrdtool.conf
Patch0: %{name}-collection.patch
@@ -262,6 +263,7 @@ Requires: perl(RRDs)
Requires: perl(URI::Escape)
Requires: webserver(cgi)
Suggests: fonts-TTF-DejaVu
+Conflicts: apache-base < 2.4.0-1
%description collection
Web script for collectd.
@@ -278,6 +280,7 @@ Requires: perl(Regexp::Common)
Requires: perl(RRDs)
Requires: webserver(cgi)
Suggests: fonts-TTF-DejaVu
+Conflicts: apache-base < 2.4.0-1
%description collection3
Web script for collectd.
@@ -1329,7 +1332,7 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
# Web frontend:
install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
-install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
+install %{SOURCE5} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
@@ -1478,10 +1481,10 @@ fi
%triggerun collection -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin collection -- apache < 2.2.0, apache-base
+%triggerin collection -- apache-base
%webapp_register httpd %{_webapp}
-%triggerun collection -- apache < 2.2.0, apache-base
+%triggerun collection -- apache-base
%webapp_unregister httpd %{_webapp}
%triggerin collection -- lighttpd
diff --git a/collectd-apache.conf b/collectd-apache.conf
new file mode 100644
index 0000000..2b79bab
--- /dev/null
+++ b/collectd-apache.conf
@@ -0,0 +1,19 @@
+# $Id$
+
+Alias /collectd /usr/share/collectd
+ScriptAlias /collection /usr/share/collectd/cgi-bin/collection.cgi
+
+<Directory /usr/share/collectd/cgi-bin>
+ Options ExecCGI
+ AddHandler cgi-script .cgi
+
+ AllowOverride AuthConfig Limit
+
+ Order allow,deny
+ Allow from all
+
+ <IfModule mod_expires.c>
+ ExpiresActive On
+ ExpiresByType image/png M5
+ </IfModule>
+</Directory>
diff --git a/collectd-http.conf b/collectd-http.conf
index 2b79bab..77d4c4f 100644
--- a/collectd-http.conf
+++ b/collectd-http.conf
@@ -1,5 +1,3 @@
-# $Id$
-
Alias /collectd /usr/share/collectd
ScriptAlias /collection /usr/share/collectd/cgi-bin/collection.cgi
@@ -9,8 +7,7 @@ ScriptAlias /collection /usr/share/collectd/cgi-bin/collection.cgi
AllowOverride AuthConfig Limit
- Order allow,deny
- Allow from all
+ Require all granted
<IfModule mod_expires.c>
ExpiresActive On
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/collectd.git/commitdiff/197c419778f112a5f988507f4e803593a55ab448
More information about the pld-cvs-commit
mailing list