3 from samba_utils
import *
4 import samba_version
, samba3
8 config_h
= "../include/config.h"
10 bld
.SAMBA_BLDOPTIONS('smbd/build_options.c')
12 t
= bld
.SAMBA_GENERATOR('build_env.h',
13 source
='script/build_env.sh',
14 target
='include/build_env.h',
15 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
16 # todo: work out what is really wanted here
17 t
.env
.SRCDIR
= bld
.path
.abspath()
18 t
.env
.BUILDDIR
= bld
.path
.abspath()
20 bld
.SETUP_BUILD_GROUPS()
22 ######################## SUBSYSTEMS #################################
24 bld
.SAMBA3_LIBRARY('netapi',
25 source
='''lib/netapi/netapi.c
27 lib/netapi/libnetapi.c
28 lib/netapi/joindomain.c
29 lib/netapi/serverinfo.c
30 lib/netapi/wkstainfo.c
34 lib/netapi/localgroup.c
40 lib/netapi/netlogon.c''',
54 public_headers
='../source3/lib/netapi/netapi.h',
55 pc_files
='libnet/netapi.pc',
58 bld
.SAMBA3_LIBRARY('gse',
59 source
='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
60 deps
='krb5samba gensec param KRBCLIENT secrets3',
63 bld
.SAMBA3_LIBRARY('msrpc3',
64 source
='''rpc_client/cli_pipe.c
65 rpc_client/rpc_transport_np.c
66 rpc_client/rpc_transport_sock.c
67 rpc_client/rpc_transport_tstream.c
68 librpc/rpc/dcerpc_helpers.c''',
69 deps
='''ndr ndr-standard
70 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
71 LIBTSOCKET gse dcerpc-binding
72 libsmb ndr-table NETLOGON_CREDS_CLI
76 bld
.SAMBA3_LIBRARY('gpo',
77 source
='''../libgpo/gpo_ldap.c
84 deps
='talloc ads TOKEN_UTIL gpext auth',
87 bld
.SAMBA3_SUBSYSTEM('AVAHI',
88 source
='lib/avahi.c smbd/avahi_register.c',
89 deps
='avahi-common avahi-client',
90 enabled
=bld
.env
.with_avahi
)
92 bld
.SAMBA3_SUBSYSTEM('GROUPDB',
93 source
='groupdb/mapping.c groupdb/mapping_tdb.c',
96 bld
.SAMBA3_SUBSYSTEM('TLDAP',
100 deps
='asn1util LIBTSOCKET samba3util')
102 # libpdb.so should not expose internal symbols that are only usable
103 # to the statically linked modules that are merged into libpdb.
104 # Note that we always filter these symbols out in libpdb, even
105 # when modules are not linked statically. In the latter case
106 # symbols will not be present in the libpdb anyway so no hurt is
107 # done to the version script.
108 static_pdb_match
= ['tdbsam', 'smbpasswd', 'wbc_sam']
109 private_pdb_match
= []
111 # AD DC module when linked statically will pull in few source4/winbind
112 # dependencies which are not used outside AD DC module
113 static_pdb_match
.append('samba_dsdb')
114 private_pdb_match
.append('!idmap_init')
115 private_pdb_match
.append('!idmap_sids_to_xids')
116 private_pdb_match
.append('!idmap_xids_to_sids')
118 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
119 static_pdb_match
= static_pdb_match
+ ['ldap', 'ipa', 'nds']
120 ldapsam_pdb_match
= ['!priv2ld', '!smbldap_search_domain_info',
121 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
122 '!dominfo_attr_list', '!get_attr_key2string',
123 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
125 private_pdb_match
.append('!pdb_nds_*')
126 private_pdb_match
.append('!pdb_init_ldapsam')
127 private_pdb_match
.append('!pdb_ldapsam_init*')
128 private_pdb_match
= private_pdb_match
+ ldapsam_pdb_match
130 private_pdb_match
= private_pdb_match
+ map(lambda x
: '!pdb_%s_init' % x
, static_pdb_match
)
132 bld
.SAMBA3_LIBRARY('samba-passdb',
135 private_library
=False,
136 grouping_library
=True,
138 public_headers_install
=True,
142 passdb/lookup_sid.h''',
143 abi_match
=private_pdb_match
,
144 abi_directory
='passdb/ABI',
147 bld
.SAMBA3_SUBSYSTEM('pdb',
148 source
='''passdb/pdb_get_set.c
153 lib/util_sid_passdb.c
162 passdb/pdb_interface.c
164 passdb/pdb_unixid.c''',
165 deps
='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials')
167 bld
.SAMBA3_LIBRARY('smbldaphelper',
168 source
='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
169 deps
='smbldap secrets3',
170 allow_undefined_symbols
=True,
171 enabled
=bld
.CONFIG_SET('HAVE_LDAP'),
172 private_library
=True)
174 bld
.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
175 source
='lib/server_mutex.c',
178 bld
.SAMBA3_SUBSYSTEM('param',
179 source
='''param/loadparm.c
181 lib/ldap_debug_handler.c
183 deps
='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
185 # this includes only the low level parse code, not stuff
186 # that requires knowledge of security contexts
187 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS
',
188 source='registry
/reg_parse_prs
.c
')
190 bld.SAMBA3_SUBSYSTEM('REGFIO
',
191 source='registry
/regfio
.c
',
192 deps='samba
-util REG_PARSE_PRS
')
194 bld.SAMBA3_SUBSYSTEM('REG_API_REGF
',
195 source='registry
/reg_api_regf
.c
',
198 bld.SAMBA3_LIBRARY('smbregistry
',
199 source='''registry/reg_api.c
200 registry/reg_dispatcher.c
201 registry/reg_cachehook.c
202 registry/reg_objects.c
203 registry/reg_util_internal.c
205 registry/reg_backend_db.c
206 registry/reg_parse_internal.c
209 registry/reg_init_basic.c''',
210 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
211 replace util_reg samba-util samba-security
212 errors3 dbwrap samba3-util''',
213 allow_undefined_symbols=True,
214 private_library=True)
216 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF
',
217 source='''registry/reg_backend_smbconf.c
218 registry/reg_init_smbconf.c
219 registry/reg_util_token.c
220 registry/reg_api_util.c''',
223 bld.SAMBA3_SUBSYSTEM('REG_FULL
',
224 source='''registry/reg_backend_printing.c
225 registry/reg_backend_shares.c
226 registry/reg_backend_netlogon_params.c
227 registry/reg_backend_prod_options.c
228 registry/reg_backend_tcpip_params.c
229 registry/reg_backend_hkpt_params.c
230 registry/reg_backend_current_version.c
231 registry/reg_backend_perflib.c
232 registry/reg_init_full.c
233 registry/reg_perfcount.c''',
234 deps='REG_SMBCONF tdb
-wrap3
')
236 bld.SAMBA3_LIBRARY('popt_samba3
',
237 source='lib
/popt_common
.c
',
238 deps='popt samba
-util util_cmdline
',
239 private_library=True)
241 bld.SAMBA3_LIBRARY('util_cmdline
',
242 source='lib
/util_cmdline
.c
',
244 private_library=True)
246 bld.SAMBA3_SUBSYSTEM('KRBCLIENT
',
247 source='libads
/kerberos
.c libads
/ads_status
.c
',
248 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB
')
250 bld.SAMBA3_LIBRARY('sys_rw
',
251 source='lib
/sys_rw
.c lib
/sys_rw_data
.c
',
252 deps='replace iov_buf
',
253 private_library=True)
255 bld.SAMBA3_SUBSYSTEM('samba3util
',
256 source='''lib/system.c
265 lib/util_transfer_file.c
267 deps='ndr LIBTSOCKET samba
-security NDR_SECURITY samba
-util util_tdb sys_rw iov_buf
')
269 if bld.CONFIG_GET("CTDB_CFLAGS") and bld.CONFIG_GET("CTDB_INCLUDE"):
270 SAMBA_CLUSTER_SUPPORT_SOURCES='''
271 lib/cluster_support.c
272 lib/dbwrap/dbwrap_ctdb.c
276 torture/test_ctdbconn.c
278 SAMBA_CLUSTER_SUPPORT_DEPS='''
284 SAMBA_CLUSTER_SUPPORT_SOURCES='''
285 lib/cluster_support.c
288 SAMBA_CLUSTER_SUPPORT_DEPS='''
293 bld.SAMBA3_LIBRARY('samba
-cluster
-support
',
294 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
295 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
296 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
297 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
298 allow_undefined_symbols=True,
299 private_library=True)
301 bld.SAMBA3_SUBSYSTEM('TDB_LIB
',
302 source='''lib/dbwrap/dbwrap_open.c
303 lib/dbwrap/dbwrap_watch.c
305 deps='dbwrap samba
-cluster
-support
')
307 bld.SAMBA3_LIBRARY('messages_dgm
',
308 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
309 deps='talloc UNIX_MSG POLL_FUNCS_TEVENT samba
-debug
',
310 private_library=True)
312 bld.SAMBA3_LIBRARY('messages_util
',
313 source='''lib/messages_util.c''',
315 private_library=True)
317 bld.SAMBA3_SUBSYSTEM('samba3core
',
318 source='''lib/messages.c
323 lib/server_id_db_util.c
325 ../lib/util/debug_s3.c
329 lib/access.c lib/smbrun.c
332 lib/substitute_generic.c
339 lib/server_contexts.c
341 lib/server_prefork_util.c
372 bld.SAMBA3_LIBRARY('smbd_shim
',
373 source='''lib/smbd_shim.c''',
375 private_library=True)
377 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
378 source='''libsmb/ntlmssp.c
379 libsmb/ntlmssp_wrap.c''',
380 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
382 bld.SAMBA3_SUBSYSTEM('auth_generic
',
383 source='libsmb
/auth_generic
.c
',
384 deps='LIBNTLMSSP gse gensec
')
386 bld.SAMBA3_LIBRARY('libsmb
',
387 source='''libsmb/clientgen.c
394 libsmb/clireadwrite.c
407 libsmb/reparse_symlink.c
409 libsmb/smbsock_connect.c
410 libsmb/cli_smb2_fnum.c''',
423 private_library=True)
425 bld.SAMBA3_SUBSYSTEM('CLDAP
',
426 source='libads
/cldap
.c
',
427 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
')
429 # NOTE: The secrets3 library is a low level library used by several subsystems.
430 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
431 # doing that your design is wrong and needs changing. -SSS
432 bld.SAMBA3_LIBRARY('secrets3
',
433 source='''passdb/secrets.c
434 passdb/machine_account_secrets.c
436 passdb/secrets_lsa.c''',
437 deps='NDR_SECRETS param samba3util dbwrap
',
438 private_library=True)
440 bld.SAMBA3_LIBRARY('smbldap
',
441 source='lib
/smbldap
.c
',
442 deps='ldap lber samba
-util param
',
443 enabled=bld.CONFIG_SET("HAVE_LDAP"),
444 private_library=False,
445 abi_directory='lib
/ABI
',
446 abi_match='smbldap_
*',
449 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
451 bld.SAMBA3_LIBRARY('ads
',
452 source='''libads/ldap.c
454 libads/sasl_wrapping.c
456 libads/kerberos_util.c
459 libads/kerberos_keytab.c
465 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
466 private_library=True)
468 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
469 source='libads
/authdata
.c
',
470 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
472 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
473 source='libads
/ldap_printer
.c
',
474 deps='samba
-util krb5samba
')
476 bld.SAMBA3_LIBRARY('smbconf
',
477 source='''lib/smbconf/smbconf_init.c
478 lib/smbconf/smbconf_reg.c''',
493 public_headers='../lib
/smbconf
/smbconf
.h
',
497 bld.SAMBA3_LIBRARY('smbd_conn
',
498 source='smbd
/conn
.c
',
499 deps='samba3
-util samba
-util
',
500 private_library=True)
502 bld.SAMBA3_SUBSYSTEM('sysquotas
',
505 lib/sysquotas_linux.c
512 deps='samba3
-util samba
-util
')
516 if bld.CONFIG_SET("HAVE_INOTIFY"):
517 NOTIFY_SOURCES += ' smbd
/notify_inotify
.c
'
519 if bld.CONFIG_SET('SAMBA_FAM_LIBS
'):
520 NOTIFY_SOURCES += ' smbd
/notify_fam
.c
'
522 bld.SAMBA3_LIBRARY('smbd_base
',
562 printing/printspoolss.c
570 smbd/aio.c smbd/statvfs.c
574 smbd/dnsregister.c smbd/globals.c
578 smbd/smb2_sesssetup.c
587 smbd/smb2_ioctl_dfs.c
588 smbd/smb2_ioctl_filesys.c
589 smbd/smb2_ioctl_named_pipe.c
590 smbd/smb2_ioctl_network_fs.c
591 smbd/smb2_keepalive.c
592 smbd/smb2_query_directory.c
597 smbd/smbXsrv_version.c
598 smbd/smbXsrv_session.c
611 smbd/notify_internal.c
612 smbd/build_options.c''' + NOTIFY_SOURCES,
641 ''' + bld.env['dmapi_lib
']
642 + (bld.CONFIG_GET('SAMBA_FAM_LIBS
')
643 if bld.CONFIG_SET('SAMBA_FAM_LIBS
') else ''),
644 private_library=True)
646 bld.SAMBA3_SUBSYSTEM('LOCKING
',
647 source='''locking/locking.c
650 locking/share_mode_lock.c''',
658 bld.SAMBA3_SUBSYSTEM('LEASES_DB
',
659 source='locking
/leases_db
.c
',
660 deps='NDR_LEASES_DB
')
662 if bld.CONFIG_GET("WITH_PROFILE"):
663 bld.SAMBA3_SUBSYSTEM('PROFILE
',
664 source='profile
/profile
.c
',
667 bld.SAMBA3_SUBSYSTEM('PROFILE
',
668 source='profile
/profile_dummy
.c
',
671 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
672 source='''printing/notify.c printing/printing_db.c''',
673 deps='samba
-util tdb
')
675 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
676 source='''printing/printing.c
677 printing/nt_printing.c
678 printing/nt_printing_tdb.c
679 printing/nt_printing_migrate_internal.c
680 printing/nt_printing_ads.c
681 printing/queue_process.c''',
682 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate
')
684 bld.SAMBA3_LIBRARY('printing_migrate
',
685 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
686 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
687 private_library=True)
689 bld.SAMBA3_SUBSYSTEM('PRINTING
',
690 source='''printing/pcap.c
691 printing/print_svid.c
693 printing/print_cups.c
694 printing/print_generic.c
697 printing/print_standard.c
698 printing/print_iprint.c
699 printing/printer_list.c''',
700 deps='NDR_PRINTCAP tdb cups
')
702 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
703 source='utils
/passwd_util
.c
',
706 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
707 source='lib
/filename_util
.c
',
710 bld.SAMBA3_SUBSYSTEM('LIBNET
',
711 source='libnet
/libnet_join
.c
',
712 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
')
714 bld.SAMBA3_LIBRARY('net_keytab
',
715 source='libnet
/libnet_keytab
.c
',
716 deps='krb5samba ads
',
717 private_library=True)
720 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
721 source='''libnet/libnet_dssync.c
722 libnet/libnet_dssync_passdb.c
723 libnet/libnet_dssync_keytab.c''',
724 deps='LIBNET RPC_NDR_DRSUAPI
')
726 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
727 source='''libnet/libnet_samsync.c
728 libnet/libnet_samsync_ldif.c
729 libnet/libnet_samsync_passdb.c
730 libnet/libnet_samsync_display.c
731 libnet/libnet_samsync_keytab.c''',
732 deps='LIBNET LIBCLI_SAMSYNC
')
734 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
735 source='lib
/eventlog
/eventlog
.c
',
736 deps='NDR_EVENTLOG tdb
')
738 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
739 source='''libsmb/unexpected.c
744 libads/sitename_cache.c''',
745 deps='LIBTSOCKET samba3util addns lmhosts resolv
')
747 bld.SAMBA3_SUBSYSTEM('SERVICES
',
748 source='''services/svc_spoolss.c
749 services/svc_rcinit.c
750 services/svc_winreg_glue.c
751 services/svc_netlogon.c
752 services/svc_winreg.c
753 services/svc_wins.c''',
756 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
757 source='''auth/pampass.c auth/pass_check.c''',
758 deps='pam PAM_ERRORS
')
760 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
761 source='libsmb
/passchange
.c
',
767 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
768 source='lib
/version
.c
',
771 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
772 source='libsmb
/samlogon_cache
.c
',
773 deps='samba
-util tdb
')
775 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
776 source='''libsmb/namequery_dc.c
777 libsmb/trustdom_cache.c
778 libsmb/dsgetdcname.c''',
779 deps='ads msrpc3 libcli_lsa3
')
781 bld.SAMBA3_LIBRARY('trusts_util
',
782 source='libsmb
/trusts_util
.c
',
783 deps='libcli_netlogon3 msrpc3 samba
-passdb
',
784 private_library=True)
786 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
787 source='lib
/util_tdb
.c
',
788 deps='talloc samba3
-util
')
790 bld.SAMBA3_LIBRARY('msghdr
',
791 source='lib
/msghdr
.c
',
792 deps='replace iov_buf
',
793 private_library=True)
795 bld.SAMBA3_LIBRARY('samba3
-util
',
796 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
797 deps='samba
-util charset
',
798 private_library=True)
800 bld.SAMBA_LIBRARY('xattr_tdb
',
801 source='lib
/xattr_tdb
.c
',
802 deps='NDR_XATTR dbwrap samba3
-util
',
803 private_library=True)
805 bld.SAMBA3_LIBRARY('CHARSET3
',
806 source='''lib/charcnv.c lib/fstring.c''',
807 public_deps='ICONV_WRAPPER charset
',
808 deps='samba
-util samba3
-util
',
809 private_library=True)
811 bld.SAMBA3_SUBSYSTEM('errors3
',
812 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
815 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
816 source='rpc_client
/cli_samr
.c
',
819 bld.SAMBA3_LIBRARY('libcli_lsa3
',
820 source='rpc_client
/cli_lsarpc
.c
',
821 deps='RPC_NDR_LSA INIT_LSA
',
822 private_library=True)
824 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
825 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
826 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI
',
827 private_library=True)
829 bld.SAMBA3_LIBRARY('cli_spoolss
',
830 source='''rpc_client/cli_spoolss.c
831 rpc_client/init_spoolss.c''',
832 deps='RPC_NDR_SPOOLSS param secrets3
',
833 private_library=True)
835 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
836 source='rpc_client
/cli_winreg
.c
',
837 deps='RPC_NDR_WINREG
')
839 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
840 source='rpc_client
/cli_winreg_int
.c
',
841 deps='LIBCLI_WINREG RPC_SERVER
')
843 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
844 source='rpc_client
/cli_pipe_schannel
.c
',
845 deps='samba
-util krb5samba
')
847 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
848 source='rpc_client
/init_lsa
.c
',
851 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
852 source='rpc_client
/init_netlogon
.c
',
855 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
856 source='rpc_client
/init_samr
.c
',
859 bld.SAMBA3_SUBSYSTEM('LIBLSA
',
862 ########################## BINARIES #################################
864 bld.SAMBA3_BINARY('smbd
/smbd
',
865 source='smbd
/server
.c
',
866 deps='smbd_base EPMD LSASD FSSD MDSSD
',
867 install_path='${SBINDIR}
')
869 bld.SAMBA3_BINARY('nmbd
/nmbd
',
870 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
871 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
872 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
873 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
874 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
875 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
876 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
877 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
878 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
879 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
880 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
881 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
889 install_path='${SBINDIR}
')
892 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
893 source='lib
/tdb_validate
.c
',
897 bld.SAMBA3_BINARY('winbindd
/winbindd
',
898 source='''winbindd/winbindd.c
899 winbindd/winbindd_group.c
900 winbindd/winbindd_util.c
901 winbindd/winbindd_cache.c
902 winbindd/winbindd_pam.c
903 winbindd/winbindd_misc.c
904 winbindd/winbindd_cm.c
905 winbindd/winbindd_wins_byip.c
906 winbindd/winbindd_wins_byname.c
907 winbindd/winbindd_msrpc.c
908 winbindd/winbindd_rpc.c
909 winbindd/winbindd_reconnect.c
910 winbindd/winbindd_ads.c
911 winbindd/winbindd_samr.c
912 winbindd/winbindd_dual.c
913 winbindd/winbindd_dual_ndr.c
914 winbindd/winbindd_dual_srv.c
915 winbindd/winbindd_async.c
916 winbindd/winbindd_creds.c
917 winbindd/winbindd_cred_cache.c
918 winbindd/winbindd_ccache_access.c
919 winbindd/winbindd_domain.c
920 winbindd/winbindd_idmap.c
921 winbindd/winbindd_locator.c
922 winbindd/winbindd_ndr.c
924 winbindd/wb_lookupsid.c
925 winbindd/wb_lookupsids.c
926 winbindd/wb_lookupname.c
927 winbindd/wb_uid2sid.c
928 winbindd/wb_gid2sid.c
929 winbindd/wb_sids2xids.c
930 winbindd/wb_queryuser.c
931 winbindd/wb_lookupuseraliases.c
932 winbindd/wb_lookupusergroups.c
933 winbindd/wb_getpwsid.c
934 winbindd/wb_gettoken.c
936 winbindd/wb_seqnums.c
937 winbindd/wb_group_members.c
938 winbindd/wb_getgrsid.c
939 winbindd/wb_query_user_list.c
940 winbindd/wb_query_group_list.c
941 winbindd/wb_fill_pwent.c
942 winbindd/wb_next_pwent.c
943 winbindd/wb_next_grent.c
944 winbindd/wb_dsgetdcname.c
945 winbindd/winbindd_lookupsid.c
946 winbindd/winbindd_lookupsids.c
947 winbindd/winbindd_lookupname.c
948 winbindd/winbindd_sid_to_uid.c
949 winbindd/winbindd_sid_to_gid.c
950 winbindd/winbindd_uid_to_sid.c
951 winbindd/winbindd_gid_to_sid.c
952 winbindd/winbindd_sids_to_xids.c
953 winbindd/winbindd_allocate_uid.c
954 winbindd/winbindd_allocate_gid.c
955 winbindd/winbindd_getpwsid.c
956 winbindd/winbindd_getpwnam.c
957 winbindd/winbindd_getpwuid.c
958 winbindd/winbindd_getsidaliases.c
959 winbindd/winbindd_getuserdomgroups.c
960 winbindd/winbindd_getgroups.c
961 winbindd/winbindd_show_sequence.c
962 winbindd/winbindd_getgrgid.c
963 winbindd/winbindd_getgrnam.c
964 winbindd/winbindd_getusersids.c
965 winbindd/winbindd_lookuprids.c
966 winbindd/winbindd_setpwent.c
967 winbindd/winbindd_getpwent.c
968 winbindd/winbindd_endpwent.c
969 winbindd/winbindd_setgrent.c
970 winbindd/winbindd_getgrent.c
971 winbindd/winbindd_endgrent.c
972 winbindd/winbindd_dsgetdcname.c
973 winbindd/winbindd_getdcname.c
974 winbindd/winbindd_list_users.c
975 winbindd/winbindd_list_groups.c
976 winbindd/winbindd_check_machine_acct.c
977 winbindd/winbindd_change_machine_acct.c
978 winbindd/winbindd_irpc.c
979 winbindd/winbindd_ping_dc.c
980 winbindd/winbindd_pam_auth.c
981 winbindd/winbindd_pam_logoff.c
982 winbindd/winbindd_pam_chauthtok.c
983 winbindd/winbindd_pam_auth_crap.c
984 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
1009 enabled=bld.env.build_winbind,
1010 install_path='${SBINDIR}
')
1012 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
1013 source='''rpcclient/rpcclient.c
1014 rpcclient/cmd_lsarpc.c
1015 rpcclient/cmd_samr.c
1016 rpcclient/cmd_spoolss.c
1017 rpcclient/cmd_netlogon.c
1018 rpcclient/cmd_srvsvc.c
1020 rpcclient/cmd_epmapper.c
1021 rpcclient/cmd_dssetup.c
1022 rpcclient/cmd_echo.c
1023 rpcclient/cmd_shutdown.c
1024 rpcclient/cmd_test.c
1025 rpcclient/cmd_wkssvc.c
1026 rpcclient/cmd_ntsvcs.c
1027 rpcclient/cmd_drsuapi.c
1028 rpcclient/cmd_eventlog.c
1029 rpcclient/cmd_winreg.c
1031 rpcclient/cmd_witness.c
1032 rpcclient/cmd_clusapi.c''',
1064 bld.SAMBA3_BINARY('client
/smbclient
',
1065 source='''client/client.c
1067 client/dnsbrowse.c''',
1078 ''' + bld.env['archive_lib
'])
1080 bld.SAMBA3_BINARY('net
',
1081 source='''utils/net.c
1086 utils/net_rpc_samsync.c
1090 utils/net_groupmap.c
1092 utils/net_idmap_check.c
1095 utils/net_rpc_printer.c
1096 utils/net_rpc_rights.c
1097 utils/net_rpc_service.c
1098 utils/net_rpc_registry.c
1099 utils/net_usershare.c
1102 utils/net_rpc_shell.c
1104 utils/net_rpc_sh_acct.c
1105 utils/net_rpc_audit.c
1109 utils/net_conf_util.c
1114 utils/net_registry.c
1115 utils/net_registry_check.c
1119 utils/net_serverid.c
1120 utils/net_eventlog.c
1121 utils/net_printing.c
1122 utils/net_rpc_trust.c
1123 utils/net_rpc_conf.c
1125 registry/reg_parse.c
1126 registry/reg_format.c
1127 registry/reg_import.c
1128 utils/net_registry_util.c
1129 utils/net_help_common.c''',
1164 RPC_NDR_INITSHUTDOWN
1167 IDMAP_AUTORID_TDB''')
1169 bld.SAMBA3_BINARY('profiles
',
1170 source='utils
/profiles
.c
',
1177 bld.SAMBA3_BINARY('smbspool
',
1178 source='client
/smbspool
.c
',
1186 bld.SAMBA3_BINARY('testparm
',
1187 source='utils
/testparm
.c
',
1193 bld.SAMBA3_BINARY('smbta
-util
',
1194 source='utils
/smbta
-util
.c
',
1200 smbstatus_source = 'utils
/status
.c smbd
/notify_internal
.c
'
1202 if bld.CONFIG_GET("WITH_PROFILE"):
1203 smbstatus_source += ' utils
/status_profile
.c
'
1205 smbstatus_source += ' utils
/status_profile_dummy
.c
'
1207 bld.SAMBA3_BINARY('smbstatus
',
1208 source=smbstatus_source,
1217 bld.SAMBA3_BINARY('smbcontrol
',
1218 source='utils
/smbcontrol
.c
',
1225 bld.SAMBA3_BINARY('smbtree
',
1226 source='utils
/smbtree
.c
',
1235 bld.SAMBA3_BINARY('smbpasswd
',
1236 source='utils
/smbpasswd
.c
',
1244 bld.SAMBA3_BINARY('pdbedit
',
1245 source='utils
/pdbedit
.c
',
1253 bld.SAMBA3_BINARY('smbget
',
1254 source='utils
/smbget
.c
',
1260 bld.SAMBA3_BINARY('nmblookup
',
1261 source='utils
/nmblookup
.c
',
1268 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1269 source='''torture/torture.c
1274 torture/mangle_test.c
1276 torture/test_async_echo.c
1277 torture/test_addrchange.c
1278 torture/test_posix_append.c
1279 torture/test_nttrans_create.c
1280 torture/test_nttrans_fsctl.c
1281 torture/test_case_insensitive.c
1282 torture/test_notify_online.c
1283 torture/test_chain3.c
1285 torture/test_authinfo_structs.c
1286 torture/test_smbsock_any_connect.c
1287 torture/test_cleanup.c
1288 torture/test_notify.c
1289 lib/tevent_barrier.c
1290 torture/test_dbwrap_watch.c
1291 torture/test_idmap_tdb_common.c
1292 torture/test_dbwrap_ctdb.c
1293 torture/test_buffersize.c
1294 torture/test_messaging_read.c
1295 torture/test_messaging_fd_passing.c
1296 torture/test_oplock_cancel.c
1297 torture/t_strappend.c
1298 torture/bench_pthreadpool.c
1299 torture/wbc_async.c''',
1311 samba-cluster-support
1313 cflags='-DWINBINDD_SOCKET_DIR
=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1316 bld.SAMBA3_BINARY('smbconftort
',
1317 source='lib
/smbconf
/testsuite
.c
',
1324 bld.SAMBA3_BINARY('replacetort
',
1325 source='../lib
/replace
/test
/main
.c
',
1326 deps='replace replace
-test
',
1329 bld.SAMBA3_BINARY('msgtest
',
1330 source='torture
/msgtest
.c
',
1336 bld.SAMBA3_BINARY('msg_sink
',
1337 source='torture
/msg_sink
.c
',
1343 bld.SAMBA3_BINARY('msg_source
',
1344 source='torture
/msg_source
.c
',
1350 bld.SAMBA3_BINARY('smbcacls
',
1351 source='utils
/smbcacls
.c lib
/util_sd
.c
',
1359 bld.SAMBA3_BINARY('smbcquotas
',
1360 source='utils
/smbcquotas
.c
',
1368 bld.SAMBA3_BINARY('eventlogadm
',
1369 source='utils
/eventlogadm
.c
',
1375 bld.SAMBA3_BINARY('sharesec
',
1376 source='utils
/sharesec
.c lib
/util_sd
.c
',
1383 bld.SAMBA3_BINARY('pdbtest
',
1384 source='torture
/pdbtest
.c
',
1393 bld.SAMBA3_BINARY('vfstest
',
1394 source='''torture/cmd_vfs.c
1396 torture/vfstest_chain.c''',
1403 bld.SAMBA3_BINARY('log2pcap
',
1404 source='utils
/log2pcaphex
.c
',
1405 deps='''talloc popt''',
1408 bld.SAMBA3_BINARY('locktest2
',
1409 source='torture
/locktest2
.c
',
1417 bld.SAMBA3_BINARY('debug2html
',
1418 source='''utils/debug2html.c utils/debugparse.c''',
1419 deps='''talloc popt''',
1422 bld.SAMBA3_BINARY('smbfilter
',
1423 source='utils
/smbfilter
.c
',
1430 bld.SAMBA3_BINARY('versiontest
',
1431 source='lib
/version_test
.c
',
1437 bld.SAMBA3_BINARY('ntlm_auth
',
1438 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1445 LIBNTLMSSP gse gensec''')
1447 bld.SAMBA3_BINARY('timelimit
',
1448 source='script
/tests
/timelimit
.c
',
1451 bld.SAMBA3_BINARY('rpc_open_tcp
',
1452 source='torture
/rpc_open_tcp
.c
',
1458 bld.SAMBA3_BINARY('dbwrap_tool
',
1459 source='utils
/dbwrap_tool
.c
',
1464 bld.SAMBA3_BINARY('dbwrap_torture
',
1465 source='utils
/dbwrap_torture
.c
',
1471 bld.SAMBA3_BINARY('split_tokens
',
1472 source='utils
/split_tokens
.c
',
1478 bld.SAMBA3_BINARY('vlp
',
1479 source='printing
/tests
/vlp
.c
',
1485 bld.SAMBA3_PYTHON('pysmbd
',
1486 source='smbd
/pysmbd
.c
',
1487 deps='smbd_base pyrpc_util
',
1488 realname='samba
/samba3
/smbd
.so
'
1491 bld.SAMBA3_PYTHON('pylibsmb
',
1492 source='libsmb
/pylibsmb
.c
',
1493 deps='smbclient samba
-credentials
',
1494 realname='samba
/samba3
/libsmb_samba_internal
.so
'
1497 bld.SAMBA3_BINARY('samba
-regedit
',
1498 source="""utils/regedit.c utils/regedit_samba3.c
1499 utils/regedit_wrap.c utils/regedit_treeview.c
1500 utils/regedit_valuelist.c utils/regedit_dialog.c
1501 utils/regedit_hexedit.c utils/regedit_list.c""",
1502 deps='ncurses menu panel form registry param popt_samba3 smbregistry
',
1503 enabled=bld.env.build_regedit)
1505 bld.SAMBA3_BINARY('spotlight2sparql
',
1507 rpc_server/mdssvc/sparql_parser_test.c
1508 rpc_server/mdssvc/sparql_parser.c
1509 rpc_server/mdssvc/sparql_lexer.c
1510 rpc_server/mdssvc/sparql_mapping.c''',
1511 deps='samba3
-util talloc
' + bld.env['libtracker
'],
1512 enabled=bld.env.with_spotlight,
1515 ########################## INCLUDES #################################
1518 bld.RECURSE('libgpo
/gpext
')
1519 bld.RECURSE('lib
/pthreadpool
')
1520 bld.RECURSE('lib
/asys
')
1521 bld.RECURSE('lib
/poll_funcs
')
1522 bld.RECURSE('lib
/unix_msg
')
1523 bld.RECURSE('librpc
')
1524 bld.RECURSE('librpc
/idl
')
1525 bld.RECURSE('libsmb
')
1526 bld.RECURSE('modules
')
1527 bld.RECURSE('pam_smbpass
')
1528 bld.RECURSE('param
')
1529 bld.RECURSE('passdb
')
1530 bld.RECURSE('rpc_server
')
1531 bld.RECURSE('script
')
1532 bld.RECURSE('winbindd
')
1533 bld.RECURSE('../examples
/auth
')
1534 bld.RECURSE('../examples
/libsmbclient
')
1535 bld.RECURSE('../examples
/pdb
')
1536 bld.RECURSE('../examples
/VFS
')
1537 bld.RECURSE('lib
/netapi
/tests
')
1538 bld.RECURSE('lib
/netapi
/examples
')
1540 bld.ENFORCE_GROUP_ORDERING()
1541 bld.CHECK_PROJECT_RULES()