]> TLD Linux GIT Repositories - packages/munin.git/blob - munin-separate-configs.patch
- logtool seems no longer needed (not found anywhere in sources)
[packages/munin.git] / munin-separate-configs.patch
1 diff -ur munin-2.0.69.orig/common/lib/Munin/Common/Defaults.pm munin-2.0.69/common/lib/Munin/Common/Defaults.pm
2 --- munin-2.0.69.orig/common/lib/Munin/Common/Defaults.pm       2022-08-27 15:17:33.865403125 +0200
3 +++ munin-2.0.69/common/lib/Munin/Common/Defaults.pm    2022-08-27 15:18:27.509508002 +0200
4 @@ -16,7 +16,8 @@
5  our $DROPDOWNLIMIT     = 1;
6  
7  our $MUNIN_PREFIX     = '';
8 -our $MUNIN_CONFDIR    = "$COMPONENT_ROOT/t/config/";
9 +our $MUNIN_MCONFDIR   = "$COMPONENT_ROOT/t/config/";
10 +our $MUNIN_NCONFDIR   = "$COMPONENT_ROOT/t/config/";
11  our $MUNIN_BINDIR     = '';
12  our $MUNIN_SBINDIR    = '';
13  our $MUNIN_DOCDIR     = '';
14 diff -ur munin-2.0.69.orig/doc/installation/configuration.rst munin-2.0.69/doc/installation/configuration.rst
15 --- munin-2.0.69.orig/doc/installation/configuration.rst        2021-11-22 23:12:17.000000000 +0100
16 +++ munin-2.0.69/doc/installation/configuration.rst     2022-08-27 15:18:27.509508002 +0200
17 @@ -9,7 +9,7 @@
18  -------
19  
20  Decide which plugins to use. The munin node runs all plugins present
21 -in CONFDIR/plugins/
22 +in NCONFDIR/plugins/
23  
24  The quick auto-plug-and-play solution:
25  
26 @@ -59,7 +59,7 @@
27  Add some nodes
28  --------------
29  
30 -Add some nodes to CONFDIR/munin.conf
31 +Add some nodes to MCONFDIR/munin.conf
32  
33  [node.example.com]
34    address 192.0.2.4
35 diff -ur munin-2.0.69.orig/Makefile munin-2.0.69/Makefile
36 --- munin-2.0.69.orig/Makefile  2022-08-27 15:17:33.866403127 +0200
37 +++ munin-2.0.69/Makefile       2022-08-27 15:18:27.510508004 +0200
38 @@ -82,7 +82,7 @@
39  # a new config.  Target _only_ suitable for maintainers.
40  unconfig:
41         rm -f $(HTMLDIR)/.htaccess
42 -       rm -f $(CONFDIR)/munin.conf
43 +       rm -f $(MCONFDIR)/munin.conf
44  
45  tags:
46         -rm -f TAGS
47 @@ -97,14 +97,15 @@
48         mkdir -p $(LOGDIR)
49         mkdir -p $(STATEDIR)
50         mkdir -p $(SPOOLDIR)
51 -       mkdir -p $(CONFDIR)
52 +       mkdir -p $(NCONFDIR)
53 +       mkdir -p $(MCONFDIR)
54         $(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
55  
56  install-master-prime: $(INFILES_MASTER) install-pre install-master
57         mkdir -p $(TEMPLATEDIR)
58         mkdir -p $(TEMPLATEDIR)/static
59         mkdir -p $(TEMPLATEDIR)/partial
60 -       mkdir -p $(CONFDIR)/munin-conf.d
61 +       mkdir -p $(MCONFDIR)/munin-conf.d
62         mkdir -p $(LIBDIR)
63         mkdir -p $(BINDIR)
64         mkdir -p $(SBINDIR)
65 @@ -137,7 +138,7 @@
66         $(INSTALL) -m 0644 master/DejaVuSans.ttf $(LIBDIR)/
67  
68         test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(HTMLDIR)/.htaccess
69 -       test -f "$(CONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(CONFDIR)/
70 +       test -f "$(MCONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(MCONFDIR)/
71  
72         $(INSTALL) -m 0755 build/master/_bin/munin-cron $(SBINDIR)/
73         $(INSTALL) -m 0755 build/master/_bin/munin-check $(LIBDIR)/
74 @@ -155,14 +156,14 @@
75  install-plugins-prime: install-plugins build $(PLUGINS) $(MAKEFILES)
76         @$(CHECKGROUP)
77  
78 -       mkdir -p $(CONFDIR)/plugins
79 -       mkdir -p $(CONFDIR)/plugin-conf.d
80 +       mkdir -p $(NCONFDIR)/plugins
81 +       mkdir -p $(NCONFDIR)/plugin-conf.d
82         mkdir -p $(LIBDIR)/plugins
83         mkdir -p $(PLUGSTATE)
84  
85         $(CHOWN) root:root $(PLUGSTATE)
86         $(CHMOD) 0755 $(PLUGSTATE)
87 -       $(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
88 +       $(CHMOD) 0755 $(NCONFDIR)/plugin-conf.d
89  
90         @# Process the OS specific plugins at the end. Otherwise they would be overridden by the
91         @# generic ones.
92 @@ -202,7 +203,7 @@
93  install-node-prime: install-node-pre install-node
94  
95  install-node-pre: build/node/munin-node.conf install-pre
96 -       test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/
97 +       test -f "$(NCONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(NCONFDIR)/
98  
99  
100  install-common-prime: build-common install-common
101 @@ -238,7 +239,8 @@
102         @echo "$< -> $@"
103         @mkdir -p build/`dirname $<`
104         @sed -e 's|@@PREFIX@@|$(PREFIX)|g' \
105 -               -e 's|@@CONFDIR@@|$(CONFDIR)|g' \
106 +               -e 's|@@MCONFDIR@@|$(MCONFDIR)|g' \
107 +               -e 's|@@NCONFDIR@@|$(NCONFDIR)|g' \
108                 -e 's|@@BINDIR@@|$(BINDIR)|g' \
109                 -e 's|@@SBINDIR@@|$(SBINDIR)|g' \
110                 -e 's|@@DOCDIR@@|$(DOCDIR)|g' \
111 @@ -286,7 +288,8 @@
112  
113  substitute-confvar-inline:
114         perl -p -i -e 's|\@\@PREFIX\@\@|$(PREFIX)|g;' \
115 -               -e 's|\@\@CONFDIR\@\@|$(CONFDIR)|g;' \
116 +               -e 's|\@\@MCONFDIR\@\@|$(MCONFDIR)|g;' \
117 +               -e 's|\@\@NCONFDIR\@\@|$(NCONFDIR)|g;' \
118                 -e 's|\@\@BINDIR\@\@|$(BINDIR)|g;' \
119                 -e 's|\@\@SBINDIR\@\@|$(SBINDIR)|g;' \
120                 -e 's|\@\@DOCDIR\@\@|$(DOCDIR)|g;' \
121 @@ -343,7 +346,8 @@
122  substitute-build-defaults-inline:
123         rm -f common/blib/lib/Munin/Common/Defaults.pm
124         $(PERL) -pe 's{(PREFIX\s+=\s).*}{\1q{$(PREFIX)};}x; \
125 -               s{(CONFDIR\s+=\s).*}{\1q{$(CONFDIR)};}x; \
126 +               s{(MCONFDIR\s+=\s).*}{\1q{$(MCONFDIR)};}x; \
127 +               s{(NCONFDIR\s+=\s).*}{\1q{$(NCONFDIR)};}x; \
128                 s{(BINDIR\s+=\s).*}{\1q{$(BINDIR)};}x; \
129                 s{(SBINDIR\s+=\s).*}{\1q{$(SBINDIR)};}x; \
130                 s{(DOCDIR\s+=\s).*}{\1q{$(DOCDIR)};}x; \
131 @@ -498,7 +502,7 @@
132         $(MAKE) $@ CONFIG=t/Makefile.config
133  else
134  test_plugins = id_default id_root env
135 -old-test: t/*.t t/install $(addprefix $(CONFDIR)/plugins/,$(test_plugins))
136 +old-test: t/*.t t/install $(addprefix $(NCONFDIR)/plugins/,$(test_plugins))
137         @for test in t/*.t; do \
138                 echo -n "$$test: "; \
139                 PERL5LIB=$(PERLLIB) $(PERL) $$test;\
140 @@ -506,10 +510,10 @@
141  endif
142  
143  node-monkeywrench: install-node
144 -       rm -rf $(CONFDIR)/plugins
145 +       rm -rf $(NCONFDIR)/plugins
146         rm -rf $(LIBDIR)/plugins
147         mkdir -p $(LIBDIR)/plugins
148 -       mkdir -p $(CONFDIR)/plugins
149 +       mkdir -p $(NCONFDIR)/plugins
150         cp monkeywrench/plugin-break*_ $(LIBDIR)/plugins/
151         $(SBINDIR)/munin-node-configure --suggest
152         echo 'Done?'
153 diff -ur munin-2.0.69.orig/Makefile.config munin-2.0.69/Makefile.config
154 --- munin-2.0.69.orig/Makefile.config   2022-08-27 15:17:33.866403127 +0200
155 +++ munin-2.0.69/Makefile.config        2022-08-27 15:18:27.510508004 +0200
156 @@ -20,7 +20,8 @@
157  PREFIX     = $(DESTDIR)/usr
158  
159  # Where Munin keeps its configurations (server.conf, client.conf, ++)
160 -CONFDIR    = $(DESTDIR)/etc/munin
161 +NCONFDIR    = $(DESTDIR)/etc/munin
162 +MCONFDIR    = $(DESTDIR)/etc/webapps/munin
163  
164  # Server only - where to put munin-cron
165  BINDIR     = $(PREFIX)/bin
166 diff -ur munin-2.0.69.orig/master/_bin/munin-cgi-graph.in munin-2.0.69/master/_bin/munin-cgi-graph.in
167 --- munin-2.0.69.orig/master/_bin/munin-cgi-graph.in    2021-11-22 23:12:17.000000000 +0100
168 +++ munin-2.0.69/master/_bin/munin-cgi-graph.in 2022-08-27 15:18:27.510508004 +0200
169 @@ -42,7 +42,7 @@
170  use Log::Log4perl qw( :easy );
171  
172  my $GRAPHER = "$Munin::Common::Defaults::MUNIN_LIBDIR/munin-graph";
173 -my $conffile = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
174 +my $conffile = "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
175  
176  my %period  = ( "day"   => 300,
177                 "week"  => 1800,
178 diff -ur munin-2.0.69.orig/master/_bin/munin-check.in munin-2.0.69/master/_bin/munin-check.in
179 --- munin-2.0.69.orig/master/_bin/munin-check.in        2021-11-22 23:12:17.000000000 +0100
180 +++ munin-2.0.69/master/_bin/munin-check.in     2022-08-27 15:18:27.510508004 +0200
181 @@ -162,7 +162,7 @@
182  norec=yes owner_ok @@PLUGSTATE@@ @@PLUGINUSER@@
183  norec=yes perm_ok @@PLUGSTATE@@ 775
184  
185 -norec=yes perm_ok @@CONFDIR@@/plugin-conf.d 755
186 +norec=yes perm_ok @@NCONFDIR@@/plugin-conf.d 755
187  
188  echo "Check done.  Please note that this script only checks most things,"
189  echo "not all things."
190 diff -ur munin-2.0.69.orig/master/_bin/munin-graph.in munin-2.0.69/master/_bin/munin-graph.in
191 --- munin-2.0.69.orig/master/_bin/munin-graph.in        2021-11-22 23:12:17.000000000 +0100
192 +++ munin-2.0.69/master/_bin/munin-graph.in     2022-08-27 15:18:27.510508004 +0200
193 @@ -53,7 +53,7 @@
194  use Log::Log4perl qw( :easy );
195  
196  my $GRAPHER = "$Munin::Common::Defaults::MUNIN_LIBDIR/munin-graph";
197 -my $conffile = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
198 +my $conffile = "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
199  
200  my %period  = ( "day"   => 300,
201                 "week"  => 1800,
202 diff -ur munin-2.0.69.orig/master/_bin/munin-limits.in munin-2.0.69/master/_bin/munin-limits.in
203 --- munin-2.0.69.orig/master/_bin/munin-limits.in       2021-11-22 23:12:17.000000000 +0100
204 +++ munin-2.0.69/master/_bin/munin-limits.in    2022-08-27 15:18:27.511508005 +0200
205 @@ -64,7 +64,7 @@
206  
207  =item B<< --config <file> >>
208  
209 -Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin.conf]
210 +Use E<lt>fileE<gt> as configuration file. [@@MCONFDIR@@/munin.conf]
211  
212  =item B<< --always-send <severity list> >>
213  
214 @@ -112,7 +112,7 @@
215  
216  =head1 FILES
217  
218 -       @@CONFDIR@@/munin.conf
219 +       @@MCONFDIR@@/munin.conf
220         @@DBDIR@@/*
221         @@STATEDIR@@/*
222  
223 diff -ur munin-2.0.69.orig/master/_bin/munin-update.in munin-2.0.69/master/_bin/munin-update.in
224 --- munin-2.0.69.orig/master/_bin/munin-update.in       2021-11-22 23:12:17.000000000 +0100
225 +++ munin-2.0.69/master/_bin/munin-update.in    2022-08-27 15:18:27.524508030 +0200
226 @@ -137,7 +137,7 @@
227  
228  =item B<< --config_file=<file> >>
229  
230 -Use E<lt>fileE<gt> as the configuration file. [@@CONFDIR@@/munin.conf]
231 +Use E<lt>fileE<gt> as the configuration file. [@@MCONFDIR@@/munin.conf]
232  
233  =item B<< --[no]debug >>
234  
235 @@ -190,7 +190,7 @@
236  
237  =head1 FILES
238  
239 -       @@CONFDIR@@/munin.conf
240 +       @@MCONFDIR@@/munin.conf
241         @@DBDIR@@/*
242         @@LOGDIR@@/munin-update
243         @@STATEDIR@@/*
244 diff -ur munin-2.0.69.orig/master/doc/munin.conf.pod.in munin-2.0.69/master/doc/munin.conf.pod.in
245 --- munin-2.0.69.orig/master/doc/munin.conf.pod.in      2022-08-27 15:17:33.866403127 +0200
246 +++ munin-2.0.69/master/doc/munin.conf.pod.in   2022-08-27 15:18:27.524508030 +0200
247 @@ -27,7 +27,7 @@
248         [machine1.your.dom]
249                 address localhost
250  
251 -The default location of F<munin.conf> is F<@@CONFDIR@@/munin.conf>.
252 +The default location of F<munin.conf> is F<@@MCONFDIR@@/munin.conf>.
253  If your placement deviates from this norm, use the "--config
254  E<lt>fileE<gt>"-option when running the munin-* programs.
255  
256 @@ -188,20 +188,20 @@
257  =item B<tls_private_key> <value>
258  
259  This directive sets the location of the private key to be used for
260 -TLS.  Default is @@CONFDIR@@/munin.pem.  The private key and
261 +TLS.  Default is @@MCONFDIR@@/munin.pem.  The private key and
262  certificate can be stored in the same file.  Affects: munin-update.
263  
264  =item B<tls_certificate> <value>
265  
266  This directive sets the location of the TLS certificate to be used for
267 -TLS.  Default is @@CONFDIR@@/munin.pem.  The private key and
268 +TLS.  Default is @@MCONFDIR@@/munin.pem.  The private key and
269  certificate can be stored in the same file.  Affects: munin-update.
270  
271  =item B<tls_ca_certificate> <value>
272  
273  This directive sets the CA certificate to be used to verify the node's
274  certificate, if tls_verify_certificate is set to C<yes>.  Default is
275 -@@CONFDIR@@/cacert.pem.  Affects: munin-update.
276 +@@MCONFDIR@@/cacert.pem.  Affects: munin-update.
277  
278  =item B<tls_verify_depth> <value>
279  
280 diff -ur munin-2.0.69.orig/master/doc/munin-cron.pod.in munin-2.0.69/master/doc/munin-cron.pod.in
281 --- munin-2.0.69.orig/master/doc/munin-cron.pod.in      2021-11-22 23:12:17.000000000 +0100
282 +++ munin-2.0.69/master/doc/munin-cron.pod.in   2022-08-27 15:18:27.524508030 +0200
283 @@ -22,7 +22,7 @@
284  
285  =item B<< --config <file> >>
286  
287 -Use E<lt>fileE<gt> as configuration file. [F<@@CONFDIR@@/munin.conf>]
288 +Use E<lt>fileE<gt> as configuration file. [F<@@MCONFDIR@@/munin.conf>]
289  
290  =back
291  
292 diff -ur munin-2.0.69.orig/master/extras/munin-update_old.in munin-2.0.69/master/extras/munin-update_old.in
293 --- munin-2.0.69.orig/master/extras/munin-update_old.in 2021-11-22 23:12:17.000000000 +0100
294 +++ munin-2.0.69/master/extras/munin-update_old.in      2022-08-27 15:18:27.525508032 +0200
295 @@ -42,7 +42,7 @@
296  my $STATS;
297  my $cli_do_fork;
298  my $cli_timeout;
299 -my $conffile = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
300 +my $conffile = "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
301  my $config;
302  my $do_fork = 1;
303  my $serversocket  = "munin-server-socket.$$";
304 @@ -158,7 +158,7 @@
305      --host <host>      Limit graphed hosts to <host>. Multiple --host options
306                         may be supplied.
307      --config <file>    Use <file> as configuration file. 
308 -                       [$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf]
309 +                       [$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf]
310      --[no]debug                View debug messages. [--nodebug]
311      --[no]fork         Don't fork one instance for each host. [--fork]
312      --timeout=<seconds>        TCP timeout when talking to clients. [$timeout]
313 @@ -751,11 +751,11 @@
314         my $ca_cert;
315         my $tls_verify;
316          $key = $cert = munin_get ($config, "tls_pem");
317 -        $key = &munin_get ($config, "tls_private_key", "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.pem")
318 +        $key = &munin_get ($config, "tls_private_key", "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.pem")
319           unless defined $key;
320 -        $cert = &munin_get ($config, "tls_certificate", "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.pem")
321 +        $cert = &munin_get ($config, "tls_certificate", "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.pem")
322           unless defined $cert;
323 -        $ca_cert = &munin_get ($config, "tls_ca_certificate", "$Munin::Common::Defaults::MUNIN_CONFDIR/cacert.pem")
324 +        $ca_cert = &munin_get ($config, "tls_ca_certificate", "$Munin::Common::Defaults::MUNIN_MCONFDIR/cacert.pem")
325             unless defined $ca_cert;
326          $tls_verify=&munin_get ($config, "tls_verify_certificate", "no");
327          $depth=&munin_get ($config, "tls_verify_depth", 5);
328 @@ -1087,7 +1087,7 @@
329  
330  =item B<< --config <file> >>
331  
332 -Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin.conf]
333 +Use E<lt>fileE<gt> as configuration file. [@@MCONFDIR@@/munin.conf]
334  
335  =item B<< --help >>
336  
337 @@ -1123,7 +1123,7 @@
338  
339  =head1 FILES
340  
341 -       @@CONFDIR@@/munin.conf
342 +       @@MCONFDIR@@/munin.conf
343         @@DBDIR@@/*
344         @@LOGDIR@@/munin-update
345         @@STATEDIR@@/*
346 diff -ur munin-2.0.69.orig/master/lib/Munin/Master/Config.pm munin-2.0.69/master/lib/Munin/Master/Config.pm
347 --- munin-2.0.69.orig/master/lib/Munin/Master/Config.pm 2022-08-27 15:17:33.866403127 +0200
348 +++ munin-2.0.69/master/lib/Munin/Master/Config.pm      2022-08-27 15:18:27.525508032 +0200
349 @@ -138,7 +138,7 @@
350             root_instance => 1, 
351  
352             config      => bless ( {
353 -               config_file      => "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf",
354 +               config_file      => "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf",
355                 dbdir            => $Munin::Common::Defaults::MUNIN_DBDIR,
356                 debug            => 0,
357                 fork             => 1,
358 @@ -154,9 +154,9 @@
359                 timeout_fetch_one_node => 180,
360                 timeout_fetch_all_nodes => 240,
361                 tls              => 'disabled',
362 -               tls_ca_certificate => "$Munin::Common::Defaults::MUNIN_CONFDIR/cacert.pem",
363 -               tls_certificate  => "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.pem",
364 -               tls_private_key  => "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.pem",
365 +               tls_ca_certificate => "$Munin::Common::Defaults::MUNIN_MCONFDIR/cacert.pem",
366 +               tls_certificate  => "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.pem",
367 +               tls_private_key  => "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.pem",
368                 tls_verify_certificate => 0,
369                 tls_verify_depth => 5,
370                 tmpldir          => "$Munin::Common::Defaults::MUNIN_TEMPLATEDIR",
371 diff -ur munin-2.0.69.orig/master/lib/Munin/Master/GraphOld.pm munin-2.0.69/master/lib/Munin/Master/GraphOld.pm
372 --- munin-2.0.69.orig/master/lib/Munin/Master/GraphOld.pm       2021-11-22 23:12:17.000000000 +0100
373 +++ munin-2.0.69/master/lib/Munin/Master/GraphOld.pm    2022-08-27 15:18:27.525508032 +0200
374 @@ -98,7 +98,7 @@
375  my $skip_stats     = 0;
376  my $stdout         = 0;
377  my $force_run_as_root = 0;
378 -my $conffile       = $Munin::Common::Defaults::MUNIN_CONFDIR . "/munin.conf";
379 +my $conffile       = $Munin::Common::Defaults::MUNIN_MCONFDIR . "/munin.conf";
380  my $libdir         = $Munin::Common::Defaults::MUNIN_LIBDIR;
381  # Note: Nothing by default is more convenient and elliminates code while
382  # for cgi graphing - but it breaks how munin-graph expected stuff to work.
383 diff -ur munin-2.0.69.orig/master/lib/Munin/Master/HTMLOld.pm munin-2.0.69/master/lib/Munin/Master/HTMLOld.pm
384 --- munin-2.0.69.orig/master/lib/Munin/Master/HTMLOld.pm        2021-11-22 23:12:17.000000000 +0100
385 +++ munin-2.0.69/master/lib/Munin/Master/HTMLOld.pm     2022-08-27 15:18:27.526508034 +0200
386 @@ -81,7 +81,7 @@
387  my @times = ("day", "week", "month", "year");
388  
389  my $DEBUG      = 0;
390 -my $conffile   = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
391 +my $conffile   = "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
392  my $do_usage   = 0;
393  my $do_version = 0;
394  my $stdout     = 0;
395 @@ -936,7 +936,7 @@
396      --service <service>        Compatibility. No effect.
397      --host <host>      Compatibility. No effect.
398      --config <file>    Use <file> as configuration file. 
399 -                       [/etc/munin/munin.conf]
400 +                       [$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf]
401  
402  ";
403      exit 0;
404 @@ -971,7 +971,7 @@
405  
406  =item B<< --config <file> >>
407  
408 -Use E<lt>fileE<gt> as configuration file. [/etc/munin/munin.conf]
409 +Use E<lt>fileE<gt> as configuration file. [@@MCONFDIR@@/munin.conf]
410  
411  =item B<< --help >>
412  
413 @@ -994,7 +994,7 @@
414  
415  =head1 FILES
416  
417 -       @@CONFDIR@@/munin.conf
418 +       @@MCONFDIR@@/munin.conf
419         @@DBDIR@@/datafile
420         @@LOGDIR@@/munin-html
421         @@HTMLDIR@@/*
422 diff -ur munin-2.0.69.orig/master/lib/Munin/Master/LimitsOld.pm munin-2.0.69/master/lib/Munin/Master/LimitsOld.pm
423 --- munin-2.0.69.orig/master/lib/Munin/Master/LimitsOld.pm      2021-11-22 23:12:17.000000000 +0100
424 +++ munin-2.0.69/master/lib/Munin/Master/LimitsOld.pm   2022-08-27 15:18:27.526508034 +0200
425 @@ -57,7 +57,7 @@
426  use Munin::Common::Defaults;
427  
428  my $DEBUG          = 0;
429 -my $conffile       = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
430 +my $conffile       = "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
431  my $do_usage       = 0;
432  my $do_version     = 0;
433  my @limit_hosts    = ();
434 @@ -247,7 +247,7 @@
435      --contact <contact>        Limit notified contacts to <contact>. Multiple 
436                         --contact options may be supplied.
437      --config <file>    Use <file> as configuration file. 
438 -                       [/etc/munin/munin.conf]
439 +                       [$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf]
440  
441  ";
442      exit 0;
443 diff -ur munin-2.0.69.orig/master/lib/Munin/Master/Utils.pm munin-2.0.69/master/lib/Munin/Master/Utils.pm
444 --- munin-2.0.69.orig/master/lib/Munin/Master/Utils.pm  2022-08-27 15:17:33.867403129 +0200
445 +++ munin-2.0.69/master/lib/Munin/Master/Utils.pm       2022-08-27 15:18:27.526508034 +0200
446 @@ -112,7 +112,7 @@
447         },
448  };
449  
450 -my $configfile="$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf";
451 +my $configfile="$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf";
452  
453  # Fields to copy when "aliasing" a field
454  my @COPY_FIELDS    = ("label", "draw", "type", "rrdfile", "fieldname", "info");
455 diff -ur munin-2.0.69.orig/master/munin.conf.in munin-2.0.69/master/munin.conf.in
456 --- munin-2.0.69.orig/master/munin.conf.in      2022-08-27 15:17:33.867403129 +0200
457 +++ munin-2.0.69/master/munin.conf.in   2022-08-27 15:18:27.527508036 +0200
458 @@ -24,7 +24,7 @@
459  # cgitmpdir @@DBDIR@@/cgi-tmp
460  
461  # (Exactly one) directory to include all files from.
462 -includedir @@CONFDIR@@/munin-conf.d
463 +includedir @@MCONFDIR@@/munin-conf.d
464  
465  # You can choose the time reference for "DERIVE" like graphs, and show
466  # "per minute", "per hour" values instead of the default "per second"
467 diff -ur munin-2.0.69.orig/master/t/munin_master_config.t munin-2.0.69/master/t/munin_master_config.t
468 --- munin-2.0.69.orig/master/t/munin_master_config.t    2021-11-22 23:12:17.000000000 +0100
469 +++ munin-2.0.69/master/t/munin_master_config.t 2022-08-27 15:18:27.529508040 +0200
470 @@ -24,7 +24,7 @@
471      },
472  
473      config => {
474 -        config_file     => "$Munin::Common::Defaults::MUNIN_CONFDIR/munin.conf",
475 +        config_file     => "$Munin::Common::Defaults::MUNIN_MCONFDIR/munin.conf",
476          dbdir           => '/opt/munin/sandbox/var/opt/munin',
477          debug           => 0,
478          fork            => 1,
479 diff -ur munin-2.0.69.orig/master/www/munin-htaccess.in munin-2.0.69/master/www/munin-htaccess.in
480 --- munin-2.0.69.orig/master/www/munin-htaccess.in      2021-11-22 23:12:17.000000000 +0100
481 +++ munin-2.0.69/master/www/munin-htaccess.in   2022-08-27 15:18:27.529508040 +0200
482 @@ -9,7 +9,7 @@
483  # 
484  # <directory @@HTMLDIR@@>
485  
486 -AuthUserFile @@CONFDIR@@/munin-htpasswd
487 +AuthUserFile @@MCONFDIR@@/munin-htpasswd
488  AuthName "Munin"
489  AuthType Basic
490  require valid-user
491 diff -ur munin-2.0.69.orig/node/bin/munindoc munin-2.0.69/node/bin/munindoc
492 --- munin-2.0.69.orig/node/bin/munindoc 2021-11-22 23:12:17.000000000 +0100
493 +++ munin-2.0.69/node/bin/munindoc      2022-08-27 15:18:27.530508042 +0200
494 @@ -48,7 +48,7 @@
495  
496  # Dirs in which to look for $plugin.pod and $plugin files.
497  my @DIRS = ("$Munin::Common::Defaults::MUNIN_LIBDIR/plugins",
498 -           "$Munin::Common::Defaults::MUNIN_CONFDIR/plugins",
499 +           "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugins",
500              "$Munin::Common::Defaults::MUNIN_PERLLIB");
501  
502  File::Find::find({wanted => \&wanted_pod}, @DIRS);
503 diff -ur munin-2.0.69.orig/node/doc/munin-node.conf.pod munin-2.0.69/node/doc/munin-node.conf.pod
504 --- munin-2.0.69.orig/node/doc/munin-node.conf.pod      2021-11-22 23:12:17.000000000 +0100
505 +++ munin-2.0.69/node/doc/munin-node.conf.pod   2022-08-27 15:18:27.530508042 +0200
506 @@ -91,20 +91,20 @@
507  =item B<tls_private_key> <value>
508  
509  This directive sets the location of the private key to be used for
510 -TLS.  Default is @@CONFDIR@@/munin-node.pem.  The private key and
511 +TLS.  Default is @@NCONFDIR@@/munin-node.pem.  The private key and
512  certificate can be stored in the same file.
513  
514  =item B<tls_certificate> <value>
515  
516  This directive sets the location of the TLS certificate to be used for
517 -TLS.  Default is @@CONFDIR@@/munin-node.pem.  The private key and
518 +TLS.  Default is @@NCONFDIR@@/munin-node.pem.  The private key and
519  certificate can be stored in the same file.
520  
521  =item B<tls_ca_certificate> <value>
522  
523  This directive sets the CA certificate to be used to verify the node's
524  certificate, if tls_verify_certificate is set to C<yes>.  Default is
525 -@@CONFDIR@@/cacert.pem.
526 +@@NCONFDIR@@/cacert.pem.
527  
528  =item B<tls_verify_depth> <value>
529  
530 diff -ur munin-2.0.69.orig/node/extras/munin-node-simple.in munin-2.0.69/node/extras/munin-node-simple.in
531 --- munin-2.0.69.orig/node/extras/munin-node-simple.in  2021-11-22 23:12:17.000000000 +0100
532 +++ munin-2.0.69/node/extras/munin-node-simple.in       2022-08-27 15:18:27.530508042 +0200
533 @@ -28,8 +28,8 @@
534  
535  $| = 1;
536  
537 -my $clientdir = "@@CONFDIR@@/node.d";
538 -my $conffile  = "@@CONFDIR@@/node-simple.conf";
539 +my $clientdir = "@@NCONFDIR@@/node.d";
540 +my $conffile  = "@@NCONFDIR@@/node-simple.conf";
541  my $version   = "@@VERSION@@";
542  
543  # Empty environment
544 diff -ur munin-2.0.69.orig/node/lib/Munin/Node/Config.pm munin-2.0.69/node/lib/Munin/Node/Config.pm
545 --- munin-2.0.69.orig/node/lib/Munin/Node/Config.pm     2021-11-22 23:12:17.000000000 +0100
546 +++ munin-2.0.69/node/lib/Munin/Node/Config.pm  2022-08-27 15:18:27.530508042 +0200
547 @@ -23,7 +23,7 @@
548          my ($class) = @_;
549  
550          $instance ||= bless {
551 -            config_file  => "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.conf",
552 +            config_file  => "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.conf",
553          }, $class;
554  
555          return $instance;
556 diff -ur munin-2.0.69.orig/node/lib/Munin/Node/Server.pm munin-2.0.69/node/lib/Munin/Node/Server.pm
557 --- munin-2.0.69.orig/node/lib/Munin/Node/Server.pm     2021-11-22 23:12:17.000000000 +0100
558 +++ munin-2.0.69/node/lib/Munin/Node/Server.pm  2022-08-27 15:18:27.531508044 +0200
559 @@ -273,11 +273,11 @@
560      my $mode = $session->{tls_mode};
561  
562      my $key        = $config->{tls_private_key}
563 -                  || "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.pem";
564 +                  || "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.pem";
565      my $cert       = $config->{tls_certificate}
566 -                  || "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.pem";
567 +                  || "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.pem";
568      my $ca_cert    = $config->{tls_ca_certificate}
569 -                  || "$Munin::Common::Defaults::MUNIN_CONFDIR/cacert.pem";
570 +                  || "$Munin::Common::Defaults::MUNIN_NCONFDIR/cacert.pem";
571      my $tls_verify = $config->{tls_verify_certificate}
572                    || 0;
573      my $tls_match  = $config->{tls_match};
574 diff -ur munin-2.0.69.orig/node/lib/Munin/Node/Service.pm munin-2.0.69/node/lib/Munin/Node/Service.pm
575 --- munin-2.0.69.orig/node/lib/Munin/Node/Service.pm    2021-11-22 23:12:17.000000000 +0100
576 +++ munin-2.0.69/node/lib/Munin/Node/Service.pm 2022-08-27 15:18:27.531508044 +0200
577 @@ -20,7 +20,7 @@
578      my ($class, %args) = @_;
579  
580      # Set defaults
581 -    $args{servicedir} ||= "$Munin::Common::Defaults::MUNIN_CONFDIR/plugins";
582 +    $args{servicedir} ||= "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugins";
583  
584      $args{defuser}  = getpwnam $Munin::Common::Defaults::MUNIN_PLUGINUSER unless defined($args{defuser});
585      $args{defgroup} = getgrnam $Munin::Common::Defaults::MUNIN_GROUP unless defined($args{defgroup});
586 diff -ur munin-2.0.69.orig/node/sbin/munin-node munin-2.0.69/node/sbin/munin-node
587 --- munin-2.0.69.orig/node/sbin/munin-node      2021-11-22 23:12:17.000000000 +0100
588 +++ munin-2.0.69/node/sbin/munin-node   2022-08-27 15:18:27.531508044 +0200
589 @@ -34,8 +34,8 @@
590  use Munin::Node::Server;
591  
592  my $servicedir;
593 -my $sconfdir = "$Munin::Common::Defaults::MUNIN_CONFDIR/plugin-conf.d";
594 -my $conffile = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.conf";
595 +my $sconfdir = "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugin-conf.d";
596 +my $conffile = "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.conf";
597  my $DEBUG    = 0;
598  my $PIDEBUG  = 0;
599  my $paranoia = 0;
600 @@ -175,7 +175,7 @@
601  
602  =item B<< --config <configfile> >>
603  
604 -Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf]
605 +Use E<lt>fileE<gt> as configuration file. [@@NCONFDIR@@/munin-node.conf]
606  
607  =item B< --[no]paranoia >
608  
609 @@ -198,9 +198,9 @@
610  
611  =head1 FILES
612  
613 -    @@CONFDIR@@/munin-node.conf
614 -    @@CONFDIR@@/plugins/*
615 -    @@CONFDIR@@/plugin-conf.d/*
616 +    @@NCONFDIR@@/munin-node.conf
617 +    @@NCONFDIR@@/plugins/*
618 +    @@NCONFDIR@@/plugin-conf.d/*
619      @@STATEDIR@@/munin-node.pid
620      @@LOGDIR@@/munin-node.log
621  
622 diff -ur munin-2.0.69.orig/node/sbin/munin-node-configure munin-2.0.69/node/sbin/munin-node-configure
623 --- munin-2.0.69.orig/node/sbin/munin-node-configure    2021-11-22 23:12:17.000000000 +0100
624 +++ munin-2.0.69/node/sbin/munin-node-configure 2022-08-27 15:18:27.531508044 +0200
625 @@ -76,9 +76,9 @@
626  
627  sub parse_args
628  {
629 -       my $conffile   = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.conf";
630 -       my $servicedir = "$Munin::Common::Defaults::MUNIN_CONFDIR/plugins";
631 -       my $sconfdir   = "$Munin::Common::Defaults::MUNIN_CONFDIR/plugin-conf.d";
632 +       my $conffile   = "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.conf";
633 +       my $servicedir = "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugins";
634 +       my $sconfdir   = "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugin-conf.d";
635         my $libdir     = "$Munin::Common::Defaults::MUNIN_LIBDIR/plugins";
636  
637         my $debug = 0;
638 @@ -487,15 +487,15 @@
639  
640  =item B<< --config <file> >>
641  
642 -Override configuration file [@@CONFDIR@@/munin-node.conf]
643 +Override configuration file [@@NCONFDIR@@/munin-node.conf]
644  
645  =item B<< --servicedir <dir> >>
646  
647 -Override plugin directory [@@CONFDIR@@/plugins/]
648 +Override plugin directory [@@NCONFDIR@@/plugins/]
649  
650  =item B<< --sconfdir <dir> >>
651  
652 -Override plugin configuration directory [@@CONFDIR@@/plugin-conf.d/]
653 +Override plugin configuration directory [@@NCONFDIR@@/plugin-conf.d/]
654  
655  =item B<< --libdir <dir> >>
656  
657 @@ -645,9 +645,9 @@
658  
659  =head1 FILES
660  
661 -    @@CONFDIR@@/munin-node.conf
662 -    @@CONFDIR@@/plugin-conf.d/*
663 -    @@CONFDIR@@/plugins/*
664 +    @@NCONFDIR@@/munin-node.conf
665 +    @@NCONFDIR@@/plugin-conf.d/*
666 +    @@NCONFDIR@@/plugins/*
667      @@LIBDIR@@/plugins/plugins.history
668      @@LIBDIR@@/plugins/*
669  
670 diff -ur munin-2.0.69.orig/node/sbin/munin-run munin-2.0.69/node/sbin/munin-run
671 --- munin-2.0.69.orig/node/sbin/munin-run       2021-11-22 23:12:17.000000000 +0100
672 +++ munin-2.0.69/node/sbin/munin-run    2022-08-27 15:18:27.532508046 +0200
673 @@ -21,7 +21,7 @@
674  
675  my $services;
676  my $servicedir;
677 -my $conffile = "$Munin::Common::Defaults::MUNIN_CONFDIR/munin-node.conf";
678 +my $conffile = "$Munin::Common::Defaults::MUNIN_NCONFDIR/munin-node.conf";
679  my $DEBUG    = 0;
680  my $PIDEBUG  = 0;
681  my $paranoia = 0;
682 @@ -341,7 +341,7 @@
683  sub parse_args
684  {
685      # Default configuration values
686 -    my $sconfdir   = "$Munin::Common::Defaults::MUNIN_CONFDIR/plugin-conf.d";
687 +    my $sconfdir   = "$Munin::Common::Defaults::MUNIN_NCONFDIR/plugin-conf.d";
688      my $sconffile;
689  
690      my ($plugin, $arg, @extra_args);
691 @@ -435,15 +435,15 @@
692  
693  =item B<< --config <configfile> >>
694  
695 -Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf]
696 +Use E<lt>fileE<gt> as configuration file. [@@NCONFDIR@@/munin-node.conf]
697  
698  =item B<< --servicedir <dir> >>
699  
700 -Use E<lt>dirE<gt> as plugin dir. [@@CONFDIR@@/plugins/]
701 +Use E<lt>dirE<gt> as plugin dir. [@@NCONFDIR@@/plugins/]
702  
703  =item B<< --sconfdir <dir> >>
704  
705 -Use E<lt>dirE<gt> as plugin configuration dir. [@@CONFDIR@@/plugin-conf.d/]
706 +Use E<lt>dirE<gt> as plugin configuration dir. [@@NCONFDIR@@/plugin-conf.d/]
707  
708  =item B<< --sconffile <file> >>
709  
710 @@ -507,9 +507,9 @@
711  
712  =head1 FILES
713  
714 -    @@CONFDIR@@/munin-node.conf
715 -    @@CONFDIR@@/plugins/*
716 -    @@CONFDIR@@/plugin-conf.d/*
717 +    @@NCONFDIR@@/munin-node.conf
718 +    @@NCONFDIR@@/plugins/*
719 +    @@NCONFDIR@@/plugin-conf.d/*
720      @@STATEDIR@@/munin-node.pid
721      @@LOGDIR@@/munin-node.log
722  
723 diff -ur munin-2.0.69.orig/plugins/node.d/exim_mailqueue.in munin-2.0.69/plugins/node.d/exim_mailqueue.in
724 --- munin-2.0.69.orig/plugins/node.d/exim_mailqueue.in  2021-11-22 23:12:17.000000000 +0100
725 +++ munin-2.0.69/plugins/node.d/exim_mailqueue.in       2022-08-27 15:18:27.532508046 +0200
726 @@ -17,7 +17,7 @@
727    [exim_*]
728      user exim
729  
730 -Configuration parameters for a file in @@CONFDIR@@/plugin-conf.d/
731 +Configuration parameters for a file in @@NCONFDIR@@/plugin-conf.d/
732  if you need to override the defaults below:
733  
734    [exim_mailqueue]
735 diff -ur munin-2.0.69.orig/plugins/node.d/ipmi_sensor_.in munin-2.0.69/plugins/node.d/ipmi_sensor_.in
736 --- munin-2.0.69.orig/plugins/node.d/ipmi_sensor_.in    2021-11-22 23:12:17.000000000 +0100
737 +++ munin-2.0.69/plugins/node.d/ipmi_sensor_.in 2022-08-27 15:18:27.532508046 +0200
738 @@ -17,7 +17,7 @@
739  ipmitool probably needs to be run as root, and it may take more than
740  10 seconds on some hosts.
741  
742 -Add the following to your @@CONFDIR@@/munin-node:
743 +Add the following to your @@NCONFDIR@@/munin-node:
744  
745   [ipmi_sensor_*]
746    user root
747 @@ -49,7 +49,7 @@
748  
749  =head1 BUGS
750  
751 -Plugin reads @@CONFDIR@@/ipmi directly, instead of reading environment
752 +Plugin reads @@NCONFDIR@@/ipmi directly, instead of reading environment
753  variables.
754  
755  =head1 MAGIC MARKERS
756 @@ -72,7 +72,7 @@
757  CACHEDIR = environ['MUNIN_PLUGSTATE']
758  CACHEFILE = "plugin-ipmi_sensor.cache"
759  CACHEAGE = 120
760 -CONFIG = '@@CONFDIR@@/ipmi'
761 +CONFIG = '@@NCONFDIR@@/ipmi'
762  
763  
764  def normalize_sensor(name):
765 diff -ur munin-2.0.69.orig/plugins/node.d/mysql_innodb.in munin-2.0.69/plugins/node.d/mysql_innodb.in
766 --- munin-2.0.69.orig/plugins/node.d/mysql_innodb.in    2022-08-27 15:12:36.156833017 +0200
767 +++ munin-2.0.69/plugins/node.d/mysql_innodb.in 2022-08-27 15:18:27.533508047 +0200
768 @@ -34,7 +34,7 @@
769  
770  =head1 CONFIGURATION
771  
772 -Configuration parameters for @@CONFDIR@@/mysql_innodb,
773 +Configuration parameters for @@NCONFDIR@@/mysql_innodb,
774  if you need to override the defaults below:
775  
776   [mysql_innodb]
777 diff -ur munin-2.0.69.orig/plugins/node.d/mysql_isam_space_.in munin-2.0.69/plugins/node.d/mysql_isam_space_.in
778 --- munin-2.0.69.orig/plugins/node.d/mysql_isam_space_.in       2021-11-22 23:12:17.000000000 +0100
779 +++ munin-2.0.69/plugins/node.d/mysql_isam_space_.in    2022-08-27 15:18:27.533508047 +0200
780 @@ -8,7 +8,7 @@
781  
782  =head1 CONFIGURATION
783  
784 -Configuration parameters for @@CONFDIR@@/PLUGIN,
785 +Configuration parameters for @@NCONFDIR@@/PLUGIN,
786  if you need to override the defaults below:
787  
788   [mysql_isam_space_*]
789 diff -ur munin-2.0.69.orig/plugins/node.d/mysql_threads.in munin-2.0.69/plugins/node.d/mysql_threads.in
790 --- munin-2.0.69.orig/plugins/node.d/mysql_threads.in   2022-08-27 15:12:36.156833017 +0200
791 +++ munin-2.0.69/plugins/node.d/mysql_threads.in        2022-08-27 15:18:27.533508047 +0200
792 @@ -9,7 +9,7 @@
793  
794  =head1 CONFIGURATION
795  
796 -Configuration parameters for @@CONFDIR@@/mysql_threads, if you
797 +Configuration parameters for @@NCONFDIR@@/mysql_threads, if you
798  need to override the defaults below:
799  
800   [mysql_threads]
801 diff -ur munin-2.0.69.orig/plugins/node.d/named.in munin-2.0.69/plugins/node.d/named.in
802 --- munin-2.0.69.orig/plugins/node.d/named.in   2021-11-22 23:12:17.000000000 +0100
803 +++ munin-2.0.69/plugins/node.d/named.in        2022-08-27 15:18:27.533508047 +0200
804 @@ -34,7 +34,7 @@
805  
806  =head1 CONFIGURATION
807  
808 -Configuration parameters for @@CONFDIR@@/named,
809 +Configuration parameters for @@NCONFDIR@@/named,
810  if you need to override the defaults below:
811  
812   [named]
813 diff -ur munin-2.0.69.orig/plugins/node.d/ntp_kernel_pll_freq.in munin-2.0.69/plugins/node.d/ntp_kernel_pll_freq.in
814 --- munin-2.0.69.orig/plugins/node.d/ntp_kernel_pll_freq.in     2022-08-27 15:12:36.157833019 +0200
815 +++ munin-2.0.69/plugins/node.d/ntp_kernel_pll_freq.in  2022-08-27 15:18:27.534508049 +0200
816 @@ -12,7 +12,7 @@
817  
818  No configuration
819  
820 -This plugin optionally reads the file @@CONFDIR@@/ntp-freq-comp, which
821 +This plugin optionally reads the file @@NCONFDIR@@/ntp-freq-comp, which
822  should contain a number to be added to the frequency read by ntpdc.
823  
824  =head1 AUTHORS
825 @@ -42,8 +42,8 @@
826      exit 0
827  fi
828  
829 -if [ -f "@@CONFDIR@@/ntp-freq-comp" ]; then
830 -    fcomp=$(cat "@@CONFDIR@@/ntp-freq-comp")
831 +if [ -f "@@NCONFDIR@@/ntp-freq-comp" ]; then
832 +    fcomp=$(cat "@@NCONFDIR@@/ntp-freq-comp")
833  else
834      fcomp=0
835  fi
836 diff -ur munin-2.0.69.orig/plugins/node.d/postfix_mailstats.in munin-2.0.69/plugins/node.d/postfix_mailstats.in
837 --- munin-2.0.69.orig/plugins/node.d/postfix_mailstats.in       2021-11-22 23:12:17.000000000 +0100
838 +++ munin-2.0.69/plugins/node.d/postfix_mailstats.in    2022-08-27 15:18:27.534508049 +0200
839 @@ -8,7 +8,7 @@
840  
841  =head1 CONFIGURATION
842  
843 -Configuration parameters for @@CONFDIR@@/postfix_mailstats,
844 +Configuration parameters for @@NCONFDIR@@/postfix_mailstats,
845  if you need to override the defaults below:
846  
847   [postfix_mailstats]
848 diff -ur munin-2.0.69.orig/plugins/node.d/psu_.in munin-2.0.69/plugins/node.d/psu_.in
849 --- munin-2.0.69.orig/plugins/node.d/psu_.in    2021-11-22 23:12:17.000000000 +0100
850 +++ munin-2.0.69/plugins/node.d/psu_.in 2022-08-27 15:18:27.534508049 +0200
851 @@ -15,7 +15,7 @@
852  
853  Example:
854  
855 - ln -s @@LIBDIR@@/plugins/psu_ @@CONFDIR@@/plugins/psu_foo
856 + ln -s @@LIBDIR@@/plugins/psu_ @@NCONFDIR@@/plugins/psu_foo
857  
858  ...will monitor the user "foo"
859  
860 diff -ur munin-2.0.69.orig/plugins/node.d/squeezebox_.in munin-2.0.69/plugins/node.d/squeezebox_.in
861 --- munin-2.0.69.orig/plugins/node.d/squeezebox_.in     2021-11-22 23:12:17.000000000 +0100
862 +++ munin-2.0.69/plugins/node.d/squeezebox_.in  2022-08-27 15:18:27.534508049 +0200
863 @@ -20,7 +20,7 @@
864  non-default configuration, please use the environment variables
865  'squeezebox_host' and 'squeezebox_port' to connect. Also, if your
866  nc(1) binary is not called "nc", or not the one in $PATH, please define it
867 -in the plugin's environment file (@@CONFDIR@@/squeezebox or similar).
868 +in the plugin's environment file (@@NCONFDIR@@/squeezebox or similar).
869  
870  Sample follows:
871  
872 diff -ur munin-2.0.69.orig/plugins/node.d/varnish_.in munin-2.0.69/plugins/node.d/varnish_.in
873 --- munin-2.0.69.orig/plugins/node.d/varnish_.in        2021-11-22 23:12:17.000000000 +0100
874 +++ munin-2.0.69/plugins/node.d/varnish_.in     2022-08-27 15:18:27.535508051 +0200
875 @@ -54,7 +54,7 @@
876  You can link them yourself with something like this:
877  
878    ln -s @@LIBDIR@@/plugins/varnish_ \
879 -    @@CONFDIR@@/plugins/varnish_data_structures
880 +    @@NCONFDIR@@/plugins/varnish_data_structures
881  
882  =head1 INTERPRETATION
883  
884 diff -ur munin-2.0.69.orig/plugins/node.d.cygwin/df.in munin-2.0.69/plugins/node.d.cygwin/df.in
885 --- munin-2.0.69.orig/plugins/node.d.cygwin/df.in       2021-11-22 23:12:17.000000000 +0100
886 +++ munin-2.0.69/plugins/node.d.cygwin/df.in    2022-08-27 15:18:27.535508051 +0200
887 @@ -13,7 +13,7 @@
888  
889  =head1 USAGE
890  
891 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
892 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
893  
894  The plugin excludes per default the following special, read-only or
895  dynamically allocating file systems from graphing:
896 diff -ur munin-2.0.69.orig/plugins/node.d.debug/if.in munin-2.0.69/plugins/node.d.debug/if.in
897 --- munin-2.0.69.orig/plugins/node.d.debug/if.in        2021-11-22 23:12:17.000000000 +0100
898 +++ munin-2.0.69/plugins/node.d.debug/if.in     2022-08-27 15:18:27.535508051 +0200
899 @@ -21,7 +21,7 @@
900  
901  =head1 USAGE
902  
903 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
904 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
905  
906  =head1 MAGIC MARKERS
907  
908 diff -ur munin-2.0.69.orig/plugins/node.d.debug/tc.in munin-2.0.69/plugins/node.d.debug/tc.in
909 --- munin-2.0.69.orig/plugins/node.d.debug/tc.in        2021-11-22 23:12:17.000000000 +0100
910 +++ munin-2.0.69/plugins/node.d.debug/tc.in     2022-08-27 15:18:27.535508051 +0200
911 @@ -21,7 +21,7 @@
912  
913  =head1 USAGE
914  
915 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
916 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
917  
918  =head1 MAGIC MARKERS
919  
920 diff -ur munin-2.0.69.orig/plugins/node.d.linux/acpi.in munin-2.0.69/plugins/node.d.linux/acpi.in
921 --- munin-2.0.69.orig/plugins/node.d.linux/acpi.in      2021-11-22 23:12:17.000000000 +0100
922 +++ munin-2.0.69/plugins/node.d.linux/acpi.in   2022-08-27 15:18:27.536508053 +0200
923 @@ -17,7 +17,7 @@
924  
925  =head1 USAGE
926  
927 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
928 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
929  
930  =head1 INTERPRETATION
931  
932 diff -ur munin-2.0.69.orig/plugins/node.d.linux/apt.in munin-2.0.69/plugins/node.d.linux/apt.in
933 --- munin-2.0.69.orig/plugins/node.d.linux/apt.in       2021-11-22 23:12:17.000000000 +0100
934 +++ munin-2.0.69/plugins/node.d.linux/apt.in    2022-08-27 15:18:27.536508053 +0200
935 @@ -38,7 +38,7 @@
936  
937  =head1 USAGE
938  
939 -Link this plugin in @@CONFDIR@@/plugins/ and restart the munin-node.
940 +Link this plugin in @@NCONFDIR@@/plugins/ and restart the munin-node.
941  
942  =head1 NOTES
943  
944 diff -ur munin-2.0.69.orig/plugins/node.d.linux/df.in munin-2.0.69/plugins/node.d.linux/df.in
945 --- munin-2.0.69.orig/plugins/node.d.linux/df.in        2021-11-22 23:12:17.000000000 +0100
946 +++ munin-2.0.69/plugins/node.d.linux/df.in     2022-08-27 15:18:27.536508053 +0200
947 @@ -31,7 +31,7 @@
948      env.warning 92
949      env.critical 98
950  
951 -Put it in a file in @@CONFDIR@@/plugin-conf.d/ and restart the munin-node.
952 +Put it in a file in @@NCONFDIR@@/plugin-conf.d/ and restart the munin-node.
953  
954  You may specify filesystem specific warning and critical levels:
955  
956 @@ -58,7 +58,7 @@
957  
958  =head1 USAGE
959  
960 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
961 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
962  
963  =head1 MAGIC MARKERS
964  
965 diff -ur munin-2.0.69.orig/plugins/node.d.linux/df_inode.in munin-2.0.69/plugins/node.d.linux/df_inode.in
966 --- munin-2.0.69.orig/plugins/node.d.linux/df_inode.in  2021-11-22 23:12:17.000000000 +0100
967 +++ munin-2.0.69/plugins/node.d.linux/df_inode.in       2022-08-27 15:18:27.536508053 +0200
968 @@ -28,7 +28,7 @@
969      env.warning 92
970      env.critical 98
971  
972 -Put it in a file in @@CONFDIR@@/plugin-conf.d/ and restart the munin-node.
973 +Put it in a file in @@NCONFDIR@@/plugin-conf.d/ and restart the munin-node.
974  
975  You may specify filesystem specific warning and critical levels:
976  
977 @@ -55,7 +55,7 @@
978  
979  =head1 USAGE
980  
981 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
982 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
983  
984  =head1 MAGIC MARKERS
985  
986 diff -ur munin-2.0.69.orig/plugins/node.d.linux/fw_conntrack.in munin-2.0.69/plugins/node.d.linux/fw_conntrack.in
987 --- munin-2.0.69.orig/plugins/node.d.linux/fw_conntrack.in      2021-11-22 23:12:17.000000000 +0100
988 +++ munin-2.0.69/plugins/node.d.linux/fw_conntrack.in   2022-08-27 15:18:27.537508055 +0200
989 @@ -11,7 +11,7 @@
990  
991  =head2 CONFIGURATION EXAMPLE
992  
993 -@@CONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
994 +@@NCONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
995  
996   [fw_*]
997    user root
998 diff -ur munin-2.0.69.orig/plugins/node.d.linux/fw_forwarded_local.in munin-2.0.69/plugins/node.d.linux/fw_forwarded_local.in
999 --- munin-2.0.69.orig/plugins/node.d.linux/fw_forwarded_local.in        2021-11-22 23:12:17.000000000 +0100
1000 +++ munin-2.0.69/plugins/node.d.linux/fw_forwarded_local.in     2022-08-27 15:18:27.537508055 +0200
1001 @@ -10,7 +10,7 @@
1002  
1003  =head2 CONFIGURATION EXAMPLE
1004  
1005 -@@CONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
1006 +@@NCONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
1007  
1008   [fw_*]
1009    user root
1010 diff -ur munin-2.0.69.orig/plugins/node.d.linux/fw_packets.in munin-2.0.69/plugins/node.d.linux/fw_packets.in
1011 --- munin-2.0.69.orig/plugins/node.d.linux/fw_packets.in        2021-11-22 23:12:17.000000000 +0100
1012 +++ munin-2.0.69/plugins/node.d.linux/fw_packets.in     2022-08-27 15:18:27.537508055 +0200
1013 @@ -14,7 +14,7 @@
1014  
1015  =head1 CONFIGURATION EXAMPLE
1016  
1017 -@@CONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
1018 +@@NCONFDIR@@/plugin-conf.d/global or other file in that dir must contain:
1019  
1020   [fw*]
1021    user root
1022 diff -ur munin-2.0.69.orig/plugins/node.d.linux/iostat.in munin-2.0.69/plugins/node.d.linux/iostat.in
1023 --- munin-2.0.69.orig/plugins/node.d.linux/iostat.in    2022-08-27 15:16:13.861246722 +0200
1024 +++ munin-2.0.69/plugins/node.d.linux/iostat.in 2022-08-27 15:18:27.537508055 +0200
1025 @@ -24,7 +24,7 @@
1026  
1027  =head1 USAGE
1028  
1029 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
1030 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
1031  
1032  =head1 INTERPRETATION
1033  
1034 diff -ur munin-2.0.69.orig/plugins/node.d.linux/iostat_ios.in munin-2.0.69/plugins/node.d.linux/iostat_ios.in
1035 --- munin-2.0.69.orig/plugins/node.d.linux/iostat_ios.in        2021-11-22 23:12:17.000000000 +0100
1036 +++ munin-2.0.69/plugins/node.d.linux/iostat_ios.in     2022-08-27 15:18:27.538508057 +0200
1037 @@ -15,7 +15,7 @@
1038  
1039  =head1 USAGE
1040  
1041 -Link this into @@CONFDIR@@/plugins/ and restart the munin-node.
1042 +Link this into @@NCONFDIR@@/plugins/ and restart the munin-node.
1043  
1044  =head1 INTERPRETATION
1045  
1046 diff -ur munin-2.0.69.orig/plugins/node.d.linux/irqstats.in munin-2.0.69/plugins/node.d.linux/irqstats.in
1047 --- munin-2.0.69.orig/plugins/node.d.linux/irqstats.in  2021-11-22 23:12:17.000000000 +0100
1048 +++ munin-2.0.69/plugins/node.d.linux/irqstats.in       2022-08-27 15:18:27.538508057 +0200
1049 @@ -18,7 +18,7 @@
1050  
1051  =head1 USAGE
1052  
1053 -Link this plugin to @@CONFDIR@@/plugins/ and restart the munin-node.
1054 +Link this plugin to @@NCONFDIR@@/plugins/ and restart the munin-node.
1055  
1056  =head1 INTERPRETATION
1057  
1058 diff -ur munin-2.0.69.orig/resources/hpux-init.d_munin-node.in munin-2.0.69/resources/hpux-init.d_munin-node.in
1059 --- munin-2.0.69.orig/resources/hpux-init.d_munin-node.in       2021-11-22 23:12:17.000000000 +0100
1060 +++ munin-2.0.69/resources/hpux-init.d_munin-node.in    2022-08-27 15:18:27.538508057 +0200
1061 @@ -6,7 +6,7 @@
1062  PATH=/sbin:/bin:/usr/sbin:/usr/bin
1063  NAME=munin-node
1064  DAEMON=@@SBINDIR@@/$NAME
1065 -CONFFILE=@@CONFDIR@@/munin-node.conf
1066 +CONFFILE=@@NCONFDIR@@/munin-node.conf
1067  RUN_AS=$(awk '$1~/user/{print$2}' $CONFFILE)
1068  PIDFILE=$(awk '$1~/pid/{print$2}' $CONFFILE)
1069  MYCONF=/etc/rc.config.d/muninconf
1070 diff -ur munin-2.0.69.orig/resources/linux-cron.d_munin-node.in munin-2.0.69/resources/linux-cron.d_munin-node.in
1071 --- munin-2.0.69.orig/resources/linux-cron.d_munin-node.in      2021-11-22 23:12:17.000000000 +0100
1072 +++ munin-2.0.69/resources/linux-cron.d_munin-node.in   2022-08-27 15:18:27.538508057 +0200
1073 @@ -8,5 +8,5 @@
1074  # an hour (12 invokations an hour, 1 in 12 chance that the update will
1075  # happen), but ensure that there will never be more than two hour (7200
1076  # seconds) interval between updates..
1077 -*/5 * * * *    root [ -x @@CONFDIR@@/plugins/apt ] && @@CONFDIR@@/plugins/apt update 7200 12 >/dev/null
1078 +*/5 * * * *    root [ -x @@NCONFDIR@@/plugins/apt ] && @@NCONFDIR@@/plugins/apt update 7200 12 >/dev/null
1079  
1080 diff -ur munin-2.0.69.orig/t/Makefile.config munin-2.0.69/t/Makefile.config
1081 --- munin-2.0.69.orig/t/Makefile.config 2021-11-22 23:12:17.000000000 +0100
1082 +++ munin-2.0.69/t/Makefile.config      2022-08-27 15:18:27.539508059 +0200
1083 @@ -9,7 +9,8 @@
1084  PREFIX     = $(PWD)/t/install
1085  
1086  # Where Munin keeps its configurations (server.conf, client.conf, ++)
1087 -CONFDIR    = $(PREFIX)/etc
1088 +MCONFDIR    = $(PREFIX)/etc
1089 +NCONFDIR    = $(PREFIX)/etc
1090  
1091  # Client only - Where to put RRD files and other intenal data
1092  DBDIR      = $(PREFIX)/var/lib