1 martin 1.66 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.67 #//
|
3 martin 1.66 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.67 #//
|
10 martin 1.66 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.67 #//
|
17 martin 1.66 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.67 #//
|
20 martin 1.66 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.67 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.66 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.67 #//
|
28 martin 1.66 #//////////////////////////////////////////////////////////////////////////
|
29 mike 1.1 ROOT = ../..
30 DIR = Server
31 include $(ROOT)/mak/config.mak
32
33 LIBRARIES = \
|
34 carson.hovey 1.54 pegservice \
|
35 gs.keenan 1.31 pegclient \
|
36 mike 1.10 pegserver \
|
37 gs.keenan 1.31 peguser \
38 pegprm \
39 NamespaceProvider \
40 pegindicationservice \
41 peghandlerservice \
42 ConfigSettingProvider \
43 DefaultProviderManager \
44 ProviderRegistrationProvider \
45 pegauthentication \
46 UserAuthProvider \
|
47 kumpf 1.68 pegqueryexpression
|
48 denise.eckstein 1.45
|
49 karl 1.61 ifeq ($(PEGASUS_ENABLE_CQL),true)
|
50 denise.eckstein 1.45 LIBRARIES += \
51 pegcql
52 endif
53
54 LIBRARIES += \
|
55 carson.hovey 1.60 pegwql \
|
56 kumpf 1.68 pegquerycommon
|
57 denise.eckstein 1.45
|
58 karl 1.61 ifeq ($(PEGASUS_ENABLE_CQL),true)
|
59 denise.eckstein 1.45 LIBRARIES += \
60 CIMQueryCapabilitiesProvider
61 endif
62
63 LIBRARIES += \
|
64 mike 1.50 DefaultProviderManager \
65 pegprovidermanager
66
|
67 gs.keenan 1.34 ifndef PEGASUS_DISABLE_PERFINST
|
68 carson.hovey 1.40 LIBRARIES += \
|
69 marek 1.72 CIMOMStatDataProvider
70 endif
71
72 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
73 LIBRARIES += \
|
74 kumpf 1.68 InteropProvider
|
75 gs.keenan 1.34 endif
76
|
77 a.arora 1.33 ifdef PEGASUS_HAS_SSL
78 LIBRARIES += \
|
79 gs.keenan 1.34 CertificateProvider
|
80 a.arora 1.33 endif
81
|
82 kumpf 1.57 ifeq ($(PEGASUS_ENABLE_SLP),true)
83 LIBRARIES += pegslp
|
84 mike 1.8 endif
|
85 kumpf 1.7
|
86 kumpf 1.62 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
87 LIBRARIES += pegwsmserver
88 endif
89
|
90 gs.keenan 1.52 LIBRARIES += \
91 pegprovidermanager \
92 pegpmservice \
|
93 marek 1.70 pegpmrouter \
|
94 gs.keenan 1.52 pegprovider \
95 pegexportserver \
96 pegrepository \
97 pegconfig \
|
98 thilo.boehm 1.69 peggeneral \
|
99 kumpf 1.68 pegcommon
|
100 gs.keenan 1.52
|
101 marek 1.71 ifeq ($(PEGASUS_ENABLE_COMPRESSED_REPOSITORY),true)
102 LIBRARIES += z
103 endif
104
|
105 ouyang.jian 1.58 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
106 LIBRARIES += ILEWrapperUtils
107 endif
108
|
109 mike 1.1 EXTRA_INCLUDES = $(SYS_INCLUDES)
110
|
111 dave.sudlik 1.56 EXTRA_LINK_FLAGS += $(JVM_LINK_FLAGS)
112
|
113 kumpf 1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
114
|
115 kumpf 1.55 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
116 PROGRAM = cimservermain
117 else
118 PROGRAM = cimserver
119 endif
|
120 mike 1.1
121 SOURCES = cimserver.cpp
122
|
123 ouyang.jian 1.58 #Large Program Support
124 #make program able to use maximum of 2GB memory
125 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
126 EXTRA_LINK_FLAGS += -bmaxdata:0x80000000
127 endif
128
|
129 mike 1.1 include $(ROOT)/mak/program.mak
|
130 mike 1.2
|
131 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
132 mday 1.4 SYS_LIBS = ws2_32.lib advapi32.lib
133 endif
134
|
135 mike 1.2 tests:
136
|
137 kumpf 1.12 poststarttests:
138
|
139 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
140
|
141 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
142 PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
143 PEGASUS_SSLCNF_STATE="Berkshire" \
144 PEGASUS_SSLCNF_LOCALITY="Reading" \
145 PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
146 PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
147
148 ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
149 PEGASUS_CREATE_SSLCNF_OPTIONS+= \
150 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
151 endif
152
153 ifndef PEGASUS_SSLCERT_CNFFILE
154 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
155 endif
156
157 ifndef PEGASUS_SSLCERT_KEYFILE
158 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
159 endif
160
161 ifndef PEGASUS_SSLCERT_CERTFILE
162 denise.eckstein 1.41 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
163 endif
164
165 PEGASUS_CREATE_SSLCERT_OPTIONS = \
166 PEGASUS_SSLCERT_DAYS=3650 \
167 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
168 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
169 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
170
171 ifdef PEGASUS_SSL_RANDOMFILE
172 PEGASUS_CREATE_SSL_CERT_OPTIONS += \
173 PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
174 endif
175
176 _createSSLFiles:
177 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
178 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
179 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
180 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
181 $(PEGASUS_CREATE_SSLCERT_OPTIONS)
182
183 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
184 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
185 PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
186 PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
187 PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
188 PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
189 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
|
190 kumpf 1.68
|
191 denise.eckstein 1.41 displayCERTFILE:
192 @$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
193 @$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
194 PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
195
|
196 jim.wunderlich 1.46 clean: cleanupSSLFiles
197
|
198 kumpf 1.68 install_run_clean: cleanupSSLFiles
|
199 jim.wunderlich 1.46
|
200 denise.eckstein 1.41 cleanupSSLFiles:
201 @$(RM) $(PEGASUS_HOME)/cert.pem
202 @$(RM) $(PEGASUS_HOME)/file.pem
203 @$(RM) $(PEGASUS_HOME)/server.pem
204 @$(RM) $(PEGASUS_HOME)/client.pem
205 @$(RM) $(PEGASUS_HOME)/cimserver.rnd
206 @$(RM) $(PEGASUS_HOME)/ssl.rnd
207 @$(RM) $(PEGASUS_HOME)/ssl.cnf
208 @$(RM) $(PEGASUS_HOME)/client_cert.pem
209 @$(RM) $(PEGASUS_HOME)/client_file.pem
210 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
211 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
212 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
|
213 jim.wunderlich 1.46 @$(RM) $(PEGASUS_HOME)/setupserverdev
|
214 denise.eckstein 1.41
215 createSSLTrustDirectories:
216 @$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
217 @$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
218 @$(MKDIRHIER) $(PEGASUS_HOME)/crl
219
|
220 denise.eckstein 1.47 removeSSLTrustDirectories:
221 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
222 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
223 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
224
|
225 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
226 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
227 @$(COPY) ssl.rnd $(PEGASUS_HOME)
228 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
229 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
230 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
231 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
232 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
233 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
234
235 stageServerSSLFiles-SystemIndependent:
236 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
237 @$(COPY) cert.pem $(PEGASUS_HOME)
238 @$(COPY) file.pem $(PEGASUS_HOME)
239 @$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
240 @$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
241 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
242 @$(COPY) ssl.rnd $(PEGASUS_HOME)
243 @$(COPY) ssl.cnf $(PEGASUS_HOME)
244
245 stageClientSSLFiles-SystemIndependent:
246 denise.eckstein 1.41 @$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
247 @$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
248 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
249
250 stageCIMServerConfigurationFiles:
251 @$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
252 @$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
|
253 jim.wunderlich 1.46
254 install_run: $(PEGASUS_HOME)/setupserverdev
255
|
256 kumpf 1.55 ##
257 ## Note: the $(PEGASUS_HOME)/trace dir must be writable by all users for
258 ## the tracing facility to work.
259
|
260 jim.wunderlich 1.46 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
|
261 denise.eckstein 1.41 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
262 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
263 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
|
264 kumpf 1.55 $(MKDIRHIER) $(PEGASUS_HOME)/trace
265 ifeq ($(OS_TYPE),unix)
|
266 dev.meetei 1.73 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
267 -$(MKDIRHIER) $(PEGASUS_TEST_VALGRIND_LOG_DIR)
268 endif
|
269 kumpf 1.55 # Allow the repository to be created as the cimserver user
270 $(CHMOD) 777 $(PEGASUS_HOME)
271 # Allow trace files to be created by cimserver and cimprovagt process owners
272 $(CHMOD) 777 $(PEGASUS_HOME)/trace
273 endif
|
274 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
275 jim.wunderlich 1.46 -@$(PEGASUS_HOME)/bin/cimserver -install
|
276 tony 1.24 endif
|
277 jim.wunderlich 1.46 @$(TOUCH) $(PEGASUS_HOME)/setupserverdev
|
278 sushma.fernandes 1.59 ifeq ($(PEGASUS_TEST_ENABLE_DEBUG_TRACE),true)
|
279 kumpf 1.68 # Enable trace to capture Discarded data trace information to help
|
280 john.eisenbraun 1.65 # troubleshoot and detect test failures.
|
281 sushma.fernandes 1.59 cimconfig -s traceComponents=DiscardedData -p
282 cimconfig -s traceLevel=4 -p
283 endif
|
284 tony 1.24
285 uninstall:
|
286 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
287 tony 1.24 $(PEGASUS_HOME)/bin/cimserver -remove
288 endif
|
289 mike 1.8
|
290 konrad.r 1.29 run: install_run
|
291 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
292 tony 1.24 cimserver -start
|
293 mike 1.8 else
294 cimserver
295 endif
296
|