SOURCES: munin-Makefile.patch - added config settings

baggins baggins at pld-linux.org
Fri Oct 7 11:13:32 CEST 2005


Author: baggins                      Date: Fri Oct  7 09:13:32 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added config settings

---- Files affected:
SOURCES:
   munin-Makefile.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/munin-Makefile.patch
diff -u SOURCES/munin-Makefile.patch:1.1 SOURCES/munin-Makefile.patch:1.2
--- SOURCES/munin-Makefile.patch:1.1	Thu Oct  6 23:46:34 2005
+++ SOURCES/munin-Makefile.patch	Fri Oct  7 11:13:27 2005
@@ -17,3 +17,76 @@
  
  	$(INSTALL) -m 0755 build/server/munin-update $(LIBDIR)/
  	$(INSTALL) -m 0755 build/server/munin-graph $(LIBDIR)/
+--- munin-1.3.2/Makefile.config.orig	2005-10-07 10:47:48.254572336 +0200
++++ munin-1.3.2/Makefile.config	2005-10-07 11:00:44.459571240 +0200
+@@ -7,10 +7,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
+@@ -22,17 +22,17 @@
+ DOCDIR     = $(PREFIX)/doc
+ 
+ # 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)/share/munin
+ 
+ # Server only - Output directory
+-HTMLDIR    = $(PREFIX)/var/www
+-CGIDIR     = $(HTMLDIR)/cgi
++HTMLDIR    = $(DESTDIR)/home/services/httpd/html/munin
++CGIDIR     = $(LIBDIR)/cgi
+ 
+ # 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
+@@ -52,14 +52,14 @@
+ PYTHON     = /usr/bin/env python
+ 
+ # Server only - Where to install the perl libraries
+-PERLLIB    = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
++PERLLIB    = $(shell $(PERL) -V:vendorlib | cut -d= -f2 | sed "s/[\';]//g")
+ 
+ # Client only - Install plugins for this architecture
+ OSTYPE     = $(shell uname | 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 cat RELEASE)
+@@ -72,10 +72,10 @@
+ PLUGINUSER = nobody
+ 
+ # Which command to use to check if the USER and GROUP to run Munin as, exists.
+-GETENT = $(shell which getent || which true 2>/dev/null)
+-CHECKUSER  = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
+-CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
+-
+-CHOWN      = chown
+-CHMOD      = chmod
+-CHGRP      = chgrp
++GETENT = /bin/true
++CHECKUSER  = /bin/true
++CHECKGROUP = /bin/true
++
++CHOWN      = /bin/true
++CHMOD      = /bin/true
++CHGRP      = /bin/true
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/munin-Makefile.patch?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list