forked from microsoft/PowerShell-DSC-for-Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
661 lines (608 loc) · 34.1 KB
/
Makefile
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
SHELL=/bin/bash
include config.mak
-include omi-1.0.8/output/config.mak
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
PF_ARCH := x64
else
PF_ARCH := x86
endif
current_dir := $(shell pwd)
INSTALLBUILDER_DIR=installbuilder
ifeq ($(BUILD_OMS),BUILD_OMS)
CONFIG_SYSCONFDIR_DSC=omsconfig
DSC_NAMESPACE=root/oms
OAAS_CERTPATH=/etc/opt/microsoft/omsagent/certs/oms.crt
OAAS_KEYPATH=/etc/opt/microsoft/omsagent/certs/oms.key
OAAS_THUMBRPINT=/etc/opt/microsoft/omsagent/certs/oms.thumbprint
PYTHON_PID_DIR=/var/opt/microsoft/omsconfig
BUILD_OMS_VAL=1
else
CONFIG_SYSCONFDIR_DSC=dsc
DSC_NAMESPACE=root/Microsoft/DesiredStateConfiguration
OAAS_CERTPATH=$$CONFIG_CERTSDIR/oaas.crt
OAAS_KEYPATH=$$CONFIG_CERTSDIR/oaas.key
OAAS_THUMBPRINT=$$CONFIG_CERTSDIR/oaas.thumbprint
PYTHON_PID_DIR=/var/opt/omi
BUILD_OMS_VAL=0
endif
all:
rm -rf release/*.rpm release/*.deb
mkdir -p intermediate/Scripts
mkdir -p intermediate/Modules
ifeq ($(BUILD_LOCAL),1)
$(MAKE) local
else
ifeq ($(PF_ARCH),x64)
ln -fs $(current_dir)/ext/curl/x64 $(current_dir)/ext/curl/current_platform
else
ln -fs $(current_dir)/ext/curl/x86 $(current_dir)/ext/curl/current_platform
endif
cd ../pal/build; ./configure --enable-ulinux
ifeq ($(BUILD_SSL_098),1)
rm -rf omi-1.0.8/output_openssl_0.9.8/lib/libdsccore.so
$(MAKE) omi098
$(MAKE) dsc098
$(MAKE) dsckit098
endif
ifeq ($(BUILD_SSL_100),1)
rm -rf omi-1.0.8/output_openssl_1.0.0/lib/libdsccore.so
$(MAKE) omi100
$(MAKE) dsc100
$(MAKE) dsckit100
endif
ifeq ($(BUILD_SSL_110),1)
rm -rf omi-1.0.8/output_openssl_1.1.0/lib/libdsccore.so
$(MAKE) omi110
$(MAKE) dsc110
$(MAKE) dsckit110
endif
endif
ifeq ($(BUILD_OMS),BUILD_OMS)
dsckit098: nx nxOMSPerfCounter nxOMSSyslog nxOMSKeyMgmt nxOMSPlugin nxOMSCustomLog nxOMSSudoCustomLog nxFileInventory nxOMSGenerateInventoryMof nxOMSAgentNPMConfig nxOMSAutomationWorker nxOMSAuditdPlugin nxOMSContainers nxOMSWLI
else
dsckit098: nx nxNetworking nxComputerManagement nxMySQL
endif
$(MAKE) -C $(INSTALLBUILDER_DIR) SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) BUILD_OMS_VAL=$(BUILD_OMS_VAL)
-mkdir -p release; \
cp omi-1.0.8/output_openssl_0.9.8/release/*.{rpm,deb} output/release/*.{rpm,deb} release/
ifeq ($(BUILD_OMS),BUILD_OMS)
dsckit100: nx nxOMSPerfCounter nxOMSSyslog nxOMSKeyMgmt nxOMSPlugin nxOMSCustomLog nxOMSSudoCustomLog nxFileInventory nxOMSGenerateInventoryMof nxOMSAgentNPMConfig nxOMSAutomationWorker nxOMSAuditdPlugin nxOMSContainers nxOMSWLI
else
dsckit100: nx nxNetworking nxComputerManagement nxMySQL
endif
$(MAKE) -C $(INSTALLBUILDER_DIR) SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) BUILD_OMS_VAL=$(BUILD_OMS_VAL)
-mkdir -p release; \
cp omi-1.0.8/output_openssl_1.0.0/release/*.{rpm,deb} output/release/*.{rpm,deb} release/
ifeq ($(BUILD_OMS),BUILD_OMS)
dsckit110: nx nxOMSPerfCounter nxOMSSyslog nxOMSKeyMgmt nxOMSPlugin nxOMSCustomLog nxOMSSudoCustomLog nxFileInventory nxOMSGenerateInventoryMof nxOMSAgentNPMConfig nxOMSAutomationWorker nxOMSAuditdPlugin
else
dsckit110: nx nxNetworking nxComputerManagement nxMySQL
endif
$(MAKE) -C $(INSTALLBUILDER_DIR) SSL_VERSION=110 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) BUILD_OMS_VAL=$(BUILD_OMS_VAL)
-mkdir -p release; \
cp omi-1.0.8/output_openssl_1.1.0/release/*.{rpm,deb} output/release/*.{rpm,deb} release/
dsc098: lcm098 providers
mkdir -p intermediate/Scripts
mkdir -p intermediate/Modules
. omi-1.0.8/output_openssl_0.9.8/config.mak; \
for f in LCM/scripts/*.py LCM/scripts/*.sh Providers/Scripts/*.py Providers/Scripts/*.sh; do \
cat $$f | \
sed "s@<CONFIG_BINDIR>@$$CONFIG_BINDIR@" | \
sed "s@<CONFIG_LIBDIR>@$$CONFIG_LIBDIR@" | \
sed "s@<CONFIG_LOCALSTATEDIR>@$$CONFIG_LOCALSTATEDIR@" | \
sed "s@<CONFIG_SYSCONFDIR>@$$CONFIG_SYSCONFDIR@" | \
sed "s@<CONFIG_SYSCONFDIR_DSC>@$(CONFIG_SYSCONFDIR_DSC)@" | \
sed "s@<OAAS_CERTPATH>@$(OAAS_CERTPATH)@" | \
sed "s@<OAAS_KEYPATH>@$(OAAS_KEYPATH)@" | \
sed "s@<OAAS_THUMBPRINT>@$(OAAS_THUMBPRINT)@" | \
sed "s@<OMI_LIB_SCRIPTS>@$$CONFIG_LIBDIR/Scripts@" | \
sed "s@<PYTHON_PID_DIR>@$(PYTHON_PID_DIR)@" | \
sed "s@<DSC_NAMESPACE>@$(DSC_NAMESPACE)@" | \
sed "s@<DSC_SCRIPT_PATH>@$(DSC_SCRIPT_PATH)@" | \
sed "s@<DSC_MODULES_PATH>@$(DSC_MODULES_PATH)@" > intermediate/Scripts/`basename $$f`; \
chmod a+x intermediate/Scripts/`basename $$f`; \
done
if [ -f ../dsc.version ]; then cp -f ../dsc.version build/dsc.version; else cp -f build/Makefile.version build/dsc.version; fi
dsc100: lcm100 providers
mkdir -p intermediate/Scripts
mkdir -p intermediate/Modules
. omi-1.0.8/output_openssl_1.0.0/config.mak; \
for f in LCM/scripts/*.py LCM/scripts/*.sh Providers/Scripts/*.py Providers/Scripts/*.sh; do \
cat $$f | \
sed "s@<CONFIG_BINDIR>@$$CONFIG_BINDIR@" | \
sed "s@<CONFIG_LIBDIR>@$$CONFIG_LIBDIR@" | \
sed "s@<CONFIG_LOCALSTATEDIR>@$$CONFIG_LOCALSTATEDIR@" | \
sed "s@<CONFIG_SYSCONFDIR>@$$CONFIG_SYSCONFDIR@" | \
sed "s@<CONFIG_SYSCONFDIR_DSC>@$(CONFIG_SYSCONFDIR_DSC)@" | \
sed "s@<OAAS_CERTPATH>@$(OAAS_CERTPATH)@" | \
sed "s@<OAAS_KEYPATH>@$(OAAS_KEYPATH)@" | \
sed "s@<OAAS_THUMBPRINT>@$(OAAS_THUMBPRINT)@" | \
sed "s@<OMI_LIB_SCRIPTS>@$$CONFIG_LIBDIR/Scripts@" | \
sed "s@<PYTHON_PID_DIR>@$(PYTHON_PID_DIR)@" | \
sed "s@<DSC_NAMESPACE>@$(DSC_NAMESPACE)@" | \
sed "s@<DSC_SCRIPT_PATH>@$(DSC_SCRIPT_PATH)@" | \
sed "s@<DSC_MODULES_PATH>@$(DSC_MODULES_PATH)@" > intermediate/Scripts/`basename $$f`; \
chmod a+x intermediate/Scripts/`basename $$f`; \
done
dsc110: lcm110 providers
mkdir -p intermediate/Scripts
mkdir -p intermediate/Modules
. omi-1.0.8/output_openssl_1.1.0/config.mak; \
for f in LCM/scripts/*.py LCM/scripts/*.sh Providers/Scripts/*.py Providers/Scripts/*.sh; do \
cat $$f | \
sed "s@<CONFIG_BINDIR>@$$CONFIG_BINDIR@" | \
sed "s@<CONFIG_LIBDIR>@$$CONFIG_LIBDIR@" | \
sed "s@<CONFIG_LOCALSTATEDIR>@$$CONFIG_LOCALSTATEDIR@" | \
sed "s@<CONFIG_SYSCONFDIR>@$$CONFIG_SYSCONFDIR@" | \
sed "s@<CONFIG_SYSCONFDIR_DSC>@$(CONFIG_SYSCONFDIR_DSC)@" | \
sed "s@<OAAS_CERTPATH>@$(OAAS_CERTPATH)@" | \
sed "s@<OAAS_KEYPATH>@$(OAAS_KEYPATH)@" | \
sed "s@<OAAS_THUMBPRINT>@$(OAAS_THUMBPRINT)@" | \
sed "s@<OMI_LIB_SCRIPTS>@$$CONFIG_LIBDIR/Scripts@" | \
sed "s@<PYTHON_PID_DIR>@$(PYTHON_PID_DIR)@" | \
sed "s@<DSC_NAMESPACE>@$(DSC_NAMESPACE)@" | \
sed "s@<DSC_SCRIPT_PATH>@$(DSC_SCRIPT_PATH)@" | \
sed "s@<DSC_MODULES_PATH>@$(DSC_MODULES_PATH)@" > intermediate/Scripts/`basename $$f`; \
chmod a+x intermediate/Scripts/`basename $$f`; \
done
if [ -f ../dsc.version ]; then cp -f ../dsc.version build/dsc.version; else cp -f build/Makefile.version build/dsc.version; fi
omi098:
$(MAKE) configureomi098
rm -rf omi-1.0.8/output
ln -s output_openssl_0.9.8 omi-1.0.8/output
$(MAKE) -C omi-1.0.8
$(MAKE) -C omi-1.0.8/installbuilder SSL_VERSION=098 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) SSL_BUILD=0.9.8
omi100:
$(MAKE) configureomi100
rm -rf omi-1.0.8/output
ln -s output_openssl_1.0.0 omi-1.0.8/output
$(MAKE) -C omi-1.0.8
$(MAKE) -C omi-1.0.8/installbuilder SSL_VERSION=100 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) SSL_BUILD=1.0.0
omi110:
$(MAKE) configureomi110
rm -rf omi-1.0.8/output
ln -s output_openssl_1.1.0 omi-1.0.8/output
$(MAKE) -C omi-1.0.8
$(MAKE) -C omi-1.0.8/installbuilder SSL_VERSION=110 BUILD_RPM=$(BUILD_RPM) BUILD_DPKG=$(BUILD_DPKG) SSL_BUILD=1.1.0
configureomi098:
(cd omi-1.0.8; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_0.9.8 --localstatedir=/var/opt/omi --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags="$(openssl098_cflags)" --openssllibs="-L$(current_dir)/ext/curl/current_platform/lib $(openssl098_libs)" --openssllibdir="$(openssl098_libdir)")
configureomi100:
(cd omi-1.0.8; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_1.0.0 --localstatedir=/var/opt/omi --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags="$(openssl100_cflags)" --openssllibs="-L$(current_dir)/ext/curl/current_platform/lib $(openssl100_libs)" --openssllibdir="$(openssl100_libdir)")
configureomi110:
(cd omi-1.0.8; ./configure $(DEBUG_FLAGS) --enable-preexec --prefix=/opt/omi --outputdirname=output_openssl_1.1.0 --localstatedir=/var/opt/omi --sysconfdir=/etc/opt/omi/conf --certsdir=/etc/opt/omi/ssl --opensslcflags="$(openssl110_cflags)" --openssllibs="-L$(current_dir)/ext/curl/current_platform/lib $(openssl110_libs)" --openssllibdir="$(openssl110_libdir)")
lcm098:
$(MAKE) -C LCM
lcm100:
$(MAKE) -C LCM
lcm110:
$(MAKE) -C LCM
providers:
$(MAKE) -C Providers
ifeq ($(BUILD_OMS),BUILD_OMS)
nx:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxService nxPackage nxUser nxGroup nxAvailableUpdates"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
else
nx:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxFile nxScript nxUser nxGroup nxService nxPackage nxEnvironment nxSshAuthorizedKeys nxArchive nxFileLine"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
endif
nxOMSAutomationWorker:
rm -rf output/staging; \
VERSION="1.6.2.0"; \
PROVIDERS="nxOMSAutomationWorker"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/automationworker; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp -r Providers/$${current}/automationworker/* $$STAGINGDIR/MSFT_$${current}Resource/automationworker; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done; \
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxComputerManagement:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxComputer"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxNetworking:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxDNSServerAddress nxIPAddress nxFirewall"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxMySQL:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxMySqlDatabase nxMySqlGrant nxMySqlUser"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSPerfCounter:
rm -rf output/staging; \
VERSION="2.2"; \
PROVIDERS="nxOMSPerfCounter"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSSyslog:
rm -rf output/staging; \
VERSION="2.2"; \
PROVIDERS="nxOMSSyslog"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSKeyMgmt:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxOMSKeyMgmt"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSCustomLog:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxOMSCustomLog"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSSudoCustomLog:
rm -rf output/staging; \
VERSION="2.0"; \
PROVIDERS="nxOMSSudoCustomLog"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp -r Providers/Modules/CustomLog/ $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSGenerateInventoryMof:
rm -rf output/staging; \
VERSION="1.3"; \
PROVIDERS="nxOMSGenerateInventoryMof"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSPlugin:
rm -rf output/staging; \
VERSION="3.9"; \
PROVIDERS="nxOMSPlugin"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp -r Providers/Modules/Plugins/ $$STAGINGDIR/MSFT_$${current}Resource; \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Plugins; \
cp -r Providers/Modules/Plugins_$(PF_ARCH)/* $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Plugins; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxFileInventory:
rm -rf output/staging; \
VERSION="1.3"; \
PROVIDERS="nxFileInventory"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSAgentNPMConfig:
rm -rf output/staging; \
VERSION="1.3"; \
PROVIDERS="nxOMSAgentNPMConfig"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp -r Providers/Modules/NPM/ $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSAuditdPlugin:
rm -rf output/staging; \
VERSION="1.5"; \
PROVIDERS="nxOMSAuditdPlugin"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp -r Providers/Modules/nxOMSAuditdPlugin/* $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done;\
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSContainers:
rm -rf output/staging; \
VERSION="1.0"; \
PROVIDERS="nxOMSContainers"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/containers; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp -r Providers/$${current}/containers/* $$STAGINGDIR/MSFT_$${current}Resource/containers; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done; \
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
nxOMSWLI:
rm -rf output/staging; \
VERSION="1.2"; \
PROVIDERS="nxOMSWLI"; \
STAGINGDIR="output/staging/$@/DSCResources"; \
cat Providers/Modules/[email protected] | sed "s@<MODULE_VERSION>@$${VERSION}@" > intermediate/Modules/[email protected]; \
for current in $$PROVIDERS; do \
mkdir -p $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/{2.4x-2.5x,2.6x-2.7x,3.x}/Scripts; \
cp intermediate/Modules/[email protected] output/staging/$@/; \
cp -r Providers/Modules/WLI $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.schema.mof $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/$${current}/MSFT_$${current}Resource.reg $$STAGINGDIR/MSFT_$${current}Resource/; \
cp Providers/bin/libMSFT_$${current}Resource.so $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH); \
cp Providers/Scripts/2.4x-2.5x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.4x-2.5x/Scripts; \
cp Providers/Scripts/2.6x-2.7x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/2.6x-2.7x/Scripts; \
cp Providers/Scripts/3.x/Scripts/$${current}.py $$STAGINGDIR/MSFT_$${current}Resource/$(PF_ARCH)/Scripts/3.x/Scripts; \
done; \
cd output/staging; \
zip -r $@_$${VERSION}.zip $@; \
mkdir -p ../../release; \
mv $@_$${VERSION}.zip ../../release/
distclean: clean
rm -rf omi-1.0.8/output
rm -rf omi-1.0.8/output_openssl_0.9.8
rm -rf omi-1.0.8/output_openssl_1.0.0
rm -rf omi-1.0.8/output_openssl_1.1.0
clean:
ifeq ($(BUILD_LOCAL),1)
$(MAKE) -C LCM clean
$(MAKE) -C Providers clean
$(MAKE) -C omi-1.0.8 distclean
rm -rf omi-1.0.8/output
rm -rf output
rm -rf release
rm -rf intermediate
else
$(MAKE) -C LCM clean
$(MAKE) -C Providers clean
rm -rf output
rm -rf release
rm -rf intermediate
endif
# To build DSC without making kits (i.e. the old style), run 'make local'
local:
rm -rf release/*.rpm release/*.deb
mkdir -p intermediate/Scripts
mkdir -p intermediate/Modules
$(MAKE) lcm providers
lcm:
$(MAKE) -C omi-1.0.8
$(MAKE) -C LCM
reg: lcmreg providersreg
lcmreg:
$(MAKE) -C LCM deploydsc
providersreg:
. omi-1.0.8/output/config.mak; \
for f in LCM/scripts/*.py LCM/scripts/*.sh Providers/Scripts/*.py Providers/Scripts/*.sh; do \
cat $$f | \
sed "s@<CONFIG_BINDIR>@$(CONFIG_BINDIR)@" | \
sed "s@<CONFIG_LIBDIR>@$(CONFIG_LIBDIR)@" | \
sed "s@<CONFIG_LOCALSTATEDIR>@$$CONFIG_LOCALSTATEDIR@" | \
sed "s@<CONFIG_SYSCONFDIR>@$(CONFIG_SYSCONFDIR)@" | \
sed "s@<CONFIG_SYSCONFDIR_DSC>@$(CONFIG_SYSCONFDIR_DSC)@" | \
sed "s@<OAAS_CERTPATH>@$(OAAS_CERTPATH)@" | \
sed "s@<OAAS_KEYPATH>@$(OAAS_KEYPATH)@" | \
sed "s@<OAAS_THUMBPRINT>@$(OAAS_THUMBPRINT)@" | \
sed "s@<OMI_LIB_SCRIPTS>@$(CONFIG_LIBDIR)/Scripts@" | \
sed "s@<PYTHON_PID_DIR>@$(PYTHON_PID_DIR)@" | \
sed "s@<DSC_NAMESPACE>@$(DSC_NAMESPACE)@" | \
sed "s@<DSC_SCRIPT_PATH>@$(DSC_SCRIPT_PATH)@" | \
sed "s@<DSC_MODULES_PATH>@$(CONFIG_DATADIR)/dsc/modules@" > intermediate/Scripts/`basename $$f`; \
chmod a+x intermediate/Scripts/`basename $$f`; \
done
$(MAKE) -C Providers reg