Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/munin/files: munin.apache.include logrotate.d-munin.2
Date: Sun, 04 Nov 2012 22:15:57
Message-Id: 20121104221529.9A3CE215F3@flycatcher.gentoo.org
1 flameeyes 12/11/04 22:15:29
2
3 Added: munin.apache.include logrotate.d-munin.2
4 Log:
5 Add a much better support for cgi including an almost automatic configuration for Apache.
6
7 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
8
9 Revision Changes Path
10 1.1 net-analyzer/munin/files/munin.apache.include
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin.apache.include?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin.apache.include?rev=1.1&content-type=text/plain
14
15 Index: munin.apache.include
16 ===================================================================
17 # -*- apache -*-
18
19 ScriptAlias /munin-cgi/ /usr/libexec/munin/cgi/
20 Alias /munin/static /etc/munin/static
21
22 <IfDefine MUNIN_HTML_CGI>
23 RewriteEngine on
24
25 RewriteCond %{REQUEST_URI} (/|\.html)$
26 RewriteCond %{REQUEST_URI} !/static
27 RewriteRule ^/munin/(.*) /munin-cgi/munin-cgi-html/$1 [PT,L]
28 </IfDefine>
29
30 <Directory "/usr/libexec/munin/cgi/">
31 Options +ExecCGI
32
33 # for Apache < 2.4
34 <IfModule !mod_authz_host.c>
35 Order Deny,Allow
36 Allow from all
37 </IfModule>
38 # for Apache >= 2.4
39 <IfModule mod_authz_host.c>
40 Require all granted
41 </IfModule>
42
43 <IfModule mod_fcgid.c>
44 SetHandler fcgid-script
45 </IfModule>
46 <IfModule !mod_fcgid.c>
47 SetHandler cgi-script
48 </IfModule>
49 </Directory>
50
51 <Directory "/etc/munin/static">
52 # for Apache < 2.4
53 <IfModule !mod_authz_host.c>
54 Order Deny,Allow
55 Allow from all
56 </IfModule>
57 # for Apache >= 2.4
58 <IfModule mod_authz_host.c>
59 Require all granted
60 </IfModule>
61 </Directory>
62
63
64
65 1.1 net-analyzer/munin/files/logrotate.d-munin.2
66
67 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/logrotate.d-munin.2?rev=1.1&view=markup
68 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/logrotate.d-munin.2?rev=1.1&content-type=text/plain
69
70 Index: logrotate.d-munin.2
71 ===================================================================
72 /var/log/munin/munin-node.log {
73 daily
74 missingok
75 rotate 7
76 compress
77 copytruncate
78 notifempty
79 create 640 root root
80 postrotate
81 /etc/init.d/munin-node restart 1>/dev/null || true
82 endscript
83 }
84
85 /var/log/munin/munin-update.log /var/log/munin/munin-graph.log /var/log/munin/munin-html.log /var/log/munin/munin-limits.log {
86 daily
87 missingok
88 rotate 7
89 compress
90 notifempty
91 nocreate
92 }
93
94 /var/log/munin/munin-cgi-graph.log {
95 daily
96 missingok
97 rotate 7
98 compress
99 notifempty
100 create 640 @CGIUSER@
101 }