3 from samba_utils
import *
4 import samba_version
, samba3
6 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
8 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/dsgetdcname.c'''
10 SMBD_SRC_MAIN
= '''smbd/server.c'''
14 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
15 printing/print_cups.c printing/print_generic.c
16 printing/lpq_parse.c printing/load.c printing/print_standard.c
17 printing/print_iprint.c printing/printer_list.c'''
19 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
20 PRINTBACKEND_SRC
= '''printing/printing.c
21 printing/nt_printing.c
22 printing/nt_printing_tdb.c
23 printing/nt_printing_migrate_internal.c
24 printing/nt_printing_ads.c
25 printing/queue_process.c'''
27 STATUS_SRC
= '''utils/status.c utils/status_profile.c smbd/notify_internal.c'''
29 SMBCONTROL_SRC
= '''utils/smbcontrol.c'''
31 SMBTREE_SRC
= '''utils/smbtree.c'''
33 TESTPARM_SRC
= 'utils/testparm.c'
35 SMBTA_UTIL_SRC
= '''utils/smbta-util.c'''
37 TEST_LP_LOAD_SRC
= '''param/test_lp_load.c'''
39 PASSWD_UTIL_SRC
= 'utils/passwd_util.c'
41 SMBPASSWD_SRC
= '''utils/smbpasswd.c'''
43 PDBEDIT_SRC
= '''utils/pdbedit.c'''
45 SMBGET_SRC
= '''utils/smbget.c'''
47 RPCCLIENT_SRC1
= '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
48 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
49 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
50 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
51 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
52 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
53 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
54 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
55 rpcclient/cmd_winreg.c rpcclient/cmd_fss.c'''
57 RPCCLIENT_SRC
= '''${RPCCLIENT_SRC1}'''
59 LIBSMBCLIENT_THREAD_SRC
= '''libsmb/libsmb_thread_impl.c
60 libsmb/libsmb_thread_posix.c'''
62 LIBSMBSHAREMODES_SRC0
= 'libsmb/smb_share_modes.c'
64 LIBSMBSHAREMODES_SRC
= '${LIBSMBSHAREMODES_SRC0}'
66 LIB_SMBCONF_SRC
= 'lib/smbconf/smbconf_init.c lib/smbconf/smbconf_reg.c'
68 SMBCONFTORT_SRC0
= 'lib/smbconf/testsuite.c'
70 SMBCONFTORT_SRC
= '''${SMBCONFTORT_SRC0}'''
72 LIBNET_SRC
= 'libnet/libnet_join.c'
75 LIBNET_DSSYNC_SRC
= '''libnet/libnet_dssync.c
76 libnet/libnet_dssync_passdb.c
77 libnet/libnet_dssync_keytab.c'''
79 LIBNET_SAMSYNC_SRC
= '''libnet/libnet_samsync.c
80 libnet/libnet_samsync_ldif.c
81 libnet/libnet_samsync_passdb.c
82 libnet/libnet_samsync_display.c
83 libnet/libnet_samsync_keytab.c'''
85 NET_SRC1
= '''utils/net.c utils/net_ads.c utils/net_help.c
86 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
87 utils/net_time.c utils/net_lookup.c
88 utils/net_cache.c utils/net_groupmap.c
89 utils/net_idmap.c utils/net_idmap_check.c
91 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
92 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
93 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
94 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
95 utils/net_dns.c utils/net_ads_gpo.c
96 utils/net_conf.c utils/net_join.c utils/net_user.c
97 utils/net_group.c utils/net_file.c utils/net_registry.c
98 utils/net_registry_check.c
99 utils/net_dom.c utils/net_share.c
104 utils/net_rpc_trust.c
106 registry/reg_parse.c registry/reg_format.c
107 registry/reg_import.c
110 NET_SRC2
= 'utils/net_registry_util.c utils/net_help_common.c'
112 NET_SRC
= '''${NET_SRC1}
115 CUPS_SRC
= '''client/smbspool.c'''
117 NMBLOOKUP_SRC
= '''utils/nmblookup.c'''
119 SMBTORTURE_SRC1
= '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
120 torture/denytest.c torture/mangle_test.c
122 torture/test_async_echo.c
123 torture/test_addrchange.c
124 torture/test_posix_append.c
125 torture/test_nttrans_create.c
126 torture/test_nttrans_fsctl.c
127 torture/test_case_insensitive.c
128 torture/test_notify_online.c
129 torture/test_chain3.c
131 torture/test_authinfo_structs.c
132 torture/test_smbsock_any_connect.c
133 torture/test_cleanup.c
134 torture/test_ctdbconn.c
136 torture/test_notify.c
138 torture/test_dbwrap_watch.c
139 torture/test_idmap_tdb_common.c
140 torture/test_dbwrap_ctdb.c
141 torture/test_buffersize.c
142 torture/t_strappend.c'''
144 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1}
145 torture/wbc_async.c'''
147 MSGTEST_SRC
= '''torture/msgtest.c'''
149 PDBTEST_SRC
= '''torture/pdbtest.c'''
151 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c
152 torture/vfstest_chain.c'''
154 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
156 LOCKTEST2_SRC
= '''torture/locktest2.c'''
158 SMBCACLS_SRC
= '''utils/smbcacls.c'''
160 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c'''
162 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
164 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}'''
166 SHARESEC_SRC0
= 'utils/sharesec.c'
167 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
169 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
171 SMBFILTER_SRC
= '''utils/smbfilter.c'''
173 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c'''
175 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
177 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}'''
179 VLP_SRC
= '''printing/tests/vlp.c'''
181 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
183 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
185 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
187 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
191 config_h
= "../include/config.h"
193 bld
.SAMBA_BLDOPTIONS('smbd/build_options.c')
195 t
= bld
.SAMBA_GENERATOR('build_env.h',
196 source
='script/build_env.sh',
197 target
='include/build_env.h',
198 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
199 # todo: work out what is really wanted here
200 t
.env
.SRCDIR
= bld
.path
.abspath()
201 t
.env
.BUILDDIR
= bld
.path
.abspath()
203 bld
.SETUP_BUILD_GROUPS()
205 ######################## SUBSYSTEMS #################################
207 bld
.SAMBA3_LIBRARY('netapi',
208 source
='''lib/netapi/netapi.c
210 lib/netapi/libnetapi.c
211 lib/netapi/joindomain.c
212 lib/netapi/serverinfo.c
216 lib/netapi/localgroup.c
221 lib/netapi/shutdown.c
222 lib/netapi/netlogon.c''',
236 public_headers
='../source3/lib/netapi/netapi.h',
237 pc_files
='libnet/netapi.pc',
240 bld
.SAMBA3_LIBRARY('smbsharemodes',
241 source
=LIBSMBSHAREMODES_SRC
,
242 public_deps
='''talloc tdb_compat''',
243 deps
='''ccan-hash''',
244 public_headers
='include/smb_share_modes.h',
245 pc_files
='libsmb/smbsharemodes.pc',
249 bld
.SAMBA3_LIBRARY('nss_wins',
250 source
=WINBIND_WINS_NSS_SRC
,
251 deps
='''param libsmb LIBTSOCKET''',
252 realname
='libnss_wins.so.2',
253 soname
='libnss_wins.so',
256 bld
.SAMBA3_LIBRARY('gse',
257 source
='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
258 deps
='krb5samba gensec param KRBCLIENT secrets3',
259 private_library
=True)
261 bld
.SAMBA3_LIBRARY('msrpc3',
262 source
='''rpc_client/cli_pipe.c
263 rpc_client/rpc_transport_np.c
264 rpc_client/rpc_transport_sock.c
265 rpc_client/rpc_transport_tstream.c
266 librpc/rpc/dcerpc_helpers.c''',
267 deps
='''ndr ndr-standard
268 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
269 LIBTSOCKET gse dcerpc-binding
272 private_library
=True)
274 bld
.SAMBA3_LIBRARY('gpo',
275 source
='''../libgpo/gpo_ldap.c
278 ../libgpo/gpo_fetch.c
279 libgpo/gpo_filesync.c
282 deps
='talloc ads TOKEN_UTIL gpext auth',
283 private_library
=True)
285 bld
.SAMBA3_SUBSYSTEM('AVAHI',
286 source
='lib/avahi.c smbd/avahi_register.c',
287 deps
='avahi-common avahi-client',
288 enabled
=bld
.env
.with_avahi
)
290 bld
.SAMBA3_SUBSYSTEM('GROUPDB',
291 source
='groupdb/mapping.c groupdb/mapping_tdb.c',
294 bld
.SAMBA3_SUBSYSTEM('TLDAP',
295 source
='''lib/tldap.c
298 deps
='asn1util LIBTSOCKET')
300 # libpdb.so should not expose internal symbols that are only usable
301 # to the statically linked modules that are merged into libpdb.
302 # Note that we always filter these symbols out in libpdb, even
303 # when modules are not linked statically. In the latter case
304 # symbols will not be present in the libpdb anyway so no hurt is
305 # done to the version script.
306 static_pdb_match
= ['tdbsam', 'smbpasswd', 'wbc_sam']
307 private_pdb_match
= []
309 # AD DC module when linked statically will pull in few source4/winbind
310 # dependencies which are not used outside AD DC module
311 static_pdb_match
.append('samba_dsdb')
312 private_pdb_match
.append('!idmap_init')
313 private_pdb_match
.append('!idmap_sids_to_xids')
314 private_pdb_match
.append('!idmap_xids_to_sids')
316 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
317 static_pdb_match
= static_pdb_match
+ ['ldap', 'ipa', 'nds']
318 ldapsam_pdb_match
= ['!priv2ld', '!smbldap_search_domain_info',
319 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
320 '!dominfo_attr_list', '!get_attr_key2string',
321 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
323 private_pdb_match
.append('!pdb_nds_*')
324 private_pdb_match
.append('!pdb_init_ldapsam')
325 private_pdb_match
.append('!pdb_ldapsam_init*')
326 private_pdb_match
= private_pdb_match
+ ldapsam_pdb_match
328 private_pdb_match
= private_pdb_match
+ map(lambda x
: '!pdb_%s_init' % x
, static_pdb_match
)
330 bld
.SAMBA3_LIBRARY('pdb',
331 source
='''passdb/pdb_get_set.c
336 lib/util_sid_passdb.c
345 passdb/pdb_interface.c
347 passdb/pdb_unixid.c''',
348 deps
='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping',
349 private_library
=False,
351 public_headers_install
=True,
355 passdb/lookup_sid.h''',
356 abi_match
=private_pdb_match
,
357 abi_directory
='passdb/ABI',
360 bld
.SAMBA3_LIBRARY('smbldaphelper',
361 source
='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
362 deps
='smbldap secrets3',
363 allow_undefined_symbols
=True,
364 enabled
=bld
.CONFIG_SET('HAVE_LDAP'),
365 private_library
=True)
367 bld
.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
368 source
='lib/server_mutex.c',
371 bld
.SAMBA3_SUBSYSTEM('PARAM_UTIL',
372 source
='param/util.c',
375 bld
.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
376 source
='param/loadparm_ctx.c',
377 deps
='''talloc s3_param_h param''',
380 bld
.SAMBA_GENERATOR('param/param_global_h',
381 source
= '../script/mkparamdefs.pl param/loadparm.c ../lib/param/param_functions.c',
382 target
='param/param_global.h',
383 rule
='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
385 bld
.SAMBA3_SUBSYSTEM('param',
386 source
='''param/loadparm.c
388 lib/ldap_debug_handler.c
390 deps
='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h param/param_global_h cups''')
392 bld.SAMBA3_PYTHON('pys3param
',
393 source='param
/pyparam
.c
',
395 public_deps='samba
-hostconfig pytalloc
-util talloc
',
396 realname='samba
/samba3
/param
.so
')
398 bld.SAMBA3_SUBSYSTEM('param_service
',
399 source='param
/service
.c
',
400 deps = 'USER_UTIL param PRINTING
')
402 # this includes only the low level parse code, not stuff
403 # that requires knowledge of security contexts
404 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS
',
405 source='registry
/reg_parse_prs
.c
')
407 bld.SAMBA3_SUBSYSTEM('REGFIO
',
408 source='registry
/regfio
.c
',
409 deps='samba
-util REG_PARSE_PRS
')
411 bld.SAMBA3_SUBSYSTEM('REG_API_REGF
',
412 source='registry
/reg_api_regf
.c
',
415 bld.SAMBA3_LIBRARY('smbregistry
',
416 source='''registry/reg_api.c
417 registry/reg_dispatcher.c
418 registry/reg_cachehook.c
419 registry/reg_objects.c
420 registry/reg_util_internal.c
422 registry/reg_backend_db.c
423 registry/reg_parse_internal.c
426 registry/reg_init_basic.c''',
427 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
428 replace util_reg samba-util samba-security
429 errors3 dbwrap samba3-util''',
430 allow_undefined_symbols=True,
431 private_library=True)
433 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF
',
434 source='''registry/reg_backend_smbconf.c
435 registry/reg_init_smbconf.c
436 registry/reg_util_token.c
437 registry/reg_api_util.c''',
440 bld.SAMBA3_SUBSYSTEM('REG_FULL
',
441 source='''registry/reg_backend_printing.c
442 registry/reg_backend_shares.c
443 registry/reg_backend_netlogon_params.c
444 registry/reg_backend_prod_options.c
445 registry/reg_backend_tcpip_params.c
446 registry/reg_backend_hkpt_params.c
447 registry/reg_backend_current_version.c
448 registry/reg_backend_perflib.c
449 registry/reg_init_full.c
450 registry/reg_perfcount.c''',
451 deps='REG_SMBCONF tdb
-wrap3
')
453 bld.SAMBA3_LIBRARY('popt_samba3
',
454 source='lib
/popt_common
.c
',
455 deps='popt samba
-util util_cmdline
',
456 private_library=True)
458 bld.SAMBA3_LIBRARY('util_cmdline
',
459 source='lib
/util_cmdline
.c
',
461 private_library=True)
463 bld.SAMBA3_SUBSYSTEM('KRBCLIENT
',
464 source='libads
/kerberos
.c libads
/ads_status
.c
',
465 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB
')
467 bld.SAMBA3_SUBSYSTEM('samba3util
',
468 source='''lib/system.c
476 lib/util_transfer_file.c
478 deps='ndr samba
-security NDR_SECURITY samba
-util util_tdb ccan
-hash')
481 bld.SAMBA3_SUBSYSTEM('TDB_LIB
',
482 source='''lib/dbwrap/dbwrap_open.c
483 lib/dbwrap/dbwrap_ctdb.c
484 lib/dbwrap/dbwrap_watch.c
488 bld.SAMBA3_SUBSYSTEM('samba3core
',
489 source='''lib/messages.c
500 ../lib/util/debug_s3.c
504 lib/access.c lib/smbrun.c
507 lib/substitute_generic.c
514 lib/server_contexts.c
516 lib/server_prefork_util.c
540 bld.SAMBA3_LIBRARY('smbd_shim
',
541 source='''lib/smbd_shim.c''',
543 private_library=True)
545 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
546 source='''libsmb/ntlmssp.c
547 libsmb/ntlmssp_wrap.c''',
548 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
550 bld.SAMBA3_SUBSYSTEM('auth_generic
',
551 source='libsmb
/auth_generic
.c
',
552 deps='LIBNTLMSSP gse gensec
',
555 bld.SAMBA3_LIBRARY('libsmb
',
556 source='''libsmb/clientgen.c
563 libsmb/clireadwrite.c
576 libsmb/smb2cli_tcon.c
577 libsmb/cli_np_tstream.c
578 libsmb/reparse_symlink.c
580 libsmb/smbsock_connect.c
581 libsmb/cli_smb2_fnum.c''',
593 private_library=True)
595 bld.SAMBA3_SUBSYSTEM('CLDAP
',
596 source='libads
/cldap
.c
',
597 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
',
600 # NOTE: The secrets3 library is a low level library used by several subsystems.
601 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
602 # doing that your design is wrong and needs changing. -SSS
603 bld.SAMBA3_LIBRARY('secrets3
',
604 source='''passdb/secrets.c
605 passdb/machine_account_secrets.c
607 passdb/secrets_lsa.c''',
608 deps='NDR_SECRETS param samba3util dbwrap
',
609 private_library=True)
611 bld.SAMBA3_LIBRARY('smbldap
',
612 source='lib
/smbldap
.c
',
613 deps='ldap lber samba
-util param
',
614 enabled=bld.CONFIG_SET("HAVE_LDAP"),
615 private_library=False,
616 abi_directory='lib
/ABI
',
617 abi_match='smbldap_
*',
620 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
622 bld.SAMBA3_LIBRARY('ads
',
623 source='''libads/ldap.c
625 libads/sasl_wrapping.c
627 libads/kerberos_util.c
630 libads/kerberos_keytab.c
636 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
637 private_library=True)
639 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
640 source='libads
/authdata
.c
',
641 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
643 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
644 source='libads
/ldap_printer
.c
',
645 deps='samba
-util krb5samba
')
647 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN
',
648 source='lib
/afs_settoken
.c
',
651 bld.SAMBA3_SUBSYSTEM('LIBAFS
',
653 deps='samba
-util LIBAFS_SETTOKEN
')
655 bld.SAMBA3_LIBRARY('smbconf
',
656 source=LIB_SMBCONF_SRC,
671 public_headers='../lib
/smbconf
/smbconf
.h
',
675 bld.SAMBA3_LIBRARY('smbd_conn
',
676 source='smbd
/conn
.c
',
677 deps='samba3
-util samba
-util
',
678 private_library=True)
680 bld.SAMBA3_LIBRARY('smbd_base
',
720 printing/printspoolss.c
723 lib/sysquotas_linux.c
735 smbd/aio.c smbd/statvfs.c
739 smbd/dnsregister.c smbd/globals.c
743 smbd/smb2_sesssetup.c
752 smbd/smb2_ioctl_dfs.c
753 smbd/smb2_ioctl_filesys.c
754 smbd/smb2_ioctl_named_pipe.c
755 smbd/smb2_ioctl_network_fs.c
756 smbd/smb2_keepalive.c
762 smbd/smbXsrv_version.c
763 smbd/smbXsrv_session.c
776 smbd/notify_inotify.c
777 smbd/notify_internal.c
778 smbd/build_options.c''',
805 ''' + bld.env['dmapi_lib
'],
806 private_library=True)
808 bld.SAMBA3_SUBSYSTEM('LOCKING
',
809 source='''locking/locking.c
812 locking/share_mode_lock.c''',
819 bld.SAMBA3_SUBSYSTEM('PROFILE
',
820 source='profile
/profile
.c
',
823 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
824 source=PRINTBASE_SRC,
825 deps='samba
-util tdb_compat
',
828 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
829 source=PRINTBACKEND_SRC,
830 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate
',
833 bld.SAMBA3_LIBRARY('printing_migrate
',
834 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
835 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
837 private_library=True)
839 bld.SAMBA3_SUBSYSTEM('PRINTING
',
841 deps='NDR_PRINTCAP tdb_compat cups
',
844 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
845 source=PASSWD_UTIL_SRC,
849 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
850 source='lib
/filename_util
.c
',
853 bld.SAMBA3_SUBSYSTEM('LIBNET
',
855 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
',
858 bld.SAMBA3_LIBRARY('net_keytab
',
859 source='libnet
/libnet_keytab
.c
',
860 deps='krb5samba ads
',
862 private_library=True)
865 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
866 source=LIBNET_DSSYNC_SRC,
867 deps='LIBNET RPC_NDR_DRSUAPI
',
870 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
871 source=LIBNET_SAMSYNC_SRC,
872 deps='LIBNET LIBCLI_SAMSYNC
',
875 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
876 source='lib
/eventlog
/eventlog
.c
',
877 deps='NDR_EVENTLOG tdb_compat
')
879 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
880 source='''libsmb/unexpected.c
885 libads/sitename_cache.c''',
886 deps='addns lmhosts resolv
')
888 bld.SAMBA3_SUBSYSTEM('SERVICES
',
889 source='''services/svc_spoolss.c
890 services/svc_rcinit.c
891 services/svc_winreg_glue.c
892 services/svc_netlogon.c
893 services/svc_winreg.c
894 services/svc_wins.c''',
897 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
898 source='''auth/pampass.c auth/pass_check.c''',
899 deps='pam PAM_ERRORS
')
901 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
902 source='libsmb
/passchange
.c
',
908 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
909 source='lib
/version
.c
',
912 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
914 deps='samba
-util tdb_compat
',
917 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
919 deps='ads msrpc3 libcli_lsa3
',
922 bld.SAMBA3_LIBRARY('trusts_util
',
923 source='libsmb
/trusts_util
.c
',
924 deps='libcli_netlogon3 msrpc3 pdb
',
926 private_library=True)
928 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
929 source='lib
/util_tdb
.c
',
930 deps='talloc samba3
-util
',
933 bld.SAMBA3_LIBRARY('samba3
-util
',
934 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/memcache.c lib/namearray.c lib/file_id.c''',
935 deps='samba
-util charset
',
936 private_library=True)
938 bld.SAMBA_LIBRARY('xattr_tdb
',
939 source='lib
/xattr_tdb
.c
',
940 deps='NDR_XATTR dbwrap samba3
-util
',
941 private_library=True)
943 bld.SAMBA3_LIBRARY('CHARSET3
',
944 source='''lib/charcnv.c lib/fstring.c''',
945 public_deps='ICONV_WRAPPER charset
',
946 deps='samba
-util samba3
-util
',
947 private_library=True)
949 bld.SAMBA3_SUBSYSTEM('errors3
',
950 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
953 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
954 source='rpc_client
/cli_samr
.c
',
957 bld.SAMBA3_LIBRARY('libcli_lsa3
',
958 source='rpc_client
/cli_lsarpc
.c
',
959 deps='RPC_NDR_LSA INIT_LSA
',
960 private_library=True)
962 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
963 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
964 deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param
',
965 private_library=True)
967 bld.SAMBA3_LIBRARY('cli_spoolss
',
968 source='''rpc_client/cli_spoolss.c
969 rpc_client/init_spoolss.c''',
970 deps='RPC_NDR_SPOOLSS param secrets3
',
971 private_library=True)
973 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
974 source='rpc_client
/cli_winreg
.c
',
975 deps='RPC_NDR_WINREG
')
977 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
978 source='rpc_client
/cli_winreg_int
.c
',
979 deps='LIBCLI_WINREG RPC_NCACN_NP
')
981 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
982 source='rpc_client
/cli_pipe_schannel
.c
',
983 deps='samba
-util krb5samba
')
985 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
986 source='rpc_client
/init_lsa
.c
',
989 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
990 source='rpc_client
/init_netlogon
.c
',
993 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
994 source='rpc_client
/init_samr
.c
',
997 ########################## BINARIES #################################
999 bld.SAMBA3_BINARY('smbd
/smbd
',
1000 source='${SMBD_SRC_MAIN}
',
1001 deps='smbd_base EPMD LSASD
',
1002 install_path='${SBINDIR}
',
1005 bld.SAMBA3_BINARY('nmbd
/nmbd
',
1006 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
1007 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
1008 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
1009 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
1010 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
1011 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
1012 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
1013 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
1014 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
1015 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
1016 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
1017 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
1025 install_path='${SBINDIR}
')
1028 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
1029 source='lib
/tdb_validate
.c
',
1033 bld.SAMBA3_BINARY('winbindd
/winbindd
',
1034 source='''winbindd/winbindd.c
1035 winbindd/winbindd_group.c
1036 winbindd/winbindd_util.c
1037 winbindd/winbindd_cache.c
1038 winbindd/winbindd_pam.c
1039 winbindd/winbindd_misc.c
1040 winbindd/winbindd_cm.c
1041 winbindd/winbindd_wins_byip.c
1042 winbindd/winbindd_wins_byname.c
1043 winbindd/winbindd_msrpc.c
1044 winbindd/winbindd_rpc.c
1045 winbindd/winbindd_reconnect.c
1046 winbindd/winbindd_ads.c
1047 winbindd/winbindd_samr.c
1048 winbindd/winbindd_dual.c
1049 winbindd/winbindd_dual_ndr.c
1050 winbindd/winbindd_dual_srv.c
1051 winbindd/winbindd_async.c
1052 winbindd/winbindd_creds.c
1053 winbindd/winbindd_cred_cache.c
1054 winbindd/winbindd_ccache_access.c
1055 winbindd/winbindd_domain.c
1056 winbindd/winbindd_idmap.c
1057 winbindd/winbindd_locator.c
1058 winbindd/winbindd_ndr.c
1060 winbindd/wb_lookupsid.c
1061 winbindd/wb_lookupsids.c
1062 winbindd/wb_lookupname.c
1063 winbindd/wb_uid2sid.c
1064 winbindd/wb_gid2sid.c
1065 winbindd/wb_sids2xids.c
1066 winbindd/wb_queryuser.c
1067 winbindd/wb_lookupuseraliases.c
1068 winbindd/wb_lookupusergroups.c
1069 winbindd/wb_getpwsid.c
1070 winbindd/wb_gettoken.c
1071 winbindd/wb_seqnum.c
1072 winbindd/wb_seqnums.c
1073 winbindd/wb_group_members.c
1074 winbindd/wb_getgrsid.c
1075 winbindd/wb_query_user_list.c
1076 winbindd/wb_fill_pwent.c
1077 winbindd/wb_next_pwent.c
1078 winbindd/wb_next_grent.c
1079 winbindd/wb_dsgetdcname.c
1080 winbindd/winbindd_lookupsid.c
1081 winbindd/winbindd_lookupsids.c
1082 winbindd/winbindd_lookupname.c
1083 winbindd/winbindd_sid_to_uid.c
1084 winbindd/winbindd_sid_to_gid.c
1085 winbindd/winbindd_uid_to_sid.c
1086 winbindd/winbindd_gid_to_sid.c
1087 winbindd/winbindd_sids_to_xids.c
1088 winbindd/winbindd_allocate_uid.c
1089 winbindd/winbindd_allocate_gid.c
1090 winbindd/winbindd_getpwsid.c
1091 winbindd/winbindd_getpwnam.c
1092 winbindd/winbindd_getpwuid.c
1093 winbindd/winbindd_getsidaliases.c
1094 winbindd/winbindd_getuserdomgroups.c
1095 winbindd/winbindd_getgroups.c
1096 winbindd/winbindd_show_sequence.c
1097 winbindd/winbindd_getgrgid.c
1098 winbindd/winbindd_getgrnam.c
1099 winbindd/winbindd_getusersids.c
1100 winbindd/winbindd_lookuprids.c
1101 winbindd/winbindd_setpwent.c
1102 winbindd/winbindd_getpwent.c
1103 winbindd/winbindd_endpwent.c
1104 winbindd/winbindd_setgrent.c
1105 winbindd/winbindd_getgrent.c
1106 winbindd/winbindd_endgrent.c
1107 winbindd/winbindd_dsgetdcname.c
1108 winbindd/winbindd_getdcname.c
1109 winbindd/winbindd_list_users.c
1110 winbindd/winbindd_list_groups.c
1111 winbindd/winbindd_check_machine_acct.c
1112 winbindd/winbindd_change_machine_acct.c
1113 winbindd/winbindd_ping_dc.c
1114 winbindd/winbindd_pam_auth.c
1115 winbindd/winbindd_pam_logoff.c
1116 winbindd/winbindd_pam_chauthtok.c
1117 winbindd/winbindd_pam_auth_crap.c
1118 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
1142 enabled=bld.env.build_winbind,
1143 install_path='${SBINDIR}
')
1145 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
1146 source=RPCCLIENT_SRC,
1177 bld.SAMBA3_BINARY('client
/smbclient
',
1178 source='''client/client.c
1180 client/dnsbrowse.c''',
1192 bld.SAMBA3_BINARY('net
',
1228 RPC_NDR_INITSHUTDOWN
1233 bld.SAMBA3_BINARY('profiles
',
1234 source='utils
/profiles
.c
',
1241 bld.SAMBA3_BINARY('smbspool
',
1251 bld.SAMBA3_BINARY('testparm
',
1252 source=TESTPARM_SRC,
1259 bld.SAMBA3_BINARY('smbta
-util
',
1260 source=SMBTA_UTIL_SRC,
1267 bld.SAMBA3_BINARY('smbstatus
',
1278 bld.SAMBA3_BINARY('smbcontrol
',
1279 source=SMBCONTROL_SRC,
1287 bld.SAMBA3_BINARY('smbtree
',
1299 bld.SAMBA3_BINARY('smbpasswd
',
1300 source=SMBPASSWD_SRC,
1309 bld.SAMBA3_BINARY('pdbedit
',
1319 bld.SAMBA3_BINARY('smbget
',
1327 bld.SAMBA3_BINARY('nmblookup
',
1328 source=NMBLOOKUP_SRC,
1336 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1337 source=SMBTORTURE_SRC,
1353 bld.SAMBA3_BINARY('smbconftort
',
1354 source=SMBCONFTORT_SRC,
1362 bld.SAMBA3_BINARY('replacetort
',
1363 source='../lib
/replace
/test
/main
.c
',
1364 deps='replace replace
-test
',
1367 bld.SAMBA3_BINARY('msgtest
',
1375 bld.SAMBA3_BINARY('smbcacls
',
1376 source=SMBCACLS_SRC,
1385 bld.SAMBA3_BINARY('smbcquotas
',
1386 source=SMBCQUOTAS_SRC,
1395 bld.SAMBA3_BINARY('eventlogadm
',
1396 source=EVTLOGADM_SRC,
1403 bld.SAMBA3_BINARY('sharesec
',
1404 source=SHARESEC_SRC,
1410 bld.SAMBA3_BINARY('pdbtest
',
1421 bld.SAMBA3_BINARY('vfstest
',
1430 bld.SAMBA3_BINARY('log2pcap
',
1431 source=LOG2PCAP_SRC,
1432 deps='''talloc popt''',
1436 bld.SAMBA3_BINARY('locktest2
',
1437 source=LOCKTEST2_SRC,
1446 bld.SAMBA3_BINARY('debug2html
',
1447 source=DEBUG2HTML_SRC,
1448 deps='''talloc popt''',
1452 bld.SAMBA3_BINARY('smbfilter
',
1453 source=SMBFILTER_SRC,
1461 bld.SAMBA3_BINARY('versiontest
',
1462 source='lib
/version_test
.c
',
1469 bld.SAMBA3_BINARY('ntlm_auth
',
1470 source=NTLM_AUTH_SRC,
1477 LIBNTLMSSP gse gensec''',
1480 bld.SAMBA3_BINARY('timelimit
',
1481 source='script
/tests
/timelimit
.c
',
1485 bld.SAMBA3_BINARY('rpc_open_tcp
',
1486 source=RPC_OPEN_TCP_SRC,
1493 bld.SAMBA3_BINARY('test_lp_load
',
1494 source=TEST_LP_LOAD_SRC,
1502 bld.SAMBA3_BINARY('dbwrap_tool
',
1503 source=DBWRAP_TOOL_SRC,
1509 bld.SAMBA3_BINARY('dbwrap_torture
',
1510 source=DBWRAP_TORTURE_SRC,
1517 bld.SAMBA3_BINARY('split_tokens
',
1518 source=SPLIT_TOKENS_SRC,
1525 bld.SAMBA3_BINARY('vlp
',
1533 bld.SAMBA3_PYTHON('pysmbd
',
1534 source='smbd
/pysmbd
.c
',
1535 deps='smbd_base pyrpc_util
',
1536 realname='samba
/samba3
/smbd
.so
'
1539 bld.SAMBA3_PYTHON('pylibsmb
',
1540 source='libsmb
/pylibsmb
.c
',
1541 deps='smbclient samba
-credentials
',
1542 realname='samba
/samba3
/libsmb_samba_internal
.so
'
1545 bld.SAMBA3_BINARY('samba
-regedit
',
1546 source="""utils/regedit.c utils/regedit_samba3.c
1547 utils/regedit_wrap.c utils/regedit_treeview.c
1548 utils/regedit_valuelist.c utils/regedit_dialog.c
1549 utils/regedit_hexedit.c""",
1550 deps='ncurses menu panel form registry param popt_samba3 smbregistry
',
1551 enabled=bld.env.build_regedit,
1554 ########################## INCLUDES #################################
1557 bld.RECURSE('libgpo
/gpext
')
1558 bld.RECURSE('lib
/pthreadpool
')
1559 bld.RECURSE('lib
/asys
')
1560 bld.RECURSE('librpc
')
1561 bld.RECURSE('librpc
/idl
')
1562 bld.RECURSE('libsmb
')
1563 bld.RECURSE('modules
')
1564 bld.RECURSE('pam_smbpass
')
1565 bld.RECURSE('passdb
')
1566 bld.RECURSE('rpc_server
')
1567 bld.RECURSE('script
')
1568 bld.RECURSE('winbindd
')
1569 bld.RECURSE('../examples
/auth
')
1570 bld.RECURSE('../examples
/libsmbclient
')
1571 bld.RECURSE('../examples
/pdb
')
1572 bld.RECURSE('../examples
/VFS
')
1573 bld.RECURSE('lib
/netapi
/tests
')
1574 bld.RECURSE('lib
/netapi
/examples
')
1576 bld.ENFORCE_GROUP_ORDERING()
1577 bld.CHECK_PROJECT_RULES()