Index: Makefile.config
--- Makefile.config.orig
+++ Makefile.config
@@ -16,10 +16,10 @@
 #
 # the base of the Munin installation.
 #
-PREFIX     = $(DESTDIR)/opt/munin
+#PREFIX     = $(DESTDIR)/opt/munin
 
 # Where Munin keeps its configurations (server.conf, client.conf, ++)
-CONFDIR    = $(DESTDIR)/etc/opt/munin
+#CONFDIR    = $(DESTDIR)/etc/opt/munin
 
 # Server only - where to put munin-cron
 BINDIR     = $(PREFIX)/bin
@@ -27,6 +27,9 @@ BINDIR     = $(PREFIX)/bin
 # Client only - where to put munin-node, munin-node-configure, and munin-run
 SBINDIR    = $(PREFIX)/sbin
 
+# Where to put templates and other shared files
+SHAREDIR   = $(PREFIX)/share/munin
+
 # Where to put text and html documentation
 DOCDIR     = $(PREFIX)/doc
 
@@ -34,20 +37,20 @@ DOCDIR     = $(PREFIX)/doc
 MANDIR     = $(PREFIX)/man
 
 # Where to put internal binaries and plugin repository
-LIBDIR     = $(PREFIX)/lib
+LIBDIR     = $(PREFIX)/libexec/munin
 
 # Server only - Output directory
-HTMLDIR    = $(PREFIX)/www/docs
-CGIDIR     = $(PREFIX)/www/cgi
+HTMLDIR    = $(DESTDIR)/var/www/htdocs/munin
+CGIDIR     = $(DESTDIR)/var/www/cgi-bin
 
 # Where to put internal data for master (RRD, internal files, ...)
-DBDIR      = $(DESTDIR)/var/opt/munin
+DBDIR      = $(DESTDIR)/var/db/munin
 
 # Where to put CGI cached files (for master only)
 CGITMPDIR  = $(DBDIR)/cgi-tmp
 
 # Where to put internal data for node (plugin state, ...)
-DBDIRNODE  = $(DESTDIR)/var/opt/munin-node
+DBDIRNODE  = $(DESTDIR)/var/db/munin-node
 
 # Client only - Where the spool files are written. Must be writable by
 # group "munin", and should be preserved between reboots
@@ -55,10 +58,10 @@ SPOOLDIR   = $(DBDIR)/spool
 
 # Client only - Where plugins should put their states. Must be writable by
 # group "munin", and should be preserved between reboots
-PLUGSTATE  = $(DBDIRNODE)/plugin-state
+PLUGSTATE  = $(DESTDIR)/var/db/munin-pluginstate
 
 # Where Munin should place its logs.
-LOGDIR     = $(PREFIX)/log/munin
+LOGDIR     = $(DESTDIR)/var/log/munin
 
 # Location of PID files and other statefiles. On the server, must be
 # writable by the user "munin".
@@ -68,7 +71,7 @@ STATEDIR   = $(DESTDIR)/var/run/munin
 PERL       := $(shell which perl)
 
 # The Python interpreter to use (used by some plugins)
-PYTHON     := /usr/bin/env python3
+#PYTHON     := /usr/bin/env python3
 
 # The ruby interpreter to use (used by some plugins)
 RUBY       := /usr/bin/env ruby
@@ -115,14 +118,14 @@ OSTYPE     := $(shell uname | LANG=C tr '[A-Z]' '[a-z]
 
 # How to figure out the hostname. (Only used in default configuration
 # files)
-HOSTNAME   := $(shell hostname)
+HOSTNAME   := localhost
 
 # Munin version number.
 VERSION    := $(shell ./getversion)
 
 # User to run munin as
-USER       := munin
-GROUP      := munin
+USER       := _munin
+GROUP      := _munin
 
 # Default user to run the plugins as
 PLUGINUSER := nobody
@@ -133,8 +136,8 @@ CGIUSER := nobody
 # Which command to use to check if the USER and GROUP to run Munin as, exists.
 ifneq ($(shell which getent),)
     # "getent" works on most modern OS
-    CHECKUSER_COMMAND := getent passwd $(USER)
-    CHECKGROUP_COMMAND := getent group $(GROUP)
+    CHECKUSER_COMMAND :=
+    CHECKGROUP_COMMAND :=
 else
     ifeq ($(OSTYPE),darwin)
         # This should work for OSX 10.5 (Leopard) or later
