version 1.58, 2007/08/01 02:13:40
|
version 1.63, 2008/12/01 17:49:05
|
|
|
#//%2006//////////////////////////////////////////////////////////////////////// |
#//%LICENSE//////////////////////////////////////////////////////////////// |
#// | #// |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
#// Licensed to The Open Group (TOG) under one or more contributor license |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
#// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
#// this work for additional information regarding copyright ownership. |
#// IBM Corp.; EMC Corporation, The Open Group. |
#// Each contributor licenses this file to you under the OpenPegasus Open |
#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
#// Source License; you may not use this file except in compliance with the |
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
#// License. |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
|
#// | #// |
#// Permission is hereby granted, free of charge, to any person obtaining a copy |
#// Permission is hereby granted, free of charge, to any person obtaining a |
#// of this software and associated documentation files (the "Software"), to |
#// copy of this software and associated documentation files (the "Software"), |
#// deal in the Software without restriction, including without limitation the |
#// to deal in the Software without restriction, including without limitation |
#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
#// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
#// sell copies of the Software, and to permit persons to whom the Software is |
#// and/or sell copies of the Software, and to permit persons to whom the |
#// furnished to do so, subject to the following conditions: |
#// Software is furnished to do so, subject to the following conditions: |
#// | #// |
#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
#// The above copyright notice and this permission notice shall be included |
#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
#// in all copies or substantial portions of the Software. |
#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
|
#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
|
#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
#// | #// |
#//============================================================================== |
#// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
#// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
#// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
#// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|
#// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
#// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
#// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
#// |
|
#////////////////////////////////////////////////////////////////////////// |
# commands.mak is a helper Makefile that is intended to be | # commands.mak is a helper Makefile that is intended to be |
# included in an upper level Makefile. | # included in an upper level Makefile. |
| |
|
|
TOUCH = touch | TOUCH = touch |
CAT = cat | CAT = cat |
DOCXX = doc++ | DOCXX = doc++ |
|
DOXYGEN = doxygen |
| |
GENERATE_RANDSEED = randseed | GENERATE_RANDSEED = randseed |
GET_HOSTNAME = `nslookup \`hostname\` | grep "Name:" | sed 's/Name:[ ]*//'` | GET_HOSTNAME = `nslookup \`hostname\` | grep "Name:" | sed 's/Name:[ ]*//'` |
|
|
TOUCH = touch | TOUCH = touch |
CAT = cat | CAT = cat |
DOCXX = doc++ | DOCXX = doc++ |
|
DOXYGEN = doxygen |
| |
GET_HOSTNAME = `host \`hostname\`|cut -d" " -f1` | GET_HOSTNAME = `host \`hostname\`|cut -d" " -f1` |
| |
|
|
INSTALL_USR = root | INSTALL_USR = root |
INSTALL_GRP = pegasus | INSTALL_GRP = pegasus |
CIMSERVER_USR = root | CIMSERVER_USR = root |
CIMSERVER_GRP = pegasus |
CIMSERVER_GRP = root |
CHMOD = chmod | CHMOD = chmod |
CHOWN = chown | CHOWN = chown |
CHGRP = chgrp | CHGRP = chgrp |
|
|
SYMBOLIC_LINK_CMD = ln -f -s | SYMBOLIC_LINK_CMD = ln -f -s |
| |
CURRENT_USER=`whoami` | CURRENT_USER=`whoami` |
|
|
|
# |
|
# Since the Privilege Separation splits the cimserver process into two |
|
# processes (cimservermain process - a non privileged process; cimserver |
|
# process - a privileged process), the pegasus files need to be split into |
|
# two sets. The files which can be updated by cimservermain process are owned |
|
# by user "CIMSERVERMAIN_USR" and group "CIMSERVERMAIN_GRP". Other files |
|
# owned by user "CIMSERVER_USR" and group "CIMSERVER_GRP" can be updated |
|
# by cimserver process. |
|
# If the Privilege Separation is not enabled, a single privileged process |
|
# (cimserver process) is created. All the pegasus files can be updated by |
|
# the cimserver process. The CIMSERVERMAIN_USR variable will be set |
|
# equal to CIMSERVER_USR, and the CIMSERVERMAIN_GRP variable will be set |
|
# equal to CIMSERVER_GRP. |
|
# |
|
# To further restrict the privileges assigned to the cimservermain |
|
# process, we recommend creating a new group for the cimservermain |
|
# process. By default, the name of this group will be the same as |
|
# the cimservermain user. Note: the CIMSERVERMAIN_GRP should be |
|
# the primary group for the CIMSERVERMAIN_USER. |
|
|
|
ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION |
|
CIMSERVERMAIN_USR = $(PEGASUS_CIMSERVERMAIN_USER) |
|
CIMSERVERMAIN_GRP = $(PEGASUS_CIMSERVERMAIN_USER) |
|
else |
|
CIMSERVERMAIN_USR = $(CIMSERVER_USR) |
|
CIMSERVERMAIN_GRP = $(CIMSERVER_GRP) |
|
endif |
|
|
endif | endif |
| |
ifeq ($(OS),zos) | ifeq ($(OS),zos) |