1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
#!/usr/bin/env python
bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
source='passwd_util.c',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('CONN_TDB',
source='conn_tdb.c')
bld.SAMBA3_SUBSYSTEM('DNS_UTIL',
source='net_dns.c net_ads_join_dns.c',
deps='addns')
bld.SAMBA3_BINARY('profiles',
source='profiles.c',
deps='''
talloc
CMDLINE_S3
smbconf
REGFIO''')
bld.SAMBA3_BINARY('smbcontrol',
source='smbcontrol.c',
deps='''
talloc
smbconf
CMDLINE_S3
cmdline_contexts
PRINTBASE''')
bld.SAMBA3_BINARY('smbtree',
source='smbtree.c',
deps='''
talloc
smbconf
smbclient
msrpc3
CMDLINE_S3
RPC_NDR_SRVSVC''')
bld.SAMBA3_BINARY('smbpasswd',
source='smbpasswd.c',
deps='''
talloc
smbconf
pdb
PASSWD_UTIL
PASSCHANGE
cmdline_contexts
''')
bld.SAMBA3_BINARY('pdbedit',
source='pdbedit.c',
deps='''
talloc
smbconf
CMDLINE_S3
cmdline_contexts
pdb
PASSWD_UTIL''')
bld.SAMBA3_BINARY('smbget',
source='smbget.c',
deps='''
talloc
CMDLINE_S3
smbclient''')
bld.SAMBA3_BINARY('nmblookup',
source='nmblookup.c',
deps='''
talloc
smbconf
CMDLINE_S3
LIBNMB''')
bld.SAMBA3_BINARY('smbcacls',
source='smbcacls.c',
deps='''
talloc
CMDLINE_S3
msrpc3
libcli_lsa3
util_sd
krb5samba''')
bld.SAMBA3_BINARY('smbcquotas',
source='smbcquotas.c',
deps='''
talloc
CMDLINE_S3
libsmb
msrpc3
libcli_lsa3''')
bld.SAMBA3_BINARY('eventlogadm',
source='eventlogadm.c',
deps='''
talloc
smbconf
cmdline_contexts
LIBEVENTLOG''',
install_path='${SBINDIR}')
bld.SAMBA3_BINARY('sharesec',
source='sharesec.c',
deps='''
talloc
msrpc3
libcli_lsa3
CMDLINE_S3
cmdline_contexts
util_sd
''')
bld.SAMBA3_BINARY('log2pcap',
source='log2pcaphex.c',
deps='''talloc popt''',
install=False)
bld.SAMBA3_BINARY('smbfilter',
source='smbfilter.c',
deps='''
talloc
smbconf
LIBNMB''',
install=False)
bld.SAMBA3_BINARY('ntlm_auth',
source='''ntlm_auth.c ntlm_auth_diagnostics.c''',
deps='''
talloc
krb5samba
tiniparser
libsmb
CMDLINE_S3
cmdline_contexts
wbclient
gse gensec''')
bld.SAMBA3_BINARY('dbwrap_tool',
source='dbwrap_tool.c',
deps='''
talloc
CMDLINE_S3
cmdline_contexts
''')
bld.SAMBA3_BINARY('dbwrap_torture',
source='dbwrap_torture.c',
deps='''
talloc
CMDLINE_S3
smbconf
''',
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""",
deps='''
ncurses
menu
panel
form
registry
smbconf
CMDLINE_S3
''',
enabled=bld.env.build_regedit)
bld.SAMBA3_BINARY('testparm',
source='testparm.c',
deps='''
talloc
smbconf
CMDLINE_S3
cmdline_contexts
GNUTLS_HELPERS
''')
bld.SAMBA3_BINARY('net',
source='''net.c
net_ads.c
net_help.c
clirap2.c
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
net_offlinejoin.c
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
net_tdb.c
net_witness.c
net_vfs.c
../registry/reg_format.c
../registry/reg_import.c
net_registry_util.c
net_help_common.c''',
deps='''
talloc
netapi
addns
samba_intl
CMDLINE_S3
cmdline_contexts
pdb
libsmb
smbconf
KRBCLIENT
ndr-standard
msrpc3
gpo
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
trusts_util
IDMAP_AUTORID_TDB
CONN_TDB
jansson
common_auth
ADOUBLE
DNS_UTIL
util_sd
''')
bld.SAMBA3_BINARY('mvxattr',
source='mvxattr.c',
deps='''
talloc
popt
samba-util
''',
enabled=bld.env.build_mvxattr)
bld.SAMBA3_BINARY('destroy_netlogon_creds_cli',
source='destroy_netlogon_creds_cli.c',
deps = '''
talloc
smbconf
NETLOGON_CREDS_CLI
''',
install=False)
smbstatus_source = 'status.c'
if bld.CONFIG_GET("WITH_PROFILE"):
smbstatus_source += ' status_profile.c'
else:
smbstatus_source += ' status_profile_dummy.c'
if bld.CONFIG_GET("HAVE_JANSSON"):
smbstatus_source += ' status_json.c'
else:
smbstatus_source += ' status_json_dummy.c'
bld.SAMBA3_BINARY('smbstatus',
source=smbstatus_source,
deps='''
talloc
smbconf
CMDLINE_S3
cmdline_contexts
smbd_base
LOCKING
PROFILE
CONN_TDB
''')
bld.SAMBA3_BINARY('mdsearch',
source='mdsearch.c',
deps='''
talloc
tevent
smbconf
CMDLINE_S3
cmdline_contexts
libsmb
msrpc3
RPCCLI_MDSSVC
mdssvc
''')
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)
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyrpc_util = bld.pyembed_libname('pyrpc_util')
bld.SAMBA3_PYTHON('python_net_s3',
source='py_net.c',
deps='LIBNET DNS_UTIL cmdline_contexts %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/net_s3.so'
)
|