[csw-devel] SF.net SVN: gar:[18607] csw/mgar/pkg/munin/trunk

j_arndt at users.sourceforge.net j_arndt at users.sourceforge.net
Sun Jul 1 10:36:25 CEST 2012


Revision: 18607
          http://gar.svn.sourceforge.net/gar/?rev=18607&view=rev
Author:   j_arndt
Date:     2012-07-01 08:36:25 +0000 (Sun, 01 Jul 2012)
Log Message:
-----------
munin/trunk: update to Munin 2.0.2

Modified Paths:
--------------
    csw/mgar/pkg/munin/trunk/Makefile
    csw/mgar/pkg/munin/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch

Removed Paths:
-------------
    csw/mgar/pkg/munin/trunk/files/0001-Expand-paths-with-DESTDIR.patch

Modified: csw/mgar/pkg/munin/trunk/Makefile
===================================================================
--- csw/mgar/pkg/munin/trunk/Makefile	2012-06-29 13:47:35 UTC (rev 18606)
+++ csw/mgar/pkg/munin/trunk/Makefile	2012-07-01 08:36:25 UTC (rev 18607)
@@ -1,5 +1,5 @@
 NAME = munin
-VERSION = 2.0.0
+VERSION = 2.0.2
 CATEGORIES = apps
 GARTYPE = v2
 
@@ -17,7 +17,7 @@
 DISTFILES += CSWmunin-master.README.CSW
 DISTFILES += CSWmunin-node.README.CSW
 
-PATCHFILES	+= 0001-Expand-paths-with-DESTDIR.patch
+PATCHFILES	+= 0004-Expand-paths-with-DESTDIR.patch
 PATCHFILES	+= 0001-paths-in-Makefile.config.patch
 PATCHFILES	+= 0001-paths-and-hostname-in-munin-node.conf.in.patch
 PATCHFILES	+= 0001-replace-yourhostname-with-hostname-in-postinstall.patch

Modified: csw/mgar/pkg/munin/trunk/checksums
===================================================================
--- csw/mgar/pkg/munin/trunk/checksums	2012-06-29 13:47:35 UTC (rev 18606)
+++ csw/mgar/pkg/munin/trunk/checksums	2012-07-01 08:36:25 UTC (rev 18607)
@@ -1 +1 @@
-9cbe5b5651905cc022f6c97489396564  munin-2.0.0.tar.gz
+5020eaf323f08ec09600a0b07622861a  munin-2.0.2.tar.gz

