Skip to content
Newer
Older
100644 109 lines (79 sloc) 3.3 KB
f0dd33a * Introduce SSPOOLDIR for munin-gather's use
Nicolai Langfeldt authored Sep 23, 2008
1 #
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
2 # MAINTAINER VERSION OF Makefile.config
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
3 #
20a993b Update different Makefile.config versions in various ways
Nicolai Langfeldt authored Mar 23, 2008
4 # This file is used by the maintainer for testing and only necessarily
5 # works on the maintainers machines. Please see Makefile.config-dist
6 # for the user directed Makefile.config as directed in the INSTALL doc.
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
7 #
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
8
9 # This file specifies where Munin will look for things after you've
10 # run 'make' in the source directory. Modify it to suit your needs.
11
20a993b Update different Makefile.config versions in various ways
Nicolai Langfeldt authored Mar 23, 2008
12 # DESTDIR is meant only for use when making Munin packages. Unless
13 # you're doing packaging do NOT set it.
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
14 # DESTDIR is empty during building, and optionally set to point to
15 # a shadow tree during make install.
16
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
17 # Include the default config
18 include Makefile.config-dist
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
19
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
20 # Then override
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
21
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
22 PREFIX = $(DESTDIR)/usr
23 CONFDIR = $(DESTDIR)/etc/munin
24 DOCDIR = $(PREFIX)/share/doc/munin
25 MANDIR = $(PREFIX)/share/man
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
26
27 # Where to put internal binaries and plugin repository
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
28 LIBDIR = $(PREFIX)/share/munin
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
29
30 # Server only - Output directory
ce79311 HTMLDIR should be relative to DESTDIR, not absolute
Matthew Boyle authored Jul 9, 2009
31 HTMLDIR = $(DESTDIR)/var/www/munin
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
32 CGIDIR = $(HTMLDIR)/../cgi
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
33
34 # Client only - Where to put RRD files and other intenal data
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
35 DBDIR = $(DESTDIR)/var/lib/munin
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
36
37 # Client only - Where plugins should put their states. Must be writable by
38 # group "munin", and should be preserved between reboots
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
39 PLUGSTATE = $(DBDIR)/plugin-state
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
40
41 # Where Munin should place its logs.
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
42 LOGDIR = $(DESTDIR)/var/log/munin
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
43
44 # Location of PID files and other statefiles. On the server, must be
45 # writable by the user "munin".
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
46 STATEDIR = $(DESTDIR)/var/run/munin
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
47
48 # The perl interpreter to use
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
49 PERL := $(shell which perl)
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
50
51 # The python interpreter to use (used by some plugins)
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
52 PYTHON := /usr/bin/env python
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
53
fd17915 @knan-linpro add minimal ruby infrastructure
knan-linpro authored Sep 23, 2009
54 # The ruby interpreter to use (used by some plugins)
55 RUBY := /usr/bin/env ruby
56
ca8795e @knan-linpro jmx: add basic java runtime infrastructure
knan-linpro authored Oct 13, 2009
57 # The java runtime to use (used by some plugins)
58 JAVARUN := /usr/bin/java
59
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
60 # A modern shell. We're not looking for arrays, but $() and other modern
20a993b Update different Makefile.config versions in various ways
Nicolai Langfeldt authored Mar 23, 2008
61 # stuff is expected.
62 # Linux: /bin/bash
63 # SunOS/Solaris: /usr/xpg4/bin/sh or /bin/ksh
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
64 # In general: bash or ksh will work
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
65 GOODSH := /bin/bash
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
66
67 # Path of bash for bash specific plugins
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
68 BASH := /bin/bash
b41c3fb * Define GOODSH and BASH in Makefile.config to be used by shell plugins
Nicolai Langfeldt authored Oct 26, 2006
69
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
70 # Server only - Where to install the perl libraries
751f7bf A bit to eager in converting recursivly expanded variables to simply …
Kjell-Magne Øierud authored Mar 16, 2009
71 PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
72 PERLLIB = $(DESTDIR)$(PERLSITELIB)
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
73
74 # Client only - Install plugins for this architecture
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
75 OSTYPE := $(shell uname | tr '[A-Z]' '[a-z]')
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
76
77 # How to figure out the hostname. (Only used in default configuration
78 # files)
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
79 HOSTNAME := $(shell hostname)
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
80
81 # Munin version number.
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
82 VERSION := $(shell ./getversion)
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
83
84 # User to run munin as
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
85 USER := munin
86 GROUP := munin
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
87
88 # Default user to run the plugins as
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
89 PLUGINUSER := nobody
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
90
91 # Which command to use to check if the USER and GROUP to run Munin as, exists.
20a993b Update different Makefile.config versions in various ways
Nicolai Langfeldt authored Mar 23, 2008
92
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
93 GETENT := $(shell which getent || which true 2>/dev/null)
e7de079 nonexistant -> nonexistent
Bjørn Ruberg authored Oct 30, 2009
94 CHECKUSER := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
95 CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
a5d467a * Add maintainer version of Makefile.config - and stop it from being
Nicolai Langfeldt authored Oct 19, 2006
96
275c99e Use "simply expanded variables". This makes make execute faster and e…
Kjell-Magne Øierud authored Mar 16, 2009
97 CHOWN := chown
98 CHMOD := chmod
99 CHGRP := chgrp
105032c @knan-linpro java build infrastructure
knan-linpro authored Oct 12, 2009
100
101 # Java compiler stuff - only needed on the buildhost
102 JC := javac
103 JFLAGS := -g
104 JAR := jar
105
77bdd17 @knan-linpro check whether javac works before using it, skip java plugins if not
knan-linpro authored Oct 28, 2009
106 # Check if the java compiler works
107 JCVALID := $(shell $(JC) -version >/dev/null 2>/dev/null && echo "yes")
108
Something went wrong with that request. Please try again.