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('smbsharemodes',
59 source
='libsmb/smb_share_modes.c',
60 public_deps
='''talloc tdb_compat''',
62 public_headers
='include/smb_share_modes.h',
63 pc_files
='libsmb/smbsharemodes.pc',
66 bld
.SAMBA3_LIBRARY('nss_wins',
67 source
='../nsswitch/wins.c',
68 deps
='''param libsmb LIBTSOCKET''',
69 realname
='libnss_wins.so.2',
70 soname
='libnss_wins.so',
73 bld
.SAMBA3_LIBRARY('gse',
74 source
='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
75 deps
='krb5samba gensec param KRBCLIENT secrets3',
78 bld
.SAMBA3_LIBRARY('msrpc3',
79 source
='''rpc_client/cli_pipe.c
80 rpc_client/rpc_transport_np.c
81 rpc_client/rpc_transport_sock.c
82 rpc_client/rpc_transport_tstream.c
83 librpc/rpc/dcerpc_helpers.c''',
84 deps
='''ndr ndr-standard
85 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
86 LIBTSOCKET gse dcerpc-binding
91 bld
.SAMBA3_LIBRARY('gpo',
92 source
='''../libgpo/gpo_ldap.c
99 deps
='talloc ads TOKEN_UTIL gpext auth',
100 private_library
=True)
102 bld
.SAMBA3_SUBSYSTEM('AVAHI',
103 source
='lib/avahi.c smbd/avahi_register.c',
104 deps
='avahi-common avahi-client',
105 enabled
=bld
.env
.with_avahi
)
107 bld
.SAMBA3_SUBSYSTEM('GROUPDB',
108 source
='groupdb/mapping.c groupdb/mapping_tdb.c',
111 bld
.SAMBA3_SUBSYSTEM('TLDAP',
112 source
='''lib/tldap.c
115 deps
='asn1util LIBTSOCKET')
117 # libpdb.so should not expose internal symbols that are only usable
118 # to the statically linked modules that are merged into libpdb.
119 # Note that we always filter these symbols out in libpdb, even
120 # when modules are not linked statically. In the latter case
121 # symbols will not be present in the libpdb anyway so no hurt is
122 # done to the version script.
123 static_pdb_match
= ['tdbsam', 'smbpasswd', 'wbc_sam']
124 private_pdb_match
= []
126 # AD DC module when linked statically will pull in few source4/winbind
127 # dependencies which are not used outside AD DC module
128 static_pdb_match
.append('samba_dsdb')
129 private_pdb_match
.append('!idmap_init')
130 private_pdb_match
.append('!idmap_sids_to_xids')
131 private_pdb_match
.append('!idmap_xids_to_sids')
133 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
134 static_pdb_match
= static_pdb_match
+ ['ldap', 'ipa', 'nds']
135 ldapsam_pdb_match
= ['!priv2ld', '!smbldap_search_domain_info',
136 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
137 '!dominfo_attr_list', '!get_attr_key2string',
138 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
140 private_pdb_match
.append('!pdb_nds_*')
141 private_pdb_match
.append('!pdb_init_ldapsam')
142 private_pdb_match
.append('!pdb_ldapsam_init*')
143 private_pdb_match
= private_pdb_match
+ ldapsam_pdb_match
145 private_pdb_match
= private_pdb_match
+ map(lambda x
: '!pdb_%s_init' % x
, static_pdb_match
)
147 bld
.SAMBA3_LIBRARY('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',
166 private_library
=False,
168 public_headers_install
=True,
172 passdb/lookup_sid.h''',
173 abi_match
=private_pdb_match
,
174 abi_directory
='passdb/ABI',
177 bld
.SAMBA3_LIBRARY('smbldaphelper',
178 source
='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
179 deps
='smbldap secrets3',
180 allow_undefined_symbols
=True,
181 enabled
=bld
.CONFIG_SET('HAVE_LDAP'),
182 private_library
=True)
184 bld
.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
185 source
='lib/server_mutex.c',
188 bld
.SAMBA3_SUBSYSTEM('param',
189 source
='''param/loadparm.c
191 lib/ldap_debug_handler.c
193 deps
='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h s3_param_global_h cups''')
195 # this includes only the low level parse code, not stuff
196 # that requires knowledge of security contexts
197 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS
',
198 source='registry
/reg_parse_prs
.c
')
200 bld.SAMBA3_SUBSYSTEM('REGFIO
',
201 source='registry
/regfio
.c
',
202 deps='samba
-util REG_PARSE_PRS
')
204 bld.SAMBA3_SUBSYSTEM('REG_API_REGF
',
205 source='registry
/reg_api_regf
.c
',
208 bld.SAMBA3_LIBRARY('smbregistry
',
209 source='''registry/reg_api.c
210 registry/reg_dispatcher.c
211 registry/reg_cachehook.c
212 registry/reg_objects.c
213 registry/reg_util_internal.c
215 registry/reg_backend_db.c
216 registry/reg_parse_internal.c
219 registry/reg_init_basic.c''',
220 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
221 replace util_reg samba-util samba-security
222 errors3 dbwrap samba3-util''',
223 allow_undefined_symbols=True,
224 private_library=True)
226 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF
',
227 source='''registry/reg_backend_smbconf.c
228 registry/reg_init_smbconf.c
229 registry/reg_util_token.c
230 registry/reg_api_util.c''',
233 bld.SAMBA3_SUBSYSTEM('REG_FULL
',
234 source='''registry/reg_backend_printing.c
235 registry/reg_backend_shares.c
236 registry/reg_backend_netlogon_params.c
237 registry/reg_backend_prod_options.c
238 registry/reg_backend_tcpip_params.c
239 registry/reg_backend_hkpt_params.c
240 registry/reg_backend_current_version.c
241 registry/reg_backend_perflib.c
242 registry/reg_init_full.c
243 registry/reg_perfcount.c''',
244 deps='REG_SMBCONF tdb
-wrap3
')
246 bld.SAMBA3_LIBRARY('popt_samba3
',
247 source='lib
/popt_common
.c
',
248 deps='popt samba
-util util_cmdline
',
249 private_library=True)
251 bld.SAMBA3_LIBRARY('util_cmdline
',
252 source='lib
/util_cmdline
.c
',
254 private_library=True)
256 bld.SAMBA3_SUBSYSTEM('KRBCLIENT
',
257 source='libads
/kerberos
.c libads
/ads_status
.c
',
258 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB
')
260 bld.SAMBA3_SUBSYSTEM('samba3util
',
261 source='''lib/system.c
269 lib/util_transfer_file.c
271 deps='ndr samba
-security NDR_SECURITY samba
-util util_tdb ccan
-hash')
274 bld.SAMBA3_SUBSYSTEM('TDB_LIB
',
275 source='''lib/dbwrap/dbwrap_open.c
276 lib/dbwrap/dbwrap_ctdb.c
277 lib/dbwrap/dbwrap_watch.c
281 bld.SAMBA3_SUBSYSTEM('samba3core
',
282 source='''lib/messages.c
294 ../lib/util/debug_s3.c
298 lib/access.c lib/smbrun.c
301 lib/substitute_generic.c
308 lib/server_contexts.c
310 lib/server_prefork_util.c
334 bld.SAMBA3_LIBRARY('smbd_shim
',
335 source='''lib/smbd_shim.c''',
337 private_library=True)
339 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
340 source='''libsmb/ntlmssp.c
341 libsmb/ntlmssp_wrap.c''',
342 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
344 bld.SAMBA3_SUBSYSTEM('auth_generic
',
345 source='libsmb
/auth_generic
.c
',
346 deps='LIBNTLMSSP gse gensec
')
348 bld.SAMBA3_LIBRARY('libsmb
',
349 source='''libsmb/clientgen.c
356 libsmb/clireadwrite.c
369 libsmb/smb2cli_tcon.c
370 libsmb/cli_np_tstream.c
371 libsmb/reparse_symlink.c
373 libsmb/smbsock_connect.c
374 libsmb/cli_smb2_fnum.c''',
386 private_library=True)
388 bld.SAMBA3_SUBSYSTEM('CLDAP
',
389 source='libads
/cldap
.c
',
390 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
')
392 # NOTE: The secrets3 library is a low level library used by several subsystems.
393 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
394 # doing that your design is wrong and needs changing. -SSS
395 bld.SAMBA3_LIBRARY('secrets3
',
396 source='''passdb/secrets.c
397 passdb/machine_account_secrets.c
399 passdb/secrets_lsa.c''',
400 deps='NDR_SECRETS param samba3util dbwrap
',
401 private_library=True)
403 bld.SAMBA3_LIBRARY('smbldap
',
404 source='lib
/smbldap
.c
',
405 deps='ldap lber samba
-util param
',
406 enabled=bld.CONFIG_SET("HAVE_LDAP"),
407 private_library=False,
408 abi_directory='lib
/ABI
',
409 abi_match='smbldap_
*',
412 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
414 bld.SAMBA3_LIBRARY('ads
',
415 source='''libads/ldap.c
417 libads/sasl_wrapping.c
419 libads/kerberos_util.c
422 libads/kerberos_keytab.c
428 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
429 private_library=True)
431 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
432 source='libads
/authdata
.c
',
433 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
435 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
436 source='libads
/ldap_printer
.c
',
437 deps='samba
-util krb5samba
')
439 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN
',
440 source='lib
/afs_settoken
.c
',
443 bld.SAMBA3_SUBSYSTEM('LIBAFS
',
445 deps='samba
-util LIBAFS_SETTOKEN
')
447 bld.SAMBA3_LIBRARY('smbconf
',
448 source='''lib/smbconf/smbconf_init.c
449 lib/smbconf/smbconf_reg.c''',
464 public_headers='../lib
/smbconf
/smbconf
.h
',
468 bld.SAMBA3_LIBRARY('smbd_conn
',
469 source='smbd
/conn
.c
',
470 deps='samba3
-util samba
-util
',
471 private_library=True)
473 bld.SAMBA3_LIBRARY('smbd_base
',
513 printing/printspoolss.c
516 lib/sysquotas_linux.c
528 smbd/aio.c smbd/statvfs.c
532 smbd/dnsregister.c smbd/globals.c
536 smbd/smb2_sesssetup.c
545 smbd/smb2_ioctl_dfs.c
546 smbd/smb2_ioctl_filesys.c
547 smbd/smb2_ioctl_named_pipe.c
548 smbd/smb2_ioctl_network_fs.c
549 smbd/smb2_keepalive.c
555 smbd/smbXsrv_version.c
556 smbd/smbXsrv_session.c
569 smbd/notify_inotify.c
570 smbd/notify_internal.c
571 smbd/build_options.c''',
598 ''' + bld.env['dmapi_lib
'],
599 private_library=True)
601 bld.SAMBA3_SUBSYSTEM('LOCKING
',
602 source='''locking/locking.c
605 locking/share_mode_lock.c''',
612 bld.SAMBA3_SUBSYSTEM('PROFILE
',
613 source='profile
/profile
.c
',
616 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
617 source='''printing/notify.c printing/printing_db.c''',
618 deps='samba
-util tdb_compat
')
620 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
621 source='''printing/printing.c
622 printing/nt_printing.c
623 printing/nt_printing_tdb.c
624 printing/nt_printing_migrate_internal.c
625 printing/nt_printing_ads.c
626 printing/queue_process.c''',
627 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate
')
629 bld.SAMBA3_LIBRARY('printing_migrate
',
630 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
631 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
632 private_library=True)
634 bld.SAMBA3_SUBSYSTEM('PRINTING
',
635 source='''printing/pcap.c
636 printing/print_svid.c
638 printing/print_cups.c
639 printing/print_generic.c
642 printing/print_standard.c
643 printing/print_iprint.c
644 printing/printer_list.c''',
645 deps='NDR_PRINTCAP tdb_compat cups
')
647 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
648 source='utils
/passwd_util
.c
',
651 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
652 source='lib
/filename_util
.c
',
655 bld.SAMBA3_SUBSYSTEM('LIBNET
',
656 source='libnet
/libnet_join
.c
',
657 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
')
659 bld.SAMBA3_LIBRARY('net_keytab
',
660 source='libnet
/libnet_keytab
.c
',
661 deps='krb5samba ads
',
662 private_library=True)
665 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
666 source='''libnet/libnet_dssync.c
667 libnet/libnet_dssync_passdb.c
668 libnet/libnet_dssync_keytab.c''',
669 deps='LIBNET RPC_NDR_DRSUAPI
')
671 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
672 source='''libnet/libnet_samsync.c
673 libnet/libnet_samsync_ldif.c
674 libnet/libnet_samsync_passdb.c
675 libnet/libnet_samsync_display.c
676 libnet/libnet_samsync_keytab.c''',
677 deps='LIBNET LIBCLI_SAMSYNC
')
679 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
680 source='lib
/eventlog
/eventlog
.c
',
681 deps='NDR_EVENTLOG tdb_compat
')
683 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
684 source='''libsmb/unexpected.c
689 libads/sitename_cache.c''',
690 deps='addns lmhosts resolv
')
692 bld.SAMBA3_SUBSYSTEM('SERVICES
',
693 source='''services/svc_spoolss.c
694 services/svc_rcinit.c
695 services/svc_winreg_glue.c
696 services/svc_netlogon.c
697 services/svc_winreg.c
698 services/svc_wins.c''',
701 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
702 source='''auth/pampass.c auth/pass_check.c''',
703 deps='pam PAM_ERRORS
')
705 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
706 source='libsmb
/passchange
.c
',
712 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
713 source='lib
/version
.c
',
716 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
717 source='libsmb
/samlogon_cache
.c
',
718 deps='samba
-util tdb_compat
')
720 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
721 source='''libsmb/namequery_dc.c
722 libsmb/trustdom_cache.c
723 libsmb/dsgetdcname.c''',
724 deps='ads msrpc3 libcli_lsa3
')
726 bld.SAMBA3_LIBRARY('trusts_util
',
727 source='libsmb
/trusts_util
.c
',
728 deps='libcli_netlogon3 msrpc3 pdb
',
729 private_library=True)
731 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
732 source='lib
/util_tdb
.c
',
733 deps='talloc samba3
-util
')
735 bld.SAMBA3_LIBRARY('samba3
-util
',
736 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''',
737 deps='samba
-util charset
',
738 private_library=True)
740 bld.SAMBA_LIBRARY('xattr_tdb
',
741 source='lib
/xattr_tdb
.c
',
742 deps='NDR_XATTR dbwrap samba3
-util
',
743 private_library=True)
745 bld.SAMBA3_LIBRARY('CHARSET3
',
746 source='''lib/charcnv.c lib/fstring.c''',
747 public_deps='ICONV_WRAPPER charset
',
748 deps='samba
-util samba3
-util
',
749 private_library=True)
751 bld.SAMBA3_SUBSYSTEM('errors3
',
752 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
755 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
756 source='rpc_client
/cli_samr
.c
',
759 bld.SAMBA3_LIBRARY('libcli_lsa3
',
760 source='rpc_client
/cli_lsarpc
.c
',
761 deps='RPC_NDR_LSA INIT_LSA
',
762 private_library=True)
764 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
765 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
766 deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param
',
767 private_library=True)
769 bld.SAMBA3_LIBRARY('cli_spoolss
',
770 source='''rpc_client/cli_spoolss.c
771 rpc_client/init_spoolss.c''',
772 deps='RPC_NDR_SPOOLSS param secrets3
',
773 private_library=True)
775 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
776 source='rpc_client
/cli_winreg
.c
',
777 deps='RPC_NDR_WINREG
')
779 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
780 source='rpc_client
/cli_winreg_int
.c
',
781 deps='LIBCLI_WINREG RPC_SERVER
')
783 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
784 source='rpc_client
/cli_pipe_schannel
.c
',
785 deps='samba
-util krb5samba
')
787 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
788 source='rpc_client
/init_lsa
.c
',
791 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
792 source='rpc_client
/init_netlogon
.c
',
795 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
796 source='rpc_client
/init_samr
.c
',
799 ########################## BINARIES #################################
801 bld.SAMBA3_BINARY('smbd
/smbd
',
802 source='smbd
/server
.c
',
803 deps='smbd_base EPMD LSASD
',
804 install_path='${SBINDIR}
')
806 bld.SAMBA3_BINARY('nmbd
/nmbd
',
807 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
808 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
809 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
810 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
811 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
812 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
813 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
814 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
815 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
816 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
817 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
818 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
826 install_path='${SBINDIR}
')
829 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
830 source='lib
/tdb_validate
.c
',
834 bld.SAMBA3_BINARY('winbindd
/winbindd
',
835 source='''winbindd/winbindd.c
836 winbindd/winbindd_group.c
837 winbindd/winbindd_util.c
838 winbindd/winbindd_cache.c
839 winbindd/winbindd_pam.c
840 winbindd/winbindd_misc.c
841 winbindd/winbindd_cm.c
842 winbindd/winbindd_wins_byip.c
843 winbindd/winbindd_wins_byname.c
844 winbindd/winbindd_msrpc.c
845 winbindd/winbindd_rpc.c
846 winbindd/winbindd_reconnect.c
847 winbindd/winbindd_ads.c
848 winbindd/winbindd_samr.c
849 winbindd/winbindd_dual.c
850 winbindd/winbindd_dual_ndr.c
851 winbindd/winbindd_dual_srv.c
852 winbindd/winbindd_async.c
853 winbindd/winbindd_creds.c
854 winbindd/winbindd_cred_cache.c
855 winbindd/winbindd_ccache_access.c
856 winbindd/winbindd_domain.c
857 winbindd/winbindd_idmap.c
858 winbindd/winbindd_locator.c
859 winbindd/winbindd_ndr.c
861 winbindd/wb_lookupsid.c
862 winbindd/wb_lookupsids.c
863 winbindd/wb_lookupname.c
864 winbindd/wb_uid2sid.c
865 winbindd/wb_gid2sid.c
866 winbindd/wb_sids2xids.c
867 winbindd/wb_queryuser.c
868 winbindd/wb_lookupuseraliases.c
869 winbindd/wb_lookupusergroups.c
870 winbindd/wb_getpwsid.c
871 winbindd/wb_gettoken.c
873 winbindd/wb_seqnums.c
874 winbindd/wb_group_members.c
875 winbindd/wb_getgrsid.c
876 winbindd/wb_query_user_list.c
877 winbindd/wb_fill_pwent.c
878 winbindd/wb_next_pwent.c
879 winbindd/wb_next_grent.c
880 winbindd/wb_dsgetdcname.c
881 winbindd/winbindd_lookupsid.c
882 winbindd/winbindd_lookupsids.c
883 winbindd/winbindd_lookupname.c
884 winbindd/winbindd_sid_to_uid.c
885 winbindd/winbindd_sid_to_gid.c
886 winbindd/winbindd_uid_to_sid.c
887 winbindd/winbindd_gid_to_sid.c
888 winbindd/winbindd_sids_to_xids.c
889 winbindd/winbindd_allocate_uid.c
890 winbindd/winbindd_allocate_gid.c
891 winbindd/winbindd_getpwsid.c
892 winbindd/winbindd_getpwnam.c
893 winbindd/winbindd_getpwuid.c
894 winbindd/winbindd_getsidaliases.c
895 winbindd/winbindd_getuserdomgroups.c
896 winbindd/winbindd_getgroups.c
897 winbindd/winbindd_show_sequence.c
898 winbindd/winbindd_getgrgid.c
899 winbindd/winbindd_getgrnam.c
900 winbindd/winbindd_getusersids.c
901 winbindd/winbindd_lookuprids.c
902 winbindd/winbindd_setpwent.c
903 winbindd/winbindd_getpwent.c
904 winbindd/winbindd_endpwent.c
905 winbindd/winbindd_setgrent.c
906 winbindd/winbindd_getgrent.c
907 winbindd/winbindd_endgrent.c
908 winbindd/winbindd_dsgetdcname.c
909 winbindd/winbindd_getdcname.c
910 winbindd/winbindd_list_users.c
911 winbindd/winbindd_list_groups.c
912 winbindd/winbindd_check_machine_acct.c
913 winbindd/winbindd_change_machine_acct.c
914 winbindd/winbindd_ping_dc.c
915 winbindd/winbindd_pam_auth.c
916 winbindd/winbindd_pam_logoff.c
917 winbindd/winbindd_pam_chauthtok.c
918 winbindd/winbindd_pam_auth_crap.c
919 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
942 enabled=bld.env.build_winbind,
943 install_path='${SBINDIR}
')
945 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
946 source='''rpcclient/rpcclient.c
947 rpcclient/cmd_lsarpc.c
949 rpcclient/cmd_spoolss.c
950 rpcclient/cmd_netlogon.c
951 rpcclient/cmd_srvsvc.c
953 rpcclient/cmd_epmapper.c
954 rpcclient/cmd_dssetup.c
956 rpcclient/cmd_shutdown.c
958 rpcclient/cmd_wkssvc.c
959 rpcclient/cmd_ntsvcs.c
960 rpcclient/cmd_drsuapi.c
961 rpcclient/cmd_eventlog.c
962 rpcclient/cmd_winreg.c
963 rpcclient/cmd_fss.c''',
993 bld.SAMBA3_BINARY('client
/smbclient
',
994 source='''client/client.c
996 client/dnsbrowse.c''',
1008 bld.SAMBA3_BINARY('net
',
1009 source='''utils/net.c
1014 utils/net_rpc_samsync.c
1018 utils/net_groupmap.c
1020 utils/net_idmap_check.c
1023 utils/net_rpc_printer.c
1024 utils/net_rpc_rights.c
1025 utils/net_rpc_service.c
1026 utils/net_rpc_registry.c
1027 utils/net_usershare.c
1030 utils/net_rpc_shell.c
1032 utils/net_rpc_sh_acct.c
1033 utils/net_rpc_audit.c
1037 utils/net_conf_util.c
1042 utils/net_registry.c
1043 utils/net_registry_check.c
1047 utils/net_serverid.c
1048 utils/net_eventlog.c
1049 utils/net_printing.c
1050 utils/net_rpc_trust.c
1051 utils/net_rpc_conf.c
1052 registry/reg_parse.c
1053 registry/reg_format.c
1054 registry/reg_import.c
1055 utils/net_registry_util.c
1056 utils/net_help_common.c''',
1091 RPC_NDR_INITSHUTDOWN
1094 IDMAP_AUTORID_TDB''')
1096 bld.SAMBA3_BINARY('profiles
',
1097 source='utils
/profiles
.c
',
1104 bld.SAMBA3_BINARY('smbspool
',
1105 source='client
/smbspool
.c
',
1113 bld.SAMBA3_BINARY('testparm
',
1114 source='utils
/testparm
.c
',
1120 bld.SAMBA3_BINARY('smbta
-util
',
1121 source='utils
/smbta
-util
.c
',
1127 bld.SAMBA3_BINARY('smbstatus
',
1128 source='''utils/status.c
1129 utils/status_profile.c
1130 smbd/notify_internal.c''',
1139 bld.SAMBA3_BINARY('smbcontrol
',
1140 source='utils
/smbcontrol
.c
',
1147 bld.SAMBA3_BINARY('smbtree
',
1148 source='utils
/smbtree
.c
',
1158 bld.SAMBA3_BINARY('smbpasswd
',
1159 source='utils
/smbpasswd
.c
',
1167 bld.SAMBA3_BINARY('pdbedit
',
1168 source='utils
/pdbedit
.c
',
1176 bld.SAMBA3_BINARY('smbget
',
1177 source='utils
/smbget
.c
',
1183 bld.SAMBA3_BINARY('nmblookup
',
1184 source='utils
/nmblookup
.c
',
1191 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1192 source='''torture/torture.c
1197 torture/mangle_test.c
1199 torture/test_async_echo.c
1200 torture/test_addrchange.c
1201 torture/test_posix_append.c
1202 torture/test_nttrans_create.c
1203 torture/test_nttrans_fsctl.c
1204 torture/test_case_insensitive.c
1205 torture/test_notify_online.c
1206 torture/test_chain3.c
1208 torture/test_authinfo_structs.c
1209 torture/test_smbsock_any_connect.c
1210 torture/test_cleanup.c
1211 torture/test_ctdbconn.c
1213 torture/test_notify.c
1214 lib/tevent_barrier.c
1215 torture/test_dbwrap_watch.c
1216 torture/test_idmap_tdb_common.c
1217 torture/test_dbwrap_ctdb.c
1218 torture/test_buffersize.c
1219 torture/t_strappend.c
1220 torture/wbc_async.c''',
1235 bld.SAMBA3_BINARY('smbconftort
',
1236 source='lib
/smbconf
/testsuite
.c
',
1243 bld.SAMBA3_BINARY('replacetort
',
1244 source='../lib
/replace
/test
/main
.c
',
1245 deps='replace replace
-test
',
1248 bld.SAMBA3_BINARY('msgtest
',
1249 source='torture
/msgtest
.c
',
1255 bld.SAMBA3_BINARY('smbcacls
',
1256 source='utils
/smbcacls
.c
',
1264 bld.SAMBA3_BINARY('smbcquotas
',
1265 source='utils
/smbcquotas
.c
',
1273 bld.SAMBA3_BINARY('eventlogadm
',
1274 source='utils
/eventlogadm
.c
',
1280 bld.SAMBA3_BINARY('sharesec
',
1281 source='utils
/sharesec
.c
',
1286 bld.SAMBA3_BINARY('pdbtest
',
1287 source='torture
/pdbtest
.c
',
1296 bld.SAMBA3_BINARY('vfstest
',
1297 source='''torture/cmd_vfs.c
1299 torture/vfstest_chain.c''',
1306 bld.SAMBA3_BINARY('log2pcap
',
1307 source='utils
/log2pcaphex
.c
',
1308 deps='''talloc popt''',
1311 bld.SAMBA3_BINARY('locktest2
',
1312 source='torture
/locktest2
.c
',
1320 bld.SAMBA3_BINARY('debug2html
',
1321 source='''utils/debug2html.c utils/debugparse.c''',
1322 deps='''talloc popt''',
1325 bld.SAMBA3_BINARY('smbfilter
',
1326 source='utils
/smbfilter
.c
',
1333 bld.SAMBA3_BINARY('versiontest
',
1334 source='lib
/version_test
.c
',
1340 bld.SAMBA3_BINARY('ntlm_auth
',
1341 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1348 LIBNTLMSSP gse gensec''')
1350 bld.SAMBA3_BINARY('timelimit
',
1351 source='script
/tests
/timelimit
.c
',
1354 bld.SAMBA3_BINARY('rpc_open_tcp
',
1355 source='torture
/rpc_open_tcp
.c
',
1361 bld.SAMBA3_BINARY('dbwrap_tool
',
1362 source='utils
/dbwrap_tool
.c
',
1367 bld.SAMBA3_BINARY('dbwrap_torture
',
1368 source='utils
/dbwrap_torture
.c
',
1374 bld.SAMBA3_BINARY('split_tokens
',
1375 source='utils
/split_tokens
.c
',
1381 bld.SAMBA3_BINARY('vlp
',
1382 source='printing
/tests
/vlp
.c
',
1388 bld.SAMBA3_PYTHON('pysmbd
',
1389 source='smbd
/pysmbd
.c
',
1390 deps='smbd_base pyrpc_util
',
1391 realname='samba
/samba3
/smbd
.so
'
1394 bld.SAMBA3_PYTHON('pylibsmb
',
1395 source='libsmb
/pylibsmb
.c
',
1396 deps='smbclient samba
-credentials
',
1397 realname='samba
/samba3
/libsmb_samba_internal
.so
'
1400 bld.SAMBA3_BINARY('samba
-regedit
',
1401 source="""utils/regedit.c utils/regedit_samba3.c
1402 utils/regedit_wrap.c utils/regedit_treeview.c
1403 utils/regedit_valuelist.c utils/regedit_dialog.c
1404 utils/regedit_hexedit.c""",
1405 deps='ncurses menu panel form registry param popt_samba3 smbregistry
',
1406 enabled=bld.env.build_regedit)
1408 ########################## INCLUDES #################################
1411 bld.RECURSE('libgpo
/gpext
')
1412 bld.RECURSE('lib
/pthreadpool
')
1413 bld.RECURSE('lib
/asys
')
1414 bld.RECURSE('librpc
')
1415 bld.RECURSE('librpc
/idl
')
1416 bld.RECURSE('libsmb
')
1417 bld.RECURSE('modules
')
1418 bld.RECURSE('pam_smbpass
')
1419 bld.RECURSE('param
')
1420 bld.RECURSE('passdb
')
1421 bld.RECURSE('rpc_server
')
1422 bld.RECURSE('script
')
1423 bld.RECURSE('winbindd
')
1424 bld.RECURSE('../examples
/auth
')
1425 bld.RECURSE('../examples
/libsmbclient
')
1426 bld.RECURSE('../examples
/pdb
')
1427 bld.RECURSE('../examples
/VFS
')
1428 bld.RECURSE('lib
/netapi
/tests
')
1429 bld.RECURSE('lib
/netapi
/examples
')
1431 bld.ENFORCE_GROUP_ORDERING()
1432 bld.CHECK_PROJECT_RULES()