1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
|
#
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# This file defines dependencies for components and
# tells how to satisfy thoes dependencies
# For internal components, we use ftp_puller_new.pl
# We should consider using wget or something like that
# in the future.
BUILD_MODE = ext
ifndef NSPR_SOURCE_ROOT
NSPR_IMPORT = $(COMPONENTS_DIR)/nspr20/$(NSPR_RELDATE)/$(FULL_RTL_OBJDIR)
NSPR_DEP = $(NSPR_LIBPATH)/libnspr4.$(LIB_SUFFIX)
ifndef NSPR_PULL_METHOD
NSPR_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(NSPR_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(NSPR_PULL_METHOD) \
-objdir $(NSPR_BUILD_DIR) -componentdir $(NSPR_IMPORT) \
-files lib,include
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component NSPR file $@" ; \
fi
endif # NSPR_SOURCE_ROOT
ifndef DBM_SOURCE_ROOT
DBM_IMPORT = $(COMPONENTS_DIR)/dbm/$(DBM_RELDATE)/$(NSOBJDIR_NAME)
ifeq ($(ARCH), WINNT)
DBM_DEP = $(DBM_LIBPATH)/dbm.$(LIB_SUFFIX)
else
DBM_DEP = $(DBM_LIBPATH)/libdbm.$(LIB_SUFFIX)
endif
ifndef DBM_PULL_METHOD
DBM_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(DBM_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(DBM_PULL_METHOD) \
-objdir $(DBM_BUILD_DIR) -componentdir $(DBM_IMPORT)/.. \
-files xpheader.jar -unzip $(DBM_INCDIR)
$(FTP_PULL) -method $(DBM_PULL_METHOD) \
-objdir $(DBM_BUILD_DIR) -componentdir $(DBM_IMPORT) \
-files mdbinary.jar -unzip $(DBM_BUILD_DIR)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component DBM file $@" ; \
fi
endif # DBM_SOURCE_ROOT
ifndef SECURITY_SOURCE_ROOT
SECURITY_IMPORT = $(COMPONENTS_DIR)/nss/$(SECURITY_RELDATE)/$(FULL_RTL_OBJDIR)
ifeq ($(ARCH), WINNT)
SECURITY_DEP = $(SECURITY_LIBPATH)/ssl3.$(DLL_SUFFIX)
else
SECURITY_DEP = $(SECURITY_LIBPATH)/libssl3.$(DLL_SUFFIX)
endif
ifdef VSFTPD_HACK
SECURITY_FILES=lib,bin/$(subst $(SPACE),$(COMMA)bin/,$(SECURITY_TOOLS))
else
SECURITY_FILES=lib,include,bin/$(subst $(SPACE),$(COMMA)bin/,$(SECURITY_TOOLS))
endif
ifndef SECURITY_PULL_METHOD
SECURITY_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(SECURITY_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
mkdir -p $(SECURITY_BINPATH)
$(FTP_PULL) -method $(SECURITY_PULL_METHOD) \
-objdir $(SECURITY_BUILD_DIR) -componentdir $(SECURITY_IMPORT) \
-files $(SECURITY_FILES)
ifdef VSFTPD_HACK
# work around vsftpd -L problem
$(FTP_PULL) -method $(SECURITY_PULL_METHOD) \
-objdir $(SECURITY_BUILD_DIR) -componentdir $(COMPONENTS_DIR)/nss/$(SECURITY_RELDATE) \
-files include
endif
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component NSS file $@" ; \
fi
endif # SECURITY_SOURCE_ROOT
ifndef SVRCORE_SOURCE_ROOT
SVRCORE_IMPORT = $(COMPONENTS_DIR)/svrcore/$(SVRCORE_RELDATE)/$(NSOBJDIR_NAME)
#SVRCORE_IMPORT = $(COMPONENTS_DIR_DEV)/svrcore/$(SVRCORE_RELDATE)/$(NSOBJDIR_NAME)
ifeq ($(ARCH), WINNT)
SVRCORE_DEP = $(SVRCORE_LIBPATH)/svrcore.$(LIB_SUFFIX)
else
SVRCORE_DEP = $(SVRCORE_LIBPATH)/libsvrcore.$(LIB_SUFFIX)
endif
ifndef SVRCORE_PULL_METHOD
SVRCORE_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(SVRCORE_DEP): $(NSCP_DISTDIR)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(SVRCORE_PULL_METHOD) \
-objdir $(SVRCORE_BUILD_DIR) -componentdir $(SVRCORE_IMPORT)/.. \
-files xpheader.jar -unzip $(SVRCORE_INCDIR)
$(FTP_PULL) -method $(SVRCORE_PULL_METHOD) \
-objdir $(SVRCORE_BUILD_DIR) -componentdir $(SVRCORE_IMPORT) \
-files mdbinary.jar -unzip $(SVRCORE_BUILD_DIR)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component SVRCORE file $@" ; \
fi
endif # SVRCORE_SOURCE_ROOT
ifndef LDAPSDK_SOURCE_ROOT
ifndef LDAP_VERSION
LDAP_VERSION = $(LDAP_RELDATE)
endif
ifndef LDAP_SBC
LDAP_SBC = $(COMPONENTS_DIR_DEV)
#LDAP_SBC = $(COMPONENTS_DIR)
endif
LDAPOBJDIR = $(FULL_RTL_OBJDIR)
# LDAP does not have PTH version, so here is the hack which treat non PTH
# version as PTH version
ifeq ($(USE_PTHREADS), 1)
LDAP_RELEASE = $(LDAP_SBC)/$(LDAPCOMP_DIR)/$(LDAP_VERSION)/$(NSOBJDIR_NAME1)
else
LDAP_RELEASE = $(LDAP_SBC)/$(LDAPCOMP_DIR)/$(LDAP_VERSION)/$(LDAPOBJDIR)
endif
ifeq ($(ARCH), WINNT)
LDAPSDK_DEP = $(LDAPSDK_LIBPATH)/nsldap32v$(LDAP_SUF).$(DLL_SUFFIX)
LDAPSDK_PULL_LIBS = lib/nsldapssl32v$(LDAP_SUF).$(LIB_SUFFIX),lib/nsldapssl32v$(LDAP_SUF).$(LDAP_DLL_SUFFIX),lib/nsldap32v$(LDAP_SUF).$(LIB_SUFFIX),lib/nsldap32v$(LDAP_SUF).$(LDAP_DLL_SUFFIX),lib/nsldappr32v$(LDAP_SUF).$(LIB_SUFFIX),lib/nsldappr32v$(LDAP_SUF).$(LDAP_DLL_SUFFIX)
else
LDAPSDK_DEP = $(LDAPSDK_LIBPATH)/libldap$(LDAP_SUF).$(DLL_SUFFIX)
LDAPSDK_PULL_LIBS = lib/libssldap$(LDAP_SUF)$(LDAP_DLL_PRESUF).$(LDAP_DLL_SUFFIX),lib/libldap$(LDAP_SUF)$(LDAP_DLL_PRESUF).$(LDAP_DLL_SUFFIX),lib/libprldap$(LDAP_SUF)$(LDAP_DLL_PRESUF).$(LDAP_DLL_SUFFIX)
endif
ifndef LDAPSDK_PULL_METHOD
LDAPSDK_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(LDAPSDK_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
mkdir -p $(LDAP_LIBPATH)
$(FTP_PULL) -method $(LDAPSDK_PULL_METHOD) \
-objdir $(LDAP_ROOT) -componentdir $(LDAP_RELEASE) \
-files include,$(LDAPSDK_PULL_LIBS),tools
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component LDAPSDK file $@" ; \
fi
endif # LDAPSDK_SOURCE_ROOT
ifndef SASL_SOURCE_ROOT
SASL_RELEASE = $(COMPONENTS_DIR_DEV)/sasl/$(SASL_VERSDIR)/$(SASL_RELDATE)/$(NSOBJDIR_NAME)
#SASL_RELEASE = $(COMPONENTS_DIR)/sasl/$(SASL_VERSDIR)/$(SASL_RELDATE)/$(NSOBJDIR_NAME)
SASL_DEP = $(SASL_INCLUDE)/sasl.h
ifndef SASL_PULL_METHOD
SASL_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(SASL_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(SASL_PULL_METHOD) \
-objdir $(SASL_BUILD_DIR) -componentdir $(SASL_RELEASE) \
-files include
$(FTP_PULL) -method $(SASL_PULL_METHOD) \
-objdir $(SASL_BUILD_DIR)/lib -componentdir $(SASL_RELEASE)/lib \
-files $(SASL_LIBS)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component SASL file $@" ; \
fi
endif # SASL_SOURCE_ROOT
ifndef ICU_SOURCE_ROOT
ICU_RELEASE = $(COMPONENTS_DIR)/libicu/$(ICU_VERSDIR)/$(ICU_RELDATE)/$(NSOBJDIR_NAME)
ICU_DEP = $(ICU_INCPATH)/unicode/ucol.h
ifndef ICU_PULL_METHOD
ICU_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(ICU_DEP): $(NSCP_DISTDIR_FULL_RTL)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(ICU_PULL_METHOD) \
-objdir $(ICU_BUILD_DIR) -componentdir $(ICU_RELEASE) \
-files lib,include,bin
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component ICU file $@" ; \
fi
endif # ICU_SOURCE_ROOT
ifndef DB_SOURCE_ROOT
#if no version specified, we'll use the latest one
ifndef DB_VERSION
DB_VERSION=20040130
endif
# define the paths to the component parts
db_components_share=$(COMPONENTS_DIR)/$(db_component_name)
MY_NSOBJDIR_TAG=$(NSOBJDIR_TAG).OBJ
db_release_config =$(db_components_share)/$(DB_VERSION)/$(NSCONFIG_NOTAG)$(NS64TAG)$(MY_NSOBJDIR_TAG)
# add ",bin" to DB_FILES if you want the programs like db_verify, db_recover, etc.
DB_FILES=include,lib,bin
ifeq ($(ARCH), WINNT)
DB_LIB_DEP =$(DB_STATIC_LIB)
else # not WINNT
DB_LIB_DEP =$(DB_LIBPATH)/$(DB_LIBNAME).$(DLL_SUFFIX)
endif # not WINNT
ifndef DB_PULL_METHOD
DB_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(DB_LIB_DEP): $(NSCP_DISTDIR)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(DB_PULL_METHOD) \
-objdir $(db_path_config) -componentdir $(db_release_config) \
-files $(DB_FILES)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component $(db_component_name) file $@" ; \
fi
endif # DB_SOURCE_ROOT
######## END OF OPEN SOURCE COMPONENTS ######################
######## The rest of these components are internal only (for now)
# ADMINUTIL library #######################################
ADMINUTIL_VERSION=$(ADMINUTIL_RELDATE)
ADMINUTIL_BASE=adminsdk/$(ADMINUTIL_VERSDIR)/${ADMINUTIL_VERSION}
ADMSDKOBJDIR = $(FULL_RTL_OBJDIR)
#ADMINUTIL_IMPORT=$(COMPONENTS_DIR)/${ADMINUTIL_BASE}/$(NSOBJDIR_NAME)
ADMINUTIL_IMPORT=$(COMPONENTS_DIR_DEV)/${ADMINUTIL_BASE}/$(NSOBJDIR_NAME)
# this is the base directory under which the component's files will be found
# during the build process
ADMINUTIL_BUILD_DIR=$(NSCP_DISTDIR_FULL_RTL)/adminutil
ADMINUTIL_LIBPATH=$(ADMINUTIL_BUILD_DIR)/lib
ADMINUTIL_INCPATH=$(ADMINUTIL_BUILD_DIR)/include
PACKAGE_SRC_DEST += $(ADMINUTIL_LIBPATH)/property bin/slapd/lib
LIBS_TO_PKG += $(wildcard $(ADMINUTIL_LIBPATH)/*.$(DLL_SUFFIX))
LIBS_TO_PKG_CLIENTS += $(wildcard $(ADMINUTIL_LIBPATH)/*.$(DLL_SUFFIX))
#
# Libadminutil
#
ADMINUTIL_DEP = $(ADMINUTIL_LIBPATH)/libadminutil$(ADMINUTIL_VER).$(LIB_SUFFIX)
ifeq ($(ARCH), WINNT)
ADMINUTIL_LINK = /LIBPATH:$(ADMINUTIL_LIBPATH) libadminutil$(ADMINUTIL_VER).$(LIB_SUFFIX)
ADMINUTIL_S_LINK = /LIBPATH:$(ADMINUTIL_LIBPATH) libadminutil_s$(ADMINUTIL_VER).$(LIB_SUFFIX)
LIBADMINUTILDLL_NAMES = $(ADMINUTIL_LIBPATH)/libadminutil$(ADMINUTIL_VER).$(DLL_SUFFIX)
else
ADMINUTIL_LINK=-L$(ADMINUTIL_LIBPATH) -ladminutil$(ADMINUTIL_VER)
endif
ADMINUTIL_INCLUDE=-I$(ADMINUTIL_INCPATH) \
-I$(ADMINUTIL_INCPATH)/libadminutil \
-I$(ADMINUTIL_INCPATH)/libadmsslutil
ifndef ADMINUTIL_PULL_METHOD
ADMINUTIL_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(ADMINUTIL_DEP): ${NSCP_DISTDIR_FULL_RTL}
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(ADMINUTIL_PULL_METHOD) \
-objdir $(ADMINUTIL_BUILD_DIR) \
-componentdir $(ADMINUTIL_IMPORT) \
-files include,lib
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component adminutil file $@" ; \
fi
###########################################################
# Peer
PEER_BUILD_DIR = $(NSCP_DISTDIR)/peer
ifeq ($(ARCH), WINNT)
# PEER_RELEASE = $(COMPONENTS_DIR)/peer/$(PEER_RELDATE)
# PEER_FILES = include
else
PEER_RELEASE = $(COMPONENTS_DIR)/peer/$(PEER_RELDATE)/$(NSOBJDIR_NAME)
PEER_FILES = obj
PEER_DEP = $(PEER_OBJPATH)/ns-ldapagt
endif
# PEER_MGMTPATH = $(PEER_BUILD_DIR)/dev
# PEER_INCDIR = $(PEER_BUILD_DIR)/include
# PEER_BINPATH = $(PEER_BUILD_DIR)/dev
PEER_OBJPATH = $(PEER_BUILD_DIR)/obj
# PEER_INCLUDE = -I$(PEER_INCDIR)
ifndef PEER_PULL_METHOD
PEER_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(PEER_DEP): $(NSCP_DISTDIR)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(PEER_PULL_METHOD) \
-objdir $(PEER_BUILD_DIR) -componentdir $(PEER_RELEASE) \
-files $(PEER_FILES)
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component PEER file $@" ; \
fi
endif
###########################################################
### SETUPSDK #############################
# this is where the build looks for setupsdk components
SETUP_SDK_BUILD_DIR = $(NSCP_DISTDIR)/setupsdk
SETUPSDK_VERSION = $(SETUP_SDK_RELDATE)
#SETUPSDK_RELEASE = $(COMPONENTS_DIR)/setupsdk/$(SETUPSDK_VERSDIR)/$(SETUPSDK_VERSION)/$(NSOBJDIR_NAME)
SETUPSDK_RELEASE = $(COMPONENTS_DIR_DEV)/setupsdk/$(SETUPSDK_VERSDIR)/$(SETUPSDK_VERSION)/$(NSOBJDIR_NAME)
SETUPSDK_LIBPATH = $(SETUP_SDK_BUILD_DIR)/lib
SETUPSDK_INCDIR = $(SETUP_SDK_BUILD_DIR)/include
SETUPSDK_BINPATH = $(SETUP_SDK_BUILD_DIR)/bin
SETUPSDK_INCLUDE = -I$(SETUPSDK_INCDIR)
ifeq ($(ARCH), WINNT)
SETUP_SDK_FILES = setupsdk.tar.gz -unzip $(NSCP_DISTDIR)/setupsdk
SETUPSDK_DEP = $(SETUPSDK_LIBPATH)/nssetup32.$(LIB_SUFFIX)
SETUPSDKLINK = /LIBPATH:$(SETUPSDK_LIBPATH) nssetup32.$(LIB_SUFFIX)
SETUPSDK_S_LINK = /LIBPATH:$(SETUPSDK_LIBPATH) nssetup32_s.$(LIB_SUFFIX)
else
SETUP_SDK_FILES = bin,lib,include
SETUPSDK_DEP = $(SETUPSDK_LIBPATH)/libinstall.$(LIB_SUFFIX)
SETUPSDKLINK = -L$(SETUPSDK_LIBPATH) -linstall
SETUPSDK_S_LINK = $(SETUPSDKLINK)
endif
ifndef SETUPSDK_PULL_METHOD
SETUPSDK_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(SETUPSDK_DEP): $(NSCP_DISTDIR)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(SETUPSDK_PULL_METHOD) \
-objdir $(SETUP_SDK_BUILD_DIR) -componentdir $(SETUPSDK_RELEASE) \
-files $(SETUP_SDK_FILES)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component SETUPSDK file $@" ; \
fi
# apache-axis java classes #######################################
AXIS = axis-$(AXIS_VERSION).zip
AXIS_FILES = $(AXIS)
AXIS_RELEASE = $(COMPONENTS_DIR)/axis
#AXISJAR_DIR = $(AXISJAR_RELEASE)/$(AXISJAR_COMP)/$(AXISJAR_VERSION)
AXIS_DIR = $(AXIS_RELEASE)/$(AXIS_VERSION)
AXIS_FILE = $(CLASS_DEST)/$(AXIS)
AXIS_DEP = $(AXIS_FILE)
AXIS_REL_DIR=$(subst -bin,,$(subst .zip,,$(AXIS)))
# This is java, so there is only one real platform subdirectory
#PACKAGE_UNDER_JAVA += $(AXIS_FILE)
ifndef AXIS_PULL_METHOD
AXIS_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(AXIS_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(AXIS_DIR) \
-files $(AXIS_FILES) -unzip $(CLASS_DEST)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component AXIS files $@" ; \
fi
###########################################################
# other dsml java classes #######################################
DSMLJAR = activation.jar,jaxrpc-api.jar,jaxrpc.jar,saaj.jar,xercesImpl.jar,xml-apis.jar
DSMLJAR_FILES = $(DSMLJAR)
DSMLJAR_RELEASE = $(COMPONENTS_DIR)
#DSMLJARJAR_DIR = $(DSMLJARJAR_RELEASE)/$(DSMLJARJAR_COMP)/$(DSMLJARJAR_VERSION)
DSMLJAR_DIR = $(DSMLJAR_RELEASE)/dsmljars
DSMLJAR_FILE = $(CLASS_DEST)
DSMLJAR_DEP = $(CLASS_DEST)/activation.jar $(CLASS_DEST)/jaxrpc-api.jar $(CLASS_DEST)/jaxrpc.jar $(CLASS_DEST)/saaj.jar $(CLASS_DEST)/xercesImpl.jar $(CLASS_DEST)/xml-apis.jar
ifndef DSMLJAR_PULL_METHOD
DSMLJAR_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(DSMLJAR_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(DSMLJAR_DIR) \
-files $(DSMLJAR_FILES)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component DSMLJAR files $@" ; \
fi
###########################################################
# XMLTOOLS java classes #######################################
CRIMSONJAR = crimson.jar
CRIMSON_LICENSE = LICENSE.crimson
CRIMSONJAR_FILES = $(CRIMSONJAR),$(CRIMSON_LICENSE)
CRIMSONJAR_RELEASE = $(COMPONENTS_DIR)
CRIMSONJAR_DIR = $(CRIMSONJAR_RELEASE)/$(CRIMSONJAR_COMP)/$(CRIMSONJAR_VERSION)
CRIMSONJAR_FILE = $(CLASS_DEST)/$(CRIMSONJAR)
CRIMSONJAR_DEP = $(CRIMSONJAR_FILE) $(CLASS_DEST)/$(CRIMSON_LICENSE)
# This is java, so there is only one real platform subdirectory
PACKAGE_UNDER_JAVA += $(CRIMSONJAR_FILE)
ifndef CRIMSONJAR_PULL_METHOD
CRIMSONJAR_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(CRIMSONJAR_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(CRIMSONJAR_DIR) \
-files $(CRIMSONJAR_FILES)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component CRIMSONJAR files $@" ; \
fi
###########################################################
# ANT java classes #######################################
ifeq ($(BUILD_JAVA_CODE),1)
# (we use ant for building some Java code)
ANTJAR = ant.jar
JAXPJAR = jaxp.jar
ANT_FILES = $(ANTJAR) $(JAXPJAR)
ANT_RELEASE = $(COMPONENTS_DIR)
ANT_HOME = $(ANT_RELEASE)/$(ANT_COMP)/$(ANT_VERSION)
ANT_DIR = $(ANT_HOME)/lib
ANT_DEP = $(addprefix $(CLASS_DEST)/, $(ANT_FILES))
ANT_CP = $(subst $(SPACE),$(PATH_SEP),$(ANT_DEP))
ANT_PULL = $(subst $(SPACE),$(COMMA),$(ANT_FILES))
ifndef ANT_PULL_METHOD
ANT_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(ANT_DEP): $(CLASS_DEST) $(CRIMSONJAR_DEP)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(ANT_DIR) \
-files $(ANT_PULL)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component ant files $@" ; \
fi
endif
###########################################################
# Servlet SDK classes #######################################
SERVLETJAR = servlet.jar
SERVLET_FILES = $(SERVLETJAR)
SERVLET_RELEASE = $(COMPONENTS_DIR)
SERVLET_DIR = $(SERVLET_RELEASE)/$(SERVLET_COMP)/$(SERVLET_VERSION)
SERVLET_DEP = $(addprefix $(CLASS_DEST)/, $(SERVLET_FILES))
SERVLET_CP = $(subst $(SPACE),$(PATH_SEP),$(SERVLET_DEP))
SERVLET_PULL = $(subst $(SPACE),$(COMMA),$(SERVLET_FILES))
ifndef SERVLET_PULL_METHOD
SERVLET_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(SERVLET_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(SERVLET_DIR) \
-files $(SERVLET_PULL)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component servlet SDK files $@" ; \
fi
###########################################################
# LDAP java classes #######################################
LDAPJDK = ldapjdk.jar
LDAPJDK_VERSION = $(LDAPJDK_RELDATE)
LDAPJDK_RELEASE = $(COMPONENTS_DIR)
LDAPJDK_DIR = $(LDAPJDK_RELEASE)
LDAPJDK_IMPORT = $(LDAPJDK_RELEASE)/$(LDAPJDK_COMP)/$(LDAPJDK_VERSION)/$(NSOBJDIR_NAME)
# This is java, so there is only one real platform subdirectory
LDAPJARFILE=$(CLASS_DEST)/ldapjdk.jar
LDAPJDK_DEP=$(LDAPJARFILE)
#PACKAGE_UNDER_JAVA += $(LDAPJARFILE)
ifndef LDAPJDK_PULL_METHOD
LDAPJDK_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(LDAPJDK_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(LDAPJDK_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(LDAPJDK_IMPORT) \
-files $(LDAPJDK)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component LDAPJDK file $@" ; \
fi
###########################################################
# LDAP Console java classes
###########################################################
LDAPCONSOLEJAR = ds$(LDAPCONSOLE_REL).jar
LDAPCONSOLEJAR_EN = ds$(LDAPCONSOLE_REL)_en.jar
LDAPCONSOLE_RELEASE=$(COMPONENTS_DIR_DEV)
LDAPCONSOLE_JARDIR = $(LDAPCONSOLE_RELEASE)/ldapconsole/$(LDAPCONSOLE_COMP)$(BUILD_MODE)/$(LDAPCONSOLE_RELDATE)/jars
LDAPCONSOLE_DEP = $(CLASS_DEST)/$(LDAPCONSOLEJAR)
LDAPCONSOLE_FILES=$(LDAPCONSOLEJAR),$(LDAPCONSOLEJAR_EN)
ifndef LDAPCONSOLE_PULL_METHOD
LDAPCONSOLE_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(LDAPCONSOLE_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
$(FTP_PULL) -method $(LDAPCONSOLE_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(LDAPCONSOLE_JARDIR) \
-files $(LDAPCONSOLE_FILES)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component LDAPCONSOLE file $@" ; \
fi
###########################################################
### Perldap package #######################################
PERLDAP_COMPONENT_DIR = $(COMPONENTS_DIR)/perldap/$(PERLDAP_VERSION)/$(NSOBJDIR_NAME_32)
PERLDAP_ZIP_FILE = perldap14.zip
###########################################################
# JSS classes - for the Mission Control Console ######
JSSJAR = jss$(JSS_JAR_VERSION).jar
JSSJARFILE = $(CLASS_DEST)/$(JSSJAR)
JSS_RELEASE = $(COMPONENTS_DIR)/$(JSS_COMP)/$(JSS_VERSION)
JSS_DEP = $(JSSJARFILE)
#PACKAGE_UNDER_JAVA += $(JSSJARFILE)
ifndef JSS_PULL_METHOD
JSS_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(JSS_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
ifdef VSFTPD_HACK
# work around vsftpd -L problem
$(FTP_PULL) -method $(JSS_PULL_METHOD) \
-objdir $(CLASS_DEST)/jss -componentdir $(JSS_RELEASE) \
-files xpclass.jar
mv $(CLASS_DEST)/jss/xpclass.jar $(CLASS_DEST)/$(JSSJAR)
rm -rf $(CLASS_DEST)/jss
else
$(FTP_PULL) -method $(JSS_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(JSS_RELEASE) \
-files $(JSSJAR)
endif
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component JSS file $@" ; \
fi
###########################################################
### JSP compiler package ##################################
JSPC_REL = $(JSPC_VERSDIR)
JSPC_REL_DATE = $(JSPC_VERSION)
JSPC_FILES = jasper-compiler.jar jasper-runtime.jar
JSPC_RELEASE = $(COMPONENTS_DIR)
JSPC_DIR = $(JSPC_RELEASE)/$(JSPC_COMP)/$(JSPC_VERSION)
JSPC_DEP = $(addprefix $(CLASS_DEST)/, $(JSPC_FILES))
JSPC_CP = $(subst $(SPACE),$(PATH_SEP),$(JSPC_DEP))
JSPC_PULL = $(subst $(SPACE),$(COMMA),$(JSPC_FILES))
ifndef JSPC_PULL_METHOD
JSPC_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(JSPC_DEP): $(CLASS_DEST)
ifdef COMPONENT_DEPS
echo "Inside ftppull"
$(FTP_PULL) -method $(COMPONENT_PULL_METHOD) \
-objdir $(CLASS_DEST) -componentdir $(JSPC_DIR) \
-files $(JSPC_PULL)
endif
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component jspc files $@" ; \
fi
###########################################################
###########################################################
### Admin Server package ##################################
ADMIN_REL = $(ADM_VERSDIR)
ADMIN_REL_DATE = $(ADM_VERSION)
ADMIN_FILE = admserv.tar.gz
ADMIN_FILE_TAR = admserv.tar
ADMSDKOBJDIR = $(NSCONFIG)$(NSOBJDIR_TAG).OBJ
#IMPORTADMINSRV_BASE=$(COMPONENTS_DIR)/$(ADMIN_REL)/$(ADMIN_REL_DATE)
IMPORTADMINSRV_BASE=$(COMPONENTS_DIR_DEV)/$(ADMIN_REL)/$(ADMIN_REL_DATE)
IMPORTADMINSRV = $(IMPORTADMINSRV_BASE)/$(NSOBJDIR_NAME_32)
ADMSERV_DIR=$(ABS_ROOT_PARENT)/dist/$(NSOBJDIR_NAME)/admserv
ADMSERV_DEP = $(ADMSERV_DIR)/setup$(EXE_SUFFIX)
ifdef FORTEZZA
ADM_VERSION = $(ADM_RELDATE)F
else
ifeq ($(SECURITY), domestic)
ADM_VERSION = $(ADM_RELDATE)D
else
ifneq ($(ARCH), IRIX)
ADM_VERSION = $(ADM_RELDATE)E
else
ADM_VERSION = $(ADM_RELDATE)D
endif
endif
endif
ADM_VERSION = $(ADM_RELDATE)
ADM_RELEASE = $(COMPONENTS_DIR)/$(ADM_VERSDIR)/$(ADM_VERSION)/$(NSOBJDIR_NAME)
ifndef ADMSERV_PULL_METHOD
ADMSERV_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
ifndef ADMSERV_DEPS
ADMSERV_DEPS = $(COMPONENT_DEPS)
endif
#IMPORTADMINSRV = /share/builds/sbsrel1/admsvr/admsvr62/ships/20030702.2/spd04_Solaris8/SunOS5.8-domestic-optimize-normal
#ADM_RELEASE = /share/builds/sbsrel1/admsvr/admsvr62/ships/20030702.2/spd04_Solaris8/SunOS5.8-domestic-optimize-normal
$(ADMSERV_DEP): $(ABS_ROOT_PARENT)/dist/$(NSOBJDIR_NAME)
ifdef ADMSERV_DEPS
$(FTP_PULL) -method $(ADMSERV_PULL_METHOD) \
-objdir $(ADMSERV_DIR) -componentdir $(IMPORTADMINSRV) \
-files $(ADMIN_FILE) -unzip $(ADMSERV_DIR)
endif
@if [ ! -f $@ ] ; \
then echo "Error: could not get component ADMINSERV file $@" ; \
exit 1 ; \
fi
### Admin Server END ######################################
### DOCS #################################
ifeq ($(BUILD_MODE), int)
DSDOC_GUIDES = slapd_guides.zip
DSDOC_FILES = $(DSDOC_COPYRIGHT),$(DSDOC_CLIENTS),$(DSDOC_GUIDES)
else
DSDOC_FILES = $(DSDOC_COPYRIGHT),$(DSDOC_CLIENTS)
endif
DSDOC_DEP := $(DSDOC_DIR)/$(DSDOC_COPYRIGHT)
ifndef DSDOC_PULL_METHOD
DSDOC_PULL_METHOD = $(COMPONENT_PULL_METHOD)
endif
$(DSDOC_DEP): $(NSCP_DISTDIR)
$(FTP_PULL) -method $(DSDOC_PULL_METHOD) \
-objdir $(DSDOC_DIR) -componentdir $(DSDOC_RELEASE) \
-files $(DSDOC_FILES)
@if [ ! -f $@ ] ; \
then echo "Error: could not get component DSDOC file $@" ; \
exit 1 ; \
fi
### DOCS END #############################
|