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 CIMOMStatDataProvider \
|
70 kumpf 1.68 InteropProvider
|
71 carson.hovey 1.40 else
|
72 jim.wunderlich 1.48 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
73 carson.hovey 1.40 LIBRARIES += \
|
74 kumpf 1.68 InteropProvider
|
75 carson.hovey 1.40 endif
|
76 gs.keenan 1.34 endif
77
|
78 a.arora 1.33 ifdef PEGASUS_HAS_SSL
79 LIBRARIES += \
|
80 gs.keenan 1.34 CertificateProvider
|
81 a.arora 1.33 endif
82
|
83 kumpf 1.57 ifeq ($(PEGASUS_ENABLE_SLP),true)
84 LIBRARIES += pegslp
|
85 mike 1.8 endif
|
86 kumpf 1.7
|
87 kumpf 1.62 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
88 LIBRARIES += pegwsmserver
89 endif
90
|
91 gs.keenan 1.52 LIBRARIES += \
92 pegprovidermanager \
93 pegpmservice \
94 pegprovider \
95 pegexportserver \
96 pegrepository \
97 pegconfig \
|
98 kumpf 1.68 pegcommon
|
99 gs.keenan 1.52
|
100 ouyang.jian 1.58 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
101 LIBRARIES += ILEWrapperUtils
102 endif
103
|
104 mike 1.1 EXTRA_INCLUDES = $(SYS_INCLUDES)
105
|
106 dave.sudlik 1.56 EXTRA_LINK_FLAGS += $(JVM_LINK_FLAGS)
107
|
108 kumpf 1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
109
|
110 kumpf 1.55 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
111 PROGRAM = cimservermain
112 else
113 PROGRAM = cimserver
114 endif
|
115 mike 1.1
116 SOURCES = cimserver.cpp
117
|
118 ouyang.jian 1.58 #Large Program Support
119 #make program able to use maximum of 2GB memory
120 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
121 EXTRA_LINK_FLAGS += -bmaxdata:0x80000000
122 endif
123
|
124 mike 1.1 include $(ROOT)/mak/program.mak
|
125 mike 1.2
|
126 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
127 mday 1.4 SYS_LIBS = ws2_32.lib advapi32.lib
128 endif
129
|
130 mike 1.2 tests:
131
|
132 kumpf 1.12 poststarttests:
133
|
134 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
135
|
136 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
137 PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
138 PEGASUS_SSLCNF_STATE="Berkshire" \
139 PEGASUS_SSLCNF_LOCALITY="Reading" \
140 PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
141 PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
142
143 ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
144 PEGASUS_CREATE_SSLCNF_OPTIONS+= \
145 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
146 endif
147
148 ifndef PEGASUS_SSLCERT_CNFFILE
149 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
150 endif
151
152 ifndef PEGASUS_SSLCERT_KEYFILE
153 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
154 endif
155
156 ifndef PEGASUS_SSLCERT_CERTFILE
157 denise.eckstein 1.41 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
158 endif
159
160 PEGASUS_CREATE_SSLCERT_OPTIONS = \
161 PEGASUS_SSLCERT_DAYS=3650 \
162 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
163 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
164 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
165
166 ifdef PEGASUS_SSL_RANDOMFILE
167 PEGASUS_CREATE_SSL_CERT_OPTIONS += \
168 PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
169 endif
170
171 _createSSLFiles:
172 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
173 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
174 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
175 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
176 $(PEGASUS_CREATE_SSLCERT_OPTIONS)
177
178 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
179 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
180 PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
181 PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
182 PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
183 PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
184 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
|
185 kumpf 1.68
|
186 denise.eckstein 1.41 displayCERTFILE:
187 @$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
188 @$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
189 PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
190
|
191 jim.wunderlich 1.46 clean: cleanupSSLFiles
192
|
193 kumpf 1.68 install_run_clean: cleanupSSLFiles
|
194 jim.wunderlich 1.46
|
195 denise.eckstein 1.41 cleanupSSLFiles:
196 @$(RM) $(PEGASUS_HOME)/cert.pem
197 @$(RM) $(PEGASUS_HOME)/file.pem
198 @$(RM) $(PEGASUS_HOME)/server.pem
199 @$(RM) $(PEGASUS_HOME)/client.pem
200 @$(RM) $(PEGASUS_HOME)/cimserver.rnd
201 @$(RM) $(PEGASUS_HOME)/ssl.rnd
202 @$(RM) $(PEGASUS_HOME)/ssl.cnf
203 @$(RM) $(PEGASUS_HOME)/client_cert.pem
204 @$(RM) $(PEGASUS_HOME)/client_file.pem
205 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
206 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
207 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
|
208 jim.wunderlich 1.46 @$(RM) $(PEGASUS_HOME)/setupserverdev
|
209 denise.eckstein 1.41
210 createSSLTrustDirectories:
211 @$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
212 @$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
213 @$(MKDIRHIER) $(PEGASUS_HOME)/crl
214
|
215 denise.eckstein 1.47 removeSSLTrustDirectories:
216 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
217 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
218 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
219
|
220 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
221 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
222 @$(COPY) ssl.rnd $(PEGASUS_HOME)
223 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
224 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
225 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
226 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
227 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
228 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
229
230 stageServerSSLFiles-SystemIndependent:
231 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
232 @$(COPY) cert.pem $(PEGASUS_HOME)
233 @$(COPY) file.pem $(PEGASUS_HOME)
234 @$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
235 @$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
236 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
237 @$(COPY) ssl.rnd $(PEGASUS_HOME)
238 @$(COPY) ssl.cnf $(PEGASUS_HOME)
239
240 stageClientSSLFiles-SystemIndependent:
241 denise.eckstein 1.41 @$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
242 @$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
243 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
244
245 stageCIMServerConfigurationFiles:
246 @$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
247 @$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
|
248 jim.wunderlich 1.46
249 install_run: $(PEGASUS_HOME)/setupserverdev
250
|
251 kumpf 1.55 ##
252 ## Note: the $(PEGASUS_HOME)/trace dir must be writable by all users for
253 ## the tracing facility to work.
254
|
255 jim.wunderlich 1.46 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
|
256 denise.eckstein 1.41 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
257 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
258 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
|
259 kumpf 1.55 $(MKDIRHIER) $(PEGASUS_HOME)/trace
260 ifeq ($(OS_TYPE),unix)
261 # Allow the repository to be created as the cimserver user
262 $(CHMOD) 777 $(PEGASUS_HOME)
263 # Allow trace files to be created by cimserver and cimprovagt process owners
264 $(CHMOD) 777 $(PEGASUS_HOME)/trace
265 endif
|
266 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
267 jim.wunderlich 1.46 -@$(PEGASUS_HOME)/bin/cimserver -install
|
268 tony 1.24 endif
|
269 jim.wunderlich 1.46 @$(TOUCH) $(PEGASUS_HOME)/setupserverdev
|
270 sushma.fernandes 1.59 ifeq ($(PEGASUS_TEST_ENABLE_DEBUG_TRACE),true)
|
271 kumpf 1.68 # Enable trace to capture Discarded data trace information to help
|
272 john.eisenbraun 1.65 # troubleshoot and detect test failures.
|
273 sushma.fernandes 1.59 cimconfig -s traceComponents=DiscardedData -p
274 cimconfig -s traceLevel=4 -p
275 endif
|
276 tony 1.24
277 uninstall:
|
278 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
279 tony 1.24 $(PEGASUS_HOME)/bin/cimserver -remove
280 endif
|
281 mike 1.8
|
282 konrad.r 1.29 run: install_run
|
283 a.dunfey 1.53 ifeq ($(OS_TYPE),windows)
|
284 tony 1.24 cimserver -start
|
285 mike 1.8 else
286 cimserver
287 endif
288
|