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 gs.keenan 1.31 pegclient \
|
37 mike 1.10 pegserver \
|
38 gs.keenan 1.31 peguser \
39 pegprm \
40 NamespaceProvider \
41 pegindicationservice \
42 peghandlerservice \
43 ConfigSettingProvider \
44 DefaultProviderManager \
45 ProviderRegistrationProvider \
46 pegauthentication \
47 UserAuthProvider \
|
48 denise.eckstein 1.45 pegqueryexpression
49
50 ifndef PEGASUS_DISABLE_CQL
51 LIBRARIES += \
52 pegcql
53 endif
54
55 LIBRARIES += \
|
56 gs.keenan 1.31 pegquerycommon \
|
57 denise.eckstein 1.45 pegwql
58
59 ifndef PEGASUS_DISABLE_CQL
60 LIBRARIES += \
61 CIMQueryCapabilitiesProvider
62 endif
63
64 LIBRARIES += \
|
65 gs.keenan 1.31 pegprovidermanager \
|
66 mike 1.10 pegprovider \
|
67 gs.keenan 1.31 pegexportserver \
68 pegrepository \
69 pegconfig \
|
70 h.sterling 1.37 pegcommon \
71 pegservice
|
72 mike 1.1
|
73 gs.keenan 1.34 ifndef PEGASUS_DISABLE_PERFINST
|
74 carson.hovey 1.40 LIBRARIES += \
75 CIMOMStatDataProvider \
76 InteropProvider
77 else
|
78 jim.wunderlich 1.48 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
79 carson.hovey 1.40 LIBRARIES += \
80 InteropProvider
81 endif
|
82 gs.keenan 1.34 endif
83
|
84 a.arora 1.33 ifdef PEGASUS_HAS_SSL
85 LIBRARIES += \
|
86 gs.keenan 1.34 CertificateProvider
|
87 a.arora 1.33 endif
88
|
89 mike 1.8 ifneq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
|
90 kumpf 1.21 ifneq ($(OS),HPUX)
|
91 jim.wunderlich 1.48 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
92 tony 1.28 LIBRARIES += pegslp
|
93 kumpf 1.22 endif
|
94 kumpf 1.21 endif
|
95 mike 1.8 endif
|
96 kumpf 1.7
|
97 mike 1.1 EXTRA_INCLUDES = $(SYS_INCLUDES)
98
|
99 kumpf 1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
100
|
101 mike 1.1 PROGRAM = cimserver
102
103 SOURCES = cimserver.cpp
104
105 include $(ROOT)/mak/program.mak
|
106 mike 1.2
|
107 mday 1.4 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
108 SYS_LIBS = ws2_32.lib advapi32.lib
109 endif
110
|
111 mike 1.2 tests:
112
|
113 kumpf 1.12 poststarttests:
114
|
115 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
116
|
117 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
118 PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
119 PEGASUS_SSLCNF_STATE="Berkshire" \
120 PEGASUS_SSLCNF_LOCALITY="Reading" \
121 PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
122 PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
123
124 ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
125 PEGASUS_CREATE_SSLCNF_OPTIONS+= \
126 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
127 endif
128
129 ifndef PEGASUS_SSLCERT_CNFFILE
130 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
131 endif
132
133 ifndef PEGASUS_SSLCERT_KEYFILE
134 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
135 endif
136
137 ifndef PEGASUS_SSLCERT_CERTFILE
138 denise.eckstein 1.41 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
139 endif
140
141 PEGASUS_CREATE_SSLCERT_OPTIONS = \
142 PEGASUS_SSLCERT_DAYS=3650 \
143 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
144 PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
145 PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
146
147 ifdef PEGASUS_SSL_RANDOMFILE
148 PEGASUS_CREATE_SSL_CERT_OPTIONS += \
149 PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
150 endif
151
152 _createSSLFiles:
153 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
154 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
155 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
156 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
157 $(PEGASUS_CREATE_SSLCERT_OPTIONS)
158
159 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
160 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
161 PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
162 PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
163 PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
164 PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
165 PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
166
167 displayCERTFILE:
168 @$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
169 @$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
170 PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
171
|
172 jim.wunderlich 1.46 clean: cleanupSSLFiles
173
174 install_run_clean: cleanupSSLFiles
175
|
176 denise.eckstein 1.41 cleanupSSLFiles:
177 @$(RM) $(PEGASUS_HOME)/cert.pem
178 @$(RM) $(PEGASUS_HOME)/file.pem
179 @$(RM) $(PEGASUS_HOME)/server.pem
180 @$(RM) $(PEGASUS_HOME)/client.pem
181 @$(RM) $(PEGASUS_HOME)/cimserver.rnd
182 @$(RM) $(PEGASUS_HOME)/ssl.rnd
183 @$(RM) $(PEGASUS_HOME)/ssl.cnf
184 @$(RM) $(PEGASUS_HOME)/client_cert.pem
185 @$(RM) $(PEGASUS_HOME)/client_file.pem
186 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
187 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
188 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
|
189 jim.wunderlich 1.46 @$(RM) $(PEGASUS_HOME)/setupserverdev
|
190 denise.eckstein 1.41
191 createSSLTrustDirectories:
192 @$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
193 @$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
194 @$(MKDIRHIER) $(PEGASUS_HOME)/crl
195
|
196 denise.eckstein 1.47 removeSSLTrustDirectories:
197 @$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
198 @$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
199 @$(RMDIRHIER) $(PEGASUS_HOME)/crl
200
|
201 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
202 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
203 @$(COPY) ssl.rnd $(PEGASUS_HOME)
204 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
205 @$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
206 $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
207 PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
208 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
209 @$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
210
211 stageServerSSLFiles-SystemIndependent:
212 @$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
213 @$(COPY) cert.pem $(PEGASUS_HOME)
214 @$(COPY) file.pem $(PEGASUS_HOME)
215 @$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
216 @$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
217 @$(COPY) cimserver.rnd $(PEGASUS_HOME)
218 @$(COPY) ssl.rnd $(PEGASUS_HOME)
219 @$(COPY) ssl.cnf $(PEGASUS_HOME)
220
221 stageClientSSLFiles-SystemIndependent:
222 denise.eckstein 1.41 @$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
223 @$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
224 @$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
225
226 stageCIMServerConfigurationFiles:
227 @$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
228 @$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
|
229 jim.wunderlich 1.46
230 install_run: $(PEGASUS_HOME)/setupserverdev
231
232 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
|
233 denise.eckstein 1.41 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
234 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
235 @$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
|
236 tony 1.24 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
237 jim.wunderlich 1.46 -@$(PEGASUS_HOME)/bin/cimserver -install
|
238 tony 1.24 endif
|
239 jim.wunderlich 1.46 @$(TOUCH) $(PEGASUS_HOME)/setupserverdev
|
240 tony 1.24
241 uninstall:
242 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
243 $(PEGASUS_HOME)/bin/cimserver -remove
244 endif
|
245 mike 1.8
|
246 konrad.r 1.29 run: install_run
|
247 mike 1.8 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
248 tony 1.24 cimserver -start
|
249 mike 1.8 else
250 cimserver
251 endif
252
|