forked from 389ds/389-ds-base
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
2119 lines (1880 loc) · 75.7 KB
/
Makefile.am
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
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# look for included m4 files in the ./m4/ directory
ACLOCAL_AMFLAGS = -I m4
NULLSTRING :=
SPACE := $(NULLSTRING) # the space is between the ) and the #
COLON := $(NULLSTRING):# a colon
QUOTE := $(NULLSTRING)"# a double quote"
#------------------------
# Compiler Flags
#------------------------
#
# First, we setup the definitions from configure.ac
#
PYTHON := python3
if DEBUG
# This allows sccache to work correctly with C files.
BUILDNUM := "\"0000.000.0000\""
else
BUILDNUM := $(shell $(srcdir)/buildnum.py)
endif
NQBUILDNUM := $(subst \,,$(subst $(QUOTE),,$(BUILDNUM)))
DEBUG_DEFINES = @debug_defs@
DEBUG_CFLAGS = @debug_cflags@
DEBUG_CXXFLAGS = @debug_cxxflags@
GCCSEC_CFLAGS = @gccsec_cflags@
if CLANG_ENABLE
ASAN_CFLAGS = @asan_cflags@
else
if enable_asan
ASAN_CFLAGS = @asan_cflags@ -lasan
else
ASAN_CFLAGS = @asan_cflags@
endif
endif
MSAN_CFLAGS = @msan_cflags@
TSAN_CFLAGS = @tsan_cflags@
UBSAN_CFLAGS = @ubsan_cflags@
if CFI_ENABLE
# https://clang.llvm.org/docs/ControlFlowIntegrity.html#available-schemes
# vcall is "forward edge" cfi which is what gives a lot of benefit security wise.
CFI_CFLAGS = -flto=thin -fsanitize=cfi-cast-strict,cfi-vcall -fvisibility=hidden
# Settings we could use in the future
# -fsanitize=cfi-icall,cfi-nvcall,cfi-derived-cast,cfi-unrelated-cast,cfi-mfcall
else
CFI_CFLAGS =
endif
SYSTEMD_DEFINES = @systemd_defs@
CMOCKA_INCLUDES = $(CMOCKA_CFLAGS)
PROFILING_DEFINES = @profiling_defs@
SYSTEMTAP_DEFINES = @systemtap_defs@
NSPR_INCLUDES = $(NSPR_CFLAGS)
# Rust inclusions.
CARGO_FLAGS = @cargo_defs@
if CLANG_ENABLE
RUSTC_FLAGS = @asan_rust_defs@ @msan_rust_defs@ @tsan_rust_defs@ @debug_rust_defs@
RUSTC_LINK_FLAGS = -C link-arg=-fuse-ld=lld
RUST_LDFLAGS = -ldl -lpthread -lc -lm -lrt -lutil
else
RUSTC_FLAGS = @asan_rust_defs@ @msan_rust_defs@ @tsan_rust_defs@ @debug_rust_defs@
RUSTC_LINK_FLAGS =
# This avoids issues with stderr being double provided with clang + asan.
RUST_LDFLAGS = -ldl -lpthread -lgcc_s -lc -lm -lrt -lutil
endif
RUST_DEFINES = -DRUST_ENABLE
if RUST_ENABLE_OFFLINE
RUST_OFFLINE = --locked --offline
else
RUST_OFFLINE =
endif
if CLANG_ENABLE
CLANG_ON = 1
CLANG_LDFLAGS = -latomic -fuse-ld=lld
EXPORT_LDFLAGS =
else
CLANG_ON = 0
CLANG_LDFLAGS =
if DEBUG
EXPORT_LDFLAGS = -rdynamic
endif
endif
REWRITERS_INCLUDES = -I$(srcdir)/src/rewriters/
SVRCORE_INCLUDES = -I$(srcdir)/src/svrcore/src/
if CLANG_ENABLE
# clang complains about the -U.
DS_DEFINES = -DBUILD_NUM=$(BUILDNUM) -DVENDOR="\"$(vendor)\"" -DBRAND="\"$(brand)\"" -DCAPBRAND="\"$(capbrand)\""
else
# the -U undefines these symbols - should use the corresponding DS_ ones instead - see configure.ac
DS_DEFINES = -DBUILD_NUM=$(BUILDNUM) -DVENDOR="\"$(vendor)\"" -DBRAND="\"$(brand)\"" -DCAPBRAND="\"$(capbrand)\"" \
-UPACKAGE_VERSION -UPACKAGE_TARNAME -UPACKAGE_STRING -UPACKAGE_BUGREPORT
endif
DS_INCLUDES = -I$(srcdir)/ldap/include -I$(srcdir)/ldap/servers/slapd -I$(srcdir)/include -I.
if enable_asan
ASAN_ON = 1
SANITIZER = ASAN
else
ASAN_ON = 0
endif
if enable_msan
MSAN_ON = 1
SANITIZER = MSAN
else
MSAN_ON = 0
endif
if enable_tsan
TSAN_ON = 1
SANITIZER = TSAN
else
TSAN_ON = 0
endif
if enable_ubsan
UBSAN_ON = 1
SANITIZER = UBSAN
else
UBSAN_ON = 0
endif
if with_systemd
WITH_SYSTEMD = 1
else
WITH_SYSTEMD = 0
endif
# these paths are dependent on the settings of prefix and exec_prefix which may be specified
# at make time. So we cannot use AC_DEFINE in the configure.ac because that would set the
# values prior to their being defined. Defining them here ensures that they are properly
# expanded before use. See create_instance.h for more details. The quoting ensures that
# the values are quoted for the shell command, and the value expands to a quoted string
# value in the header file e.g.
# #define LOCALSTATEDIR "/var"
# without the quotes, it would be
# #define LOCALSTATEDIR /var
# which would be an error
PATH_DEFINES = -DLOCALSTATEDIR="\"$(localstatedir)\"" -DSYSCONFDIR="\"$(sysconfdir)\"" \
-DLIBDIR="\"$(libdir)\"" -DBINDIR="\"$(bindir)\"" \
-DDATADIR="\"$(datadir)\"" -DDOCDIR="\"$(docdir)\"" \
-DSBINDIR="\"$(sbindir)\"" -DPLUGINDIR="\"$(serverplugindir)\"" \
-DTEMPLATEDIR="\"$(sampledatadir)\"" -DSYSTEMSCHEMADIR="\"$(systemschemadir)\"" \
-DLOCALRUNDIR="\"$(localrundir)\""
# Now that we have all our defines in place, setup the CPPFLAGS
# These flags are the "must have" for all components
AM_CPPFLAGS = $(DEBUG_DEFINES) $(PROFILING_DEFINES) $(SYSTEMTAP_DEFINES) $(RUST_DEFINES)
AM_CFLAGS = $(DEBUG_CFLAGS) $(GCCSEC_CFLAGS) $(ASAN_CFLAGS) $(MSAN_CFLAGS) $(TSAN_CFLAGS) $(UBSAN_CFLAGS)
AM_CXXFLAGS = $(DEBUG_CXXFLAGS) $(GCCSEC_CFLAGS) $(ASAN_CFLAGS) $(MSAN_CFLAGS) $(TSAN_CFLAGS) $(UBSAN_CFLAGS)
# Flags for Directory Server
# WARNING: This needs a clean up, because slap.h is a horrible mess and is publically exposed!
DSPLUGIN_CPPFLAGS = $(DS_DEFINES) $(DS_INCLUDES) $(PATH_DEFINES) $(SYSTEMD_DEFINES) @openldap_inc@ $(NSS_CFLAGS) $(NSPR_INCLUDES) $(SYSTEMD_CFLAGS)
# This should give access to internal headers only for tests!!!
DSINTERNAL_CPPFLAGS = -I$(srcdir)/include/ldaputil
# Flags for Datastructure Library
#------------------------
# Linker Flags
#------------------------
CMOCKA_LINKS = $(CMOCKA_LIBS)
PROFILING_LINKS = @profiling_links@
NSPR_LINK = $(NSPR_LIBS)
NSS_LINK = $(NSS_LIBS)
# OpenLDAP 2.5 and newer versions don't have libldap_r shared library (only libldap)
# For the older versions we should compile with libldap_r
if WITH_LIBLDAP_R
LDAPSDK_LINK = @openldap_lib@ -lldap_r@ol_libver@ @ldap_lib_ldif@ -llber@ol_libver@
else
LDAPSDK_LINK = @openldap_lib@ -lldap@ol_libver@ @ldap_lib_ldif@ -llber@ol_libver@
endif
ldaplib = @ldaplib@
ldaplib_defs = @ldaplib_defs@
DB_LINK = @db_lib@ -ldb-@db_libver@ -llmdb
DB_INC = @db_inc@
DB_IMPL = libback-ldbm.la
SASL_LINK = $(SASL_LIBS)
NETSNMP_LINK = @netsnmp_lib@ @netsnmp_link@
PAM_LINK = -lpam
EVENT_LINK = $(EVENT_LIBS)
PW_CRACK_LINK = -lcrack
ZLIB_LINK = -lz
JSON_C_LINK = -ljson-c
LIBSOCKET=@LIBSOCKET@
LIBNSL=@LIBNSL@
LIBDL=@LIBDL@
LIBCSTD=@LIBCSTD@
LIBCRUN=@LIBCRUN@
THREADLIB=@THREADLIB@
LIBCRYPT=@LIBCRYPT@
# We need to make sure that libpthread is linked before libc on HP-UX.
if HPUX
AM_LDFLAGS = -lpthread
else
#AM_LDFLAGS = -Wl,-z,defs
AM_LDFLAGS = $(ZLIB_LINK) $(JSON_C_LINK) $(PW_CRACK_LINK) $(RUST_LDFLAGS) $(ASAN_CFLAGS) $(MSAN_CFLAGS) $(TSAN_CFLAGS) $(UBSAN_CFLAGS) $(PROFILING_LINKS) $(CLANG_LDFLAGS) $(EXPORT_LDFLAGS)
endif #end hpux
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info
# So, libtool library versions are described by three integers:
#
# current
#
# The most recent interface number that this library implements.
# revision
#
# The implementation number of the current interface.
# age
#
# The difference between the newest and oldest interfaces that this library implements. In other words, the library implements all the interface numbers in the range from number current - age to current.
#
# Here are a set of rules to help you update your library version information:
#
# Start with version information of ‘0:0:0’ for each libtool library.
# Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
# If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
# If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
# If any interfaces have been added since the last public release, then increment age.
# If any interfaces have been removed or changed since the last public release, then set age to 0.
SLAPD_LDFLAGS = -version-info 1:0:1
#------------------------
# Generated Sources
#------------------------
BUILT_SOURCES = dberrstrs.h rust-slapi-private.h rust-nsslapd-private.h \
$(POLICY_FC)
if enable_posix_winsync
LIBPOSIX_WINSYNC_PLUGIN = libposix-winsync-plugin.la
endif
CLEANFILES = dberrstrs.h ns-slapd.properties \
ldap/admin/src/template-initconfig \
ldap/ldif/template-baseacis.ldif ldap/ldif/template-bitwise.ldif ldap/ldif/template-country.ldif \
ldap/ldif/template-dnaplugin.ldif ldap/ldif/template-domain.ldif ldap/ldif/template-dse.ldif \
ldap/ldif/template-dse-minimal.ldif \
ldap/ldif/template-ldapi-autobind.ldif ldap/ldif/template-ldapi-default.ldif \
ldap/ldif/template-ldapi.ldif ldap/ldif/template-locality.ldif ldap/ldif/template-org.ldif \
ldap/ldif/template-orgunit.ldif ldap/ldif/template-pampta.ldif ldap/ldif/template-sasl.ldif \
ldap/ldif/template-state.ldif ldap/ldif/template-suffix-db.ldif \
doxyfile.stamp rust-slapi-private.h\
$(NULL)
clean-local:
-rm -rf dist
-rm -rf $(abs_top_builddir)/html
-rm -rf $(abs_top_builddir)/man/man3
-rm -rf $(abs_top_builddir)/rs
dberrstrs.h: Makefile $(srcdir)/ldap/servers/slapd/mkDBErrStrs.py $(srcdir)/ldap/servers/slapd/back-ldbm/dbimpl.h
$(srcdir)/ldap/servers/slapd/mkDBErrStrs.py -i $(srcdir)/ldap/servers/slapd/back-ldbm -o .
#------------------------
# Install Paths
#------------------------
prefixdir = @prefixdir@
configdir = $(sysconfdir)@configdir@
sampledatadir = $(datadir)@sampledatadir@
systemschemadir = $(datadir)@systemschemadir@
propertydir = $(datadir)@propertydir@
schemadir = $(sysconfdir)@schemadir@
serverdir = $(libdir)/@serverdir@
serverplugindir = $(libdir)@serverplugindir@
taskdir = $(datadir)@scripttemplatedir@
systemdsystemunitdir = @with_systemdsystemunitdir@
systemdsystemunitdropindir = @with_systemdsystemunitdir@/$(PACKAGE_NAME)@.service.d
systemdsystemconfdir = @with_systemdsystemconfdir@
systemdgroupname = @with_systemdgroupname@
initdir = @initdir@
initconfigdir = $(sysconfdir)@initconfigdir@
instconfigdir = @instconfigdir@
perldir = $(libdir)@perldir@
pythondir = $(libdir)@pythondir@
infdir = $(datadir)@infdir@
mibdir = $(datadir)@mibdir@
updatedir = $(datadir)@updatedir@
pkgconfigdir = $(libdir)/pkgconfig
serverincdir = $(includedir)/@serverincdir@
gdbautoloaddir = $(prefixdir)/share/gdb/auto-load$(sbindir)
cockpitdir = $(prefixdir)/share/cockpit@cockpitdir@
metainfodir = $(prefixdir)/share/metainfo/389-console
tmpfiles_d = @tmpfiles_d@
# This has to be hardcoded to /lib - $libdir changes between lib/lib64, but
# sysctl.d is always in /lib.
sysctldir = @prefixdir@/lib/sysctl.d
defaultuser=@defaultuser@
defaultgroup=@defaultgroup@
#------------------------
# Build Products
#------------------------
sbin_PROGRAMS = ns-slapd ldap-agent
bin_PROGRAMS = dbscan \
ldclt \
pwdhash
# ----------------------------------------------------------------------------------------
# This odd looking definition is to keep the libraries in ORDER that they are needed. rsds
# is needed by sds, which is needed by ns. So we have a blank LTLIB, then append in order
# based on defines
# ----------------------------------------------------------------------------------------
server_LTLIBRARIES = libslapd.la libldaputil.la libns-dshttpd.la librewriters.la
lib_LTLIBRARIES = libsvrcore.la
# this is how to add optional plugins
if enable_pam_passthru
LIBPAM_PASSTHRU_PLUGIN = libpam-passthru-plugin.la
enable_pam_passthru = 1
endif
if enable_dna
LIBDNA_PLUGIN = libdna-plugin.la
enable_dna = 1
endif
if enable_bitwise
LIBBITWISE_PLUGIN = libbitwise-plugin.la
enable_bitwise = 1
endif
if enable_acctpolicy
LIBACCTPOLICY_PLUGIN = libacctpolicy-plugin.la
LIBACCTPOLICY_SCHEMA = $(srcdir)/ldap/schema/60acctpolicy.ldif
enable_acctpolicy = 1
endif
serverplugin_LTLIBRARIES = libacl-plugin.la \
libaddn-plugin.la \
libattr-unique-plugin.la \
libautomember-plugin.la libback-ldbm.la libchainingdb-plugin.la \
libcollation-plugin.la libcos-plugin.la libderef-plugin.la \
libpbe-plugin.la libdistrib-plugin.la \
liblinkedattrs-plugin.la libmanagedentries-plugin.la \
libmemberof-plugin.la libpassthru-plugin.la libpwdstorage-plugin.la \
libcontentsync-plugin.la \
libreferint-plugin.la libreplication-plugin.la libretrocl-plugin.la \
libroles-plugin.la libstatechange-plugin.la libsyntax-plugin.la \
libviews-plugin.la libschemareload-plugin.la libusn-plugin.la \
libacctusability-plugin.la librootdn-access-plugin.la \
libwhoami-plugin.la $(LIBACCTPOLICY_PLUGIN) \
$(LIBPAM_PASSTHRU_PLUGIN) $(LIBDNA_PLUGIN) \
$(LIBBITWISE_PLUGIN) $(LIBPRESENCE_PLUGIN) $(LIBPOSIX_WINSYNC_PLUGIN) \
libentryuuid-plugin.la libentryuuid-syntax-plugin.la libpwdchan-plugin.la
noinst_LIBRARIES = libavl.a
dist_noinst_HEADERS = \
include/i18n.h \
include/netsite.h \
include/base/crit.h \
include/base/dbtbase.h \
include/base/ereport.h \
include/base/file.h \
include/base/fsmutex.h \
include/base/plist.h \
include/base/pool.h \
include/base/shexp.h \
include/base/systems.h \
include/base/systhr.h \
include/base/util.h \
include/ldaputil/cert.h \
include/ldaputil/certmap.h \
include/ldaputil/dbconf.h \
include/ldaputil/encode.h \
include/ldaputil/errors.h \
include/ldaputil/init.h \
include/ldaputil/ldapauth.h \
include/ldaputil/ldaputil.h \
include/libaccess/aclerror.h \
include/libaccess/acleval.h \
include/libaccess/aclglobal.h \
include/libaccess/acl.h \
include/libaccess/aclproto.h \
include/libaccess/aclstruct.h \
include/libaccess/attrec.h \
include/libaccess/authdb.h \
include/libaccess/dbtlibaccess.h \
include/libaccess/dnfstruct.h \
include/libaccess/ipfstruct.h \
include/libaccess/las.h \
include/libaccess/nsautherr.h \
include/libaccess/nsauth.h \
include/libaccess/nserror.h \
include/libaccess/symbols.h \
include/libaccess/userauth.h \
include/libaccess/usi.h \
include/libaccess/usrcache.h \
include/libadmin/dbtlibadmin.h \
include/libadmin/libadmin.h \
include/public/netsite.h \
include/public/nsapi.h \
include/public/base/systems.h \
include/public/nsacl/aclapi.h \
include/public/nsacl/acldef.h \
include/public/nsacl/nserrdef.h \
include/public/nsacl/plistdef.h \
ldap/include/avl.h \
ldap/include/dblayer.h \
ldap/include/disptmpl.h \
ldap/include/ldaprot.h \
ldap/include/portable.h \
ldap/include/regex.h \
ldap/include/srchpref.h \
ldap/include/sysexits-compat.h \
ldap/servers/plugins/addn/addn.h \
ldap/servers/plugins/collation/config.h \
ldap/servers/plugins/collation/collate.h \
ldap/servers/plugins/collation/orfilter.h \
ldap/servers/plugins/chainingdb/cb.h \
ldap/servers/plugins/deref/deref.h \
ldap/servers/plugins/acctpolicy/acctpolicy.h \
ldap/servers/plugins/posix-winsync/posix-wsp-ident.h \
ldap/servers/plugins/posix-winsync/posix-group-func.h \
ldap/servers/plugins/roles/roles_cache.h \
ldap/servers/plugins/usn/usn.h \
ldap/servers/plugins/pwdstorage/pwdstorage.h \
ldap/servers/plugins/pwdstorage/md5.h \
ldap/servers/plugins/acl/acl.h \
ldap/servers/plugins/linkedattrs/linked_attrs.h \
ldap/servers/plugins/rootdn_access/rootdn_access.h \
ldap/servers/plugins/acct_usability/acct_usability.h \
ldap/servers/plugins/retrocl/retrocl.h \
ldap/servers/plugins/uiduniq/plugin-utils.h \
ldap/servers/plugins/memberof/memberof.h \
ldap/servers/plugins/replication/cl5_api.h \
ldap/servers/plugins/replication/llist.h \
ldap/servers/plugins/replication/repl_shared.h \
ldap/servers/plugins/replication/csnpl.h \
ldap/servers/plugins/replication/cl5.h \
ldap/servers/plugins/replication/repl-session-plugin.h \
ldap/servers/plugins/replication/windows_prot_private.h \
ldap/servers/plugins/replication/repl_helper.h \
ldap/servers/plugins/replication/repl5.h \
ldap/servers/plugins/replication/cl5_test.h \
ldap/servers/plugins/replication/repl5_ruv.h \
ldap/servers/plugins/replication/cl5_clcache.h \
ldap/servers/plugins/replication/cl_crypt.h \
ldap/servers/plugins/replication/urp.h \
ldap/servers/plugins/replication/winsync-plugin.h \
ldap/servers/plugins/replication/windowsrepl.h \
ldap/servers/plugins/replication/repl5_prot_private.h \
ldap/servers/plugins/pam_passthru/pam_passthru.h \
ldap/servers/plugins/syntaxes/syntax.h \
ldap/servers/plugins/cos/cos_cache.h \
ldap/servers/plugins/sync/sync.h \
ldap/servers/plugins/passthru/passthru.h \
ldap/servers/plugins/rever/rever.h \
ldap/servers/plugins/automember/automember.h \
ldap/servers/plugins/mep/mep.h \
ldap/servers/slapd/agtmmap.h \
ldap/servers/slapd/auth.h \
ldap/servers/slapd/csngen.h \
ldap/servers/slapd/disconnect_errors.h \
ldap/servers/slapd/disconnect_error_strings.h \
ldap/servers/slapd/fe.h \
ldap/servers/slapd/filter.h \
ldap/servers/slapd/getopt_ext.h \
ldap/servers/slapd/getsocketpeer.h \
ldap/servers/slapd/intrinsics.h \
ldap/servers/slapd/log.h \
ldap/servers/slapd/openldapber.h \
ldap/servers/slapd/pblock_v3.h \
ldap/servers/slapd/poll_using_select.h \
ldap/servers/slapd/prerrstrs.h \
ldap/servers/slapd/protect_db.h \
ldap/servers/slapd/proto-slap.h \
ldap/servers/slapd/pw.h \
ldap/servers/slapd/pw_verify.h \
ldap/servers/slapd/secerrstrs.h \
ldap/servers/slapd/slap.h \
ldap/servers/slapd/slapi_pal.h \
ldap/servers/slapd/slapi-plugin-compat4.h \
ldap/servers/slapd/slapi-plugin.h \
ldap/servers/slapd/slapi-private.h \
ldap/servers/slapd/snmp_collator.h \
ldap/servers/slapd/sslerrstrs.h \
ldap/servers/slapd/statechange.h \
ldap/servers/slapd/uuid.h \
ldap/servers/slapd/vattr_spi.h \
ldap/servers/slapd/views.h \
ldap/servers/slapd/back-ldbm/attrcrypt.h \
ldap/servers/slapd/back-ldbm/back-ldbm.h \
ldap/servers/slapd/back-ldbm/dbimpl.h \
ldap/servers/slapd/back-ldbm/dblayer.h \
ldap/servers/slapd/back-ldbm/import.h \
ldap/servers/slapd/back-ldbm/ldbm_config.h \
ldap/servers/slapd/back-ldbm/proto-back-ldbm.h \
ldap/servers/slapd/back-ldbm/vlv_key.h \
ldap/servers/slapd/back-ldbm/vlv_srch.h \
ldap/servers/slapd/tools/ldaptool.h \
ldap/servers/slapd/tools/ldaptool-sasl.h \
ldap/servers/slapd/tools/ldclt/ldap-private.h \
ldap/servers/slapd/tools/ldclt/ldclt.h \
ldap/servers/slapd/tools/ldclt/port.h \
ldap/servers/slapd/tools/ldclt/remote.h \
ldap/servers/slapd/tools/ldclt/scalab01.h \
ldap/servers/slapd/tools/ldclt/utils.h \
ldap/servers/snmp/ldap-agent.h \
ldap/systools/pio.h \
lib/base/lexer_pvt.h \
lib/base/plist_pvt.h \
lib/ldaputil/ldaputili.h \
lib/libaccess/access_plhash.h \
lib/libaccess/aclcache.h \
lib/libaccess/aclpriv.h \
lib/libaccess/aclscan.h \
lib/libaccess/acl.tab.h \
lib/libaccess/aclutil.h \
lib/libaccess/lasdns.h \
lib/libaccess/las.h \
lib/libaccess/lasip.h \
lib/libaccess/ldapauth.h \
lib/libaccess/oneeval.h \
lib/libaccess/parse.h \
lib/libaccess/permhash.h \
lib/libsi18n/getstrmem.h \
lib/libsi18n/gsslapd.h \
lib/libsi18n/reshash.h \
lib/libsi18n/txtfile.h
if ENABLE_CMOCKA
dist_noinst_HEADERS += \
test/test_slapd.h
endif
dist_noinst_DATA = \
$(srcdir)/buildnum.py \
$(srcdir)/ldap/admin/src/*.in \
$(srcdir)/ldap/admin/src/scripts/*.py \
$(srcdir)/ldap/admin/src/scripts/ds-replcheck \
$(srcdir)/ldap/ldif/*.in \
$(srcdir)/ldap/ldif/*.ldif \
$(srcdir)/ldap/schema/*.ldif \
$(srcdir)/ldap/schema/slapd-collations.conf \
$(srcdir)/ldap/servers/snmp/ldap-agent.conf \
$(srcdir)/ldap/servers/snmp/redhat-directory.mib \
$(srcdir)/ldap/servers/slapd/mkDBErrStrs.py \
$(srcdir)/lib/ldaputil/certmap.conf \
$(srcdir)/m4 \
$(srcdir)/rpm/389-ds-base.spec.in \
$(srcdir)/rpm/389-ds-base-devel.README \
$(srcdir)/rpm/389-ds-base-git.sh \
$(srcdir)/README.md \
$(srcdir)/LICENSE \
$(srcdir)/LICENSE.* \
$(srcdir)/VERSION.sh \
$(srcdir)/wrappers/*.in \
$(srcdir)/dirsrvtests \
$(srcdir)/src/lib389/setup.py \
$(srcdir)/src/lib389
#------------------------
# Installed Files
#------------------------
config_DATA = $(srcdir)/lib/ldaputil/certmap.conf \
$(srcdir)/ldap/schema/slapd-collations.conf \
ldap/servers/snmp/ldap-agent.conf
# the schema files in this list are either not
# standard schema, not tested, or not compatible
# with the default schema e.g. there is
# considerable overlap of 60changelog.ldif and 01common.ldif
# and 60inetmail.ldif and 50ns-mail.ldif among others
sampledata_DATA = $(srcdir)/ldap/ldif/Ace.ldif \
$(srcdir)/ldap/ldif/European.ldif \
$(srcdir)/ldap/ldif/Eurosuffix.ldif \
$(srcdir)/ldap/ldif/Example.ldif \
$(srcdir)/ldap/ldif/Example-roles.ldif \
$(srcdir)/ldap/ldif/Example-views.ldif \
$(srcdir)/ldap/ldif/template.ldif \
ldap/ldif/template-dse.ldif \
ldap/ldif/template-dse-minimal.ldif \
ldap/ldif/template-suffix-db.ldif \
ldap/ldif/template-ldapi.ldif \
ldap/ldif/template-ldapi-default.ldif \
ldap/ldif/template-ldapi-autobind.ldif \
ldap/ldif/template-org.ldif \
ldap/ldif/template-domain.ldif \
ldap/ldif/template-state.ldif \
ldap/ldif/template-locality.ldif \
ldap/ldif/template-country.ldif \
ldap/ldif/template-orgunit.ldif \
ldap/ldif/template-baseacis.ldif \
ldap/ldif/template-sasl.ldif \
$(srcdir)/ldap/schema/10rfc2307compat.ldif \
$(srcdir)/ldap/schema/10rfc2307bis.ldif \
$(srcdir)/ldap/schema/60changelog.ldif \
$(srcdir)/ldap/schema/60inetmail.ldif \
$(srcdir)/ldap/schema/60krb5kdc.ldif \
$(srcdir)/ldap/schema/60kerberos.ldif \
$(srcdir)/ldap/schema/60nis.ldif \
$(srcdir)/ldap/schema/60qmail.ldif \
$(srcdir)/ldap/schema/60radius.ldif \
$(srcdir)/ldap/schema/60rfc4876.ldif \
$(srcdir)/ldap/schema/60samba.ldif \
$(srcdir)/ldap/schema/60sendmail.ldif \
$(srcdir)/ldap/schema/dsee.schema \
$(srcdir)/src/lib389/lib389/cli_ctl/dbgen-FamilyNames \
$(srcdir)/src/lib389/lib389/cli_ctl/dbgen-GivenNames \
$(srcdir)/src/lib389/lib389/cli_ctl/dbgen-OrgUnits \
$(LIBPRESENCE_SCHEMA)
systemschema_DATA = $(srcdir)/ldap/schema/00core.ldif \
$(srcdir)/ldap/schema/01core389.ldif \
$(srcdir)/ldap/schema/02common.ldif \
$(srcdir)/ldap/schema/05rfc2927.ldif \
$(srcdir)/ldap/schema/05rfc4523.ldif \
$(srcdir)/ldap/schema/05rfc4524.ldif \
$(srcdir)/ldap/schema/06inetorgperson.ldif \
$(srcdir)/ldap/schema/10automember-plugin.ldif \
$(srcdir)/ldap/schema/10dna-plugin.ldif \
$(srcdir)/ldap/schema/10mep-plugin.ldif \
$(srcdir)/ldap/schema/10rfc2307compat.ldif \
$(srcdir)/ldap/schema/20subscriber.ldif \
$(srcdir)/ldap/schema/25java-object.ldif \
$(srcdir)/ldap/schema/28pilot.ldif \
$(srcdir)/ldap/schema/30ns-common.ldif \
$(srcdir)/ldap/schema/50ns-admin.ldif \
$(srcdir)/ldap/schema/50ns-certificate.ldif \
$(srcdir)/ldap/schema/50ns-directory.ldif \
$(srcdir)/ldap/schema/50ns-mail.ldif \
$(srcdir)/ldap/schema/50ns-value.ldif \
$(srcdir)/ldap/schema/50ns-web.ldif \
$(srcdir)/ldap/schema/60pam-plugin.ldif \
$(srcdir)/ldap/schema/60posix-winsync-plugin.ldif \
$(srcdir)/ldap/schema/60autofs.ldif \
$(srcdir)/ldap/schema/60eduperson.ldif \
$(srcdir)/ldap/schema/60mozilla.ldif \
$(srcdir)/ldap/schema/60pureftpd.ldif \
$(srcdir)/ldap/schema/60rfc2739.ldif \
$(srcdir)/ldap/schema/60rfc3712.ldif \
$(srcdir)/ldap/schema/60sabayon.ldif \
$(srcdir)/ldap/schema/60samba3.ldif \
$(srcdir)/ldap/schema/60sudo.ldif \
$(srcdir)/ldap/schema/60trust.ldif \
$(srcdir)/ldap/schema/60nss-ldap.ldif \
$(srcdir)/ldap/schema/03entryuuid.ldif \
$(LIBACCTPOLICY_SCHEMA)
schema_DATA = $(srcdir)/ldap/schema/99user.ldif
libexec_SCRIPTS =
if SYSTEMD
libexec_SCRIPTS += wrappers/ds_systemd_ask_password_acl wrappers/ds_selinux_restorecon.sh
endif
if ENABLE_COCKPIT
install-data-hook:
if [ "$(srcdir)" != "." ]; then cp -r $(srcdir)/src/cockpit src ; fi
mkdir -p src/cockpit/389-console/cockpit_dist/
mkdir -p $(DESTDIR)$(cockpitdir)
rsync -rupE src/cockpit/389-console/cockpit_dist/ $(DESTDIR)$(cockpitdir)
mkdir -p $(DESTDIR)$(metainfodir)
rsync -up src/cockpit/389-console/org.port389.cockpit_console.metainfo.xml $(DESTDIR)$(metainfodir)/org.port389.cockpit_console.metainfo.xml
endif
sbin_SCRIPTS =
bin_SCRIPTS =
# For scripts that are "as is".
dist_bin_SCRIPTS = ldap/admin/src/scripts/ds-replcheck \
ldap/admin/src/scripts/ds-logpipe.py
dist_bin_SCRIPTS += ldap/admin/src/logconv.pl
python_DATA = ldap/admin/src/scripts/failedbinds.py \
ldap/admin/src/scripts/logregex.py
gdbautoload_DATA = ldap/admin/src/scripts/ns-slapd-gdb.py
dist_sysctl_DATA = ldap/admin/src/70-dirsrv.conf
if SYSTEMD
# yes, that is an @ in the filename . . .
systemdsystemunit_DATA = wrappers/$(PACKAGE_NAME)@.service \
wrappers/$(systemdgroupname) \
wrappers/$(PACKAGE_NAME)-snmp.service
if with_sanitizer
systemdsystemunitdropin_DATA = wrappers/$(PACKAGE_NAME)@.service.d/xsan.conf
else
systemdsystemunitdropin_DATA = wrappers/$(PACKAGE_NAME)@.service.d/custom.conf
endif
else
if INITDDIR
init_SCRIPTS = wrappers/$(PACKAGE_NAME) \
wrappers/$(PACKAGE_NAME)-snmp
endif
endif
if INITDDIR
initconfig_DATA = ldap/admin/src/$(PACKAGE_NAME)
endif
inf_DATA = ldap/admin/src/slapd.inf \
ldap/admin/src/defaults.inf
mib_DATA = ldap/servers/snmp/redhat-directory.mib
pkgconfig_DATA = src/pkgconfig/dirsrv.pc \
src/pkgconfig/svrcore.pc
#------------------------
# header files
#------------------------
serverinc_HEADERS = ldap/servers/plugins/replication/repl-session-plugin.h \
ldap/servers/slapd/slapi_pal.h \
ldap/servers/slapd/slapi-plugin.h \
ldap/servers/plugins/replication/winsync-plugin.h
include_HEADERS = src/svrcore/src/svrcore.h
#------------------------
# man pages
#------------------------
dist_man_MANS = man/man1/dbscan.1 \
man/man1/ds-logpipe.py.1 \
man/man1/ds-replcheck.1 \
man/man1/ldap-agent.1 \
man/man1/ldclt.1 \
man/man1/logconv.pl.1 \
man/man1/pwdhash.1 \
man/man5/99user.ldif.5 \
man/man8/ns-slapd.8 \
man/man5/certmap.conf.5 \
man/man5/dirsrv.5 \
man/man5/dirsrv.systemd.5 \
man/man5/slapd-collations.conf.5
#////////////////////////////////////////////////////////////////
#
# Static Server Libraries
#
#////////////////////////////////////////////////////////////////
#------------------------
# libavl
#------------------------
libavl_a_SOURCES = ldap/libraries/libavl/avl.c
libavl_a_CPPFLAGS = $(AM_CPPFLAGS) $(DSPLUGIN_CPPFLAGS)
#------------------------
# libldaputil
#------------------------
libldaputil_la_SOURCES = lib/ldaputil/cert.c \
lib/ldaputil/certmap.c \
lib/ldaputil/dbconf.c \
lib/ldaputil/encode.c \
lib/ldaputil/errors.c \
lib/ldaputil/init.c \
lib/ldaputil/ldapauth.c \
lib/ldaputil/vtable.c
libldaputil_la_CPPFLAGS = $(AM_CPPFLAGS) $(DSPLUGIN_CPPFLAGS) $(DSINTERNAL_CPPFLAGS) -I$(srcdir)/lib/ldaputil
libldaputil_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK)
libldaputil_la_LDFLAGS = $(AM_LDFLAGS)
#////////////////////////////////////////////////////////////////
#
# Dynamic Server Libraries
#
#////////////////////////////////////////////////////////////////
#------------------------
# librewriters
#------------------------
librewriters_la_SOURCES = \
src/rewriters/adfilter.c
librewriters_la_LDFLAGS = $(AM_LDFLAGS)
librewriters_la_CPPFLAGS = $(AM_CPPFLAGS) $(REWRITERS_INCLUDES) $(DSPLUGIN_CPPFLAGS)
librewriters_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK)
#------------------------
# libsvrcore
#------------------------
libsvrcore_la_SOURCES = \
src/svrcore/src/alt.c \
src/svrcore/src/cache.c \
src/svrcore/src/errors.c \
src/svrcore/src/file.c \
src/svrcore/src/ntgetpin.c \
src/svrcore/src/ntresource.h \
src/svrcore/src/pin.c \
src/svrcore/src/pk11.c \
src/svrcore/src/std.c \
src/svrcore/src/systemd-ask-pass.c \
src/svrcore/src/std-systemd.c \
src/svrcore/src/user.c
libsvrcore_la_LDFLAGS = $(AM_LDFLAGS)
libsvrcore_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVRCORE_INCLUDES) $(DSPLUGIN_CPPFLAGS)
libsvrcore_la_LIBADD = $(NSS_LINK) $(NSPR_LINK)
noinst_LTLIBRARIES = librslapd.la librnsslapd.la libentryuuid.la libentryuuid_syntax.la \
libpwdchan.la
### Why does this exist?
#
# Both cargo and autotools are really opinionated. It's really hard to make this work. :(
#
# https://people.gnome.org/~federico/blog/librsvg-build-infrastructure.html
# https://gitlab.gnome.org/GNOME/librsvg/blob/master/Makefile.am
### Rust lib slapd components
RSLAPD_LIB = @abs_top_builddir@/rs/rslapd/@rust_target_dir@/librslapd.a
librslapd_la_SOURCES = \
src/librslapd/Cargo.toml \
src/librslapd/build.rs \
src/librslapd/src/cache.rs \
src/librslapd/src/lib.rs
librslapd_la_EXTRA = src/librslapd/Cargo.lock
@abs_top_builddir@/rs/rslapd/@rust_target_dir@/librslapd.a: $(librslapd_la_SOURCES)
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/rslapd \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo rustc $(RUST_OFFLINE) --manifest-path=$(srcdir)/src/librslapd/Cargo.toml \
$(CARGO_FLAGS) --verbose -- $(RUSTC_FLAGS) $(RUSTC_LINK_FLAGS)
# The header needs the lib build first.
rust-slapi-private.h: @abs_top_builddir@/rs/rslapd/@rust_target_dir@/librslapd.a
# Build rust ns-slapd components as a library.
RNSSLAPD_LIB = @abs_top_builddir@/rs/rnsslapd/@rust_target_dir@/librnsslapd.a
librnsslapd_la_SOURCES = \
src/librnsslapd/Cargo.toml \
src/librnsslapd/build.rs \
src/librnsslapd/src/lib.rs
librnsslapd_la_EXTRA = src/librnsslapd/Cargo.lock
@abs_top_builddir@/rs/rnsslapd/@rust_target_dir@/librnsslapd.a: $(librnsslapd_la_SOURCES)
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/rnsslapd \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo rustc $(RUST_OFFLINE) --manifest-path=$(srcdir)/src/librnsslapd/Cargo.toml \
$(CARGO_FLAGS) --verbose -- $(RUSTC_FLAGS) $(RUSTC_LINK_FLAGS)
# The header needs the lib build first.
rust-nsslapd-private.h: @abs_top_builddir@/rs/rnsslapd/@rust_target_dir@/librnsslapd.a
libslapi_r_plugin_SOURCES = \
src/slapi_r_plugin/src/backend.rs \
src/slapi_r_plugin/src/ber.rs \
src/slapi_r_plugin/src/charray.rs \
src/slapi_r_plugin/src/constants.rs \
src/slapi_r_plugin/src/dn.rs \
src/slapi_r_plugin/src/entry.rs \
src/slapi_r_plugin/src/error.rs \
src/slapi_r_plugin/src/log.rs \
src/slapi_r_plugin/src/macros.rs \
src/slapi_r_plugin/src/pblock.rs \
src/slapi_r_plugin/src/plugin.rs \
src/slapi_r_plugin/src/search.rs \
src/slapi_r_plugin/src/syntax_plugin.rs \
src/slapi_r_plugin/src/task.rs \
src/slapi_r_plugin/src/value.rs \
src/slapi_r_plugin/src/lib.rs
# Build rust ns-slapd components as a library.
ENTRYUUID_LIB = @abs_top_builddir@/rs/entryuuid/@rust_target_dir@/libentryuuid.a
libentryuuid_la_SOURCES = \
src/plugins/entryuuid/Cargo.toml \
src/plugins/entryuuid/src/lib.rs \
$(libslapi_r_plugin_SOURCES)
libentryuuid_la_EXTRA = src/plugin/entryuuid/Cargo.lock
@abs_top_builddir@/rs/entryuuid/@rust_target_dir@/libentryuuid.a: $(libentryuuid_la_SOURCES) libslapd.la libentryuuid.la
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/entryuuid \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo rustc $(RUST_OFFLINE) --manifest-path=$(srcdir)/src/plugins/entryuuid/Cargo.toml \
$(CARGO_FLAGS) --verbose -- $(RUSTC_FLAGS) $(RUSTC_LINK_FLAGS)
cp $(ENTRYUUID_LIB) @abs_top_builddir@/.libs/libentryuuid.a
ENTRYUUID_SYNTAX_LIB = @abs_top_builddir@/rs/entryuuid_syntax/@rust_target_dir@/libentryuuid_syntax.a
libentryuuid_syntax_la_SOURCES = \
src/plugins/entryuuid_syntax/Cargo.toml \
src/plugins/entryuuid_syntax/src/lib.rs \
$(libslapi_r_plugin_SOURCES)
libentryuuid_syntax_la_EXTRA = src/plugin/entryuuid_syntax/Cargo.lock
@abs_top_builddir@/rs/entryuuid_syntax/@rust_target_dir@/libentryuuid_syntax.a: $(libentryuuid_syntax_la_SOURCES) libslapd.la libentryuuid_syntax.la
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/entryuuid_syntax \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo rustc $(RUST_OFFLINE) --manifest-path=$(srcdir)/src/plugins/entryuuid_syntax/Cargo.toml \
$(CARGO_FLAGS) --verbose -- $(RUSTC_FLAGS) $(RUSTC_LINK_FLAGS)
cp $(ENTRYUUID_SYNTAX_LIB) @abs_top_builddir@/.libs/libentryuuid_syntax.a
# == pwdchan
PWDCHAN_LIB = @abs_top_builddir@/rs/pwdchan/@rust_target_dir@/libpwdchan.a
libpwdchan_la_SOURCES = \
src/plugins/pwdchan/Cargo.toml \
src/plugins/pwdchan/src/lib.rs \
$(libslapi_r_plugin_SOURCES)
libpwdchan_la_EXTRA = src/plugin/pwdchan/Cargo.lock
@abs_top_builddir@/rs/pwdchan/@rust_target_dir@/libpwdchan.a: $(libpwdchan_la_SOURCES) libslapd.la libpwdchan.la
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/pwdchan \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo rustc $(RUST_OFFLINE) --manifest-path=$(srcdir)/src/plugins/pwdchan/Cargo.toml \
$(CARGO_FLAGS) --verbose -- $(RUSTC_FLAGS) $(RUSTC_LINK_FLAGS)
cp $(PWDCHAN_LIB) @abs_top_builddir@/.libs/libpwdchan.a
# == pwdchan
EXTRA_DIST = $(librslapd_la_SOURCES) $(librslapd_la_EXTRA) \
$(libentryuuid_la_SOURCES) $(libentryuuid_la_EXTRA) \
$(libentryuuid_syntax_la_SOURCES) $(libentryuuid_syntax_la_EXTRA) \
$(libpwdchan_la_SOURCES) $(libpwdchan_la_EXTRA) \
$(librnsslapd_la_SOURCES) $(librnsslapd_la_EXTRA)
## Run rust tests
# cargo does not support offline tests :(
if RUST_ENABLE_OFFLINE
else
if enable_asan
# Distro rust tends not to have proper asan support w_ clang
else
check-local:
for thing in "librslapd" "librnsslapd" ; do \
echo \
LD_LIBRARY_PATH=$(abs_top_builddir)/.libs \
RUSTFLAGS="$(RUSTC_FLAGS)" \
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/test/$${thing} \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo test $(RUST_OFFLINE) \
--manifest-path=$(srcdir)/src/$${thing}/Cargo.toml -- --nocapture ; \
LD_LIBRARY_PATH=$(abs_top_builddir)/.libs \
RUSTFLAGS="$(RUSTC_FLAGS)" \
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/test/$${thing} \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo test $(RUST_OFFLINE) \
--manifest-path=$(srcdir)/src/$${thing}/Cargo.toml -- --nocapture ; \
done
# Plugin tests are a little different
for thing in "plugins/pwdchan" ; do \
echo \
LD_LIBRARY_PATH=$(abs_top_builddir)/.libs \
RUSTFLAGS="$(RUSTC_FLAGS)" \
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/test/$${thing} \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo test $(RUST_OFFLINE) --features=slapi_r_plugin/test_log_direct \
--manifest-path=$(srcdir)/src/$${thing}/Cargo.toml -- --nocapture ; \
LD_LIBRARY_PATH=$(abs_top_builddir)/.libs \
RUSTFLAGS="$(RUSTC_FLAGS)" \
RUST_BACKTRACE=1 RUSTC_BOOTSTRAP=1 \
CARGO_TARGET_DIR=$(abs_top_builddir)/rs/test/$${thing} \
SLAPD_DYLIB_DIR=$(abs_top_builddir)/ \
SLAPD_HEADER_DIR=$(abs_top_builddir)/ \
cargo test $(RUST_OFFLINE) --features=slapi_r_plugin/test_log_direct \