~ubuntu-branches/ubuntu/oneiric/munin/oneiric-updates

« back to all changes in this revision

Viewing changes to Makefile.config

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-06-25 13:59:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080625135920-5to31uma3m4rf44n
Tags: 1.2.6-1ubuntu1
* Merge from debian unstable, remaining changes:
  + debian/munin-node.postinst:
    - Restart munin-node to load new plugins. (LP: #224428)
  + debian/control:
    - Suggest cron (LP: #220561)
    - Updated maintainer according to spec.
  + debian/changelog:
    - Corrected launch bug number.
  + Added debian/patches/220-honor-pid-file.patch:
    - Honor the pid file, thanks to Remi Broemeling. (LP: #107335)

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
# The python interpreter to use (used by some plugins)
52
52
PYTHON     = /usr/bin/env python
53
53
 
 
54
# A modern (posix) shell.  We're not looking for arrays, but $() and
 
55
# other modern stuff is expected.  On a posix-system the expression
 
56
# below will find the right shell.  Most Unixes released the last 10
 
57
# years are POSIX compliant enough for this to work (he said bravely).
 
58
 
59
# On Linux /bin/sh, SunOS/Solaris /usr/xpg4/bin/sh or /bin/ksh
 
60
# In general: bash or ksh will work
 
61
#
 
62
GOODSH     = $(shell PATH=`getconf PATH` sh -c 'type sh | sed "s/.* //"')
 
63
 
 
64
# Path of bash for bash specific plugins
 
65
BASH       = /bin/bash
 
66
 
54
67
# Server only - Where to install the perl libraries
55
 
PERLLIB    = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
 
68
PERLLIB    = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d"'" -f2)
56
69
 
57
70
# Client only - Install plugins for this architecture
58
71
OSTYPE     = $(shell uname | tr '[A-Z]' '[a-z]')
81
94
CHECKUSER  = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
82
95
CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
83
96
 
 
97
# For OSX, comment out the previous two lines and comment in these 
 
98
#CHECKUSER  = $(shell nicl . -read /users/$(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) 
 
99
#CHECKGROUP = $(shell nicl . -read /groups/$(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) 
 
100
 
84
101
CHOWN      = chown
85
102
CHMOD      = chmod
86
103
CHGRP      = chgrp
 
104
# Check whether setruid functionality can be used
 
105
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;' )
 
106