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