Add %%check section and run unit tests, Enable -test subpackage, Remove unused patches/files
This commit is contained in:
parent
99d6aa38e5
commit
0a035804aa
@ -1,587 +0,0 @@
|
||||
# RedHat.OpenPegasus.Makefile
|
||||
#
|
||||
# Red Hat OpenPegasus distribution Makefile
|
||||
#
|
||||
# Makefile to build only the binary objects actually shipped by the
|
||||
# default upstream linux build, that will work with 'make -j $ncpus' .
|
||||
# Generated by a script from the installed upstream package.
|
||||
#
|
||||
# Jason Vas Dias <jvdias@redhat.com> Red Hat, Inc. April 2006
|
||||
#
|
||||
SRCNAME ?= pegasus
|
||||
export RPM_BUILD_DIR ?= $(shell cd ..;pwd)
|
||||
export RPM_ARCH ?= $(shell uname -i)
|
||||
export RPM_OPT_FLAGS ?= $(shell rpm -q rpm --qf '%{OPTFLAGS}')
|
||||
ifndef PEGASUS_PLATFORM
|
||||
ifeq ($(RPM_ARCH),ia64)
|
||||
export PEGASUS_PLATFORM := LINUX_IA64_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH),x86_64)
|
||||
export PEGASUS_PLATFORM := LINUX_X86_64_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH),ppc)
|
||||
export PEGASUS_PLATFORM := LINUX_PPC_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH), ppc64)
|
||||
export PEGASUS_PLATFORM := LINUX_PPC64_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH), s390)
|
||||
export PEGASUS_PLATFORM := LINUX_ZSERIES_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH), s390x)
|
||||
export PEGASUS_PLATFORM := LINUX_ZSERIES64_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH), sparcv9)
|
||||
export PEGASUS_PLATFORM := LINUX_SPARCV9_GNU
|
||||
else
|
||||
ifeq ($(RPM_ARCH), sparc64)
|
||||
export PEGASUS_PLATFORM := LINUX_SPARC64_GNU
|
||||
else
|
||||
export PEGASUS_PLATFORM := LINUX_IX86_GNU
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifndef RPM_ARCH_LIB
|
||||
ifeq ($(RPM_ARCH),x86_64)
|
||||
export RPM_ARCH_LIB := lib64
|
||||
else
|
||||
ifeq ($(RPM_ARCH),ppc64)
|
||||
export RPM_ARCH_LIB := lib64
|
||||
else
|
||||
ifeq ($(RPM_ARCH),s390x)
|
||||
export RPM_ARCH_LIB := lib64
|
||||
else
|
||||
ifeq ($(RPM_ARCH), sparc64)
|
||||
export RPM_ARCH_LIB := lib64
|
||||
else
|
||||
export RPM_ARCH_LIB := lib
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
export PEGASUS_ROOT ?= $(RPM_BUILD_DIR)/$(SRCNAME)
|
||||
export PEGASUS_HOME ?= $(PEGASUS_ROOT)/build
|
||||
export PEGASUS_ARCH_LIB ?= $(RPM_ARCH_LIB)
|
||||
export PEGASUS_ENVVAR_FILE ?= $(PEGASUS_ROOT)/env_var_Linux.status
|
||||
export PEGASUS_EXTRA_C_FLAGS ?= $(RPM_OPT_FLAGS) -Wno-unused
|
||||
export PEGASUS_EXTRA_CXX_FLAGS ?= $(PEGASUS_EXTRA_C_FLAGS)
|
||||
export PEGASUS_EXTRA_PROGRAM_LINK_FLAGS ?= -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
|
||||
export OPENSSL_HOME ?= /usr
|
||||
export OPENSSL_BIN ?= /usr/bin
|
||||
export SYS_INCLUDES ?= -I/usr/kerberos/include
|
||||
export LD_LIBRARY_PATH ?= $(PEGASUS_HOME)/lib
|
||||
B = $(PEGASUS_HOME)
|
||||
R = $(PEGASUS_ROOT)
|
||||
SBINS=$(B)/bin/cimserver $(B)/bin/cimprovagt $(B)/bin/cimauth $(B)/bin/cimconfig $(B)/bin/cimuser $(B)/bin/repupgrade $(B)/bin/cimsub
|
||||
UBINS=$(B)/bin/cimmof $(B)/bin/cimmofl $(B)/bin/cimprovider $(B)/bin/osinfo $(B)/bin/wbemexec
|
||||
BINARIES=$(SBINS) $(UBINS)
|
||||
PROVIDER_MANAGERS=$(B)/lib/Pegasus/providerManagers/libCMPIProviderManager.so.1
|
||||
PROVIDERS=$(B)/lib/Pegasus/providers/libComputerSystemProvider.so.1 $(B)/lib/Pegasus/providers/libOSProvider.so.1 $(B)/lib/Pegasus/providers/libProcessProvider.so.1
|
||||
LIBRARIES=$(B)/lib/libCIMQueryCapabilitiesProvider.so.1 $(B)/lib/libCIMxmlIndicationHandler.so.1 $(B)/lib/libsnmpIndicationHandler.so.1 $(B)/lib/libCertificateProvider.so.1 $(B)/lib/libConfigSettingProvider.so.1 $(B)/lib/libDefaultProviderManager.so.1 $(B)/lib/libNamespaceProvider.so.1 $(B)/lib/libProviderRegistrationProvider.so.1 $(B)/lib/libUserAuthProvider.so.1 $(B)/lib/libcmpiCppImpl.so.1 $(B)/lib/libpegauthentication.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegcompiler.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/libpegexportclient.so.1 $(B)/lib/libpegexportserver.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpeghandlerservice.so.1 $(B)/lib/libpegindicationservice.so.1 $(B)/lib/libpeglistener.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegserver.so.1 $(B)/lib/libpegservice.so.1 $(B)/lib/libpeguser.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegpmservice.so.1
|
||||
|
||||
all: $(BINARIES) $(LIBRARIES) $(PROVIDERS) $(PROVIDER_MANAGERS)
|
||||
|
||||
stage_PegasusSystemFiles:
|
||||
$(MAKE) -f Makefile.Release stage_PegasusSystemFiles
|
||||
|
||||
setup:
|
||||
$(MAKE) -f Makefile.Release create_ProductVersionFile
|
||||
$(MAKE) -f Makefile.Release create_CommonProductDirectoriesInclude
|
||||
$(MAKE) -f Makefile.Release create_ConfigProductDirectoriesInclude
|
||||
touch setup
|
||||
|
||||
$(BINARIES) $(LIBRARIES) $(PROVIDERS) $(PROVIDER_MANAGERS): setup
|
||||
|
||||
$(B)/bin/cimserver: $(B)/lib/libpegclient.so.1 $(B)/lib/libpegserver.so.1 $(B)/lib/libpeguser.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libNamespaceProvider.so.1 $(B)/lib/libpegindicationservice.so.1 $(B)/lib/libpeghandlerservice.so.1 $(B)/lib/libConfigSettingProvider.so.1 $(B)/lib/libDefaultProviderManager.so.1 $(B)/lib/libProviderRegistrationProvider.so.1 $(B)/lib/libpegauthentication.so.1 $(B)/lib/libUserAuthProvider.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libCIMQueryCapabilitiesProvider.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegexportserver.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegservice.so.1 $(B)/lib/libCertificateProvider.so.1 $(B)/lib/Pegasus/providers/libComputerSystemProvider.so.1 $(B)/lib/Pegasus/providers/libOSProvider.so.1 $(B)/lib/Pegasus/providers/libProcessProvider.so.1 $(B)/lib/libpegpmservice.so.1
|
||||
$(MAKE) -C $(R)/src/Server
|
||||
|
||||
$(B)/bin/cimprovagt: $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/Pegasus/providers/libComputerSystemProvider.so.1 $(B)/lib/Pegasus/providers/libOSProvider.so.1 $(B)/lib/Pegasus/providers/libProcessProvider.so.1
|
||||
$(MAKE) -C src/Pegasus/ProviderManagerService/ProviderAgent
|
||||
|
||||
$(B)/bin/cimauth: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cimauth
|
||||
|
||||
$(B)/bin/cimconfig: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cimconfig
|
||||
|
||||
$(B)/bin/cimuser: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cimuser
|
||||
|
||||
$(B)/bin/repupgrade: $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/repupgrade
|
||||
|
||||
$(B)/bin/cimsub: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cimsub
|
||||
|
||||
$(B)/bin/cimmof: $(B)/lib/libpegcompiler.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Compiler/cmdline/cimmof
|
||||
|
||||
$(B)/bin/cimmofl: $(B)/bin/cimmof
|
||||
$(MAKE) -C $(R)/src/Pegasus/Compiler/cmdline/cimmofl
|
||||
|
||||
$(B)/bin/cimprovider: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cimprovider
|
||||
|
||||
$(B)/bin/osinfo: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/osinfo
|
||||
|
||||
$(B)/bin/wbemexec: $(B)/lib/libpegcliutils.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/wbemexec
|
||||
|
||||
$(B)/lib/Pegasus/providers/libComputerSystemProvider.so.1: $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/ManagedSystem/ComputerSystem
|
||||
|
||||
$(B)/lib/Pegasus/providers/libOSProvider.so.1: $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/ManagedSystem/OperatingSystem
|
||||
|
||||
$(B)/lib/Pegasus/providers/libProcessProvider.so.1: $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/ManagedSystem/Process
|
||||
|
||||
$(B)/lib/libCIMQueryCapabilitiesProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/QueryCapabilitiesProvider
|
||||
|
||||
$(B)/lib/libCIMxmlIndicationHandler.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegexportclient.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Handler/CIMxmlIndicationHandler
|
||||
|
||||
$(B)/lib/libsnmpIndicationHandler.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpeggetoopt.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Handler/snmpIndicationHandler
|
||||
|
||||
$(B)/lib/Pegasus/providerManagers/libCMPIProviderManager.so.1: $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegrepository.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ProviderManager2/CMPI
|
||||
|
||||
$(B)/lib/libCertificateProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/CertificateProvider
|
||||
|
||||
$(B)/lib/libConfigSettingProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/ConfigSettingProvider
|
||||
|
||||
$(B)/lib/libDefaultProviderManager.so.1: $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegrepository.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ProviderManager2/Default
|
||||
|
||||
$(B)/lib/libNamespaceProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/NamespaceProvider
|
||||
|
||||
$(B)/lib/libProviderRegistrationProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/ProviderRegistrationProvider
|
||||
|
||||
$(B)/lib/libUserAuthProvider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpeguser.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ControlProviders/UserAuthProvider
|
||||
|
||||
$(B)/lib/libcmpiCppImpl.so.1:
|
||||
$(MAKE) -C $(R)/src/Pegasus/Provider/CMPI
|
||||
|
||||
$(B)/lib/libpegauthentication.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpeguser.so.1 $(B)/lib/libpegconfig.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Security/Authentication
|
||||
|
||||
$(B)/lib/libpegclient.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Client
|
||||
|
||||
$(B)/lib/libpegcliutils.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/cliutils
|
||||
|
||||
$(B)/lib/libpegcommon.so.1:
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common
|
||||
|
||||
$(B)/lib/libpegcompiler.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegconfig.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Compiler
|
||||
|
||||
$(B)/lib/libpegconfig.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Config
|
||||
|
||||
$(B)/lib/libpegcql.so.1: $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/CQL
|
||||
|
||||
$(B)/lib/libpegexportclient.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ExportClient
|
||||
|
||||
$(B)/lib/libpegexportserver.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ExportServer
|
||||
|
||||
$(B)/lib/libpeggetoopt.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/getoopt
|
||||
|
||||
$(B)/lib/libpeghandlerservice.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegquerycommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/HandlerService
|
||||
|
||||
$(B)/lib/libpegindicationservice.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/IndicationService
|
||||
|
||||
$(B)/lib/libpeglistener.so.1: $(B)/lib/libpegexportserver.so.1 $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Listener
|
||||
|
||||
$(B)/lib/libpegprm.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Server/ProviderRegistrationManager
|
||||
|
||||
$(B)/lib/libpegprovider.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Provider
|
||||
|
||||
$(B)/lib/libpegprovidermanager.so.1: $(B)/lib/libpegprm.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ProviderManager2
|
||||
|
||||
$(B)/lib/libpegquerycommon.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Query/QueryCommon
|
||||
|
||||
$(B)/lib/libpegqueryexpression.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Query/QueryExpression
|
||||
|
||||
$(B)/lib/libpegrepository.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegconfig.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Repository
|
||||
|
||||
$(B)/lib/libpegserver.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegexportserver.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpeguser.so.1 $(B)/lib/libpegauthentication.so.1 $(B)/lib/libpeghandlerservice.so.1 $(B)/lib/libpegindicationservice.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libDefaultProviderManager.so.1 $(B)/lib/libConfigSettingProvider.so.1 $(B)/lib/libUserAuthProvider.so.1 $(B)/lib/libProviderRegistrationProvider.so.1 $(B)/lib/libNamespaceProvider.so.1 $(B)/lib/libCIMQueryCapabilitiesProvider.so.1 $(B)/lib/libCertificateProvider.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegcql.so.1 $(B)/lib/libpegpmservice.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Server
|
||||
|
||||
$(B)/lib/libpegservice.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Service
|
||||
|
||||
$(B)/lib/libpeguser.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegconfig.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Security/UserManager
|
||||
|
||||
$(B)/lib/libpegwql.so.1: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegquerycommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/WQL
|
||||
|
||||
$(B)/lib/libpegpmservice.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ProviderManagerService
|
||||
|
||||
#
|
||||
# install target :
|
||||
#
|
||||
#
|
||||
install ?= /usr/bin/install
|
||||
prefix ?=
|
||||
export prefix := $(prefix:/usr=)
|
||||
D := $(prefix)
|
||||
sysconfdir ?= /etc
|
||||
export sysconfdir := $(subst $(prefix),,$(sysconfdir))
|
||||
etc := $(sysconfdir)
|
||||
bindir ?= /usr/bin
|
||||
export bindir := $(subst $(prefix),,$(bindir))
|
||||
bin := $(bindir)
|
||||
sbindir ?= /usr/sbin
|
||||
export sbindir := $(subst $(prefix),,$(sbindir))
|
||||
sbin := $(sbindir)
|
||||
libdir ?= /usr/$(RPM_ARCH_LIB)
|
||||
export libdir := $(subst $(prefix),,$(libdir))
|
||||
lib := $(libdir)
|
||||
datadir ?= /usr/share
|
||||
export datadir := $(subst $(prefix),,$(datadir))
|
||||
share := $(datadir)
|
||||
includedir ?= /usr/include
|
||||
export includedir := $(subst $(prefix),,$(includedir))
|
||||
inc := $(includedir)
|
||||
localstatedir ?= /var
|
||||
export localstatedir := $(subst $(prefix),,$(localstatedir))
|
||||
var := $(localstatedir)
|
||||
mandir ?= /usr/share/man
|
||||
export mandir := $(subst $(prefix),,$(mandir))
|
||||
root_user ?= root
|
||||
pegasus_user ?= pegasus
|
||||
SYSDIRS = $(D) $(D)/$(etc) $(D)/$(etc)/rc.d/init.d $(D)/$(etc)/pam.d \
|
||||
$(D)/$(var) $(D)/$(lib) $(D)/$(bin)/ $(D)/$(sbin) \
|
||||
$(D)/$(inc) $(D)/$(mandir)/man8 $(D)/$(mandir)/man1
|
||||
ROOTDIRS = $(D)/$(etc)/Pegasus \
|
||||
$(D)/$(var)/run/tog-pegasus $(D)/$(var)/run/tog-pegasus/socket \
|
||||
$(D)/$(var)/lib/Pegasus $(D)/$(var)/lib/Pegasus/repository \
|
||||
$(D)/$(var)/lib/Pegasus/repository/root/classes \
|
||||
$(D)/$(var)/lib/Pegasus/repository/root/instances \
|
||||
$(D)/$(var)/lib/Pegasus/repository/root/qualifiers \
|
||||
$(D)/$(var)/lib/Pegasus/cache \
|
||||
$(D)/$(var)/lib/Pegasus/cache/localauth \
|
||||
$(D)/$(var)/lib/Pegasus/cache/trace \
|
||||
$(D)/$(var)/lib/Pegasus/log \
|
||||
$(D)/$(lib)/Pegasus \
|
||||
$(D)/$(lib)/Pegasus/providers \
|
||||
$(D)/$(lib)/Pegasus/providerManagers \
|
||||
$(D)/$(lib)/cmpi \
|
||||
$(D)/$(share)/Pegasus/scripts
|
||||
PEGDIRS = $(D)/$(share)/Pegasus \
|
||||
$(D)/$(share)/Pegasus/mof/CIM29 \
|
||||
$(D)/$(share)/Pegasus/mof/Pegasus
|
||||
MAN8S = $(wildcard $(R)/rpm/manLinux/man8.Z/*.8)
|
||||
MAN1S = $(wildcard $(R)/rpm/manLinux/man1.Z/*.1)
|
||||
CIMSCHEMA= $(wildcard $(R)/Schemas/CIM29/*)
|
||||
CIMMOF=$(addprefix $(D)$(share)/Pegasus/mof/CIM29/,$(notdir $(CIMSCHEMA)))
|
||||
PEGSCHEMA= $(R)/Schemas/Pegasus/Internal/VER20/PG_SSLCertificate20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem20R.mof \
|
||||
$(R)/Schemas/Pegasus/InterOp/VER20/PG_InterOpSchema20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem20R.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_User20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema20.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_ConfigSetting20.mof \
|
||||
$(R)/Schemas/Pegasus/InterOp/VER20/PG_ProviderModule20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_OperatingSystem20.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_Authorization20.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_InternalSchema20.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_ShutdownService20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_ComputerSystem20.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_UnixProcess20R.mof \
|
||||
$(R)/Schemas/Pegasus/ManagedSystem/VER20/PG_ManagedSystemSchema20R.mof \
|
||||
$(R)/Schemas/Pegasus/Internal/VER20/PG_SSLCertificateRevocationList20.mof \
|
||||
$(R)/Schemas/Pegasus/InterOp/VER20/PG_Events20.mof
|
||||
PEGMOF=$(addprefix $(D)$(share)/Pegasus/mof/Pegasus/,$(notdir $(CIMSCHEMA)))
|
||||
LINKED_LIBS=$(D)/$(lib)/libcmpiCppImpl.so.1 $(D)/$(lib)/libpegclient.so.1 $(D)/$(lib)/libpegcommon.so.1 $(D)/$(lib)/libpegprovider.so.1 $(D)/$(lib)/libDefaultProviderManager.so.1 $(D)/$(lib)/libCIMxmlIndicationHandler.so.1 $(D)/$(lib)/libsnmpIndicationHandler.so.1 $(D)/$(lib)/Pegasus/providerManagers/libCMPIProviderManager.so.1 $(D)/$(lib)/Pegasus/providers/libComputerSystemProvider.so.1 $(D)/$(lib)/Pegasus/providers/libOSProvider.so.1 $(D)/$(lib)/Pegasus/providers/libProcessProvider.so.1
|
||||
export PEGASUS_STAGING_DIR := $(D)
|
||||
BSX ?=
|
||||
|
||||
install: dirs config libs lib_links bins mans mof SDK ghost_files repository
|
||||
|
||||
$(SYSDIRS):
|
||||
/bin/mkdir -p $@
|
||||
|
||||
$(ROOTDIRS):
|
||||
/bin/mkdir -p $@;
|
||||
/bin/chown $(root_user):$(pegasus_user) $@ >/dev/null 2>&1;
|
||||
/bin/chmod 0750 $@;
|
||||
|
||||
$(PEGDIRS):
|
||||
/bin/mkdir -p $@;
|
||||
/bin/chown $(root_user):$(pegasus_user) $@ >/dev/null 2>&1 || :;
|
||||
/bin/chmod 0755 $@
|
||||
|
||||
dirs: $(SYSDIRS) $(ROOTDIRS) $(PEGDIRS)
|
||||
|
||||
$(D)/$(etc)/rc.d/init.d/tog-pegasus: $(R)/rpm/tog-pegasus.rc
|
||||
$(install) -m 0750 -o $(root_user) -g $(pegasus_user) -p $< $@
|
||||
|
||||
$(D)/$(etc)/Pegasus/access.conf: $(R)/rpm/access.conf
|
||||
$(install) -m 0640 -o $(root_user) -g $(pegasus_user) -p $< $@
|
||||
|
||||
$(D)/$(etc)/pam.d/wbem: $(R)/rpm/wbem
|
||||
$(install) -m 0640 -o $(root_user) -g $(pegasus_user) -p $< $@
|
||||
|
||||
$(D)/$(share)/Pegasus/scripts/genOpenPegasusSSLCerts: $(R)/rpm/genOpenPegasusSSLCerts
|
||||
$(install) -m 0640 -o $(root_user) -g $(pegasus_user) -p $< $@
|
||||
|
||||
config: $(D)/$(etc)/rc.d/init.d/tog-pegasus $(D)/$(etc)/Pegasus/access.conf $(D)/$(etc)/pam.d/wbem $(D)/$(share)/Pegasus/scripts/genOpenPegasusSSLCerts
|
||||
|
||||
$(D)/$(lib)/Pegasus/providerManagers/%:
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(B)/lib/$(patsubst Pegasus/providerManagers/%,%,$*) $@
|
||||
|
||||
$(D)/$(lib)/Pegasus/providers/%:
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(B)/lib/$(patsubst Pegasus/providers/%,%,$*) $@
|
||||
|
||||
$(D)/$(lib)/%:
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(B)/lib/$* $@
|
||||
|
||||
libs: $(LIBRARIES) $(patsubst $(B)/lib/%,$(D)/$(lib)/%,$(LIBRARIES) $(PROVIDERS) $(PROVIDER_MANAGERS))
|
||||
|
||||
$(patsubst %.so.1,%.so,$(LINKED_LIBS)):
|
||||
/bin/ln -sf $(patsubst %,%.1,$(notdir $@)) $(patsubst %.so.1,%.so,$@)
|
||||
|
||||
lib_links: libs $(patsubst %.so.1,%.so,$(LINKED_LIBS))
|
||||
|
||||
$(patsubst $(B)/bin/%,$(D)/$(sbin)/%,$(patsubst %,%$(BSX),$(SBINS))):
|
||||
$(install) -m 0750 -o $(root_user) -g $(pegasus_user) -p $(patsubst %$(BSX),%,$(patsubst $(D)/$(sbin)/%,$(B)/bin/%, $@)) $@
|
||||
if [ -n "$(BSX)" ]; then /bin/ln -s $(notdir $@) $(patsubst %$(BSX),%,$@); fi
|
||||
|
||||
$(patsubst $(B)/bin/%,$(D)/$(bin)/%,$(patsubst %,%$(BSX),$(UBINS))):
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(patsubst %$(BSX),%,$(patsubst $(D)/$(bin)/%,$(B)/bin/%, $@)) $@
|
||||
if [ -n "$(BSX)" ]; then /bin/ln -s $(notdir $@) $(patsubst %$(BSX),%,$@); fi
|
||||
|
||||
bins: $(SBINS) $(UBINS) $(patsubst $(B)/bin/%,$(D)/$(sbin)/%,$(patsubst %,%$(BSX),$(SBINS))) $(patsubst $(B)/bin/%,$(D)/$(bin)/%,$(patsubst %,%$(BSX),$(UBINS)))
|
||||
|
||||
$(D)/$(mandir)/man8/%.8:
|
||||
$(install) -m 0644 -o $(root_user) -g $(root_user) -p $(R)/rpm/manLinux/man8.Z/$*.8 $@
|
||||
|
||||
$(D)/$(mandir)/man1/%.1:
|
||||
$(install) -m 0644 -o $(root_user) -g $(root_user) -p $(R)/rpm/manLinux/man1.Z/$*.1 $@
|
||||
|
||||
mans: $(subst $(R)/rpm/manLinux/man8.Z,$(D)/$(mandir)/man8,$(MAN8S)) $(subst $(R)/rpm/manLinux/man1.Z,$(D)/$(mandir)/man1,$(MAN1S))
|
||||
|
||||
mof: $(CIMSCHEMA) $(PEGSCHEMA)
|
||||
$(install) -m 0644 -o $(root_user) -g $(root_user) -p $(CIMSCHEMA) $(D)/$(share)/Pegasus/mof/CIM29
|
||||
$(install) -m 0644 -o $(root_user) -g $(root_user) -p $(PEGSCHEMA) $(D)/$(share)/Pegasus/mof/Pegasus
|
||||
|
||||
SDK:
|
||||
/bin/mkdir -p $(PEGASUS_STAGING_DIR)/usr/share/doc/tog-pegasus-2.9/
|
||||
$(MAKE) -f $(R)/mak/SDKMakefile stageSDK
|
||||
/bin/rm -rf $(PEGASUS_STAGING_DIR)/usr/share/doc/tog-pegasus-2.9/
|
||||
if [ -n "$(BSX)" ]; then mv $(D)/$(share)/Pegasus/samples/mak/config.mak $(D)/$(share)/Pegasus/samples/mak/config.mak$(BSX); /bin/ln -s config.mak$(BSX) $(D)/$(share)/Pegasus/samples/mak/config.mak; fi;
|
||||
touch SDK
|
||||
|
||||
ghost_files:
|
||||
touch $(D){/etc/Pegasus/{cimserver_current.conf,cimserver_planned.conf,cimserver_trust,indication_trust,crl,ssl.cnf,client.pem,server.pem,file.pem,},/var/{run/tog-pegasus/{cimxml.socket,cimserver.pid,cimserver_start.lock},lib/Pegasus/{log/install.log,cache/trace/cimserver.trc}}}
|
||||
|
||||
repository:
|
||||
PATH=$(B)/bin:$$PATH LD_LIBRARY_PATH=$(B)/lib $(MAKE) -C Schemas/Pegasus repository REPOSITORY_DIR=$(D)/$(var)/lib/Pegasus
|
||||
|
||||
# test package :
|
||||
|
||||
TESTLIBS:=$(B)/lib/libFamilyProvider.so.1 $(B)/lib/libIndicationStressTestConsumer.so.1 $(B)/lib/libIndicationStressTestProvider.so.1 $(B)/lib/libSampleInstanceProvider.so.1 $(B)/lib/libSampleMethodProvider.so.1 $(B)/lib/libIndicationTestProvider.so.1
|
||||
TESTBINS:=$(B)/bin/TestAbstract $(B)/bin/TestArray $(B)/bin/TestAsyncQueue $(B)/bin/TestBase64 $(B)/bin/TestClassDecl $(B)/bin/TestDateTime $(B)/bin/TestFlavor $(B)/bin/TestFormatter $(B)/bin/TestHashTable $(B)/bin/TestInstanceDecl $(B)/bin/TestList $(B)/bin/TestLogger $(B)/bin/TestMethod $(B)/bin/TestObject $(B)/bin/TestOperationContext $(B)/bin/TestParamValue $(B)/bin/TestParameter $(B)/bin/TestProperty $(B)/bin/TestQualifier $(B)/bin/TestQualifierDecl $(B)/bin/TestQualifierList $(B)/bin/TestReference $(B)/bin/TestResolve $(B)/bin/TestResponseHandler $(B)/bin/TestScope $(B)/bin/TestStack $(B)/bin/TestStopwatch $(B)/bin/TestStrToInstName $(B)/bin/TestString $(B)/bin/TestTimeValue $(B)/bin/TestToMof $(B)/bin/TestTracer $(B)/bin/TestValidateClass $(B)/bin/TestValue $(B)/bin/TestClient $(B)/bin/TestPegClientInvokeMethod2 $(B)/bin/TestIndicationStressTest $(B)/bin/TestClientOSProvider $(B)/bin/TestSnmpHandler
|
||||
|
||||
$(B)/lib/libFamilyProvider.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/TestProviders/FamilyProvider
|
||||
|
||||
$(B)/lib/libIndicationStressTestConsumer.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/TestProviders/IndicationStressTestProvider/testconsumer
|
||||
|
||||
$(B)/lib/libIndicationStressTestProvider.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/TestProviders/IndicationStressTestProvider
|
||||
|
||||
$(B)/lib/libSampleInstanceProvider.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/sample/InstanceProvider
|
||||
|
||||
$(B)/lib/libSampleMethodProvider.so.1: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/sample/MethodProvider
|
||||
|
||||
$(B)/bin/TestAbstract: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Abstract
|
||||
|
||||
$(B)/bin/TestArray: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Array
|
||||
|
||||
$(B)/bin/TestAsyncQueue: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/AsyncQueue
|
||||
|
||||
$(B)/bin/TestBase64: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Base64
|
||||
|
||||
$(B)/bin/TestClassDecl: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/ClassDecl
|
||||
|
||||
$(B)/bin/TestDateTime: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/DateTime
|
||||
|
||||
$(B)/bin/TestFlavor: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Flavor
|
||||
|
||||
$(B)/bin/TestFormatter: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Formatter
|
||||
|
||||
$(B)/bin/TestHashTable: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/HashTable
|
||||
|
||||
$(B)/bin/TestInstanceDecl: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/InstanceDecl
|
||||
|
||||
$(B)/bin/TestList: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/List
|
||||
|
||||
$(B)/bin/TestLogger: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Logger
|
||||
|
||||
$(B)/bin/TestMethod: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Method
|
||||
|
||||
$(B)/bin/TestObject: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Object
|
||||
|
||||
$(B)/bin/TestOperationContext: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/OperationContext
|
||||
|
||||
$(B)/bin/TestParamValue: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/ParamValue
|
||||
|
||||
$(B)/bin/TestParameter: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Parameter
|
||||
|
||||
$(B)/bin/TestProperty: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Property
|
||||
|
||||
$(B)/bin/TestQualifier: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Qualifier
|
||||
|
||||
$(B)/bin/TestQualifierDecl: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/QualifierDecl
|
||||
|
||||
$(B)/bin/TestQualifierList: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/QualifierList
|
||||
|
||||
$(B)/bin/TestReference: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Reference
|
||||
|
||||
$(B)/bin/TestResolve: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Resolve
|
||||
|
||||
$(B)/bin/TestScope: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Scope
|
||||
|
||||
$(B)/bin/TestStack: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Stack
|
||||
|
||||
$(B)/bin/TestStopwatch: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Stopwatch
|
||||
|
||||
$(B)/bin/TestStrToInstName: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/StrToInstName
|
||||
|
||||
$(B)/bin/TestString: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/String
|
||||
|
||||
$(B)/bin/TestTimeValue: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/TimeValue
|
||||
|
||||
$(B)/bin/TestToMof: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/ToMof
|
||||
|
||||
$(B)/bin/TestValidateClass: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/ValidateClass
|
||||
|
||||
$(B)/bin/TestValue: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Value
|
||||
|
||||
$(B)/bin/TestTracer: $(B)/lib/libpegcommon.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Common/tests/Tracer
|
||||
|
||||
$(B)/bin/TestClientOSProvider: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/ManagedSystem/OperatingSystem/tests/OSTestClient
|
||||
|
||||
$(B)/bin/TestSnmpHandler: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Handler/snmpIndicationHandler/tests/testclient
|
||||
|
||||
$(B)/bin/TestResponseHandler: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegprovider.so.1 $(B)/lib/libpegprovidermanager.so.1 $(B)/lib/libpegprm.so.1 $(B)/lib/libpegconfig.so.1 $(B)/lib/libpegquerycommon.so.1 $(B)/lib/libpegqueryexpression.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegwql.so.1 $(B)/lib/libpegrepository.so.1 $(B)/lib/libpegcql.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/ProviderManager2/Default/tests/ResponseHandler
|
||||
|
||||
$(B)/bin/TestClient: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Clients/TestClient
|
||||
|
||||
$(B)/bin/TestPegClientInvokeMethod2: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpegclient.so.1
|
||||
$(MAKE) -C $(R)/src/Pegasus/Client/tests/InvokeMethod2
|
||||
|
||||
$(B)/bin/TestIndicationStressTest: $(B)/lib/libpegcommon.so.1 $(B)/lib/libpeglistener.so.1 $(B)/lib/libpegclient.so.1 $(B)/lib/libpegexportserver.so.1
|
||||
$(MAKE) -C $(R)/src/Providers/TestProviders/IndicationStressTestProvider/testclient
|
||||
|
||||
tests: $(TESTLIBS) $(TESTBINS)
|
||||
|
||||
install_tests: tests test_dirs test_lib test_bin test_mak test_makefile test_repository
|
||||
|
||||
TESTDIRS = $(D)/$(share)/Pegasus/test \
|
||||
$(D)/$(share)/Pegasus/test/bin \
|
||||
$(D)/$(share)/Pegasus/test/lib \
|
||||
$(D)/$(share)/Pegasus/test/mak
|
||||
|
||||
$(TESTDIRS):
|
||||
/bin/mkdir -p $@;
|
||||
/bin/chown $(root_user):$(pegasus_user) $@ >/dev/null 2>&1 || :;
|
||||
/bin/chmod 0755 $@
|
||||
|
||||
test_dirs: $(TESTDIRS)
|
||||
|
||||
$(patsubst $(B)/lib/%,$(D)/$(share)/Pegasus/test/lib/%,$(TESTLIBS)):
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(patsubst $(D)/$(share)/Pegasus/test/lib/%,$(B)/lib/%,$@) $@
|
||||
|
||||
test_lib: $(TESTLIBS) $(patsubst $(B)/lib/%,$(D)/$(share)/Pegasus/test/lib/%,$(TESTLIBS))
|
||||
|
||||
$(patsubst $(B)/bin/%,$(D)/$(share)/Pegasus/test/bin/%,$(TESTBINS)):
|
||||
$(install) -m 0755 -o $(root_user) -g $(pegasus_user) -p $(patsubst $(D)/$(share)/Pegasus/test/bin/%,$(B)/bin/%,$@) $@
|
||||
|
||||
test_bin: $(TESTBINS) $(patsubst $(B)/bin/%,$(D)/$(share)/Pegasus/test/bin/%,$(TESTBINS))
|
||||
|
||||
test_mak:
|
||||
$(MAKE) --directory=$(R) -f Makefile.ReleaseTest -s stage_makfiles
|
||||
|
||||
test_makefile:
|
||||
$(MAKE) --directory=$(R) -f Makefile.ReleaseTest -s create_Makefile
|
||||
if [ -n "$(BSX)" ]; then /bin/mv $(D)/$(share)/Pegasus/test/Makefile $(D)/$(share)/Pegasus/test/Makefile$(BSX); /bin/ln -s Makefile$(BSX) $(D)/$(share)/Pegasus/test/Makefile; fi;
|
||||
|
||||
test_repository:
|
||||
LD_LIBRARY_PATH=$(B)/lib PATH=$(B)/bin:$$PATH $(MAKE) --directory=$(R) -f Makefile.ReleaseTest -s create_repository
|
||||
|
@ -1,25 +0,0 @@
|
||||
diff -up pegasus/Makefile.ReleaseTest_old pegasus/Makefile.ReleaseTest
|
||||
--- pegasus/Makefile.ReleaseTest_old 2008-12-16 19:55:33.000000000 +0100
|
||||
+++ pegasus/Makefile.ReleaseTest 2009-06-08 16:13:17.000000000 +0200
|
||||
@@ -195,7 +195,7 @@ create_Makefile:
|
||||
|
||||
createMakefile_providerlinks:
|
||||
@$(ECHO-E) "create_providerlinks:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
- @$(foreach i, $(PEGASUS_TEST_PROVIDERS), $(ECHO-E) "\t@$(MAKE) createlink OBJECT=$(PEGASUS_TEST_DIR)/$(PEGASUS_ARCH_LIB)/$(i)$(LIB_SUFFIX) LINKNAME=$(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX)" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile ;)
|
||||
+ @$(foreach i, $(PEGASUS_TEST_PROVIDERS), $(ECHO-E) "\t@$(MAKE) createlink OBJECT=$(PEGASUS_TEST_DIR)/lib/$(i)$(LIB_SUFFIX) LINKNAME=$(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX)" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile ;)
|
||||
@$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "remove_providerlinks:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(foreach i, $(PEGASUS_TEST_PROVIDERS), $(ECHO-E) "\trm -f $(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX)" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile ;)
|
||||
@@ -238,8 +238,10 @@ createMakefile_tests:
|
||||
@$(ECHO-E) "tests:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@$(MAKE) -i cimstop" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "\t@$(MAKE) prestarttests" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
- @$(ECHO-E) "\t@$(MAKE) runTestSuite CIMSERVER_CONFIG_OPTIONS=\"$(TESTSUITE_CONFIG_1)\" TESTSUITE_CMDS=\"$(TESTSUITE_CMDS_1)\"" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
- @$(ECHO-E) "\t@$(MAKE) runTestSuite CIMSERVER_CONFIG_OPTIONS=\"$(TESTSUITE_CONFIG_2)\" TESTSUITE_CMDS=\"$(TESTSUITE_CMDS_2)\"" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@$(MAKE) setupTEST" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@$(MAKE) runTestSuite CIMSERVER_CONFIG_OPTIONS=\"$(TESTSUITE_CONFIG_1)\" TESTSUITE_CMDS=\"$(TESTSUITE_CMDS_1)\" || { $(MAKE) unsetupTEST; exit 1; }" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@$(MAKE) runTestSuite CIMSERVER_CONFIG_OPTIONS=\"$(TESTSUITE_CONFIG_2)\" TESTSUITE_CMDS=\"$(TESTSUITE_CMDS_2)\" || { $(MAKE) unsetupTEST; exit 1; }" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
+ @$(ECHO-E) "\t@$(MAKE) unsetupTEST" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
@$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
||||
|
||||
createMakefile_testsWithSetupAndUnsetup:
|
@ -1,227 +0,0 @@
|
||||
diff -up pegasus/rpm/tog-pegasus.rc_old pegasus/rpm/tog-pegasus.rc
|
||||
--- pegasus/rpm/tog-pegasus.rc_old 2008-12-02 10:00:03.000000000 +0100
|
||||
+++ pegasus/rpm/tog-pegasus.rc 2009-09-23 14:52:10.000000000 +0200
|
||||
@@ -1,98 +1,153 @@
|
||||
-#//%LICENSE////////////////////////////////////////////////////////////////
|
||||
-#//
|
||||
-#// Licensed to The Open Group (TOG) under one or more contributor license
|
||||
-#// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
|
||||
-#// this work for additional information regarding copyright ownership.
|
||||
-#// Each contributor licenses this file to you under the OpenPegasus Open
|
||||
-#// Source License; you may not use this file except in compliance with the
|
||||
-#// License.
|
||||
-#//
|
||||
-#// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
-#// copy of this software and associated documentation files (the "Software"),
|
||||
-#// to deal in the Software without restriction, including without limitation
|
||||
-#// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
-#// and/or sell copies of the Software, and to permit persons to whom the
|
||||
-#// Software is furnished to do so, subject to the following conditions:
|
||||
-#//
|
||||
-#// The above copyright notice and this permission notice shall be included
|
||||
-#// in all copies or substantial portions of 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.
|
||||
-#//
|
||||
-#//////////////////////////////////////////////////////////////////////////
|
||||
-#! /bin/sh
|
||||
-#//
|
||||
-#//%/////////////////////////////////////////////////////////////////////////////
|
||||
+#!/bin/bash
|
||||
+#
|
||||
+# chkconfig: - 98 1
|
||||
+# description: The Open Group Pegasus cimserver initscript
|
||||
+# processname: cimserver
|
||||
+# pidfile: /var/run/tog-pegasus/cimserver.pid
|
||||
+#
|
||||
|
||||
### BEGIN INIT INFO
|
||||
-# Provides: tog-pegasus
|
||||
+# Provides: lsb-pegasus
|
||||
# Required-Start: $syslog $network
|
||||
# Should-Start: $time
|
||||
# Required-Stop: $syslog
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
-# Description: init script for Pegasus CIM server
|
||||
+# Description: init script for Pegasus CIMServer
|
||||
### END INIT INFO
|
||||
|
||||
-CIMSERVER_BIN=/opt/tog-pegasus/sbin/cimserver
|
||||
+CIMSERVER_BIN=/usr/sbin/cimserver
|
||||
prog=cimserver
|
||||
+LOCKFILE=/var/lock/subsys/tog-pegasus
|
||||
+. /etc/rc.d/init.d/functions
|
||||
|
||||
-test -x $CIMSERVER_BIN || exit 5
|
||||
+[ -e /etc/sysconfig/tog-pegasus ] && . /etc/sysconfig/tog-pegasus;
|
||||
+
|
||||
+PEGASUS_SSL_CONF_FILE=${PEGASUS_SSL_CONF_FILE:=/etc/Pegasus/ssl.cnf}
|
||||
+PEGASUS_SSL_CERT_FILE=${PEGASUS_SSL_CERT_FILE:=/etc/Pegasus/server.pem}
|
||||
+PEGASUS_SSL_KEY_FILE=${PEGASUS_SSL_KEY_FILE:=/etc/Pegasus/file.pem}
|
||||
+PEGASUS_SSL_TRUSTSTORE=${PEGASUS_SSL_TRUSTSTORE:=/etc/Pegasus/client.pem}
|
||||
|
||||
-. /lib/lsb/init-functions
|
||||
RETVAL=0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
- echo -n $"Starting up CIM server: "
|
||||
- $CIMSERVER_BIN
|
||||
- RETVAL=$?
|
||||
- [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog start" || log_failure_msg $"$prog start"
|
||||
- echo
|
||||
- ;;
|
||||
+ if [[ $EUID -ne 0 ]]; then
|
||||
+ echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
|
||||
+ exit 4
|
||||
+ fi
|
||||
+ pid=`pidofproc $CIMSERVER_BIN`
|
||||
+ RETVAL=$?
|
||||
+ if [ "$RETVAL" -eq 0 ]; then
|
||||
+ echo "tog-pegasus $1: $CIMSERVER_BIN is already running"
|
||||
+ exit 0
|
||||
+ fi
|
||||
+
|
||||
+ if [ ! -e $CIMSERVER_BIN ]; then
|
||||
+ echo "tog-pegasus $1: $CIMSERVER_BIN not found"
|
||||
+ failure
|
||||
+ exit 5
|
||||
+ fi
|
||||
+
|
||||
+ if [ ! -x $CIMSERVER_BIN ]; then
|
||||
+ echo "tog-pegasus $1: $CIMSERVER_BIN not executable"
|
||||
+ failure
|
||||
+ exit 4
|
||||
+ fi
|
||||
+
|
||||
+ if [ ! -e ${PEGASUS_SSL_CONF_FILE} ] || [ ! -e ${PEGASUS_SSL_CERT_FILE} ] ||
|
||||
+ [ ! -e ${PEGASUS_SSL_KEY_FILE} ] || [ ! -e ${PEGASUS_SSL_TRUSTSTORE} ]; then
|
||||
+ if [ -x /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts ]; then
|
||||
+ echo -n "tog-pegasus: Generating cimserver SSL certificates..."
|
||||
+ /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ success
|
||||
+ else
|
||||
+ failure
|
||||
+ fi
|
||||
+ echo
|
||||
+ fi
|
||||
+ fi
|
||||
+ echo -n $"Starting up CIM server: "
|
||||
+ $CIMSERVER_BIN ${CIMSERVER_OPTIONS}
|
||||
+ RETVAL=$?
|
||||
+ if [ "$RETVAL" -eq 0 ]; then
|
||||
+ rm -f /var/run/tog-pegasus.pid;
|
||||
+ ln -s /var/run/tog-pegasus/"$prog".pid /var/run/tog-pegasus.pid;
|
||||
+ touch $LOCKFILE
|
||||
+ success
|
||||
+ else
|
||||
+ failure
|
||||
+ fi
|
||||
+ echo
|
||||
+ ;;
|
||||
|
||||
stop)
|
||||
- echo -n $"Shutting down CIM server: "
|
||||
- killproc cimserver
|
||||
- RETVAL=$?
|
||||
- [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog stop" || log_failure_msg $"$prog stop"
|
||||
- echo
|
||||
- ;;
|
||||
+ if [[ $EUID -ne 0 ]]; then
|
||||
+ echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
|
||||
+ exit 4
|
||||
+ fi
|
||||
+ echo -n $"Shutting down CIM server: "
|
||||
+ killproc cimserver
|
||||
+ RETVAL=$?
|
||||
+ if [ "$RETVAL" -eq 0 ]; then
|
||||
+ rm -f $LOCKFILE
|
||||
+ rm -f /var/run/tog-pegasus/*
|
||||
+ rm -f /var/run/tog-pegasus.pid
|
||||
+ success
|
||||
+ else
|
||||
+ failure
|
||||
+ fi
|
||||
+ echo
|
||||
+ ;;
|
||||
+
|
||||
status)
|
||||
- pid=`pidofproc $CIMSERVER_BIN`
|
||||
- RETVAL=$?
|
||||
- if [ "$RETVAL" -eq 0 ]; then
|
||||
- echo "CIM server is running"
|
||||
- else
|
||||
- echo "CIM server is not running"
|
||||
- fi
|
||||
- ;;
|
||||
+ pid=`pidofproc $CIMSERVER_BIN`
|
||||
+ RETVAL=$?
|
||||
+ if [ "$RETVAL" -eq 0 ]; then
|
||||
+ echo -n $"CIM server ($pid) is running"
|
||||
+ exit 0
|
||||
+ else
|
||||
+ if [ -e /var/run/tog-pegasus.pid ]; then
|
||||
+ echo $"CIM server is not running, but pid file exists"
|
||||
+ exit 1
|
||||
+ elif [ -e $LOCKFILE ]; then
|
||||
+ echo $"CIM server is not running, but lock file exists"
|
||||
+ exit 2
|
||||
+ else
|
||||
+ echo $"CIM server is not running"
|
||||
+ exit 3
|
||||
+ fi
|
||||
+ fi
|
||||
+ echo
|
||||
+ ;;
|
||||
+
|
||||
condrestart)
|
||||
- pid=`pidofproc $CIMSERVER_BIN`
|
||||
- RETVAL=$?
|
||||
- if [ "$RETVAL" -eq 0 ]; then
|
||||
- $0 stop && $0 start;
|
||||
- RETVAL=$?;
|
||||
- fi;
|
||||
+ pid=`pidofproc $CIMSERVER_BIN`
|
||||
+ RETVAL=$?
|
||||
+ if [ "$RETVAL" -eq 0 ]; then
|
||||
+ $0 stop && $0 start
|
||||
+ RETVAL=$?
|
||||
+ fi;
|
||||
;;
|
||||
+
|
||||
try-restart)
|
||||
- $0 stop && $0 start
|
||||
- ;;
|
||||
+ $0 stop && $0 start
|
||||
+ RETVAL=$?
|
||||
+ ;;
|
||||
+
|
||||
restart|force-reload)
|
||||
- $0 stop
|
||||
- $0 start
|
||||
- ;;
|
||||
+ $0 stop
|
||||
+ $0 start
|
||||
+ RETVAL=$?
|
||||
+ ;;
|
||||
+
|
||||
reload)
|
||||
- ;;
|
||||
+ ;;
|
||||
*)
|
||||
- echo "Usage: $0 {start|stop|status|restart|reload|force-reload|try-restart}"
|
||||
- exit 1
|
||||
+ echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|try-restart}"
|
||||
+ [ "$1" = "usage" ] && exit 0
|
||||
+ exit 2
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
@ -1,29 +0,0 @@
|
||||
diff -up pegasus/Makefile.Release.orig pegasus/Makefile.Release
|
||||
--- pegasus/Makefile.Release.orig 2011-02-14 15:22:20.064170152 +0100
|
||||
+++ pegasus/Makefile.Release 2011-02-14 15:26:11.087936560 +0100
|
||||
@@ -464,15 +464,16 @@ ifdef PEGASUS_PAM_AUTHENTICATION
|
||||
$(COPY) $(ROOT)/rpm/access.conf $(PEGASUS_STAGING_DIR)$(PEGASUS_CONFIG_DIR)/access.conf
|
||||
endif
|
||||
$(MKDIRHIER) $(PEGASUS_STAGING_DIR)/etc/init.d
|
||||
- $(COPY) $(ROOT)/rpm/preamble-tog-pegasus.rc $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "CIMSERVER_BIN=$(PEGASUS_SBIN_DIR)/cimserver" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_SCRIPT_DIR=$(PEGASUS_SCRIPT_DIR)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_SSL_CONF_FILE=$(PEGASUS_PEM_DIR)/ssl.cnf" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_SSL_CERT_FILE=$(PEGASUS_SSL_CERT_FILE_PATH)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_SSL_KEY_FILE=$(PEGASUS_SSL_KEY_FILE_PATH)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_SSL_TRUSTSTORE=$(PEGASUS_SSL_CLIENT_TRUSTSTORE)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- @$(ECHO-E) "PEGASUS_FLAVOR=$(PEGASUS_FLAVOR)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
- $(CAT) $(ROOT)/rpm/commands-tog-pegasus.rc >> $(PEGASUS_STAGING_DIR)/etc/init.d/$(PEGASUS_FLAVOR)-pegasus
|
||||
+ # use tog-pegasus.rc that we already patched, do not create new one
|
||||
+ $(COPY) $(ROOT)/rpm/tog-pegasus.rc $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "CIMSERVER_BIN=$(PEGASUS_SBIN_DIR)/cimserver" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_SCRIPT_DIR=$(PEGASUS_SCRIPT_DIR)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_SSL_CONF_FILE=$(PEGASUS_PEM_DIR)/ssl.cnf" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_SSL_CERT_FILE=$(PEGASUS_SSL_CERT_FILE_PATH)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_SSL_KEY_FILE=$(PEGASUS_SSL_KEY_FILE_PATH)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_SSL_TRUSTSTORE=$(PEGASUS_SSL_CLIENT_TRUSTSTORE)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ @$(ECHO-E) "PEGASUS_FLAVOR=$(PEGASUS_FLAVOR)" >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
+ $(CAT) $(ROOT)/rpm/commands-tog-pegasus.rc >> $(PEGASUS_STAGING_DIR)/etc/init.d/tog-pegasus
|
||||
endif
|
||||
|
||||
setpermissions_PegasusSystemFiles: FORCE
|
@ -1,4 +1,4 @@
|
||||
%{?!PEGASUS_BUILD_TEST_RPM: %global PEGASUS_BUILD_TEST_RPM 0}
|
||||
%{?!PEGASUS_BUILD_TEST_RPM: %global PEGASUS_BUILD_TEST_RPM 1}
|
||||
# do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM.
|
||||
|
||||
%global srcname pegasus
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
Name: tog-pegasus
|
||||
Version: %{major_ver}.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Epoch: 2
|
||||
Summary: OpenPegasus WBEM Services for Linux
|
||||
|
||||
@ -46,9 +46,6 @@ Patch5: pegasus-2.9.0-local-or-remote-auth.patch
|
||||
# 6: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5012
|
||||
# Modifies pam rules to use access cofiguration file and local/remote differences
|
||||
Patch6: pegasus-2.5.1-pam-wbem.patch
|
||||
# 7: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5006
|
||||
# Modifies Makefile for the tests
|
||||
Patch7: pegasus-2.9.0-fix_tests.patch
|
||||
# 9: Adds cimuser binary to admin commands
|
||||
Patch9: pegasus-2.6.0-cimuser.patch
|
||||
# 12: Removes snmp tests, which we don't want to perform
|
||||
@ -187,7 +184,6 @@ rm -rf pegasus/
|
||||
%patch3 -p1 -b .redhat-config
|
||||
%patch4 -p1 -b .cmpi-provider-lib
|
||||
%patch6 -p1 -b .pam-wbem
|
||||
%patch7 -p1 -b .fix-tests
|
||||
%patch9 -p1 -b .cimuser
|
||||
%patch12 -p1 -b .no_snmp_tests
|
||||
%patch5 -p1 -b .local-or-remote-auth
|
||||
@ -270,6 +266,13 @@ ln -s libcmpiCppImpl.so.1 libcmpiCppImpl.so
|
||||
popd
|
||||
|
||||
|
||||
%check
|
||||
# run unit tests
|
||||
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/%{_lib}
|
||||
cd $RPM_BUILD_ROOT/usr/share/Pegasus/test
|
||||
make prestarttests
|
||||
|
||||
|
||||
%files
|
||||
%defattr(0640, root, pegasus, 0750)
|
||||
%verify(not md5 size mtime mode group) /var/lib/Pegasus/repository
|
||||
@ -451,6 +454,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Dec 03 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-7
|
||||
- Add %%check section and run unit tests
|
||||
- Enable -test subpackage
|
||||
|
||||
* Tue Nov 20 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-6
|
||||
- Set PEGASUS_ENABLE_INTEROP_PROVIDER=true (fixes registration of CMPI providers)
|
||||
- Move .so links back to main package (they are necessary to be present for a user
|
||||
|
Loading…
Reference in New Issue
Block a user