Lines 17-26
Link Here
|
17 |
# |
17 |
# |
18 |
# the base of the Munin installation. |
18 |
# the base of the Munin installation. |
19 |
# |
19 |
# |
20 |
PREFIX = $(DESTDIR)/opt/munin |
20 |
PREFIX = $(DESTDIR)/usr |
21 |
|
21 |
|
22 |
# Where Munin keeps its configurations (server.conf, client.conf, ++) |
22 |
# Where Munin keeps its configurations (server.conf, client.conf, ++) |
23 |
CONFDIR = $(DESTDIR)/etc/opt/munin |
23 |
CONFDIR = $(DESTDIR)/etc/munin |
24 |
|
24 |
|
25 |
# Server only - where to put munin-cron |
25 |
# Server only - where to put munin-cron |
26 |
BINDIR = $(PREFIX)/bin |
26 |
BINDIR = $(PREFIX)/bin |
Lines 29-65
Link Here
|
29 |
SBINDIR = $(PREFIX)/sbin |
29 |
SBINDIR = $(PREFIX)/sbin |
30 |
|
30 |
|
31 |
# Where to put text and html documentation |
31 |
# Where to put text and html documentation |
32 |
DOCDIR = $(PREFIX)/doc |
32 |
DOCDIR = $(PREFIX)/share/doc/munin-$(VERSION) |
33 |
|
33 |
|
34 |
# Where to put man pages |
34 |
# Where to put man pages |
35 |
MANDIR = $(PREFIX)/man |
35 |
MANDIR = $(PREFIX)/share/man |
36 |
|
36 |
|
37 |
# Where to put internal binaries and plugin repository |
37 |
# Where to put internal binaries and plugin repository |
38 |
LIBDIR = $(PREFIX)/lib |
38 |
LIBDIR = $(PREFIX)/libexec/munin |
39 |
|
39 |
|
40 |
# Server only - Output directory |
40 |
# Server only - Output directory |
41 |
HTMLDIR = $(PREFIX)/www/docs |
41 |
HTMLDIR = $(PREFIX)/var/www/localhost/htdocs/munin |
42 |
CGIDIR = $(PREFIX)/www/cgi |
42 |
CGIDIR = $(PREFIX)/var/www/localhost/cgi-bin |
43 |
|
43 |
|
44 |
# Server only - spool directory for data gathered from nodes by |
44 |
# Server only - spool directory for data gathered from nodes by |
45 |
# munin-gather - experimental. Place on ramdisk to make munin |
45 |
# munin-gather - experimental. Place on ramdisk to make munin |
46 |
# scale better. On many versions of Linux as well as on Solaris |
46 |
# scale better. On many versions of Linux as well as on Solaris |
47 |
# /tmp will be a ramdisk. |
47 |
# /tmp will be a ramdisk. |
48 |
|
48 |
|
49 |
SSPOOLDIR = $(PREFIX)/spool |
49 |
SSPOOLDIR = $(DESTDIR)/var/run/munin/spool |
50 |
|
50 |
|
51 |
# Suggested directory name for a pulic ramdisk based tmp directory. |
51 |
# Suggested directory name for a pulic ramdisk based tmp directory. |
52 |
# SSPOOLDIR := /tmp/muninspool |
52 |
# SSPOOLDIR := /tmp/muninspool |
53 |
|
53 |
|
54 |
# Client only - Where to put RRD files and other intenal data |
54 |
# Client only - Where to put RRD files and other intenal data |
55 |
DBDIR = $(DESTDIR)/var/opt/munin |
55 |
DBDIR = $(DESTDIR)/var/lib/munin |
56 |
|
56 |
|
57 |
# Client only - Where plugins should put their states. Must be writable by |
57 |
# Client only - Where plugins should put their states. Must be writable by |
58 |
# group "munin", and should be preserved between reboots |
58 |
# group "munin", and should be preserved between reboots |
59 |
PLUGSTATE = $(DBDIR)/plugin-state |
59 |
PLUGSTATE = $(DBDIR)/plugin-state |
60 |
|
60 |
|
61 |
# Where Munin should place its logs. |
61 |
# Where Munin should place its logs. |
62 |
LOGDIR = $(PREFIX)/log/munin |
62 |
LOGDIR = $(DESTDIR)/var/log/munin |
63 |
|
63 |
|
64 |
# Location of PID files and other statefiles. On the server, must be |
64 |
# Location of PID files and other statefiles. On the server, must be |
65 |
# writable by the user "munin". |
65 |
# writable by the user "munin". |
Lines 98-108
Link Here
|
98 |
BASH := /bin/bash |
98 |
BASH := /bin/bash |
99 |
|
99 |
|
100 |
# Server only - Where to install the perl libraries |
100 |
# Server only - Where to install the perl libraries |
101 |
PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2) |
101 |
PERLSITELIB := $(shell $(PERL) -V:vendorlib | cut -d"'" -f2) |
102 |
PERLLIB = $(DESTDIR)$(PERLSITELIB) |
102 |
PERLLIB = $(DESTDIR)$(PERLSITELIB) |
103 |
|
103 |
|
104 |
# Client only - Install plugins for this architecture |
104 |
# Client only - Install plugins for this architecture |
105 |
OSTYPE := $(shell uname | tr '[A-Z]' '[a-z]') |
105 |
OSTYPE := $(shell uname | LANG=C tr '[A-Z]' '[a-z]') |
106 |
|
106 |
|
107 |
# How to figure out the hostname. (Only used in default configuration |
107 |
# How to figure out the hostname. (Only used in default configuration |
108 |
# files) |
108 |
# files) |