Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the...
[ira/wip.git] / nsswitch / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('winbind-client',
4         source='wb_common.c',
5         deps='replace',
6         cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
7         private_library=True
8         )
9
10
11 bld.SAMBA_BINARY('nsstest',
12         source='nsstest.c',
13         deps='replace dl'
14         )
15
16
17 bld.SAMBA_LIBRARY('nss_winbind',
18         source='winbind_nss_linux.c',
19         deps='winbind-client',
20         realname='libnss_winbind.so.2',
21         vnum='2')
22
23
24 if bld.CONFIG_SET('WITH_PAM_MODULES') or bld.CONFIG_SET('HAVE_PAM_START'):
25         bld.SAMBA_LIBRARY('pamwinbind',
26                 source='pam_winbind.c',
27                 deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
28                 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
29                 realname='pam_winbind.so',
30                 )
31
32 if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
33         bld.SAMBA_LIBRARY('winbind_krb5_locator',
34                 source='winbind_krb5_locator.c',
35                 deps='wbclient krb5',
36                 realname='winbind_krb5_locator.so')
37
38 bld.SAMBA_SUBSYSTEM('WB_REQTRANS',
39         source='wb_reqtrans.c',
40         deps='talloc tevent LIBASYNC_REQ'
41         )