(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server

  1 karl  1.49 #//%2006////////////////////////////////////////////////////////////////////////
  2 martin 1.43 #//
  3             #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4             #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5             #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6             #// IBM Corp.; EMC Corporation, The Open Group.
  7             #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8             #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9             #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10             #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl   1.49 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12             #// EMC Corporation; Symantec Corporation; The Open Group.
 13 martin 1.43 #//
 14             #// Permission is hereby granted, free of charge, to any person obtaining a copy
 15             #// of this software and associated documentation files (the "Software"), to
 16             #// deal in the Software without restriction, including without limitation the
 17             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18             #// sell copies of the Software, and to permit persons to whom the Software is
 19             #// furnished to do so, subject to the following conditions:
 20             #// 
 21             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24             #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29             #//
 30             #//==============================================================================
 31 mike   1.1  ROOT = ../..
 32             DIR = Server
 33             include $(ROOT)/mak/config.mak
 34             
 35             LIBRARIES = \
 36 carson.hovey 1.54     pegservice \
 37 gs.keenan    1.31     pegclient \
 38 mike         1.10     pegserver \
 39 gs.keenan    1.31     peguser \
 40                       pegprm \
 41                       NamespaceProvider \
 42                       pegindicationservice \
 43                       peghandlerservice \
 44                       ConfigSettingProvider \
 45                       DefaultProviderManager \
 46                       ProviderRegistrationProvider \
 47                       pegauthentication \
 48                       UserAuthProvider \
 49 denise.eckstein 1.45     pegqueryexpression 
 50                      
 51                      ifndef PEGASUS_DISABLE_CQL
 52                          LIBRARIES += \
 53                             pegcql
 54                      endif
 55                      
 56                      LIBRARIES += \
 57 gs.keenan       1.31     pegquerycommon \
 58 denise.eckstein 1.45     pegwql
 59                      
 60                      ifndef PEGASUS_DISABLE_CQL
 61                          LIBRARIES += \
 62                             CIMQueryCapabilitiesProvider
 63                      endif
 64                      
 65                      LIBRARIES += \
 66 mike            1.50     DefaultProviderManager \
 67                          pegprovidermanager
 68                      
 69 gs.keenan       1.34 ifndef PEGASUS_DISABLE_PERFINST
 70 carson.hovey    1.40     LIBRARIES += \
 71                             CIMOMStatDataProvider \
 72                             InteropProvider 
 73                      else
 74 jim.wunderlich  1.48     ifeq ($(PEGASUS_ENABLE_SLP),true)
 75 carson.hovey    1.40         LIBRARIES += \
 76                                  InteropProvider 
 77                          endif
 78 gs.keenan       1.34 endif
 79                      
 80 a.arora         1.33 ifdef PEGASUS_HAS_SSL
 81                      LIBRARIES += \
 82 gs.keenan       1.34     CertificateProvider
 83 a.arora         1.33 endif
 84                      
 85 mike            1.8  ifneq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
 86 kumpf           1.21   ifneq ($(OS),HPUX)
 87 jim.wunderlich  1.48     ifeq ($(PEGASUS_ENABLE_SLP),true)
 88 tony            1.28       LIBRARIES += pegslp
 89 kumpf           1.22     endif
 90 kumpf           1.21   endif
 91 mike            1.8  endif
 92 kumpf           1.7  
 93 gs.keenan       1.52 LIBRARIES += \
 94                          pegprovidermanager \
 95                          pegpmservice \
 96                          pegprovider \
 97                          pegexportserver \
 98                          pegrepository \
 99                          pegconfig \
100 carson.hovey    1.54     pegcommon 
101 gs.keenan       1.52 
102 mike            1.1  EXTRA_INCLUDES = $(SYS_INCLUDES)
103                      
104 kumpf           1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
105                      
106 kumpf           1.55 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
107                        PROGRAM = cimservermain
108                      else
109                        PROGRAM = cimserver
110                      endif
111 mike            1.1  
112                      SOURCES = cimserver.cpp
113                      
114                      include $(ROOT)/mak/program.mak
115 mike            1.2  
116 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
117 mday            1.4    SYS_LIBS = ws2_32.lib advapi32.lib	
118                      endif
119                      
120 mike            1.2  tests:
121                      
122 kumpf           1.12 poststarttests:
123                      
124 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
125                      
126 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
127                         PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
128                         PEGASUS_SSLCNF_STATE="Berkshire" \
129                         PEGASUS_SSLCNF_LOCALITY="Reading" \
130                         PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
131                         PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
132                      
133                      ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
134                      PEGASUS_CREATE_SSLCNF_OPTIONS+= \
135                         PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
136                      endif
137                      
138                      ifndef PEGASUS_SSLCERT_CNFFILE
139                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
140                      endif
141                      
142                      ifndef PEGASUS_SSLCERT_KEYFILE
143                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
144                      endif
145                      
146                      ifndef PEGASUS_SSLCERT_CERTFILE
147 denise.eckstein 1.41    PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
148                      endif
149                      
150                      PEGASUS_CREATE_SSLCERT_OPTIONS = \
151                         PEGASUS_SSLCERT_DAYS=3650 \
152                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
153                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
154                         PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
155                      
156                      ifdef PEGASUS_SSL_RANDOMFILE
157                      PEGASUS_CREATE_SSL_CERT_OPTIONS += \
158                         PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
159                      endif
160                      
161                      _createSSLFiles:
162                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
163                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
164                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
165                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
166                                  $(PEGASUS_CREATE_SSLCERT_OPTIONS)
167                      
168 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
169                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
170                                  PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
171                                  PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
172                                  PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
173                                  PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
174                                  PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
175                                  
176                      displayCERTFILE:
177                      	@$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
178                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
179                                  PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
180                      
181 jim.wunderlich  1.46 clean: cleanupSSLFiles
182                      
183                      install_run_clean: cleanupSSLFiles 
184                      
185 denise.eckstein 1.41 cleanupSSLFiles:
186                      	@$(RM) $(PEGASUS_HOME)/cert.pem
187                      	@$(RM) $(PEGASUS_HOME)/file.pem
188                      	@$(RM) $(PEGASUS_HOME)/server.pem
189                      	@$(RM) $(PEGASUS_HOME)/client.pem
190                      	@$(RM) $(PEGASUS_HOME)/cimserver.rnd
191                      	@$(RM) $(PEGASUS_HOME)/ssl.rnd
192                      	@$(RM) $(PEGASUS_HOME)/ssl.cnf
193                      	@$(RM) $(PEGASUS_HOME)/client_cert.pem
194                      	@$(RM) $(PEGASUS_HOME)/client_file.pem
195                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
196                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
197                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
198 jim.wunderlich  1.46 	@$(RM) $(PEGASUS_HOME)/setupserverdev
199 denise.eckstein 1.41 
200                      createSSLTrustDirectories:
201                      	@$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
202                      	@$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
203                      	@$(MKDIRHIER) $(PEGASUS_HOME)/crl
204                      
205 denise.eckstein 1.47 removeSSLTrustDirectories:
206                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
207                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
208                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
209                      
210 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
211                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
212                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
213                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
214                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
215                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
216                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
217                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
218                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
219                      
220                      stageServerSSLFiles-SystemIndependent:
221                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
222                      	@$(COPY) cert.pem $(PEGASUS_HOME)
223                      	@$(COPY) file.pem $(PEGASUS_HOME)
224                      	@$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
225                      	@$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
226                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
227                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
228                      	@$(COPY) ssl.cnf $(PEGASUS_HOME)
229                      
230                      stageClientSSLFiles-SystemIndependent:
231 denise.eckstein 1.41 	@$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
232                      	@$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
233                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
234                      
235                      stageCIMServerConfigurationFiles:
236                      	@$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
237                      	@$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
238 jim.wunderlich  1.46 
239                      install_run: $(PEGASUS_HOME)/setupserverdev
240                      
241 kumpf           1.55 ##
242                      ## Note: the $(PEGASUS_HOME)/trace dir must be writable by all users for
243                      ## the tracing facility to work.
244                      
245 jim.wunderlich  1.46 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
246 denise.eckstein 1.41 	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
247                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
248                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
249 kumpf           1.55 	$(MKDIRHIER) $(PEGASUS_HOME)/trace
250                      ifeq ($(OS_TYPE),unix)
251                      # Allow the repository to be created as the cimserver user
252                      	$(CHMOD) 777 $(PEGASUS_HOME)
253                      # Allow trace files to be created by cimserver and cimprovagt process owners
254                      	$(CHMOD) 777 $(PEGASUS_HOME)/trace
255                      endif
256 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
257 jim.wunderlich  1.46 	-@$(PEGASUS_HOME)/bin/cimserver -install
258 tony            1.24 endif
259 jim.wunderlich  1.46 	@$(TOUCH) $(PEGASUS_HOME)/setupserverdev
260 tony            1.24 
261                      uninstall:
262 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
263 tony            1.24 	$(PEGASUS_HOME)/bin/cimserver -remove
264                      endif
265 mike            1.8  
266 konrad.r        1.29 run: install_run
267 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
268 tony            1.24 	cimserver -start
269 mike            1.8  else
270                      	cimserver
271                      endif
272                      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2