diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/munin/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/munin/files')
-rw-r--r-- | net-analyzer/munin/files/localstart-munin | 5 | ||||
-rw-r--r-- | net-analyzer/munin/files/logrotate.d-munin.2 | 30 | ||||
-rw-r--r-- | net-analyzer/munin/files/logrotate.d-munin.3 | 31 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-1.3.2-plugins.conf | 81 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-async.service | 10 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-asyncd.init.2 | 20 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-graph.service | 11 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-graph.socket | 8 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-html.service | 11 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-html.socket | 8 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-node.service | 11 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-node_conf.d_1.4.6-r2 | 8 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-node_init.d_2.0.19 | 27 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-node_init.d_2.0.7 | 37 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin.apache.include | 31 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin.apache.include-2.4 | 28 |
16 files changed, 357 insertions, 0 deletions
diff --git a/net-analyzer/munin/files/localstart-munin b/net-analyzer/munin/files/localstart-munin new file mode 100644 index 000000000000..2934cba72c18 --- /dev/null +++ b/net-analyzer/munin/files/localstart-munin @@ -0,0 +1,5 @@ +#!/bin/sh + +mkdir -p /var/run/munin +chown munin:munin /var/run/munin +chmod 0700 /var/run/munin diff --git a/net-analyzer/munin/files/logrotate.d-munin.2 b/net-analyzer/munin/files/logrotate.d-munin.2 new file mode 100644 index 000000000000..96a163accbd6 --- /dev/null +++ b/net-analyzer/munin/files/logrotate.d-munin.2 @@ -0,0 +1,30 @@ +/var/log/munin/munin-node.log { + daily + missingok + rotate 7 + compress + copytruncate + notifempty + create 640 root root + postrotate + /etc/init.d/munin-node restart 1>/dev/null || true + endscript +} + +/var/log/munin/munin-update.log /var/log/munin/munin-graph.log /var/log/munin/munin-html.log /var/log/munin/munin-limits.log { + daily + missingok + rotate 7 + compress + notifempty + nocreate +} + +/var/log/munin/munin-cgi-graph.log /var/log/munin/munin-cgi-html.log { + daily + missingok + rotate 7 + compress + notifempty + create 640 @CGIUSER@ +} diff --git a/net-analyzer/munin/files/logrotate.d-munin.3 b/net-analyzer/munin/files/logrotate.d-munin.3 new file mode 100644 index 000000000000..e7e1dda3fc65 --- /dev/null +++ b/net-analyzer/munin/files/logrotate.d-munin.3 @@ -0,0 +1,31 @@ +/var/log/munin/munin-node.log { + daily + missingok + rotate 7 + compress + copytruncate + notifempty + create 640 root root + postrotate + test -e /run/openrc/softlevel && /etc/init.d/munin-node restart 1>/dev/null || true + test -e /run/systemd/system && systemctl restart munin-node 1>/dev/null || true + endscript +} + +/var/log/munin/munin-update.log /var/log/munin/munin-graph.log /var/log/munin/munin-html.log /var/log/munin/munin-limits.log { + daily + missingok + rotate 7 + compress + notifempty + nocreate +} + +/var/log/munin/munin-cgi-graph.log /var/log/munin/munin-cgi-html.log { + daily + missingok + rotate 7 + compress + notifempty + create 640 @CGIUSER@ +} diff --git a/net-analyzer/munin/files/munin-1.3.2-plugins.conf b/net-analyzer/munin/files/munin-1.3.2-plugins.conf new file mode 100644 index 000000000000..9be6433ddc9f --- /dev/null +++ b/net-analyzer/munin/files/munin-1.3.2-plugins.conf @@ -0,0 +1,81 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +# +# This file contains configuration options for the plugins. Three +# options are understood by munin-node itself: +# +# user <user> # Set the user to run the plugin as +# group <group> # Set the group to run the plugin as +# command <command> # Run <command> instead of the plugin. %c +# expands to what would normally be run. +# env.<variable> # Sets <variable> in the plugin's environment, see the +# individual plugins to find out which variables they +# care about. +# +# + +[smart_*] +user root +group disk + +# ipmitool and freeipmi need access to the IPMI device nodes, which +# are only readable by root +[ipmi_*] +user root + +[freeipmi_*] +user root + +# Example for a 3ware 8000-series card, with 2 disks +# use /dev/twe0 as the actual device +# and replicate this entry for each drive, increasing the number in -d +#[smart_3ware-0_twe0] +#user root +#group root +#env.smartargs -H -i -c -l error -l selftest -l selective -a -d 3ware,0 +#[smart_3ware-1_twe0] +#user root +#group root +#env.smartargs -H -i -c -l error -l selftest -l selective -a -d 3ware,1 + +[bind9*] +user root + +[iostat*] +user munin +group munin + +[iostat_ios] +user root +group disk + +[vlan*] +user root + +[postfix*] +user root +env.logfile maillog + +[sendmail*] +env.mspqueue /var/spool/clientmqueue + +[mysql*] +#env.mysqlopts -u someuser + +[exim*] +group mail + +[cps*] +user root + +[mailman] +env.logfile /var/lib/mailman/logs/post +env.libdir /var/lib/mailman +env.lister /usr/lib/mailman/bin/list_members + +# More 3ware examples +#[hddtemp_smartctl] +#env.drives twe0_0 twe0_1 hda +#env.type_twe0_0 3ware,0 +#env.type_twe0_1 3ware,1 diff --git a/net-analyzer/munin/files/munin-async.service b/net-analyzer/munin/files/munin-async.service new file mode 100644 index 000000000000..add6d238f456 --- /dev/null +++ b/net-analyzer/munin/files/munin-async.service @@ -0,0 +1,10 @@ +[Unit] +Description=Munin Async Service +After=syslog.target network.target + +[Service] +PIDFile=/run/munin/munin-asyncd.pid +ExecStart=/usr/libexec/munin/munin-asyncd + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/munin/files/munin-asyncd.init.2 b/net-analyzer/munin/files/munin-asyncd.init.2 new file mode 100644 index 000000000000..1e3f0a4a3858 --- /dev/null +++ b/net-analyzer/munin/files/munin-asyncd.init.2 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command=/usr/libexec/munin/munin-asyncd +command_args="--fork" +pidfile="/run/munin-asyncd.pid" +start_stop_daemon_args="--background --make-pidfile --user munin-async" + +depend() { + need munin-node + before cron +} + +start_pre() { + checkpath -d -o munin-async:munin -m 0750 /var/spool/munin-async +} + +# vim: filetype=gentoo-init-d: diff --git a/net-analyzer/munin/files/munin-graph.service b/net-analyzer/munin/files/munin-graph.service new file mode 100644 index 000000000000..9aea1da64e95 --- /dev/null +++ b/net-analyzer/munin/files/munin-graph.service @@ -0,0 +1,11 @@ +[Unit] +Description=Munin FastCGI Graph +Requires=munin-graph.socket + +[Service] +User=munin +Group=munin +ExecStart=/usr/libexec/munin/munin-graph +StandardInput=socket +StandardOutput=inherit +StandardError=journal diff --git a/net-analyzer/munin/files/munin-graph.socket b/net-analyzer/munin/files/munin-graph.socket new file mode 100644 index 000000000000..533c709c50ec --- /dev/null +++ b/net-analyzer/munin/files/munin-graph.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Munin FastCGI Graph Socket + +[Socket] +ListenStream=/run/munin/fcgi-graph.sock + +[Install] +WantedBy=sockets.target diff --git a/net-analyzer/munin/files/munin-html.service b/net-analyzer/munin/files/munin-html.service new file mode 100644 index 000000000000..09fdf162722b --- /dev/null +++ b/net-analyzer/munin/files/munin-html.service @@ -0,0 +1,11 @@ +[Unit] +Description=Munin FastCGI HTML +Requires=munin-html.socket + +[Service] +User=munin +Group=munin +ExecStart=/usr/libexec/munin/munin-html +StandardInput=socket +StandardOutput=inherit +StandardError=journal diff --git a/net-analyzer/munin/files/munin-html.socket b/net-analyzer/munin/files/munin-html.socket new file mode 100644 index 000000000000..52fc3c354d33 --- /dev/null +++ b/net-analyzer/munin/files/munin-html.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Munin FastCGI HTML Socket + +[Socket] +ListenStream=/run/munin/fcgi-html.sock + +[Install] +WantedBy=sockets.target diff --git a/net-analyzer/munin/files/munin-node.service b/net-analyzer/munin/files/munin-node.service new file mode 100644 index 000000000000..92c314b6ec33 --- /dev/null +++ b/net-analyzer/munin/files/munin-node.service @@ -0,0 +1,11 @@ +[Unit] +Description=Munin Node Service +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/run/munin-node.pid +ExecStart=/usr/sbin/munin-node + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/munin/files/munin-node_conf.d_1.4.6-r2 b/net-analyzer/munin/files/munin-node_conf.d_1.4.6-r2 new file mode 100644 index 000000000000..9d8b5afa9673 --- /dev/null +++ b/net-analyzer/munin/files/munin-node_conf.d_1.4.6-r2 @@ -0,0 +1,8 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Set to the nice level for daemon +NICE_LEVEL=1 + +# vim: filetype=gentoo-conf-d: diff --git a/net-analyzer/munin/files/munin-node_init.d_2.0.19 b/net-analyzer/munin/files/munin-node_init.d_2.0.19 new file mode 100644 index 000000000000..56dcaa043ab4 --- /dev/null +++ b/net-analyzer/munin/files/munin-node_init.d_2.0.19 @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +get_munin_config() { + awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE" +} + +: ${CFGFILE:=/etc/munin/munin-node.conf} + +command=/usr/sbin/munin-node +command_args="--config ${CFGFILE}" +pidfile=$(get_munin_config pid_file) +start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0} --wait 1500" +extra_started_commands="reload" + +depend() { + config "$CFGFILE" + + before cron + + [ "$(get_munin_config log_file)" = "Sys::Syslog" ] && \ + use logger +} + +# vim: filetype=gentoo-init-d: diff --git a/net-analyzer/munin/files/munin-node_init.d_2.0.7 b/net-analyzer/munin/files/munin-node_init.d_2.0.7 new file mode 100644 index 000000000000..0f604af577fa --- /dev/null +++ b/net-analyzer/munin/files/munin-node_init.d_2.0.7 @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +get_munin_config() { + awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE" +} + +: ${CFGFILE:=/etc/munin/munin-node.conf} + +command=/usr/sbin/munin-node +command_args="--config ${CFGFILE}" +pidfile=$(get_munin_config pid_file) +start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0} --wait 1500" +extra_started_commands="reload" + +depend() { + config "$CFGFILE" + + before cron + + [ "$(get_munin_config log_file)" = "Sys::Syslog" ] && \ + use logger +} + +start_pre() { + checkpath -d $(dirname ${pidfile}) +} + +reload() { + ebegin "Reloading ${SERVICE}" + kill -HUP `cat ${pidfile}` + eend $? +} + +# vim: filetype=gentoo-init-d: diff --git a/net-analyzer/munin/files/munin.apache.include b/net-analyzer/munin/files/munin.apache.include new file mode 100644 index 000000000000..f8b2df5daa66 --- /dev/null +++ b/net-analyzer/munin/files/munin.apache.include @@ -0,0 +1,31 @@ +# -*- apache -*- + +ScriptAlias /munin-cgi/ /usr/libexec/munin/cgi/ +Alias /munin/static /etc/munin/static + +<IfDefine MUNIN_HTML_CGI> +RewriteEngine on + +RewriteCond %{REQUEST_URI} (/|\.html)$ +RewriteCond %{REQUEST_URI} !/static +RewriteRule ^/munin/(.*) /munin-cgi/munin-cgi-html/$1 [PT,L] +</IfDefine> + +<Directory /usr/libexec/munin/cgi/> + Options +ExecCGI + + Order allow,deny + Allow from all + + <IfModule mod_fcgid.c> + SetHandler fcgid-script + </IfModule> + <IfModule !mod_fcgid.c> + SetHandler cgi-script + </IfModule> +</Directory> + +<Directory /etc/munin/static> + Order allow,deny + Allow from all +</Directory> diff --git a/net-analyzer/munin/files/munin.apache.include-2.4 b/net-analyzer/munin/files/munin.apache.include-2.4 new file mode 100644 index 000000000000..ec69cbb07b91 --- /dev/null +++ b/net-analyzer/munin/files/munin.apache.include-2.4 @@ -0,0 +1,28 @@ +# -*- apache -*- + +ScriptAlias /munin-cgi/ /usr/libexec/munin/cgi/ +Alias /munin/static /etc/munin/static + +<IfDefine MUNIN_HTML_CGI> +RewriteEngine on + +RewriteCond %{REQUEST_URI} (/|\.html)$ +RewriteCond %{REQUEST_URI} !/static +RewriteRule ^/munin/(.*) /munin-cgi/munin-cgi-html/$1 [PT,L] +</IfDefine> + +<Directory /usr/libexec/munin/cgi/> + Options +ExecCGI + Require all granted + + <IfModule mod_fcgid.c> + SetHandler fcgid-script + </IfModule> + <IfModule !mod_fcgid.c> + SetHandler cgi-script + </IfModule> +</Directory> + +<Directory /etc/munin/static> + Require all granted +</Directory> |