--- munin-1.3.3.orig/Makefile.config 2006-11-10 04:39:31.000000000 -0800 +++ munin-1.3.3.orig/Makefile.config 2007-02-25 02:08:46.000000000 -0800 @@ -9,10 +9,10 @@ # # the base of the Munin installation. # -PREFIX = $(DESTDIR)/opt/munin +PREFIX = $(DESTDIR)/usr # Where Munin keeps its configurations (server.conf, client.conf, ++) -CONFDIR = $(DESTDIR)/etc/opt/munin +CONFDIR = $(DESTDIR)/etc/munin # Server only - where to put munin-cron BINDIR = $(PREFIX)/bin @@ -21,31 +21,31 @@ SBINDIR = $(PREFIX)/sbin # Where to put text and html documentation -DOCDIR = $(PREFIX)/doc +DOCDIR = $(PREFIX)/share/doc/munin-$(VERSION) # Where to put man pages -MANDIR = $(PREFIX)/man +MANDIR = $(PREFIX)/share/man # Where to put internal binaries and plugin repository -LIBDIR = $(PREFIX)/lib +LIBDIR = $(PREFIX)/libexec/munin # Server only - Output directory -HTMLDIR = $(PREFIX)/var/www -CGIDIR = $(HTMLDIR)/cgi +HTMLDIR = $(DESTDIR)/var/www/localhost/htdocs/munin +CGIDIR = $(DESTDIR)/var/www/localhost/cgi-bin # Client only - Where to put RRD files and other intenal data -DBDIR = $(DESTDIR)/var/opt/munin +DBDIR = $(DESTDIR)/var/lib/munin # Client only - Where plugins should put their states. Must be writable by # group "munin", and should be preserved between reboots PLUGSTATE = $(DBDIR)/plugin-state # Where Munin should place its logs. -LOGDIR = $(DESTDIR)/var/log/munin +LOGDIR = $(DESTDIR)/var/log/munin # Location of PID files and other statefiles. On the server, must be # writable by the user "munin". -STATEDIR = $(DESTDIR)/var/run/munin +STATEDIR = $(DESTDIR)/var/run/munin # The perl interpreter to use PERL = $(shell which perl) @@ -67,10 +67,11 @@ BASH = /bin/bash # Server only - Where to install the perl libraries -PERLLIB = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d"'" -f2) +PERLLIB = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d"'" -f2) # Client only - Install plugins for this architecture -OSTYPE = $(shell uname | tr '[A-Z]' '[a-z]') +# LANG=C is because some locales are a bit different in their alphabet (eg ee_EE). +OSTYPE = $(shell uname | LANG=C tr '[A-Z]' '[a-z]') # How to figure out the hostname. (Only used in default configuration # files)