Deleted: csw/mgar/pkg/munin/trunk/files/0001-Expand-paths-with-DESTDIR.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0001-Expand-paths-with-DESTDIR.patch	2012-06-29 13:47:35 UTC (rev 18606)
+++ csw/mgar/pkg/munin/trunk/files/0001-Expand-paths-with-DESTDIR.patch	2012-07-01 08:36:25 UTC (rev 18607)
@@ -1,365 +0,0 @@
-From 5d6dad6dcd4f57e114f39fe8b467bdf92172f62b Mon Sep 17 00:00:00 2001
-From: Juergen Arndt <ja at opencsw.org>
-Date: Sun, 3 Jun 2012 17:51:49 +0200
-Subject: [PATCH] Expand paths with $(DESTDIR)
-
----
- Makefile |  224 +++++++++++++++++++++++++++++++-------------------------------
- 1 file changed, 113 insertions(+), 111 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index f610539..bd3d9a6 100644
---- a/Makefile
-+++ b/Makefile
-@@ -9,6 +9,8 @@
- DEFAULTS = Makefile.config
- CONFIG = Makefile.config
- 
-+DESTDIR =
-+
- include $(DEFAULTS)
- include $(CONFIG)
- 
-@@ -49,8 +51,8 @@ uninstall:
- # This removes the installed config so that the next install-pass installs
- # a new config.  Target _only_ suitable for maintainers.
- unconfig:
--	rm -f $(HTMLDIR)/.htaccess
--	rm -f $(CONFDIR)/munin.conf
-+	rm -f $(DESTDIR)$(HTMLDIR)/.htaccess
-+	rm -f $(DESTDIR)$(CONFDIR)/munin.conf
- 
- tags:
- 	-rm -f TAGS
-@@ -66,63 +68,63 @@ endif
- 
- install-pre: Makefile Makefile.config
- 	@$(CHECKUSER)
--	mkdir -p $(LOGDIR)
--	mkdir -p $(STATEDIR)
--	mkdir -p $(SPOOLDIR)
--	mkdir -p $(CONFDIR)
--	$(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
-+	mkdir -p $(DESTDIR)$(LOGDIR)
-+	mkdir -p $(DESTDIR)$(STATEDIR)
-+	mkdir -p $(DESTDIR)$(SPOOLDIR)
-+	mkdir -p $(DESTDIR)$(CONFDIR)
-+#	$(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
- 
- install-master-prime: $(INFILES_MASTER) install-pre install-master
--	mkdir -p $(CONFDIR)/templates
--	mkdir -p $(CONFDIR)/static
--	mkdir -p $(CONFDIR)/templates/partial
--	mkdir -p $(CONFDIR)/munin-conf.d
--	mkdir -p $(LIBDIR)
--	mkdir -p $(BINDIR)
--	mkdir -p $(PERLLIB)
--	mkdir -p $(PERLLIB)/Munin/Master
--	mkdir -p $(HTMLDIR)
--	mkdir -p $(DBDIR)
--	mkdir -p $(DBDIR)/cgi-tmp
--	mkdir -p $(CGIDIR)
--
--	$(CHOWN) $(USER) $(HTMLDIR) $(DBDIR)
--	$(CHMOD) 0755 $(DBDIR)
--
--	$(CHOWN) $(CGIUSER) $(DBDIR)/cgi-tmp
--	$(CHMOD) 0755 $(DBDIR)/cgi-tmp
-+	mkdir -p $(DESTDIR)$(CONFDIR)/templates
-+	mkdir -p $(DESTDIR)$(CONFDIR)/static
-+	mkdir -p $(DESTDIR)$(CONFDIR)/templates/partial
-+	mkdir -p $(DESTDIR)$(CONFDIR)/munin-conf.d
-+	mkdir -p $(DESTDIR)$(LIBDIR)
-+	mkdir -p $(DESTDIR)$(BINDIR)
-+	mkdir -p $(DESTDIR)$(PERLLIB)
-+	mkdir -p $(DESTDIR)$(PERLLIB)/Munin/Master
-+	mkdir -p $(DESTDIR)$(HTMLDIR)
-+	mkdir -p $(DESTDIR)$(DBDIR)
-+	mkdir -p $(DESTDIR)$(DBDIR)/cgi-tmp
-+	mkdir -p $(DESTDIR)$(CGIDIR)
-+
-+#	$(CHOWN) $(USER) $(HTMLDIR) $(DBDIR)
-+	$(CHMOD) 0755 $(DESTDIR)$(DBDIR)
-+
-+#	$(CHOWN) $(CGIUSER) $(DBDIR)/cgi-tmp
-+	$(CHMOD) 0755 $(DESTDIR)$(DBDIR)/cgi-tmp
- 
- 	for p in master/www/*.tmpl ;  do \
--		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/ ; \
-+		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/ ; \
- 	done
- 
- 	for p in master/static/* ; do \
--		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/static/ ; \
-+		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/static/ ; \
- 	done
- 
- 	for p in master/www/partial/*.tmpl; do \
--		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/partial/ ; \
-+		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/partial/ ; \
- 	done
- 
--	$(INSTALL) -m 0755 master/DejaVuSansMono.ttf $(LIBDIR)/
--	$(INSTALL) -m 0755 master/DejaVuSans.ttf $(LIBDIR)/
-+	$(INSTALL) -m 0755 master/DejaVuSansMono.ttf $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 master/DejaVuSans.ttf $(DESTDIR)$(LIBDIR)/
- 
--	test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(HTMLDIR)/.htaccess
--	test -f "$(CONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(CONFDIR)/
-+	test -f $(DESTDIR)$(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(DESTDIR)$(HTMLDIR)/.htaccess
-+	test -f "$(DESTDIR)$(CONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(DESTDIR)$(CONFDIR)/
- 
--	$(INSTALL) -m 0755 build/master/_bin/munin-cron $(BINDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-check $(BINDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-update $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-html $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-graph $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-limits $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(LIBDIR)/
--	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(CGIDIR)/munin-cgi-graph
--	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(CGIDIR)/munin-cgi-html
-+	$(INSTALL) -m 0755 build/master/_bin/munin-cron $(DESTDIR)$(BINDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-check $(DESTDIR)$(BINDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-update $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-html $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-graph $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-limits $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(DESTDIR)$(CGIDIR)/munin-cgi-graph
-+	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(DESTDIR)$(CGIDIR)/munin-cgi-html
- 
- # Not ready to be installed yet
--# $(INSTALL) -m 0755 build/master/_bin/munin-gather $(LIBDIR)/
-+# $(INSTALL) -m 0755 build/master/_bin/munin-gather $(DESTDIR)$(LIBDIR)/
- 
- # ALWAYS DO THE OS SPECIFIC PLUGINS LAST! THAT WAY THEY OVERWRITE THE
- # GENERIC ONES
-@@ -133,28 +135,28 @@ install-node-plugins: install-plugins-prime
- install-plugins-prime: install-plugins build $(PLUGINS) Makefile Makefile.config
- 	@$(CHECKGROUP)
- 
--	mkdir -p $(CONFDIR)/plugins
--	mkdir -p $(CONFDIR)/plugin-conf.d
--	mkdir -p $(LIBDIR)/plugins
--	mkdir -p $(PLUGSTATE)
-+	mkdir -p $(DESTDIR)$(CONFDIR)/plugins
-+	mkdir -p $(DESTDIR)$(CONFDIR)/plugin-conf.d
-+	mkdir -p $(DESTDIR)$(LIBDIR)/plugins
-+	mkdir -p $(DESTDIR)$(PLUGSTATE)
- 
--	$(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE)
--	$(CHMOD) 0775 $(PLUGSTATE)
--	$(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
-+#	$(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE)
-+#	$(CHMOD) 0775 $(PLUGSTATE)
-+#	$(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
- 
- 	for p in build/plugins/node.d/* build/plugins/node.d.$(OSTYPE)/* ; do \
- 	    if test -f "$$p" ; then                            \
- 		echo Installing $$p;                           \
--		$(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/;     \
-+		$(INSTALL) -m 0755 $$p $(DESTDIR)$(LIBDIR)/plugins/;     \
- 	    fi                                                 \
- 	done
--	-mv $(LIBDIR)/plugins/*.adv $(LIBDIR)
--	$(INSTALL) -m 0644 build/plugins/plugins.history $(LIBDIR)/plugins/
--	$(INSTALL) -m 0644 build/plugins/plugin.sh $(LIBDIR)/plugins/
-+	-mv $(LIBDIR)/plugins/*.adv $(DESTDIR)$(LIBDIR)
-+	$(INSTALL) -m 0644 build/plugins/plugins.history $(DESTDIR)$(LIBDIR)/plugins/
-+	$(INSTALL) -m 0644 build/plugins/plugin.sh $(DESTDIR)$(LIBDIR)/plugins/
- 
- install-plugins-java: build-plugins-java
--	mkdir -p $(JAVALIBDIR)
--	$(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(JAVALIBDIR)/
-+	mkdir -p $(DESTDIR)$(JAVALIBDIR)
-+	$(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(DESTDIR)$(JAVALIBDIR)/
- 
- #TODO:
- # configure plugins.  Or not. Better done under the direction of the installer
-@@ -162,36 +164,36 @@ install-plugins-java: build-plugins-java
- 
- install-async-prime:
--	mkdir -p $(LIBDIR)
--	$(INSTALL) -m 0755 build/node/_bin/munin-async-client $(LIBDIR)/
--	$(INSTALL) -m 0755 build/node/_bin/munin-async-server $(LIBDIR)/
-+	mkdir -p $(DESTDIR)/$(LIBDIR)
-+	$(INSTALL) -m 0755 build/node/_bin/munin-async-client $(DESTDIR)$(LIBDIR)/
-+	$(INSTALL) -m 0755 build/node/_bin/munin-async-server $(DESTDIR)$(LIBDIR)/
- 
- install-node-prime: install-node-pre install-node
- 
- install-node-pre: build/node/munin-node.conf install-pre
--	test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/
-+	test -f "$(DESTDIR)$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(DESTDIR)$(CONFDIR)/
- 
- 
- install-common-prime: build-common install-common
- 
- 
- install-man: build-man Makefile Makefile.config
--	mkdir -p $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man8
--	$(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(MANDIR)/man5/
--	$(INSTALL) -m 0644 build/doc/munin.conf.5 $(MANDIR)/man5/
--	$(INSTALL) -m 0644 build/doc/munin-update.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin-limits.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin-graph.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin-html.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin-cron.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin-check.8 $(MANDIR)/man8/
--	$(INSTALL) -m 0644 build/doc/munin.8 $(MANDIR)/man8/
-+	mkdir -p $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man8
-+	$(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(DESTDIR)$(MANDIR)/man5/
-+	$(INSTALL) -m 0644 build/doc/munin.conf.5 $(DESTDIR)$(MANDIR)/man5/
-+	$(INSTALL) -m 0644 build/doc/munin-update.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin-limits.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin-graph.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin-html.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin-cron.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin-check.8 $(DESTDIR)$(MANDIR)/man8/
-+	$(INSTALL) -m 0644 build/doc/munin.8 $(DESTDIR)$(MANDIR)/man8/
- 
- 
- install-doc: build-doc
- 	mkdir -p $(DOCDIR)/resources
--	$(INSTALL) -m 0644 README $(DOCDIR)/
--	$(INSTALL) -m 0644 COPYING $(DOCDIR)/
--	$(INSTALL) -m 0644 build/resources/* $(DOCDIR)/resources
-+	$(INSTALL) -m 0644 README $(DESTDIR)$(DOCDIR)/
-+	$(INSTALL) -m 0644 COPYING $(DESTDIR)$(DOCDIR)/
-+	$(INSTALL) -m 0644 build/resources/* $(DESTDIR)$(DOCDIR)/resources
- 
- ######################################################################
- 
-@@ -208,29 +210,29 @@ build/%: %.in
- 	@echo "$< -> $@"
- 	@mkdir -p build/`dirname $<`
- 	@sed -e 's|@@PREFIX@@|$(PREFIX)|g'                      \
--             -e 's|@@CONFDIR@@|$(CONFDIR)|g'                    \
--             -e 's|@@BINDIR@@|$(BINDIR)|g'                      \
--             -e 's|@@SBINDIR@@|$(SBINDIR)|g'                    \
--             -e 's|@@DOCDIR@@|$(DOCDIR)|g'                      \
--             -e 's|@@LIBDIR@@|$(LIBDIR)|g'                      \
--             -e 's|@@MANDIR@@|$(MANDIR)|g'                      \
--             -e 's|@@LOGDIR@@|$(LOGDIR)|g'                      \
--             -e 's|@@HTMLDIR@@|$(HTMLDIR)|g'                    \
--             -e 's|@@DBDIR@@|$(DBDIR)|g'                        \
--             -e 's|@@STATEDIR@@|$(STATEDIR)|g'                  \
--	     -e 's|@@SPOOLDIR@@|$(SPOOLDIR)|g'                  \
-+             -e 's|@@CONFDIR@@|$(DESTDIR)$(CONFDIR)|g'                    \
-+             -e 's|@@BINDIR@@|$(DESTDIR)$(BINDIR)|g'                      \
-+             -e 's|@@SBINDIR@@|$(DESTDIR)$(SBINDIR)|g'                    \
-+             -e 's|@@DOCDIR@@|$(DESTDIR)$(DOCDIR)|g'                      \
-+             -e 's|@@LIBDIR@@|$(DESTDIR)$(LIBDIR)|g'                      \
-+             -e 's|@@MANDIR@@|$(DESTDIR)$(MANDIR)|g'                      \
-+             -e 's|@@LOGDIR@@|$(DESTDIR)$(LOGDIR)|g'                      \
-+             -e 's|@@HTMLDIR@@|$(DESTDIR)$(HTMLDIR)|g'                    \
-+             -e 's|@@DBDIR@@|$(DESTDIR)$(DBDIR)|g'                        \
-+             -e 's|@@STATEDIR@@|$(DESTDIR)$(STATEDIR)|g'                  \
-+	     -e 's|@@SPOOLDIR@@|$(DESTDIR)$(SPOOLDIR)|g'                  \
-              -e 's|@@PERL@@|$(PERL)|g'                          \
--             -e 's|@@PERLLIB@@|$(PERLLIB)|g'                    \
-+             -e 's|@@PERLLIB@@|$(DESTDIR)$(PERLLIB)|g'                    \
-              -e 's|@@PYTHON@@|$(PYTHON)|g'                      \
-              -e 's|@@RUBY@@|$(RUBY)|g'                          \
-              -e 's|@@JAVARUN@@|$(JAVARUN)|g'                    \
--             -e 's|@@JAVALIBDIR@@|$(JAVALIBDIR)|g'              \
-+             -e 's|@@JAVALIBDIR@@|$(DESTDIR)$(JAVALIBDIR)|g'              \
-              -e 's|@@OSTYPE@@|$(OSTYPE)|g'                      \
-              -e 's|@@HOSTNAME@@|$(HOSTNAME)|g'                  \
-              -e 's|@@MKTEMP@@|$(MKTEMP)|g'                      \
-              -e 's|@@VERSION@@|$(VERSION)|g'                    \
--             -e 's|@@PLUGSTATE@@|$(PLUGSTATE)|g'                \
--             -e 's|@@CGIDIR@@|$(CGIDIR)|g'                      \
-+             -e 's|@@PLUGSTATE@@|$(DESTDIR)$(PLUGSTATE)|g'                \
-+             -e 's|@@CGIDIR@@|$(DESTDIR)$(CGIDIR)|g'                      \
-              -e 's|@@USER@@|$(USER)|g'                          \
-              -e 's|@@GROUP@@|$(GROUP)|g'                        \
-              -e 's|@@PLUGINUSER@@|$(PLUGINUSER)|g'              \
-@@ -248,17 +250,17 @@ build-common-pre: common/Build
- common/blib/lib/Munin/Common/Defaults.pm: common/lib/Munin/Common/Defaults.pm build-common-pre
- 	rm -f common/blib/lib/Munin/Common/Defaults.pm
- 	$(PERL) -pe 's{(PREFIX     \s+=\s).*}{\1q{$(PREFIX)};}x;   \
--                  s{(CONFDIR    \s+=\s).*}{\1q{$(CONFDIR)};}x;     \
--                  s{(BINDIR     \s+=\s).*}{\1q{$(BINDIR)};}x;      \
--                  s{(SBINDIR    \s+=\s).*}{\1q{$(SBINDIR)};}x;     \
--                  s{(DOCDIR     \s+=\s).*}{\1q{$(DOCDIR)};}x;      \
--                  s{(LIBDIR	\s+=\s).*}{\1q{$(LIBDIR)};}x;      \
--                  s{(MANDIR	\s+=\s).*}{\1q{$(MANDIR)};}x;      \
--                  s{(LOGDIR	\s+=\s).*}{\1q{$(LOGDIR)};}x;      \
--                  s{(HTMLDIR	\s+=\s).*}{\1q{$(HTMLDIR)};}x;     \
--                  s{(DBDIR	\s+=\s).*}{\1q{$(DBDIR)};}x;       \
--                  s{(STATEDIR	\s+=\s).*}{\1q{$(STATEDIR)};}x;    \
--		  s{(SPOOLDIR	\s+=\s).*}{\1q{$(SPOOLDIR)};}x;    \
-+                  s{(CONFDIR    \s+=\s).*}{\1q{$(DESTDIR)$(CONFDIR)};}x;     \
-+                  s{(BINDIR     \s+=\s).*}{\1q{$(DESTDIR)$(BINDIR)};}x;      \
-+                  s{(SBINDIR    \s+=\s).*}{\1q{$(DESTDIR)$(SBINDIR)};}x;     \
-+                  s{(DOCDIR     \s+=\s).*}{\1q{$(DESTDIR)$(DOCDIR)};}x;      \
-+                  s{(LIBDIR	\s+=\s).*}{\1q{$(DESTDIR)$(LIBDIR)};}x;      \
-+                  s{(MANDIR	\s+=\s).*}{\1q{$(DESTDIR)$(MANDIR)};}x;      \
-+                  s{(LOGDIR	\s+=\s).*}{\1q{$(DESTDIR)$(LOGDIR)};}x;      \
-+                  s{(HTMLDIR	\s+=\s).*}{\1q{$(DESTDIR)$(HTMLDIR)};}x;     \
-+                  s{(DBDIR	\s+=\s).*}{\1q{$(DESTDIR)$(DBDIR)};}x;       \
-+                  s{(STATEDIR	\s+=\s).*}{\1q{$(DESTDIR)$(STATEDIR)};}x;    \
-+		  s{(SPOOLDIR	\s+=\s).*}{\1q{$(DESTDIR)$(SPOOLDIR)};}x;    \
-                   s{(PERL	\s+=\s).*}{\1q{$(PERL)};}x;        \
-                   s{(PERLLIB	\s+=\s).*}{\1q{$(PERLLIB)};}x;     \
-                   s{(PYTHON	\s+=\s).*}{\1q{$(PYTHON)};}x;      \
-@@ -267,8 +269,8 @@ common/blib/lib/Munin/Common/Defaults.pm: common/lib/Munin/Common/Defaults.pm bu
-                   s{(HOSTNAME	\s+=\s).*}{\1q{$(HOSTNAME)};}x;    \
-                   s{(MKTEMP	\s+=\s).*}{\1q{$(MKTEMP)};}x;      \
-                   s{(VERSION	\s+=\s).*}{\1q{$(VERSION)};}x;     \
--                  s{(PLUGSTATE	\s+=\s).*}{\1q{$(PLUGSTATE)};}x;   \
--                  s{(CGIDIR	\s+=\s).*}{\1q{$(CGIDIR)};}x;      \
-+                  s{(PLUGSTATE	\s+=\s).*}{\1q{$(DESTDIR)$(PLUGSTATE)};}x;   \
-+                  s{(CGIDIR	\s+=\s).*}{\1q{$(DESTDIR)$(CGIDIR)};}x;      \
-                   s{(USER	\s+=\s).*}{\1q{$(USER)};}x;        \
-                   s{(GROUP	\s+=\s).*}{\1q{$(GROUP)};}x;       \
-                   s{(PLUGINUSER	\s+=\s).*}{\1q{$(PLUGINUSER)};}x;  \
-@@ -373,7 +375,7 @@ old-test: t/*.t
- 	$(MAKE) $@ CONFIG=t/Makefile.config
- else
- test_plugins = id_default id_root env
--old-test: t/*.t t/install $(addprefix $(CONFDIR)/plugins/,$(test_plugins))
-+old-test: t/*.t t/install $(addprefix $(DESTDIR)$(CONFDIR)/plugins/,$(test_plugins))
- 	@for test in t/*.t; do \
- 		echo -n "$$test: "; \
- 		PERL5LIB=$(PERLLIB) $(PERL) $$test;\
-@@ -381,10 +383,10 @@ old-test: t/*.t t/install $(addprefix $(CONFDIR)/plugins/,$(test_plugins))
- endif
- 
- node-monkeywrench: install-node
--	rm -rf $(CONFDIR)/plugins
--	rm -rf $(LIBDIR)/plugins
--	mkdir -p $(LIBDIR)/plugins
--	mkdir -p $(CONFDIR)/plugins
-+	rm -rf $(DESTDIR)$(CONFDIR)/plugins
-+	rm -rf $(DESTDIR)$(LIBDIR)/plugins
-+	mkdir -p $(DESTDIR)$(LIBDIR)/plugins
-+	mkdir -p $(DESTDIR)$(CONFDIR)/plugins
- 	cp monkeywrench/plugin-break*_ $(LIBDIR)/plugins/
- 	$(SBINDIR)/munin-node-configure --suggest
- 	echo 'Done?'
-@@ -410,12 +412,12 @@ build-common: common/Build
- # can't seem to find a way to persuade it to write otherwhere.
- install-%: %/Build
- 	cd $* && $(PERL) Build install			\
--            --install_path lib=$(PERLLIB)		\
--            --install_path bin=$(BINDIR)		\
--            --install_path script=$(BINDIR)		\
--            --install_path sbin=$(SBINDIR)		\
--            --install_path bindoc=$(MANDIR)/man1	\
--            --install_path libdoc=$(MANDIR)/man3	\
-+            --install_path lib=$(DESTDIR)$(PERLLIB)		\
-+            --install_path bin=$(DESTDIR)$(BINDIR)		\
-+            --install_path script=$(DESTDIR)$(BINDIR)		\
-+            --install_path sbin=$(DESTDIR)$(SBINDIR)		\
-+            --install_path bindoc=$(DESTDIR)$(MANDIR)/man1	\
-+            --install_path libdoc=$(DESTDIR)$(MANDIR)/man3	\
- 
- test-%: %/Build
- 	cd $* && $(PERL) Build test --verbose=0 || true
--- 
-1.7.10.3
-

Added: csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch	                        (rev 0)
+++ csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch	2012-07-01 08:36:25 UTC (rev 18607)
@@ -0,0 +1,367 @@
+From 9eda017107a4fc9fa5781a006108f7e1a5540e05 Mon Sep 17 00:00:00 2001
+From: Juergen Arndt <ja at opencsw.org>
+Date: Sun, 1 Jul 2012 09:05:12 +0200
+Subject: [PATCH] Expand paths with DESTDIR
+
+---
+ Makefile |  228 +++++++++++++++++++++++++++++++-------------------------------
+ 1 file changed, 115 insertions(+), 113 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index a26d2d1..1b5f81c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,6 +9,8 @@
+ DEFAULTS = Makefile.config
+ CONFIG = Makefile.config
+ 
++DESTDIR =
++
+ include $(DEFAULTS)
+ include $(CONFIG)
+ 
+@@ -49,8 +51,8 @@ uninstall:
+ # This removes the installed config so that the next install-pass installs
+ # a new config.  Target _only_ suitable for maintainers.
+ unconfig:
+-	rm -f $(HTMLDIR)/.htaccess
+-	rm -f $(CONFDIR)/munin.conf
++	rm -f $(DESTDIR)$(HTMLDIR)/.htaccess
++	rm -f $(DESTDIR)$(CONFDIR)/munin.conf
+ 
+ tags:
+ 	-rm -f TAGS
+@@ -66,63 +68,63 @@ endif
+ 
+ install-pre: Makefile Makefile.config
+ 	@$(CHECKUSER)
+-	mkdir -p $(LOGDIR)
+-	mkdir -p $(STATEDIR)
+-	mkdir -p $(SPOOLDIR)
+-	mkdir -p $(CONFDIR)
+-	$(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
++	mkdir -p $(DESTDIR)$(LOGDIR)
++	mkdir -p $(DESTDIR)$(STATEDIR)
++	mkdir -p $(DESTDIR)$(SPOOLDIR)
++	mkdir -p $(DESTDIR)$(CONFDIR)
++#	$(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
+ 
+ install-master-prime: $(INFILES_MASTER) install-pre install-master
+-	mkdir -p $(CONFDIR)/templates
+-	mkdir -p $(CONFDIR)/static
+-	mkdir -p $(CONFDIR)/templates/partial
+-	mkdir -p $(CONFDIR)/munin-conf.d
+-	mkdir -p $(LIBDIR)
+-	mkdir -p $(BINDIR)
+-	mkdir -p $(PERLLIB)
+-	mkdir -p $(PERLLIB)/Munin/Master
+-	mkdir -p $(HTMLDIR)
+-	mkdir -p $(DBDIR)
+-	mkdir -p $(DBDIR)/cgi-tmp
+-	mkdir -p $(CGIDIR)
+-
+-	$(CHOWN) $(USER) $(HTMLDIR) $(DBDIR)
+-	$(CHMOD) 0755 $(DBDIR)
+-
+-	$(CHOWN) $(CGIUSER) $(DBDIR)/cgi-tmp
+-	$(CHMOD) 0755 $(DBDIR)/cgi-tmp
++	mkdir -p $(DESTDIR)$(CONFDIR)/templates
++	mkdir -p $(DESTDIR)$(CONFDIR)/static
++	mkdir -p $(DESTDIR)$(CONFDIR)/templates/partial
++	mkdir -p $(DESTDIR)$(CONFDIR)/munin-conf.d
++	mkdir -p $(DESTDIR)$(LIBDIR)
++	mkdir -p $(DESTDIR)$(BINDIR)
++	mkdir -p $(DESTDIR)$(PERLLIB)
++	mkdir -p $(DESTDIR)$(PERLLIB)/Munin/Master
++	mkdir -p $(DESTDIR)$(HTMLDIR)
++	mkdir -p $(DESTDIR)$(DBDIR)
++	mkdir -p $(DESTDIR)$(DBDIR)/cgi-tmp
++	mkdir -p $(DESTDIR)$(CGIDIR)
++
++#	$(CHOWN) $(USER) $(HTMLDIR) $(DBDIR)
++	$(CHMOD) 0755 $(DESTDIR)$(DBDIR)
++
++#	$(CHOWN) $(CGIUSER) $(DBDIR)/cgi-tmp
++	$(CHMOD) 0755 $(DESTDIR)$(DBDIR)/cgi-tmp
+ 
+ 	for p in master/www/*.tmpl ;  do \
+-		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/ ; \
++		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/ ; \
+ 	done
+ 
+ 	for p in master/static/* ; do \
+-		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/static/ ; \
++		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/static/ ; \
+ 	done
+ 
+ 	for p in master/www/partial/*.tmpl; do \
+-		$(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/partial/ ; \
++		$(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/partial/ ; \
+ 	done
+ 
+-	$(INSTALL) -m 0755 master/DejaVuSansMono.ttf $(LIBDIR)/
+-	$(INSTALL) -m 0755 master/DejaVuSans.ttf $(LIBDIR)/
++	$(INSTALL) -m 0755 master/DejaVuSansMono.ttf $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 master/DejaVuSans.ttf $(DESTDIR)$(LIBDIR)/
+ 
+-	test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(HTMLDIR)/.htaccess
+-	test -f "$(CONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(CONFDIR)/
++	test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(DESTDIR)$(HTMLDIR)/.htaccess
++	test -f "$(CONFDIR)/munin.conf"  || $(INSTALL) -m 0644 build/master/munin.conf $(DESTDIR)$(CONFDIR)/
+ 
+-	$(INSTALL) -m 0755 build/master/_bin/munin-cron $(BINDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-check $(BINDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-update $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-html $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-graph $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-limits $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(CGIDIR)/munin-cgi-graph
+-	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(CGIDIR)/munin-cgi-html
++	$(INSTALL) -m 0755 build/master/_bin/munin-cron $(DESTDIR)$(BINDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-check $(DESTDIR)$(BINDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-update $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-html $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-graph $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-limits $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(DESTDIR)$(CGIDIR)/munin-cgi-graph
++	$(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(DESTDIR)$(CGIDIR)/munin-cgi-html
+ 
+ # Not ready to be installed yet
+-# $(INSTALL) -m 0755 build/master/_bin/munin-gather $(LIBDIR)/
++# $(INSTALL) -m 0755 build/master/_bin/munin-gather $(DESTDIR)$(LIBDIR)/
+ 
+ # ALWAYS DO THE OS SPECIFIC PLUGINS LAST! THAT WAY THEY OVERWRITE THE
+ # GENERIC ONES
+@@ -133,66 +135,66 @@ install-node-plugins: install-plugins-prime
+ install-plugins-prime: install-plugins build $(PLUGINS) Makefile Makefile.config
+ 	@$(CHECKGROUP)
+ 
+-	mkdir -p $(CONFDIR)/plugins
+-	mkdir -p $(CONFDIR)/plugin-conf.d
+-	mkdir -p $(LIBDIR)/plugins
+-	mkdir -p $(PLUGSTATE)
++	mkdir -p $(DESTDIR)$(CONFDIR)/plugins
++	mkdir -p $(DESTDIR)$(CONFDIR)/plugin-conf.d
++	mkdir -p $(DESTDIR)$(LIBDIR)/plugins
++	mkdir -p $(DESTDIR)$(PLUGSTATE)
+ 
+-	$(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE)
++#	$(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE)
+ 	# using g+rwxs, so plugins can create and modify their state file without help
+-	$(CHMOD) 02775 $(PLUGSTATE)
+-	$(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
++#	$(CHMOD) 02775 $(PLUGSTATE)
++#	$(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
+ 
+ 	for p in build/plugins/node.d/* build/plugins/node.d.$(OSTYPE)/* ; do \
+ 	    if test -f "$$p" ; then                            \
+ 		echo Installing $$p;                           \
+-		$(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/;     \
++		$(INSTALL) -m 0755 $$p $(DESTDIR)$(LIBDIR)/plugins/;     \
+ 	    fi                                                 \
+ 	done
+-	-mv $(LIBDIR)/plugins/*.adv $(LIBDIR)
+-	$(INSTALL) -m 0644 build/plugins/plugins.history $(LIBDIR)/plugins/
+-	$(INSTALL) -m 0644 build/plugins/plugin.sh $(LIBDIR)/plugins/
++	-mv $(LIBDIR)/plugins/*.adv $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0644 build/plugins/plugins.history $(DESTDIR)$(LIBDIR)/plugins/
++	$(INSTALL) -m 0644 build/plugins/plugin.sh $(DESTDIR)$(LIBDIR)/plugins/
+ 
+ install-plugins-java: build-plugins-java
+-	mkdir -p $(JAVALIBDIR)
+-	$(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(JAVALIBDIR)/
++	mkdir -p $(DESTDIR)$(JAVALIBDIR)
++	$(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(DESTDIR)$(JAVALIBDIR)/
+ 
+ #TODO:
+ # configure plugins.  Or not. Better done under the direction of the installer
+ # or the packager.
+ 
+ install-async-prime:
+-	mkdir -p $(LIBDIR)
+-	$(INSTALL) -m 0755 build/node/_bin/munin-async $(LIBDIR)/
+-	$(INSTALL) -m 0755 build/node/_bin/munin-asyncd $(LIBDIR)/
++	mkdir -p $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0755 build/node/_bin/munin-async $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0755 build/node/_bin/munin-asyncd $(DESTDIR)$(LIBDIR)/
+ 
+ install-node-prime: install-node-pre install-node
+ 
+ install-node-pre: build/node/munin-node.conf install-pre
+-	test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/
++	test -f "$(DESTDIR)$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(DESTDIR)$(CONFDIR)/
+ 
+ 
+ install-common-prime: build-common install-common
+ 
+ 
+ install-man: build-man Makefile Makefile.config
+-	mkdir -p $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man8
+-	$(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(MANDIR)/man5/
+-	$(INSTALL) -m 0644 build/doc/munin.conf.5 $(MANDIR)/man5/
+-	$(INSTALL) -m 0644 build/doc/munin-update.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin-limits.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin-graph.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin-html.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin-cron.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin-check.8 $(MANDIR)/man8/
+-	$(INSTALL) -m 0644 build/doc/munin.8 $(MANDIR)/man8/
++	mkdir -p $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man8
++	$(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(DESTDIR)$(MANDIR)/man5/
++	$(INSTALL) -m 0644 build/doc/munin.conf.5 $(DESTDIR)$(MANDIR)/man5/
++	$(INSTALL) -m 0644 build/doc/munin-update.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin-limits.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin-graph.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin-html.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin-cron.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin-check.8 $(DESTDIR)$(MANDIR)/man8/
++	$(INSTALL) -m 0644 build/doc/munin.8 $(DESTDIR)$(MANDIR)/man8/
+ 
+ 
+ install-doc: build-doc
+-	mkdir -p $(DOCDIR)/resources
+-	$(INSTALL) -m 0644 README $(DOCDIR)/
+-	$(INSTALL) -m 0644 COPYING $(DOCDIR)/
+-	$(INSTALL) -m 0644 build/resources/* $(DOCDIR)/resources
++	mkdir -p $(DESTDIR)$(DOCDIR)/resources
++	$(INSTALL) -m 0644 README $(DESTDIR)$(DOCDIR)/
++	$(INSTALL) -m 0644 COPYING $(DESTDIR)$(DOCDIR)/
++	$(INSTALL) -m 0644 build/resources/* $(DESTDIR)$(DOCDIR)/resources
+ 
+ ######################################################################
+ 
+@@ -209,29 +211,29 @@ build/%: %.in
+ 	@echo "$< -> $@"
+ 	@mkdir -p build/`dirname $<`
+ 	@sed -e 's|@@PREFIX@@|$(PREFIX)|g'                      \
+-             -e 's|@@CONFDIR@@|$(CONFDIR)|g'                    \
+-             -e 's|@@BINDIR@@|$(BINDIR)|g'                      \
+-             -e 's|@@SBINDIR@@|$(SBINDIR)|g'                    \
+-             -e 's|@@DOCDIR@@|$(DOCDIR)|g'                      \
+-             -e 's|@@LIBDIR@@|$(LIBDIR)|g'                      \
+-             -e 's|@@MANDIR@@|$(MANDIR)|g'                      \
+-             -e 's|@@LOGDIR@@|$(LOGDIR)|g'                      \
+-             -e 's|@@HTMLDIR@@|$(HTMLDIR)|g'                    \
+-             -e 's|@@DBDIR@@|$(DBDIR)|g'                        \
+-             -e 's|@@STATEDIR@@|$(STATEDIR)|g'                  \
+-	     -e 's|@@SPOOLDIR@@|$(SPOOLDIR)|g'                  \
++             -e 's|@@CONFDIR@@|$(DESTDIR)$(CONFDIR)|g'                    \
++             -e 's|@@BINDIR@@|$(DESTDIR)$(BINDIR)|g'                      \
++             -e 's|@@SBINDIR@@|$(DESTDIR)$(SBINDIR)|g'                    \
++             -e 's|@@DOCDIR@@|$(DESTDIR)$(DOCDIR)|g'                      \
++             -e 's|@@LIBDIR@@|$(DESTDIR)$(LIBDIR)|g'                      \
++             -e 's|@@MANDIR@@|$(DESTDIR)$(MANDIR)|g'                      \
++             -e 's|@@LOGDIR@@|$(DESTDIR)$(LOGDIR)|g'                      \
++             -e 's|@@HTMLDIR@@|$(DESTDIR)$(HTMLDIR)|g'                    \
++             -e 's|@@DBDIR@@|$(DESTDIR)$(DBDIR)|g'                        \
++             -e 's|@@STATEDIR@@|$(DESTDIR)$(STATEDIR)|g'                  \
++	     -e 's|@@SPOOLDIR@@|$(DESTDIR)$(SPOOLDIR)|g'                  \
+              -e 's|@@PERL@@|$(PERL)|g'                          \
+-             -e 's|@@PERLLIB@@|$(PERLLIB)|g'                    \
++             -e 's|@@PERLLIB@@|$(DESTDIR)$(PERLLIB)|g'                    \
+              -e 's|@@PYTHON@@|$(PYTHON)|g'                      \
+              -e 's|@@RUBY@@|$(RUBY)|g'                          \
+              -e 's|@@JAVARUN@@|$(JAVARUN)|g'                    \
+-             -e 's|@@JAVALIBDIR@@|$(JAVALIBDIR)|g'              \
++             -e 's|@@JAVALIBDIR@@|$(DESTDIR)$(JAVALIBDIR)|g'              \
+              -e 's|@@OSTYPE@@|$(OSTYPE)|g'                      \
+              -e 's|@@HOSTNAME@@|$(HOSTNAME)|g'                  \
+              -e 's|@@MKTEMP@@|$(MKTEMP)|g'                      \
+              -e 's|@@VERSION@@|$(VERSION)|g'                    \
+-             -e 's|@@PLUGSTATE@@|$(PLUGSTATE)|g'                \
+-             -e 's|@@CGIDIR@@|$(CGIDIR)|g'                      \
++             -e 's|@@PLUGSTATE@@|$(DESTDIR)$(PLUGSTATE)|g'                \
++             -e 's|@@CGIDIR@@|$(DESTDIR)$(CGIDIR)|g'                      \
+              -e 's|@@USER@@|$(USER)|g'                          \
+              -e 's|@@GROUP@@|$(GROUP)|g'                        \
+              -e 's|@@PLUGINUSER@@|$(PLUGINUSER)|g'              \
+@@ -249,17 +251,17 @@ build-common-pre: common/Build
+ common/blib/lib/Munin/Common/Defaults.pm: common/lib/Munin/Common/Defaults.pm build-common-pre
+ 	rm -f common/blib/lib/Munin/Common/Defaults.pm
+ 	$(PERL) -pe 's{(PREFIX     \s+=\s).*}{\1q{$(PREFIX)};}x;   \
+-                  s{(CONFDIR    \s+=\s).*}{\1q{$(CONFDIR)};}x;     \
+-                  s{(BINDIR     \s+=\s).*}{\1q{$(BINDIR)};}x;      \
+-                  s{(SBINDIR    \s+=\s).*}{\1q{$(SBINDIR)};}x;     \
+-                  s{(DOCDIR     \s+=\s).*}{\1q{$(DOCDIR)};}x;      \
+-                  s{(LIBDIR	\s+=\s).*}{\1q{$(LIBDIR)};}x;      \
+-                  s{(MANDIR	\s+=\s).*}{\1q{$(MANDIR)};}x;      \
+-                  s{(LOGDIR	\s+=\s).*}{\1q{$(LOGDIR)};}x;      \
+-                  s{(HTMLDIR	\s+=\s).*}{\1q{$(HTMLDIR)};}x;     \
+-                  s{(DBDIR	\s+=\s).*}{\1q{$(DBDIR)};}x;       \
+-                  s{(STATEDIR	\s+=\s).*}{\1q{$(STATEDIR)};}x;    \
+-		  s{(SPOOLDIR	\s+=\s).*}{\1q{$(SPOOLDIR)};}x;    \
++                  s{(CONFDIR    \s+=\s).*}{\1q{$(DESTDIR)$(CONFDIR)};}x;     \
++                  s{(BINDIR     \s+=\s).*}{\1q{$(DESTDIR)$(BINDIR)};}x;      \
++                  s{(SBINDIR    \s+=\s).*}{\1q{$(DESTDIR)$(SBINDIR)};}x;     \
++                  s{(DOCDIR     \s+=\s).*}{\1q{$(DESTDIR)$(DOCDIR)};}x;      \
++                  s{(LIBDIR	\s+=\s).*}{\1q{$(DESTDIR)$(LIBDIR)};}x;      \
++                  s{(MANDIR	\s+=\s).*}{\1q{$(DESTDIR)$(MANDIR)};}x;      \
++                  s{(LOGDIR	\s+=\s).*}{\1q{$(DESTDIR)$(LOGDIR)};}x;      \
++                  s{(HTMLDIR	\s+=\s).*}{\1q{$(DESTDIR)$(HTMLDIR)};}x;     \
++                  s{(DBDIR	\s+=\s).*}{\1q{$(DESTDIR)$(DBDIR)};}x;       \
++                  s{(STATEDIR	\s+=\s).*}{\1q{$(DESTDIR)$(STATEDIR)};}x;    \
++		  s{(SPOOLDIR	\s+=\s).*}{\1q{$(DESTDIR)$(SPOOLDIR)};}x;    \
+                   s{(PERL	\s+=\s).*}{\1q{$(PERL)};}x;        \
+                   s{(PERLLIB	\s+=\s).*}{\1q{$(PERLLIB)};}x;     \
+                   s{(PYTHON	\s+=\s).*}{\1q{$(PYTHON)};}x;      \
+@@ -268,8 +270,8 @@ common/blib/lib/Munin/Common/Defaults.pm: common/lib/Munin/Common/Defaults.pm bu
+                   s{(HOSTNAME	\s+=\s).*}{\1q{$(HOSTNAME)};}x;    \
+                   s{(MKTEMP	\s+=\s).*}{\1q{$(MKTEMP)};}x;      \
+                   s{(VERSION	\s+=\s).*}{\1q{$(VERSION)};}x;     \
+-                  s{(PLUGSTATE	\s+=\s).*}{\1q{$(PLUGSTATE)};}x;   \
+-                  s{(CGIDIR	\s+=\s).*}{\1q{$(CGIDIR)};}x;      \
++                  s{(PLUGSTATE	\s+=\s).*}{\1q{$(DESTDIR)$(PLUGSTATE)};}x;   \
++                  s{(CGIDIR	\s+=\s).*}{\1q{$(DESTDIR)$(CGIDIR)};}x;      \
+                   s{(USER	\s+=\s).*}{\1q{$(USER)};}x;        \
+                   s{(GROUP	\s+=\s).*}{\1q{$(GROUP)};}x;       \
+                   s{(PLUGINUSER	\s+=\s).*}{\1q{$(PLUGINUSER)};}x;  \
+@@ -371,7 +373,7 @@ old-test: t/*.t
+ 	$(MAKE) $@ CONFIG=t/Makefile.config
+ else
+ test_plugins = id_default id_root env
+-old-test: t/*.t t/install $(addprefix $(CONFDIR)/plugins/,$(test_plugins))
++old-test: t/*.t t/install $(addprefix $(DESTDIR)$(CONFDIR)/plugins/,$(test_plugins))
+ 	@for test in t/*.t; do \
+ 		echo -n "$$test: "; \
+ 		PERL5LIB=$(PERLLIB) $(PERL) $$test;\
+@@ -379,10 +381,10 @@ old-test: t/*.t t/install $(addprefix $(CONFDIR)/plugins/,$(test_plugins))
+ endif
+ 
+ node-monkeywrench: install-node
+-	rm -rf $(CONFDIR)/plugins
+-	rm -rf $(LIBDIR)/plugins
+-	mkdir -p $(LIBDIR)/plugins
+-	mkdir -p $(CONFDIR)/plugins
++	rm -rf $(DESTDIR)$(CONFDIR)/plugins
++	rm -rf $(DESTDIR)$(LIBDIR)/plugins
++	mkdir -p $(DESTDIR)$(LIBDIR)/plugins
++	mkdir -p $(DESTDIR)$(CONFDIR)/plugins
+ 	cp monkeywrench/plugin-break*_ $(LIBDIR)/plugins/
+ 	$(SBINDIR)/munin-node-configure --suggest
+ 	echo 'Done?'
+@@ -408,12 +410,12 @@ build-common: common/Build
+ # can't seem to find a way to persuade it to write otherwhere.
+ install-%: %/Build
+ 	cd $* && $(PERL) Build install			\
+-            --install_path lib=$(PERLLIB)		\
+-            --install_path bin=$(BINDIR)		\
+-            --install_path script=$(BINDIR)		\
+-            --install_path sbin=$(SBINDIR)		\
+-            --install_path bindoc=$(MANDIR)/man1	\
+-            --install_path libdoc=$(MANDIR)/man3	\
++            --install_path lib=$(DESTDIR)$(PERLLIB)		\
++            --install_path bin=$(DESTDIR)$(BINDIR)		\
++            --install_path script=$(DESTDIR)$(BINDIR)		\
++            --install_path sbin=$(DESTDIR)$(SBINDIR)		\
++            --install_path bindoc=$(DESTDIR)$(MANDIR)/man1	\
++            --install_path libdoc=$(DESTDIR)$(MANDIR)/man3	\
+ 
+ test-%: %/Build
+ 	cd $* && $(PERL) Build test --verbose=0 || true
+-- 
+1.7.10.3
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list