smbd: reject FILE_ATTRIBUTE_TEMPORARY on directories
[Samba.git] / source3 / utils / wscript_build
blobf5aa0af7eed9539d21f62d7808b2f1b3af7b0309
1 #!/usr/bin/env python
3 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
4 source='passwd_util.c',
5 deps='samba-util')
7 bld.SAMBA3_SUBSYSTEM('CONN_TDB',
8 source='conn_tdb.c')
10 bld.SAMBA3_SUBSYSTEM('DNS_UTIL',
11 source='net_dns.c net_ads_join_dns.c',
12 deps='addns')
14 bld.SAMBA3_BINARY('profiles',
15 source='profiles.c',
16 deps='''
17 talloc
18 CMDLINE_S3
19 smbconf
20 REGFIO''')
22 bld.SAMBA3_BINARY('smbcontrol',
23 source='smbcontrol.c',
24 deps='''
25 talloc
26 smbconf
27 CMDLINE_S3
28 cmdline_contexts
29 PRINTBASE''')
31 bld.SAMBA3_BINARY('smbtree',
32 source='smbtree.c',
33 deps='''
34 talloc
35 smbconf
36 smbclient
37 msrpc3
38 CMDLINE_S3
39 RPC_NDR_SRVSVC''')
41 bld.SAMBA3_BINARY('smbpasswd',
42 source='smbpasswd.c',
43 deps='''
44 talloc
45 smbconf
46 pdb
47 PASSWD_UTIL
48 PASSCHANGE
49 cmdline_contexts
50 ''')
52 bld.SAMBA3_BINARY('pdbedit',
53 source='pdbedit.c',
54 deps='''
55 talloc
56 smbconf
57 CMDLINE_S3
58 cmdline_contexts
59 pdb
60 PASSWD_UTIL''')
62 bld.SAMBA3_BINARY('smbget',
63 source='smbget.c',
64 deps='''
65 talloc
66 cmdline
67 smbclient''')
69 bld.SAMBA3_BINARY('nmblookup',
70 source='nmblookup.c',
71 deps='''
72 talloc
73 smbconf
74 CMDLINE_S3
75 LIBNMB''')
77 bld.SAMBA3_BINARY('smbcacls',
78 source='smbcacls.c ../lib/util_sd.c',
79 deps='''
80 talloc
81 CMDLINE_S3
82 msrpc3
83 libcli_lsa3
84 krb5samba''')
86 bld.SAMBA3_BINARY('smbcquotas',
87 source='smbcquotas.c',
88 deps='''
89 talloc
90 CMDLINE_S3
91 libsmb
92 msrpc3
93 libcli_lsa3''')
95 bld.SAMBA3_BINARY('eventlogadm',
96 source='eventlogadm.c',
97 deps='''
98 talloc
99 smbconf
100 cmdline_contexts
101 LIBEVENTLOG''',
102 install_path='${SBINDIR}')
104 bld.SAMBA3_BINARY('sharesec',
105 source='sharesec.c ../lib/util_sd.c',
106 deps='''
107 talloc
108 msrpc3
109 libcli_lsa3
110 CMDLINE_S3
111 cmdline_contexts
112 ''')
114 bld.SAMBA3_BINARY('log2pcap',
115 source='log2pcaphex.c',
116 deps='''talloc popt''',
117 install=False)
119 bld.SAMBA3_BINARY('smbfilter',
120 source='smbfilter.c',
121 deps='''
122 talloc
123 smbconf
124 LIBNMB''',
125 install=False)
127 bld.SAMBA3_BINARY('ntlm_auth',
128 source='''ntlm_auth.c ntlm_auth_diagnostics.c''',
129 deps='''
130 talloc
131 krb5samba
132 tiniparser
133 libsmb
134 CMDLINE_S3
135 cmdline_contexts
136 wbclient
137 gse gensec''')
139 bld.SAMBA3_BINARY('dbwrap_tool',
140 source='dbwrap_tool.c',
141 deps='''
142 talloc
143 CMDLINE_S3
144 cmdline_contexts
145 ''')
147 bld.SAMBA3_BINARY('dbwrap_torture',
148 source='dbwrap_torture.c',
149 deps='''
150 talloc
151 CMDLINE_S3
152 smbconf
153 ''',
154 install=False)
156 bld.SAMBA3_BINARY('split_tokens',
157 source='split_tokens.c',
158 deps='''
159 talloc
160 CMDLINE_S3
161 smbconf
162 ''',
163 install=False)
165 bld.SAMBA3_BINARY('samba-regedit',
166 source="""regedit.c regedit_samba3.c
167 regedit_wrap.c regedit_treeview.c
168 regedit_valuelist.c regedit_dialog.c
169 regedit_hexedit.c regedit_list.c""",
170 deps='''
171 ncurses
172 menu
173 panel
174 form
175 registry
176 smbconf
177 CMDLINE_S3
178 ''',
179 enabled=bld.env.build_regedit)
181 bld.SAMBA3_BINARY('testparm',
182 source='testparm.c',
183 deps='''
184 talloc
185 smbconf
186 CMDLINE_S3
187 cmdline_contexts
188 GNUTLS_HELPERS
189 ''')
191 bld.SAMBA3_BINARY('net',
192 source='''net.c
193 net_ads.c
194 net_help.c
195 clirap2.c
196 net_rap.c
197 net_rpc.c
198 net_rpc_samsync.c
199 net_time.c
200 net_lookup.c
201 net_cache.c
202 net_groupmap.c
203 net_idmap.c
204 net_idmap_check.c
205 interact.c
206 net_status.c
207 net_rpc_printer.c
208 net_rpc_rights.c
209 net_rpc_service.c
210 net_rpc_registry.c
211 net_usershare.c
212 netlookup.c
213 net_sam.c
214 net_rpc_shell.c
215 net_util.c
216 net_rpc_sh_acct.c
217 net_rpc_audit.c
218 net_ads_gpo.c
219 net_conf.c
220 net_conf_util.c
221 net_join.c
222 net_offlinejoin.c
223 net_user.c
224 net_group.c
225 net_file.c
226 net_registry.c
227 net_registry_check.c
228 net_dom.c
229 net_share.c
230 net_g_lock.c
231 net_serverid.c
232 net_eventlog.c
233 net_printing.c
234 net_rpc_trust.c
235 net_rpc_conf.c
236 net_afs.c
237 net_notify.c
238 net_tdb.c
239 net_vfs.c
240 ../registry/reg_format.c
241 ../registry/reg_import.c
242 net_registry_util.c
243 ../lib/util_sd.c
244 net_help_common.c''',
245 deps='''
246 talloc
247 netapi
248 addns
249 samba_intl
250 CMDLINE_S3
251 cmdline_contexts
253 libsmb
254 smbconf
255 KRBCLIENT
256 ndr-standard
257 msrpc3
260 smbd_base
261 LIBADS_SERVER
262 LIBADS_PRINTER
263 SMBREADLINE
264 PASSWD_UTIL
265 LIBNET
266 LIBNET_DSSYNC
267 LIBEVENTLOG
268 REGFIO
269 NDR_NTPRINTING
270 RPC_NDR_WINREG
271 RPC_CLIENT_SCHANNEL
272 LIBCLI_SAMR
273 libcli_lsa3
274 libcli_netlogon3
275 cli_spoolss
276 RPC_NDR_SRVSVC
277 RPC_NDR_SVCCTL
278 RPC_NDR_DSSETUP
279 RPC_NDR_INITSHUTDOWN
280 printing_migrate
281 trusts_util
282 IDMAP_AUTORID_TDB
283 CONN_TDB
284 jansson
285 common_auth
286 ADOUBLE
287 DNS_UTIL
288 ''')
290 bld.SAMBA3_BINARY('mvxattr',
291 source='mvxattr.c',
292 deps='''
293 talloc
294 popt
295 samba-util
296 ''',
297 enabled=bld.env.build_mvxattr)
299 bld.SAMBA3_BINARY('destroy_netlogon_creds_cli',
300 source='destroy_netlogon_creds_cli.c',
301 deps = '''
302 talloc
303 smbconf
304 NETLOGON_CREDS_CLI
305 ''',
306 install=False)
308 smbstatus_source = 'status.c'
310 if bld.CONFIG_GET("WITH_PROFILE"):
311 smbstatus_source += ' status_profile.c'
312 else:
313 smbstatus_source += ' status_profile_dummy.c'
315 if bld.CONFIG_GET("HAVE_JANSSON"):
316 smbstatus_source += ' status_json.c'
317 else:
318 smbstatus_source += ' status_json_dummy.c'
320 bld.SAMBA3_BINARY('smbstatus',
321 source=smbstatus_source,
322 deps='''
323 talloc
324 smbconf
325 CMDLINE_S3
326 cmdline_contexts
327 smbd_base
328 LOCKING
329 PROFILE
330 CONN_TDB
331 ''')
333 bld.SAMBA3_BINARY('mdsearch',
334 source='mdsearch.c',
335 deps='''
336 talloc
337 tevent
338 smbconf
339 CMDLINE_S3
340 cmdline_contexts
341 libsmb
342 msrpc3
343 RPCCLI_MDSSVC
344 mdssvc
345 ''')
347 pytalloc_util = bld.pyembed_libname('pytalloc-util')
348 pyrpc_util = bld.pyembed_libname('pyrpc_util')
349 bld.SAMBA3_PYTHON('python_net_s3',
350 source='py_net.c',
351 deps='LIBNET DNS_UTIL cmdline_contexts %s %s' % (pytalloc_util, pyrpc_util),
352 realname='samba/net_s3.so'