Changeset 1445

Show
Ignore:
Timestamp:
02/07/08 15:41:07 (4 years ago)
Author:
janl
Message:

* Makefile.config and doc updates to make HP-UX install nice and documented.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/INSTALL

    r1325 r1445  
    99- Perl modules for plugins: Depends on the plugins you want to use, 
    1010     but not much 
     11- GNU Make 
    1112 
    1213Munin is quite often used on Linux, *BSD, Solaris and AIX and recently 
     
    1819base at http://munin.sourceforge.net. 
    1920 
     21 
    2022Installing 
    2123========== 
     
    2628 
    2729          This overwrites the maintainers copy of Makefile.config. 
    28  
    29  
    3030 
    3131Munin consists of the main (central server) programs, and the node 
  • trunk/Makefile.config

    r1190 r1445  
    22# -*- Makefile -*- 
    33# 
    4 # This file is rigged to overwrite the a debian munin-package as that 
    5 # is what janl uses. 
     4# This file is used by the maintainer for testing and only necessarily 
     5# works on the maintainers machines.  Please see Makefile.config-dist 
     6# for the user directed Makefile.config as directed in the INSTALL doc. 
    67# 
    78# $Id$ 
     
    8687 
    8788# Which command to use to check if the USER and GROUP to run Munin as, exists. 
     89 
    8890GETENT = $(shell which getent || which true 2>/dev/null) 
    8991CHECKUSER  = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 
  • trunk/Makefile.config-dist

    r1282 r1445  
    9393 
    9494# Which command to use to check if the USER and GROUP to run Munin as, exists. 
     95# These will work on most modern OSes: 
     96# 
    9597GETENT = $(shell which getent || which true 2>/dev/null) 
    9698CHECKUSER  = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 
    9799CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 
     100 
    98101# For OSX, comment out the previous two lines and comment in these 
     102# 
    99103#CHECKUSER  = $(shell nicl . -read /users/$(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 
    100104#CHECKGROUP = $(shell nicl . -read /groups/$(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 
     105 
     106# For HP-UX, use these instead: 
     107# 
     108#PWGET = $(shell which pwget)  
     109#GRGET = $(shell which grget)  
     110#CHECKUSER  = $(shell $(PWGET) -n $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 
     111#CHECKGROUP = $(shell $(GRGET) -n $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 
     112 
     113 
    101114 
    102115CHOWN      = chown