forked from munin-monitoring/munin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.build-refactoring
70 lines (47 loc) · 1.75 KB
/
README.build-refactoring
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
=========================
Munin build refactoring
=========================
Abstract
========
The build system is being rewritten.
Parts of munin needing to know the locations of directories, and
configuration values, will get them dynamically, and not hardcoded.
This means we will no longer rewrite hardcoded settings in files at
build time.
Moving a munin directory should be handled by updating the relevant
setting in the munin configuration.
Commands
========
The executable daemons and command line utilities are found in the
shell PATH.
Libraries
=========
Perl scripts will find the Munin libraries in the perl module path.
Depending on the installation method, "site" or "vendor" directories
are used.
If and when modules are made for other languages, they will follow the
same pattern.
Settings
========
Perl scripts will find all settings and directories using variables
from Munin::*::Config
Shell scripts will find munin's directories using variables settings
emitted by a perl script using the above method.
The path to the configuration file is the only thing hardcoded on
build, added to Munin::InstallPaths. (TODO: name needs bikeshedding)
Source
======
The top level builder is the Makefile. "make", "make test" and "make
install" will perform the expected actions.
The perl modules are handled by Build.PL.
The scripts and commands are handled by Build.PL (but could be handled
by the Makefile)
The plugins are handled by Makefile
Installation
============
The installation installs everything as the user running the
installation routine.
In case of a system installation, everything should be owned by
"root".
A script running after installation installs (or changes the owner of)
directories storing variable data used by munin, and munin node.