2010-09-28 20:55:55 +04:00
#!/usr/bin/env python
2013-10-23 12:14:01 +04:00
### RPC_SERVER
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('rpc',
2010-12-15 02:33:21 +03:00
source='',
2019-05-28 18:15:19 +03:00
deps='dcerpc-server-core')
2010-09-28 20:55:55 +04:00
2021-06-09 09:37:06 +03:00
bld.SAMBA_BINARY('samba-dcerpcd',
source='rpc_host.c',
deps='''
samba3core
CMDLINE_S3
dcerpc-binding
npa_tstream
AUTH_COMMON
RPC_SOCK_HELPER
NDR_RPC_HOST
''',
install_path='${SAMBA_LIBEXECDIR}')
2021-04-07 10:00:23 +03:00
bld.SAMBA_LIBRARY('RPC_WORKER',
private_library=True,
source='''
rpc_worker.c
''',
deps='''
smbd_base
CMDLINE_S3
NDR_RPC_HOST
RPC_SERVER
RPC_NCACN_NP
npa_tstream
''')
2021-04-07 10:13:25 +03:00
bld.SAMBA3_BINARY('rpcd_rpcecho',
source='rpcd_rpcecho.c',
deps='''
RPC_WORKER
RPC_RPCECHO
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_classic',
source='rpcd_classic.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_SERVICE
RPC_SOCK_HELPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_lsad',
source='rpcd_lsad.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_LSARPC
RPC_SAMR
RPC_DSSETUP
RPC_NETLOGON
RPC_SOCK_HELPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_winreg',
source='rpcd_winreg.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_WINREG
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_spoolss',
source='rpcd_spoolss.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_SPOOLSS
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_epmapper',
source='rpcd_epmapper.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_EPMAPPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_fsrvp',
source='rpcd_fsrvp.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_FSS_AGENT
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
2011-08-11 00:33:22 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_CONFIG',
2012-02-07 22:46:43 +04:00
source='rpc_config.c',
2013-09-24 22:02:54 +04:00
deps='talloc')
2011-08-11 00:33:22 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_NCACN_NP',
2019-11-04 21:01:28 +03:00
source='rpc_ncacn_np.c rpc_handles.c',
2021-06-18 20:11:19 +03:00
deps='auth common_auth npa_tstream')
bld.SAMBA3_LIBRARY('RPC_SERVER_LOOP',
private_library=True,
source='rpc_server.c',
deps='''
LIBTSOCKET
dcerpc-server-core
npa_tstream
auth
RPC_NCACN_NP
samba3-util
''')
2010-12-20 16:29:34 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('SRV_ACCESS_CHECK',
source='srv_access_check.c',
2011-06-20 14:36:46 +04:00
deps='samba-util')
2011-02-02 18:17:12 +03:00
2013-10-23 12:24:13 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SERVER',
2021-06-18 20:11:19 +03:00
source='',
2013-10-23 12:24:13 +04:00
deps='''
2019-02-22 20:30:45 +03:00
dcerpc-server-core
2013-10-23 12:24:13 +04:00
RPC_CONFIG
RPC_SERVER_LOOP
NDR_NAMED_PIPE_AUTH
''')
2013-10-23 12:14:01 +04:00
### RPC_SERVICES
bld.SAMBA3_SUBSYSTEM('RPC_DSSETUP',
2019-05-28 18:01:36 +03:00
source='''dssetup/srv_dssetup_nt.c''',
2011-06-20 14:36:46 +04:00
deps='samba-util')
2011-03-05 03:26:55 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_EPMAPPER',
2019-05-28 18:01:36 +03:00
source='''epmapper/srv_epmapper.c''',
2011-08-15 15:25:37 +04:00
deps='samba-util')
2014-01-03 19:21:22 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_FSS_STATE',
source='''fss/srv_fss_state.c''',
deps='samba-util NDR_FSRVP_STATE')
2012-04-10 16:32:41 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_FSS_AGENT',
2019-05-28 18:01:36 +03:00
source='''fss/srv_fss_agent.c''',
2012-04-10 16:32:41 +04:00
deps='samba-util RPC_FSS_STATE')
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_EVENTLOG',
source='''eventlog/srv_eventlog_nt.c
2019-05-28 18:01:36 +03:00
eventlog/srv_eventlog_reg.c''',
2013-10-23 12:14:01 +04:00
deps='LIBEVENTLOG LIBCLI_WINREG_INTERNAL')
2011-03-25 16:12:59 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_INITSHUTDOWN',
2019-05-28 18:01:36 +03:00
source='''initshutdown/srv_initshutdown_nt.c''',
2013-10-23 12:14:01 +04:00
deps='samba-util')
2010-12-01 01:04:23 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_LSARPC',
2019-05-28 18:01:36 +03:00
source='''lsa/srv_lsa_nt.c''',
2019-01-17 14:25:43 +03:00
deps='SRV_ACCESS_CHECK LIBLSA GNUTLS_HELPERS')
2010-12-01 01:06:53 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_NETDFS',
2019-05-28 18:01:36 +03:00
source='''dfs/srv_dfs_nt.c''',
2013-09-24 22:02:54 +04:00
deps='samba-util')
2010-12-15 02:33:21 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_NETLOGON',
2019-05-28 18:01:36 +03:00
source='''netlogon/srv_netlog_nt.c''',
2022-12-22 18:30:26 +03:00
deps='LIBCLI_AUTH DCERPC_SERVER_NETLOGON')
2010-12-20 16:29:34 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_NTSVCS',
2019-05-28 18:01:36 +03:00
source='''ntsvcs/srv_ntsvcs_nt.c''',
2013-09-24 22:02:54 +04:00
deps='samba-util')
2010-12-20 16:29:34 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_RPCECHO',
2019-05-28 18:01:36 +03:00
source='''echo/srv_echo_nt.c''',
2013-09-24 22:02:54 +04:00
deps='samba-util')
2010-12-20 16:29:34 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SAMR',
source='''samr/srv_samr_nt.c
samr/srv_samr_util.c
2019-05-28 18:01:36 +03:00
samr/srv_samr_chgpasswd.c''',
2019-11-12 18:56:45 +03:00
deps='PLAINTEXT_AUTH SRV_ACCESS_CHECK DCERPC_HELPER')
2010-12-20 16:29:34 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_SPOOLSS',
2013-09-24 22:02:54 +04:00
source='''spoolss/srv_spoolss_nt.c
spoolss/srv_spoolss_util.c''',
2013-09-25 13:35:41 +04:00
deps='PRINTING PRINTBACKEND LIBCLI_WINREG_INTERNAL')
2010-12-20 16:29:34 +03:00
2016-09-20 21:21:50 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_IREMOTEWINSPOOL',
source='''
spoolss/srv_iremotewinspool_nt.c
2016-09-20 19:43:57 +03:00
spoolss/srv_iremotewinspool.c
2016-09-20 21:21:50 +03:00
''',
deps='RPC_SPOOLSS')
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SRVSVC',
2019-05-28 18:01:36 +03:00
source='''srvsvc/srv_srvsvc_nt.c''',
2013-10-23 12:14:01 +04:00
deps='samba-util tdb')
2010-12-20 16:29:34 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SVCCTL',
source='''svcctl/srv_svcctl_nt.c
2019-05-28 18:01:36 +03:00
svcctl/srv_svcctl_reg.c''',
2013-10-23 12:14:01 +04:00
deps='SERVICES LIBCLI_WINREG_INTERNAL')
2010-12-15 02:33:21 +03:00
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_WINREG',
2019-05-28 18:01:36 +03:00
source='''winreg/srv_winreg_nt.c''',
2019-03-27 22:51:27 +03:00
deps='REG_FULL REGFIO NDR_PERFCOUNT')
2013-10-23 12:14:01 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
2019-05-28 18:01:36 +03:00
source='''wkssvc/srv_wkssvc_nt.c''',
2013-10-23 12:14:01 +04:00
deps='LIBNET')
2015-03-08 10:01:06 +03:00
bld.SAMBA3_SUBSYSTEM('mdssvc',
source='''
mdssvc/dalloc.c
mdssvc/marshalling.c
''')
2019-03-13 17:42:51 +03:00
rpc_mdssvc_sources = '''
mdssvc/mdssvc.c
2019-04-17 12:00:52 +03:00
mdssvc/mdssvc_noindex.c
2019-03-13 17:42:51 +03:00
mdssvc/srv_mdssvc_nt.c
'''
2021-01-07 17:51:26 +03:00
rpc_mdssvc_deps = 'mdssvc samba-util smbd_base '
2019-03-13 17:42:51 +03:00
2019-05-06 16:03:02 +03:00
if bld.env.spotlight_backend_tracker:
rpc_mdssvc_sources += '''
mdssvc/mdssvc_tracker.c
mdssvc/sparql_mapping.c
mdssvc/sparql_parser.y
2020-05-27 12:50:41 +03:00
mdssvc/sparql_lexer.l
2019-05-06 16:03:02 +03:00
'''
rpc_mdssvc_deps += 'tevent-glib-glue ' + bld.env['libtracker']
2019-03-14 09:38:20 +03:00
2019-08-05 17:25:01 +03:00
if bld.env.spotlight_backend_es:
rpc_mdssvc_sources += '''
mdssvc/mdssvc_es.c
mdssvc/es_mapping.c
mdssvc/es_parser.y
2020-05-27 12:50:41 +03:00
mdssvc/es_lexer.l
2019-08-05 17:25:01 +03:00
'''
rpc_mdssvc_deps += ' http jansson'
2014-07-23 11:58:45 +04:00
2022-01-27 14:06:55 +03:00
bld.INSTALL_FILES(bld.env.SAMBA_DATADIR,
'mdssvc/elasticsearch_mappings.json')
2021-04-07 10:13:25 +03:00
bld.SAMBA3_BINARY('rpcd_mdssvc',
source='rpcd_mdssvc.c ' + rpc_mdssvc_sources,
deps='''
CMDLINE_S3
RPC_WORKER
smbd_base
''' + rpc_mdssvc_deps,
install_path='${SAMBA_LIBEXECDIR}')
2013-10-23 12:24:13 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SERVICE',
2021-06-18 20:11:19 +03:00
source='',
2013-10-23 12:24:13 +04:00
deps='''
2015-10-24 11:50:43 +03:00
rpc
2013-10-23 12:24:13 +04:00
RPC_SERVER
RPC_SAMR
RPC_LSARPC
RPC_WINREG
RPC_INITSHUTDOWN
RPC_DSSETUP
RPC_WKSSVC
RPC_SVCCTL
RPC_NTSVCS
RPC_NETLOGON
RPC_NETDFS
RPC_SRVSVC
2016-09-20 21:21:50 +03:00
RPC_IREMOTEWINSPOOL
2013-10-23 12:24:13 +04:00
RPC_EVENTLOG
RPC_RPCECHO
RPC_EPMAPPER
2012-04-10 16:32:41 +04:00
RPC_FSS_AGENT
2013-10-23 12:24:13 +04:00
''')
2013-10-23 12:14:01 +04:00
# RPC_DAEMONS
2013-10-23 12:36:57 +04:00
bld.SAMBA3_SUBSYSTEM('RPC_SOCK_HELPER',
source='rpc_sock_helper.c',
2021-06-18 20:11:19 +03:00
deps='')