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

j_arndt at users.sourceforge.net j_arndt at users.sourceforge.net
Sat Jul 28 09:14:06 CEST 2012


Revision: 18869
          http://gar.svn.sourceforge.net/gar/?rev=18869&view=rev
Author:   j_arndt
Date:     2012-07-28 07:14:06 +0000 (Sat, 28 Jul 2012)
Log Message:
-----------
munin/trunk: update to 2.0.3

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

Added Paths:
-----------
    csw/mgar/pkg/munin/trunk/files/0005-Expand-paths-with-DESTDIR.patch
    csw/mgar/pkg/munin/trunk/files/0006-paths-in-Makefile.config.patch

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

Modified: csw/mgar/pkg/munin/trunk/Makefile
===================================================================
--- csw/mgar/pkg/munin/trunk/Makefile	2012-07-27 15:10:12 UTC (rev 18868)
+++ csw/mgar/pkg/munin/trunk/Makefile	2012-07-28 07:14:06 UTC (rev 18869)
@@ -1,5 +1,5 @@
 NAME = munin
-VERSION = 2.0.2
+VERSION = 2.0.3
 CATEGORIES = apps
 GARTYPE = v2
 
@@ -17,10 +17,10 @@
 DISTFILES += CSWmunin-master.README.CSW
 DISTFILES += CSWmunin-node.README.CSW
 
-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
+PATCHFILES	+= 0005-Expand-paths-with-DESTDIR.patch 
+PATCHFILES	+= 0006-paths-in-Makefile.config.patch
 
 #
 # Reinplacements

Modified: csw/mgar/pkg/munin/trunk/checksums
===================================================================
--- csw/mgar/pkg/munin/trunk/checksums	2012-07-27 15:10:12 UTC (rev 18868)
+++ csw/mgar/pkg/munin/trunk/checksums	2012-07-28 07:14:06 UTC (rev 18869)
@@ -1 +1 @@
-5020eaf323f08ec09600a0b07622861a  munin-2.0.2.tar.gz
+6b3d40c53baed5ead148f4e1a331e450  munin-2.0.3.tar.gz

