SHA256
1
0
forked from pool/collectd

Accepting request 614917 from home:mnhauke:monitoring

- Fix BuildRequires for collectd-web
- Make apache configuration files compatible with Apache v2.2 and v2.4

OBS-URL: https://build.opensuse.org/request/show/614917
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=150
This commit is contained in:
Lars Vogdt 2018-06-09 17:01:18 +00:00 committed by Git OBS Bridge
parent c467a02b36
commit 892240d373
4 changed files with 42 additions and 29 deletions

View File

@ -3,29 +3,33 @@
# Access control: # Access control:
<Directory "/srv/www/collectd-js"> <Directory "/srv/www/collectd-js">
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require all granted
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny Order allow,deny
Allow from all
# You might want to change this to avoid giving everyone </IfModule>
# access to the collectd statistics, e.g.:
# Allow from all
# Allow from localhost
# Allow from 192.168.
Deny from all
</Directory> </Directory>
<Directory "/srv/www/collectd-js/bin"> <Directory "/srv/www/collectd-js/bin">
Options +ExecCGI Options +ExecCGI
AddHandler cgi-script .cgi AddHandler cgi-script .cgi
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require all granted
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny Order allow,deny
Allow from all
# You might want to change this to give access from </IfModule>
# different hosts to the collectd statistics, e.g.:
#
# Allow from all
# Allow from 192.168.
Allow from localhost
Deny from all
</Directory> </Directory>
</IfModule> </IfModule>

View File

@ -3,15 +3,17 @@
# Access control: # Access control:
<Directory "/srv/www/collectd"> <Directory "/srv/www/collectd">
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require all granted
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny Order allow,deny
Allow from all
# You might want to change this to give access from </IfModule>
# different hosts to the collectd statistics, e.g.:
#
# Allow from all
# Allow from 192.168.
Allow from localhost
Deny from all
</Directory> </Directory>
</IfModule> </IfModule>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 7 12:24:38 UTC 2018 - mardnh@gmx.de
- Fix BuildRequires for collectd-web
- Make apache configuration files compatible with Apache v2.2 and v2.4
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 13 15:50:24 UTC 2017 - stefan.bruens@rwth-aachen.de Wed Dec 13 15:50:24 UTC 2017 - stefan.bruens@rwth-aachen.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package collectd # spec file for package collectd
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2005-2013 Pascal Bleser <pascal.bleser@opensuse.org> # Copyright (c) 2005-2013 Pascal Bleser <pascal.bleser@opensuse.org>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -45,7 +45,7 @@ Name: collectd
Version: 5.7.2 Version: 5.7.2
Release: 0 Release: 0
Summary: Statistics Collection Daemon for filling RRD Files Summary: Statistics Collection Daemon for filling RRD Files
License: GPL-2.0 License: GPL-2.0-only
Group: System/Monitoring Group: System/Monitoring
Url: http://collectd.org/ Url: http://collectd.org/
Source: http://collectd.org/files/collectd-%{version}.tar.bz2 Source: http://collectd.org/files/collectd-%{version}.tar.bz2
@ -156,6 +156,7 @@ Requires: rrdtool
Requires: perl(CGI) Requires: perl(CGI)
Requires: perl(Data::Dumper) Requires: perl(Data::Dumper)
Requires: perl(HTML::Entities) Requires: perl(HTML::Entities)
Requires: perl(RRDs)
Requires: perl(URI::Escape) Requires: perl(URI::Escape)
%description web %description web