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
87 libsmb ndr-table NETLOGON_CREDS_CLI
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 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
293 ../lib/util/debug_s3.c
297 lib/access.c lib/smbrun.c
300 lib/substitute_generic.c
307 lib/server_contexts.c
309 lib/server_prefork_util.c
333 bld.SAMBA3_LIBRARY('smbd_shim
',
334 source='''lib/smbd_shim.c''',
336 private_library=True)
338 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
339 source='''libsmb/ntlmssp.c
340 libsmb/ntlmssp_wrap.c''',
341 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
343 bld.SAMBA3_SUBSYSTEM('auth_generic
',
344 source='libsmb
/auth_generic
.c
',
345 deps='LIBNTLMSSP gse gensec
')
347 bld.SAMBA3_LIBRARY('libsmb
',
348 source='''libsmb/clientgen.c
355 libsmb/clireadwrite.c
368 libsmb/smb2cli_tcon.c
369 libsmb/reparse_symlink.c
371 libsmb/smbsock_connect.c
372 libsmb/cli_smb2_fnum.c''',
384 private_library=True)
386 bld.SAMBA3_SUBSYSTEM('CLDAP
',
387 source='libads
/cldap
.c
',
388 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
')
390 # NOTE: The secrets3 library is a low level library used by several subsystems.
391 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
392 # doing that your design is wrong and needs changing. -SSS
393 bld.SAMBA3_LIBRARY('secrets3
',
394 source='''passdb/secrets.c
395 passdb/machine_account_secrets.c
397 passdb/secrets_lsa.c''',
398 deps='NDR_SECRETS param samba3util dbwrap
',
399 private_library=True)
401 bld.SAMBA3_LIBRARY('smbldap
',
402 source='lib
/smbldap
.c
',
403 deps='ldap lber samba
-util param
',
404 enabled=bld.CONFIG_SET("HAVE_LDAP"),
405 private_library=False,
406 abi_directory='lib
/ABI
',
407 abi_match='smbldap_
*',
410 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
412 bld.SAMBA3_LIBRARY('ads
',
413 source='''libads/ldap.c
415 libads/sasl_wrapping.c
417 libads/kerberos_util.c
420 libads/kerberos_keytab.c
426 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
427 private_library=True)
429 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
430 source='libads
/authdata
.c
',
431 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
433 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
434 source='libads
/ldap_printer
.c
',
435 deps='samba
-util krb5samba
')
437 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN
',
438 source='lib
/afs_settoken
.c
',
441 bld.SAMBA3_SUBSYSTEM('LIBAFS
',
443 deps='samba
-util LIBAFS_SETTOKEN
')
445 bld.SAMBA3_LIBRARY('smbconf
',
446 source='''lib/smbconf/smbconf_init.c
447 lib/smbconf/smbconf_reg.c''',
462 public_headers='../lib
/smbconf
/smbconf
.h
',
466 bld.SAMBA3_LIBRARY('smbd_conn
',
467 source='smbd
/conn
.c
',
468 deps='samba3
-util samba
-util
',
469 private_library=True)
471 bld.SAMBA3_LIBRARY('smbd_base
',
511 printing/printspoolss.c
514 lib/sysquotas_linux.c
526 smbd/aio.c smbd/statvfs.c
530 smbd/dnsregister.c smbd/globals.c
534 smbd/smb2_sesssetup.c
543 smbd/smb2_ioctl_dfs.c
544 smbd/smb2_ioctl_filesys.c
545 smbd/smb2_ioctl_named_pipe.c
546 smbd/smb2_ioctl_network_fs.c
547 smbd/smb2_keepalive.c
553 smbd/smbXsrv_version.c
554 smbd/smbXsrv_session.c
567 smbd/notify_inotify.c
568 smbd/notify_internal.c
569 smbd/build_options.c''',
597 ''' + bld.env['dmapi_lib
'],
598 private_library=True)
600 bld.SAMBA3_SUBSYSTEM('LOCKING
',
601 source='''locking/locking.c
604 locking/share_mode_lock.c''',
611 bld.SAMBA3_SUBSYSTEM('PROFILE
',
612 source='profile
/profile
.c
',
615 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
616 source='''printing/notify.c printing/printing_db.c''',
617 deps='samba
-util tdb_compat
')
619 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
620 source='''printing/printing.c
621 printing/nt_printing.c
622 printing/nt_printing_tdb.c
623 printing/nt_printing_migrate_internal.c
624 printing/nt_printing_ads.c
625 printing/queue_process.c''',
626 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate
')
628 bld.SAMBA3_LIBRARY('printing_migrate
',
629 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
630 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
631 private_library=True)
633 bld.SAMBA3_SUBSYSTEM('PRINTING
',
634 source='''printing/pcap.c
635 printing/print_svid.c
637 printing/print_cups.c
638 printing/print_generic.c
641 printing/print_standard.c
642 printing/print_iprint.c
643 printing/printer_list.c''',
644 deps='NDR_PRINTCAP tdb_compat cups
')
646 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
647 source='utils
/passwd_util
.c
',
650 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
651 source='lib
/filename_util
.c
',
654 bld.SAMBA3_SUBSYSTEM('LIBNET
',
655 source='libnet
/libnet_join
.c
',
656 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
')
658 bld.SAMBA3_LIBRARY('net_keytab
',
659 source='libnet
/libnet_keytab
.c
',
660 deps='krb5samba ads
',
661 private_library=True)
664 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
665 source='''libnet/libnet_dssync.c
666 libnet/libnet_dssync_passdb.c
667 libnet/libnet_dssync_keytab.c''',
668 deps='LIBNET RPC_NDR_DRSUAPI
')
670 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
671 source='''libnet/libnet_samsync.c
672 libnet/libnet_samsync_ldif.c
673 libnet/libnet_samsync_passdb.c
674 libnet/libnet_samsync_display.c
675 libnet/libnet_samsync_keytab.c''',
676 deps='LIBNET LIBCLI_SAMSYNC
')
678 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
679 source='lib
/eventlog
/eventlog
.c
',
680 deps='NDR_EVENTLOG tdb_compat
')
682 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
683 source='''libsmb/unexpected.c
688 libads/sitename_cache.c''',
689 deps='addns lmhosts resolv
')
691 bld.SAMBA3_SUBSYSTEM('SERVICES
',
692 source='''services/svc_spoolss.c
693 services/svc_rcinit.c
694 services/svc_winreg_glue.c
695 services/svc_netlogon.c
696 services/svc_winreg.c
697 services/svc_wins.c''',
700 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
701 source='''auth/pampass.c auth/pass_check.c''',
702 deps='pam PAM_ERRORS
')
704 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
705 source='libsmb
/passchange
.c
',
711 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
712 source='lib
/version
.c
',
715 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
716 source='libsmb
/samlogon_cache
.c
',
717 deps='samba
-util tdb_compat
')
719 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
720 source='''libsmb/namequery_dc.c
721 libsmb/trustdom_cache.c
722 libsmb/dsgetdcname.c''',
723 deps='ads msrpc3 libcli_lsa3
')
725 bld.SAMBA3_LIBRARY('trusts_util
',
726 source='libsmb
/trusts_util
.c
',
727 deps='libcli_netlogon3 msrpc3 pdb
',
728 private_library=True)
730 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
731 source='lib
/util_tdb
.c
',
732 deps='talloc samba3
-util
')
734 bld.SAMBA3_LIBRARY('samba3
-util
',
735 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''',
736 deps='samba
-util charset
',
737 private_library=True)
739 bld.SAMBA_LIBRARY('xattr_tdb
',
740 source='lib
/xattr_tdb
.c
',
741 deps='NDR_XATTR dbwrap samba3
-util
',
742 private_library=True)
744 bld.SAMBA3_LIBRARY('CHARSET3
',
745 source='''lib/charcnv.c lib/fstring.c''',
746 public_deps='ICONV_WRAPPER charset
',
747 deps='samba
-util samba3
-util
',
748 private_library=True)
750 bld.SAMBA3_SUBSYSTEM('errors3
',
751 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
754 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
755 source='rpc_client
/cli_samr
.c
',
758 bld.SAMBA3_LIBRARY('libcli_lsa3
',
759 source='rpc_client
/cli_lsarpc
.c
',
760 deps='RPC_NDR_LSA INIT_LSA
',
761 private_library=True)
763 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
764 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
765 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI
',
766 private_library=True)
768 bld.SAMBA3_LIBRARY('cli_spoolss
',
769 source='''rpc_client/cli_spoolss.c
770 rpc_client/init_spoolss.c''',
771 deps='RPC_NDR_SPOOLSS param secrets3
',
772 private_library=True)
774 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
775 source='rpc_client
/cli_winreg
.c
',
776 deps='RPC_NDR_WINREG
')
778 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
779 source='rpc_client
/cli_winreg_int
.c
',
780 deps='LIBCLI_WINREG RPC_SERVER
')
782 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
783 source='rpc_client
/cli_pipe_schannel
.c
',
784 deps='samba
-util krb5samba
')
786 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
787 source='rpc_client
/init_lsa
.c
',
790 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
791 source='rpc_client
/init_netlogon
.c
',
794 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
795 source='rpc_client
/init_samr
.c
',
798 ########################## BINARIES #################################
800 bld.SAMBA3_BINARY('smbd
/smbd
',
801 source='smbd
/server
.c
',
802 deps='smbd_base EPMD LSASD
',
803 install_path='${SBINDIR}
')
805 bld.SAMBA3_BINARY('nmbd
/nmbd
',
806 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
807 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
808 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
809 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
810 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
811 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
812 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
813 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
814 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
815 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
816 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
817 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
825 install_path='${SBINDIR}
')
828 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
829 source='lib
/tdb_validate
.c
',
833 bld.SAMBA3_BINARY('winbindd
/winbindd
',
834 source='''winbindd/winbindd.c
835 winbindd/winbindd_group.c
836 winbindd/winbindd_util.c
837 winbindd/winbindd_cache.c
838 winbindd/winbindd_pam.c
839 winbindd/winbindd_misc.c
840 winbindd/winbindd_cm.c
841 winbindd/winbindd_wins_byip.c
842 winbindd/winbindd_wins_byname.c
843 winbindd/winbindd_msrpc.c
844 winbindd/winbindd_rpc.c
845 winbindd/winbindd_reconnect.c
846 winbindd/winbindd_ads.c
847 winbindd/winbindd_samr.c
848 winbindd/winbindd_dual.c
849 winbindd/winbindd_dual_ndr.c
850 winbindd/winbindd_dual_srv.c
851 winbindd/winbindd_async.c
852 winbindd/winbindd_creds.c
853 winbindd/winbindd_cred_cache.c
854 winbindd/winbindd_ccache_access.c
855 winbindd/winbindd_domain.c
856 winbindd/winbindd_idmap.c
857 winbindd/winbindd_locator.c
858 winbindd/winbindd_ndr.c
860 winbindd/wb_lookupsid.c
861 winbindd/wb_lookupsids.c
862 winbindd/wb_lookupname.c
863 winbindd/wb_uid2sid.c
864 winbindd/wb_gid2sid.c
865 winbindd/wb_sids2xids.c
866 winbindd/wb_queryuser.c
867 winbindd/wb_lookupuseraliases.c
868 winbindd/wb_lookupusergroups.c
869 winbindd/wb_getpwsid.c
870 winbindd/wb_gettoken.c
872 winbindd/wb_seqnums.c
873 winbindd/wb_group_members.c
874 winbindd/wb_getgrsid.c
875 winbindd/wb_query_user_list.c
876 winbindd/wb_fill_pwent.c
877 winbindd/wb_next_pwent.c
878 winbindd/wb_next_grent.c
879 winbindd/wb_dsgetdcname.c
880 winbindd/winbindd_lookupsid.c
881 winbindd/winbindd_lookupsids.c
882 winbindd/winbindd_lookupname.c
883 winbindd/winbindd_sid_to_uid.c
884 winbindd/winbindd_sid_to_gid.c
885 winbindd/winbindd_uid_to_sid.c
886 winbindd/winbindd_gid_to_sid.c
887 winbindd/winbindd_sids_to_xids.c
888 winbindd/winbindd_allocate_uid.c
889 winbindd/winbindd_allocate_gid.c
890 winbindd/winbindd_getpwsid.c
891 winbindd/winbindd_getpwnam.c
892 winbindd/winbindd_getpwuid.c
893 winbindd/winbindd_getsidaliases.c
894 winbindd/winbindd_getuserdomgroups.c
895 winbindd/winbindd_getgroups.c
896 winbindd/winbindd_show_sequence.c
897 winbindd/winbindd_getgrgid.c
898 winbindd/winbindd_getgrnam.c
899 winbindd/winbindd_getusersids.c
900 winbindd/winbindd_lookuprids.c
901 winbindd/winbindd_setpwent.c
902 winbindd/winbindd_getpwent.c
903 winbindd/winbindd_endpwent.c
904 winbindd/winbindd_setgrent.c
905 winbindd/winbindd_getgrent.c
906 winbindd/winbindd_endgrent.c
907 winbindd/winbindd_dsgetdcname.c
908 winbindd/winbindd_getdcname.c
909 winbindd/winbindd_list_users.c
910 winbindd/winbindd_list_groups.c
911 winbindd/winbindd_check_machine_acct.c
912 winbindd/winbindd_change_machine_acct.c
913 winbindd/winbindd_ping_dc.c
914 winbindd/winbindd_pam_auth.c
915 winbindd/winbindd_pam_logoff.c
916 winbindd/winbindd_pam_chauthtok.c
917 winbindd/winbindd_pam_auth_crap.c
918 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
941 enabled=bld.env.build_winbind,
942 install_path='${SBINDIR}
')
944 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
945 source='''rpcclient/rpcclient.c
946 rpcclient/cmd_lsarpc.c
948 rpcclient/cmd_spoolss.c
949 rpcclient/cmd_netlogon.c
950 rpcclient/cmd_srvsvc.c
952 rpcclient/cmd_epmapper.c
953 rpcclient/cmd_dssetup.c
955 rpcclient/cmd_shutdown.c
957 rpcclient/cmd_wkssvc.c
958 rpcclient/cmd_ntsvcs.c
959 rpcclient/cmd_drsuapi.c
960 rpcclient/cmd_eventlog.c
961 rpcclient/cmd_winreg.c
963 rpcclient/cmd_witness.c''',
994 bld.SAMBA3_BINARY('client
/smbclient
',
995 source='''client/client.c
997 client/dnsbrowse.c''',
1009 bld.SAMBA3_BINARY('net
',
1010 source='''utils/net.c
1015 utils/net_rpc_samsync.c
1019 utils/net_groupmap.c
1021 utils/net_idmap_check.c
1024 utils/net_rpc_printer.c
1025 utils/net_rpc_rights.c
1026 utils/net_rpc_service.c
1027 utils/net_rpc_registry.c
1028 utils/net_usershare.c
1031 utils/net_rpc_shell.c
1033 utils/net_rpc_sh_acct.c
1034 utils/net_rpc_audit.c
1038 utils/net_conf_util.c
1043 utils/net_registry.c
1044 utils/net_registry_check.c
1048 utils/net_serverid.c
1049 utils/net_eventlog.c
1050 utils/net_printing.c
1051 utils/net_rpc_trust.c
1052 utils/net_rpc_conf.c
1053 registry/reg_parse.c
1054 registry/reg_format.c
1055 registry/reg_import.c
1056 utils/net_registry_util.c
1057 utils/net_help_common.c''',
1092 RPC_NDR_INITSHUTDOWN
1095 IDMAP_AUTORID_TDB''')
1097 bld.SAMBA3_BINARY('profiles
',
1098 source='utils
/profiles
.c
',
1105 bld.SAMBA3_BINARY('smbspool
',
1106 source='client
/smbspool
.c
',
1114 bld.SAMBA3_BINARY('testparm
',
1115 source='utils
/testparm
.c
',
1121 bld.SAMBA3_BINARY('smbta
-util
',
1122 source='utils
/smbta
-util
.c
',
1128 bld.SAMBA3_BINARY('smbstatus
',
1129 source='''utils/status.c
1130 utils/status_profile.c
1131 smbd/notify_internal.c''',
1140 bld.SAMBA3_BINARY('smbcontrol
',
1141 source='utils
/smbcontrol
.c
',
1148 bld.SAMBA3_BINARY('smbtree
',
1149 source='utils
/smbtree
.c
',
1159 bld.SAMBA3_BINARY('smbpasswd
',
1160 source='utils
/smbpasswd
.c
',
1168 bld.SAMBA3_BINARY('pdbedit
',
1169 source='utils
/pdbedit
.c
',
1177 bld.SAMBA3_BINARY('smbget
',
1178 source='utils
/smbget
.c
',
1184 bld.SAMBA3_BINARY('nmblookup
',
1185 source='utils
/nmblookup
.c
',
1192 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1193 source='''torture/torture.c
1198 torture/mangle_test.c
1200 torture/test_async_echo.c
1201 torture/test_addrchange.c
1202 torture/test_posix_append.c
1203 torture/test_nttrans_create.c
1204 torture/test_nttrans_fsctl.c
1205 torture/test_case_insensitive.c
1206 torture/test_notify_online.c
1207 torture/test_chain3.c
1209 torture/test_authinfo_structs.c
1210 torture/test_smbsock_any_connect.c
1211 torture/test_cleanup.c
1212 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()