Deleted: csw/mgar/pkg/munin/trunk/files/0001-paths-in-Makefile.config.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0001-paths-in-Makefile.config.patch	2012-07-27 15:10:12 UTC (rev 18868)
+++ csw/mgar/pkg/munin/trunk/files/0001-paths-in-Makefile.config.patch	2012-07-28 07:14:06 UTC (rev 18869)
@@ -1,120 +0,0 @@
-From da269418eb37e98fbe77b0b37c99c8f7783d09df Mon Sep 17 00:00:00 2001
-From: Juergen Arndt <ja at opencsw.org>
-Date: Sun, 3 Jun 2012 18:08:21 +0200
-Subject: [PATCH] paths in Makefile.config
-
----
- Makefile.config |   38 +++++++++++++++++++-------------------
- 1 file changed, 19 insertions(+), 19 deletions(-)
-
-diff --git a/Makefile.config b/Makefile.config
-index 7cd0b84..1a971a4 100644
---- a/Makefile.config
-+++ b/Makefile.config
-@@ -17,10 +17,10 @@
- #
- # the base of the Munin installation.
- #
--PREFIX     = $(DESTDIR)/opt/munin
-+PREFIX     = /opt/csw
- 
- # Where Munin keeps its configurations (server.conf, client.conf, ++)
--CONFDIR    = $(DESTDIR)/etc/opt/munin
-+CONFDIR    = /etc/opt/csw/munin
- 
- # Server only - where to put munin-cron
- BINDIR     = $(PREFIX)/bin
-@@ -29,20 +29,20 @@ BINDIR     = $(PREFIX)/bin
- SBINDIR    = $(PREFIX)/sbin
- 
- # Where to put text and html documentation
--DOCDIR     = $(PREFIX)/doc
-+DOCDIR     = $(PREFIX)/share/doc/munin
- 
- # 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)/www/docs
--CGIDIR     = $(PREFIX)/www/cgi
-+HTMLDIR    = /var/opt/csw/munin/www
-+CGIDIR     = /var/opt/csw/munin/www/cgi-bin
- 
- # Where to put RRD files and other internal data, both master and node
--DBDIR      = $(DESTDIR)/var/opt/munin
-+DBDIR      = /var/opt/csw/munin/db
- 
- # Client only - Where the spool files are written. Must be writable by
- # group "munin", and should be preserved between reboots
-@@ -53,17 +53,17 @@ SPOOLDIR   = $(DBDIR)/spool
- PLUGSTATE  = $(DBDIR)/plugin-state
- 
- # Where Munin should place its logs.
--LOGDIR     = $(PREFIX)/log/munin
-+LOGDIR     = /var/opt/csw/munin/log
- 
- # Location of PID files and other statefiles. On the server, must be
- # writable by the user "munin".
--STATEDIR   = $(DESTDIR)/var/run/munin
-+STATEDIR   = /var/opt/csw/munin/run
- 
- # The perl interpreter to use
--PERL       := $(shell which perl)
-+PERL       := /opt/csw/bin/perl
- 
- # The python interpreter to use (used by some plugins)
--PYTHON     := /usr/bin/env python
-+PYTHON     := /opt/csw/bin/python
- 
- # The ruby interpreter to use (used by some plugins)
- RUBY       := /usr/bin/env ruby
-@@ -89,11 +89,11 @@ JAVALIBDIR:= $(LIBDIR)
- GOODSH     := $(shell PATH=`getconf PATH 2>/dev/null || echo $(PATH)` sh -c 'type sh | sed "s/.* //"')
- 
- # Path of bash for bash specific plugins
--BASH       := /bin/bash
-+BASH       := /usr/bin/bash
- 
- # Server only - Where to install the perl libraries
- PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
--PERLLIB    = $(DESTDIR)$(PERLSITELIB)
-+PERLLIB    = $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
- 
- # Client only - Install plugins for this architecture
- OSTYPE     := $(shell uname | tr '[A-Z]' '[a-z]' | cut -f 1 -d _)
-@@ -105,7 +105,7 @@ HOSTNAME   := $(shell hostname)
- # What is the safest way to create a tempfile.
- # Default is to figure it out by testing various methods.
- # Replace this with a known platform-specific method
--MKTEMP     := $(shell ./test-mktemp)
-+MKTEMP     := $(shell mktemp)
- 
- # Munin version number.
- VERSION    := $(shell ./getversion)
-@@ -123,9 +123,9 @@ CGIUSER := nobody
- # Which command to use to check if the USER and GROUP to run Munin as, exists.
- # These will work on most modern OSes:
- #
--GETENT     := $(shell which getent || which true 2>/dev/null)
--CHECKUSER  := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
--CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
-+#GETENT     := $(shell which getent || which true 2>/dev/null)
-+#CHECKUSER  := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
-+#CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
- 
- # For OSX, comment out the previous two lines and comment in these
- #
-@@ -160,4 +160,4 @@ JAR        := jar
- JCVALID    = $(shell $(JC) -version >/dev/null 2>/dev/null && echo "yes")
- 
- # Check whether setruid functionality can be used
--HASSETR    := $(shell perl -e 'use Config; my @vars=("d_setruid", "d_setreuid", "d_setresuid"); foreach my $$var (@vars) { if ($$Config{$$var} eq "define") { print "1\n"; exit 0; } } print "0\n"; exit 0;' )
-+HASSETR    := $(shell /opt/csw/bin/perl -e 'use Config; my @vars=("d_setruid", "d_setreuid", "d_setresuid"); foreach my $$var (@vars) { if ($$Config{$$var} eq "define") { print "1\n"; exit 0; } } print "0\n"; exit 0;' )
--- 
-1.7.10.3
-

Deleted: csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch	2012-07-27 15:10:12 UTC (rev 18868)
+++ csw/mgar/pkg/munin/trunk/files/0004-Expand-paths-with-DESTDIR.patch	2012-07-28 07:14:06 UTC (rev 18869)
@@ -1,367 +0,0 @@
-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
-

