2016-09-27 00:25:07 +02:00
#!/usr/bin/env python
bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
source='passwd_util.c',
deps='samba-util')
2019-04-11 13:03:30 +02:00
bld.SAMBA3_SUBSYSTEM('CONN_TDB',
source='conn_tdb.c')
2021-11-05 14:43:18 -06:00
bld.SAMBA3_SUBSYSTEM('DNS_UTIL',
2021-12-07 16:04:08 +13:00
source='net_dns.c net_ads_join_dns.c',
2024-06-06 10:39:33 +02:00
deps='addns ads')
2021-11-05 14:43:18 -06:00
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('profiles',
source='profiles.c',
deps='''
talloc
2021-01-12 15:45:21 +01:00
CMDLINE_S3
2016-11-22 13:47:32 +01:00
smbconf
2016-09-27 00:25:07 +02:00
REGFIO''')
bld.SAMBA3_BINARY('smbcontrol',
source='smbcontrol.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2021-01-13 13:28:11 +01:00
CMDLINE_S3
2018-08-21 12:35:11 -07:00
cmdline_contexts
2016-09-27 00:25:07 +02:00
PRINTBASE''')
bld.SAMBA3_BINARY('smbtree',
source='smbtree.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2020-04-11 19:54:11 +02:00
smbclient
2016-09-27 00:25:07 +02:00
msrpc3
2021-01-13 14:43:17 +01:00
CMDLINE_S3
2016-09-27 00:25:07 +02:00
RPC_NDR_SRVSVC''')
bld.SAMBA3_BINARY('smbpasswd',
source='smbpasswd.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2016-09-27 00:25:07 +02:00
pdb
PASSWD_UTIL
2018-08-20 15:38:33 -07:00
PASSCHANGE
cmdline_contexts
''')
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('pdbedit',
source='pdbedit.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2021-01-13 13:42:53 +01:00
CMDLINE_S3
2018-08-20 16:08:21 -07:00
cmdline_contexts
2016-09-27 00:25:07 +02:00
pdb
PASSWD_UTIL''')
bld.SAMBA3_BINARY('smbget',
source='smbget.c',
deps='''
talloc
2023-03-30 11:19:01 +02:00
CMDLINE_S3
2016-09-27 00:25:07 +02:00
smbclient''')
bld.SAMBA3_BINARY('nmblookup',
source='nmblookup.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2021-01-13 09:28:34 +01:00
CMDLINE_S3
2016-09-27 00:25:07 +02:00
LIBNMB''')
bld.SAMBA3_BINARY('smbcacls',
2023-01-12 12:11:49 +01:00
source='smbcacls.c',
2016-09-27 00:25:07 +02:00
deps='''
talloc
2021-01-13 14:04:04 +01:00
CMDLINE_S3
2016-09-27 00:25:07 +02:00
msrpc3
libcli_lsa3
2023-01-12 12:11:49 +01:00
util_sd
2016-09-27 00:25:07 +02:00
krb5samba''')
bld.SAMBA3_BINARY('smbcquotas',
source='smbcquotas.c',
deps='''
talloc
2021-01-13 14:38:17 +01:00
CMDLINE_S3
2016-09-27 00:25:07 +02:00
libsmb
msrpc3
libcli_lsa3''')
bld.SAMBA3_BINARY('eventlogadm',
source='eventlogadm.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2018-08-20 16:21:51 -07:00
cmdline_contexts
2018-08-06 17:32:17 +02:00
LIBEVENTLOG''',
install_path='${SBINDIR}')
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('sharesec',
2023-01-12 12:11:49 +01:00
source='sharesec.c',
2016-09-27 00:25:07 +02:00
deps='''
talloc
msrpc3
libcli_lsa3
2021-01-13 13:40:26 +01:00
CMDLINE_S3
2018-08-20 16:15:02 -07:00
cmdline_contexts
2023-01-12 12:11:49 +01:00
util_sd
2018-08-20 16:15:02 -07:00
''')
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('log2pcap',
source='log2pcaphex.c',
deps='''talloc popt''',
install=False)
bld.SAMBA3_BINARY('smbfilter',
source='smbfilter.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2016-09-27 00:25:07 +02:00
LIBNMB''',
install=False)
bld.SAMBA3_BINARY('ntlm_auth',
source='''ntlm_auth.c ntlm_auth_diagnostics.c''',
deps='''
talloc
krb5samba
tiniparser
libsmb
2021-01-13 10:57:36 +01:00
CMDLINE_S3
2018-08-20 16:18:20 -07:00
cmdline_contexts
2021-11-22 17:59:48 +01:00
wbclient
2016-09-27 00:25:07 +02:00
gse gensec''')
bld.SAMBA3_BINARY('dbwrap_tool',
source='dbwrap_tool.c',
deps='''
talloc
2021-01-13 09:16:31 +01:00
CMDLINE_S3
2018-08-21 12:34:34 -07:00
cmdline_contexts
''')
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('dbwrap_torture',
source='dbwrap_torture.c',
deps='''
talloc
2021-01-13 13:22:32 +01:00
CMDLINE_S3
smbconf
''',
2016-09-27 00:25:07 +02:00
install=False)
bld.SAMBA3_BINARY('samba-regedit',
source="""regedit.c regedit_samba3.c
regedit_wrap.c regedit_treeview.c
regedit_valuelist.c regedit_dialog.c
regedit_hexedit.c regedit_list.c""",
2018-08-13 15:39:08 -07:00
deps='''
2021-01-13 14:18:58 +01:00
ncurses
menu
panel
form
registry
smbconf
CMDLINE_S3
2018-08-13 15:39:08 -07:00
''',
2016-09-27 00:25:07 +02:00
enabled=bld.env.build_regedit)
bld.SAMBA3_BINARY('testparm',
source='testparm.c',
deps='''
talloc
2016-11-22 13:47:32 +01:00
smbconf
2021-01-13 09:54:52 +01:00
CMDLINE_S3
2018-08-20 16:11:11 -07:00
cmdline_contexts
2019-11-04 17:26:48 +01:00
GNUTLS_HELPERS
2018-08-20 16:11:11 -07:00
''')
2016-09-27 00:25:07 +02:00
bld.SAMBA3_BINARY('net',
source='''net.c
net_ads.c
net_help.c
2020-04-13 20:04:21 +02:00
clirap2.c
2016-09-27 00:25:07 +02:00
net_rap.c
net_rpc.c
net_rpc_samsync.c
net_time.c
net_lookup.c
net_cache.c
net_groupmap.c
net_idmap.c
net_idmap_check.c
interact.c
net_status.c
net_rpc_printer.c
net_rpc_rights.c
net_rpc_service.c
net_rpc_registry.c
net_usershare.c
netlookup.c
net_sam.c
net_rpc_shell.c
net_util.c
net_rpc_sh_acct.c
net_rpc_audit.c
net_ads_gpo.c
net_conf.c
net_conf_util.c
net_join.c
2021-03-09 13:52:51 +01:00
net_offlinejoin.c
2016-09-27 00:25:07 +02:00
net_user.c
net_group.c
net_file.c
net_registry.c
net_registry_check.c
net_dom.c
net_share.c
net_g_lock.c
net_serverid.c
net_eventlog.c
net_printing.c
net_rpc_trust.c
net_rpc_conf.c
net_afs.c
net_notify.c
2017-02-16 16:22:38 -07:00
net_tdb.c
2023-12-15 14:49:37 +01:00
net_witness.c
2019-07-10 16:03:17 +02:00
net_vfs.c
2016-09-27 00:25:07 +02:00
../registry/reg_format.c
../registry/reg_import.c
net_registry_util.c
net_help_common.c''',
deps='''
talloc
netapi
addns
samba_intl
2021-01-13 14:54:58 +01:00
CMDLINE_S3
cmdline_contexts
2016-09-27 00:25:07 +02:00
pdb
libsmb
2016-11-22 13:47:32 +01:00
smbconf
2016-09-27 00:25:07 +02:00
KRBCLIENT
ndr-standard
msrpc3
2018-06-08 16:13:22 +02:00
gpo
2016-09-27 00:25:07 +02:00
ads
smbd_base
LIBADS_SERVER
LIBADS_PRINTER
SMBREADLINE
PASSWD_UTIL
LIBNET
LIBNET_DSSYNC
LIBEVENTLOG
REGFIO
NDR_NTPRINTING
RPC_NDR_WINREG
RPC_CLIENT_SCHANNEL
LIBCLI_SAMR
libcli_lsa3
libcli_netlogon3
cli_spoolss
RPC_NDR_SRVSVC
RPC_NDR_SVCCTL
RPC_NDR_DSSETUP
RPC_NDR_INITSHUTDOWN
printing_migrate
IDMAP_AUTORID_TDB
2019-04-11 13:03:30 +02:00
CONN_TDB
2018-07-02 16:21:59 +02:00
jansson
common_auth
2019-07-10 16:03:17 +02:00
ADOUBLE
2021-11-05 14:43:18 -06:00
DNS_UTIL
2023-01-12 12:11:49 +01:00
util_sd
2016-09-27 00:25:07 +02:00
''')
2017-02-03 14:57:45 +01:00
bld.SAMBA3_BINARY('mvxattr',
source='mvxattr.c',
deps='''
talloc
2021-01-13 09:11:04 +01:00
popt
samba-util
2017-02-03 14:57:45 +01:00
''',
enabled=bld.env.build_mvxattr)
2018-02-28 07:59:08 +00:00
bld.SAMBA3_BINARY('destroy_netlogon_creds_cli',
source='destroy_netlogon_creds_cli.c',
deps = '''
talloc
2021-01-13 09:04:01 +01:00
smbconf
2018-02-28 07:59:08 +00:00
NETLOGON_CREDS_CLI
''',
install=False)
2019-04-11 11:36:56 +02:00
2021-11-26 01:39:40 +01:00
smbstatus_source = 'status.c'
2019-04-11 11:36:56 +02:00
if bld.CONFIG_GET("WITH_PROFILE"):
smbstatus_source += ' status_profile.c'
else:
smbstatus_source += ' status_profile_dummy.c'
2022-03-24 14:38:46 +01:00
if bld.CONFIG_GET("HAVE_JANSSON"):
smbstatus_source += ' status_json.c'
else:
smbstatus_source += ' status_json_dummy.c'
2019-04-11 11:36:56 +02:00
bld.SAMBA3_BINARY('smbstatus',
source=smbstatus_source,
deps='''
talloc
smbconf
2021-01-13 13:18:23 +01:00
CMDLINE_S3
2019-04-11 11:36:56 +02:00
cmdline_contexts
smbd_base
LOCKING
PROFILE
2019-04-11 13:03:30 +02:00
CONN_TDB
2019-04-11 11:36:56 +02:00
''')
2019-05-02 21:33:46 +02:00
2020-07-04 23:16:40 +02:00
bld.SAMBA3_BINARY('mdsearch',
source='mdsearch.c',
2019-05-02 21:33:46 +02:00
deps='''
talloc
tevent
smbconf
2021-01-13 10:44:57 +01:00
CMDLINE_S3
cmdline_contexts
2019-05-02 21:33:46 +02:00
libsmb
msrpc3
RPCCLI_MDSSVC
mdssvc
''')
2020-10-21 09:40:32 -06:00
2016-07-21 16:53:17 +01:00
bld.SAMBA3_BINARY('wspsearch',
source='wspsearch.c',
deps='''
talloc
tevent
smbconf
CMDLINE_S3
cmdline_contexts
libsmb
msrpc3
LIBSAMBA_WSP
RPCCLI_WSP
WSP_UTIL
dcerpc
''',
enabled=bld.env.with_wsp)
2020-10-21 09:40:32 -06:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyrpc_util = bld.pyembed_libname('pyrpc_util')
bld.SAMBA3_PYTHON('python_net_s3',
source='py_net.c',
2021-11-05 14:43:18 -06:00
deps='LIBNET DNS_UTIL cmdline_contexts %s %s' % (pytalloc_util, pyrpc_util),
2020-10-21 09:40:32 -06:00
realname='samba/net_s3.so'
)