Changeset 1343
- Timestamp:
- 06/10/07 22:28:45 (4 years ago)
- Files:
-
- people/jo/multilevel-groups-2 (copied) (copied from trunk)
- people/jo/multilevel-groups-2/Makefile.config (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/jo/multilevel-groups-2/Makefile.config
r1190 r1343 1 # MAINTAINER VERSION OF Makefile.config 2 # -*- Makefile -*- 1 # This is the Makefile.config file to use for a "clean" distribution. 3 2 # 4 # This file is rigged to overwrite the a debian munin-package as that5 # is what janl uses.6 #7 # $Id$8 9 3 # This file specifies where Munin will look for things after you've 10 4 # run 'make' in the source directory. Modify it to suit your needs. … … 13 7 # a shadow tree during make install. 14 8 15 # Include the default config 16 include Makefile.config-dist 9 # 10 # the base of the Munin installation. 11 # 12 PREFIX = $(DESTDIR)/opt/munin 17 13 18 # Then override 14 # Where Munin keeps its configurations (server.conf, client.conf, ++) 15 CONFDIR = $(DESTDIR)/etc/opt/munin 19 16 20 PREFIX = $(DESTDIR)/usr 21 CONFDIR = $(DESTDIR)/etc/munin 22 DOCDIR = $(PREFIX)/share/doc/munin 23 MANDIR = $(PREFIX)/share/man 17 # Server only - where to put munin-cron 18 BINDIR = $(PREFIX)/bin 19 20 # Client only - where to put munin-node, munin-node-configure, and munin-run 21 SBINDIR = $(PREFIX)/sbin 22 23 # Where to put text and html documentation 24 DOCDIR = $(PREFIX)/doc 25 26 # Where to put man pages 27 MANDIR = $(PREFIX)/man 24 28 25 29 # Where to put internal binaries and plugin repository 26 LIBDIR = $(PREFIX)/ share/munin30 LIBDIR = $(PREFIX)/lib 27 31 28 32 # Server only - Output directory 29 HTMLDIR = /var/www/munin30 CGIDIR = $(HTMLDIR)/ ../cgi33 HTMLDIR = $(PREFIX)/var/www 34 CGIDIR = $(HTMLDIR)/cgi 31 35 32 36 # Client only - Where to put RRD files and other intenal data 33 DBDIR = $(DESTDIR)/var/ lib/munin37 DBDIR = $(DESTDIR)/var/opt/munin 34 38 35 39 # Client only - Where plugins should put their states. Must be writable by … … 50 54 PYTHON = /usr/bin/env python 51 55 52 # A modern shell. We're not looking for arrays, but $() and other modern 53 # stuff is expected. 54 # Linux: /bin/bash 55 # SunOS/Solaris: /usr/xpg4/bin/sh or /bin/ksh 56 # A modern (posix) shell. We're not looking for arrays, but $() and 57 # other modern stuff is expected. On a posix-system the expression 58 # below will find the right shell. Most Unixes released the last 10 59 # years are POSIX compliant enough for this to work (he said bravely). 60 # 61 # On Linux /bin/sh, SunOS/Solaris /usr/xpg4/bin/sh or /bin/ksh 56 62 # In general: bash or ksh will work 57 GOODSH = /bin/bash 63 # 64 GOODSH = $(shell PATH=`getconf PATH` sh -c 'type sh | sed "s/.* //"') 58 65 59 66 # Path of bash for bash specific plugins … … 83 90 84 91 # Default user to run the plugins as 85 PLUGINUSER = nobody92 PLUGINUSER = munin 86 93 87 94 # Which command to use to check if the USER and GROUP to run Munin as, exists. 88 95 GETENT = $(shell which getent || which true 2>/dev/null) 89 CHECKUSER = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 90 CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 96 97 #CHECKUSER = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 98 #CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 99 100 # For OSX, comment out the previous two lines and comment in these 101 CHECKUSER = $(shell nicl . -read /users/$(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 102 CHECKGROUP = $(shell nicl . -read /groups/$(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 91 103 92 104 CHOWN = chown 93 105 CHMOD = chmod 94 106 CHGRP = chgrp 107 108 # Check whether setruid functionality can be used 109 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;' ) 110