Added: csw/mgar/pkg/munin/trunk/files/0005-Expand-paths-with-DESTDIR.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0005-Expand-paths-with-DESTDIR.patch	                        (rev 0)
+++ csw/mgar/pkg/munin/trunk/files/0005-Expand-paths-with-DESTDIR.patch	2012-07-28 07:14:06 UTC (rev 18869)
@@ -0,0 +1,371 @@
+From c4dbc877ec6bbc288bc584f8d0d13acd35a2e12b Mon Sep 17 00:00:00 2001
+From: Juergen Arndt <ja at opencsw.org>
+Date: Sat, 28 Jul 2012 08:19:03 +0200
+Subject: [PATCH 5/6] Expand paths with DESTDIR
+
+---
+ Makefile |  230 +++++++++++++++++++++++++++++++-------------------------------
+ 1 file changed, 116 insertions(+), 114 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 7ec659f..8388447 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,6 +9,8 @@
+ DEFAULTS = Makefile.config
+ CONFIG = Makefile.config
+ 
++DESTDIR =
++
+ include $(DEFAULTS)
+ include $(CONFIG)
+ 
+@@ -55,8 +57,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
+@@ -68,63 +70,63 @@ install: install-master-prime install-common-prime install-node-prime install-pl
+ 
+ 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 0644 master/DejaVuSansMono.ttf $(LIBDIR)/
+-	$(INSTALL) -m 0644 master/DejaVuSans.ttf $(LIBDIR)/
++	$(INSTALL) -m 0644 master/DejaVuSansMono.ttf $(DESTDIR)$(LIBDIR)/
++	$(INSTALL) -m 0644 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
+@@ -139,29 +141,29 @@ endif
+ 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
+-	$(HPUXONLY) mv $(LIBDIR)/plugins/*.adv $(LIBDIR)
+-	$(INSTALL) -m 0644 build/plugins/plugins.history $(LIBDIR)/plugins/
+-	$(INSTALL) -m 0644 build/plugins/plugin.sh $(LIBDIR)/plugins/
++	$(HPUXONLY) 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)/
+ 	mkdir -p $(LIBDIR)/plugins
+ 	for p in build/plugins/node.d.java/*; do               \
+ 	    if test -f "$$p" ; then                            \
+@@ -175,37 +177,37 @@ install-plugins-java: build-plugins-java
+ # 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
++	$(INSTALL) -m 0644 README $(DESTDIR)$(DOCDIR)/
++	$(INSTALL) -m 0644 COPYING $(DESTDIR)$(DOCDIR)/
++	$(INSTALL) -m 0644 build/resources/* $(DESTDIR)$(DOCDIR)/resources
+ 
+ ######################################################################
+ 
+@@ -218,29 +220,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'              \
+@@ -258,17 +260,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;      \
+@@ -277,8 +279,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;  \
+@@ -384,7 +386,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;\
+@@ -392,12 +394,12 @@ 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
+-	cp monkeywrench/plugin-break*_ $(LIBDIR)/plugins/
+-	$(SBINDIR)/munin-node-configure --suggest
++	rm -rf $(DESTDIR)$(CONFDIR)/plugins
++	rm -rf $(DESTDIR)$(LIBDIR)/plugins
++	mkdir -p $(DESTDIR)$(LIBDIR)/plugins
++	mkdir -p $(DESTDIR)$(CONFDIR)/plugins
++	cp monkeywrench/plugin-break*_ $(DESTDIR)$(LIBDIR)/plugins/
++	$(DESTDIR)$(SBINDIR)/munin-node-configure --suggest
+ 	echo 'Done?'
+ 
+ t/install:
+@@ -419,12 +421,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/0006-paths-in-Makefile.config.patch
===================================================================
--- csw/mgar/pkg/munin/trunk/files/0006-paths-in-Makefile.config.patch	                        (rev 0)
+++ csw/mgar/pkg/munin/trunk/files/0006-paths-in-Makefile.config.patch	2012-07-28 07:14:06 UTC (rev 18869)
@@ -0,0 +1,120 @@
+From c8297f1d1b8d35e75932c9a43060b8dabb7afc54 Mon Sep 17 00:00:00 2001
+From: Juergen Arndt <ja at opencsw.org>
+Date: Sat, 28 Jul 2012 08:25:46 +0200
+Subject: [PATCH 6/6] paths in Makefile.config
+
+---
+ Makefile.config |   38 +++++++++++++++++++-------------------
+ 1 file changed, 19 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.config b/Makefile.config
+index 5bb6d18..7abbec8 100644
+--- a/Makefile.config
++++ b/Makefile.config
+@@ -17,10 +17,10 @@
+ #
+ # the base of the Munin installation.
+ #
+-PREFIX     = $(DESTDIR)/opt/munin
++PREFIX     = /opt/csw
+ 
+ # Where Munin keeps its configurations (server.conf, client.conf, ++)
+-CONFDIR    = $(DESTDIR)/etc/opt/munin
++CONFDIR    = /etc/opt/csw/munin
+ 
+ # Server only - where to put munin-cron
+ BINDIR     = $(PREFIX)/bin
+@@ -29,20 +29,20 @@ BINDIR     = $(PREFIX)/bin
+ SBINDIR    = $(PREFIX)/sbin
+ 
+ # Where to put text and html documentation
+-DOCDIR     = $(PREFIX)/doc
++DOCDIR     = $(PREFIX)/share/doc/munin
+ 
+ # 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)/www/docs
+-CGIDIR     = $(PREFIX)/www/cgi
++HTMLDIR    = /var/opt/csw/munin/www
++CGIDIR     = /var/opt/csw/munin/www/cgi-bin
+ 
+ # Where to put RRD files and other internal data, both master and node
+-DBDIR      = $(DESTDIR)/var/opt/munin
++DBDIR      = /var/opt/csw/munin/db
+ 
+ # Client only - Where the spool files are written. Must be writable by
+ # group "munin", and should be preserved between reboots
+@@ -53,17 +53,17 @@ SPOOLDIR   = $(DBDIR)/spool
+ PLUGSTATE  = $(DBDIR)/plugin-state
+ 
+ # Where Munin should place its logs.
+-LOGDIR     = $(PREFIX)/log/munin
++LOGDIR     = /var/opt/csw/munin/log
+ 
+ # Location of PID files and other statefiles. On the server, must be
+ # writable by the user "munin".
+-STATEDIR   = $(DESTDIR)/var/run/munin
++STATEDIR   = /var/opt/csw/munin/run
+ 
+ # The perl interpreter to use
+-PERL       := $(shell which perl)
++PERL       := /opt/csw/bin/perl
+ 
+ # The python interpreter to use (used by some plugins)
+-PYTHON     := /usr/bin/env python
++PYTHON     := /opt/csw/bin/python
+ 
+ # The ruby interpreter to use (used by some plugins)
+ RUBY       := /usr/bin/env ruby
+@@ -89,11 +89,11 @@ JAVALIBDIR = $(LIBDIR)
+ GOODSH     := $(shell PATH=`getconf PATH 2>/dev/null || echo $(PATH)` sh -c 'type sh | sed "s/.* //"')
+ 
+ # Path of bash for bash specific plugins
+-BASH       := /bin/bash
++BASH       := /usr/bin/bash
+ 
+ # Server only - Where to install the perl libraries
+ PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
+-PERLLIB    = $(DESTDIR)$(PERLSITELIB)
++PERLLIB    = $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
+ 
+ # Client only - Install plugins for this architecture
+ # the LANG=C makes tr work as expected, not regarding any locale it
+@@ -108,7 +108,7 @@ HOSTNAME   := $(shell hostname)
+ # What is the safest way to create a tempfile.
+ # Default is to figure it out by testing various methods.
+ # Replace this with a known platform-specific method
+-MKTEMP     := $(shell ./test-mktemp)
++MKTEMP     := $(shell mktemp)
+ 
+ # Munin version number.
+ VERSION    := $(shell ./getversion)
+@@ -126,9 +126,9 @@ CGIUSER := nobody
+ # Which command to use to check if the USER and GROUP to run Munin as, exists.
+ # These will work on most modern OSes:
+ #
+-GETENT     := $(shell which getent || which true 2>/dev/null)
+-CHECKUSER  := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
+-CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
++#GETENT     := $(shell which getent || which true 2>/dev/null)
++#CHECKUSER  := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
++#CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
+ 
+ # For OSX, comment out the previous two lines and comment in these
+ #
+@@ -163,4 +163,4 @@ JAR        := jar
+ JCVALID    = $(shell $(JC) -version >/dev/null 2>/dev/null && echo "yes")
+ 
+ # Check whether setruid functionality can be used
+-HASSETR    := $(shell perl -e 'use Config; my @vars=("d_setruid", "d_setreuid", "d_setresuid"); foreach my $$var (@vars) { if ($$Config{$$var} eq "define") { print "1\n"; exit 0; } } print "0\n"; exit 0;' )
++HASSETR    := $(shell /opt/csw/bin/perl -e 'use Config; my @vars=("d_setruid", "d_setreuid", "d_setresuid"); foreach my $$var (@vars) { if ($$Config{$$var} eq "define") { print "1\n"; exit 0; } } print "0\n"; exit 0;' )
+-- 
+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