source: vendor/current/source4/kdc/wscript_build

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 3.5 KB
Line 
1#!/usr/bin/env python
2
3# We do this because we do not want to depend on the KDC, only find and use it's header files. We do not want
4if not bld.CONFIG_SET("USING_SYSTEM_KDC"):
5 kdc_include = "../heimdal/kdc"
6else:
7 kdc_include = getattr(bld.env, "CPPPATH_KDC")
8
9bld.SAMBA_MODULE('service_kdc',
10 source='kdc.c kpasswdd.c proxy.c',
11 subsystem='service',
12 init_function='server_service_kdc_init',
13 deps='''
14 kdc
15 HDB_SAMBA4
16 WDC_SAMBA4
17 samba-hostconfig
18 LIBTSOCKET
19 LIBSAMBA_TSOCKET
20 com_err
21 samba_server_gensec
22 PAC_GLUE
23 KDC-GLUE
24 KPASSWD_GLUE
25 ''',
26 internal_module=False)
27
28bld.SAMBA_LIBRARY('HDB_SAMBA4',
29 source='hdb-samba4.c hdb-samba4-plugin.c',
30 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err sdb_hdb',
31 includes=kdc_include,
32 private_library=True,
33 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
34 )
35
36# A plugin for Heimdal's kadmin for users who need to operate that tool
37bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
38 source='hdb-samba4-plugin.c',
39 deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
40 includes=kdc_include,
41 link_name='modules/hdb/hdb_samba4.so',
42 realname='hdb_samba4.so',
43 install_path='${MODULESDIR}/hdb',
44 enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
45 )
46
47bld.SAMBA_SUBSYSTEM('KDC-GLUE',
48 source='kdc-glue.c',
49 includes=kdc_include,
50 deps='hdb PAC_GLUE',
51 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
52 )
53
54bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
55 source='wdc-samba4.c',
56 includes=kdc_include,
57 deps='ldb auth4_sam auth_sam_reply samba-credentials hdb PAC_GLUE samba-hostconfig com_err KDC-GLUE',
58 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
59 )
60
61bld.SAMBA_SUBSYSTEM('sdb',
62 source='sdb.c',
63 includes=kdc_include,
64 deps='talloc krb5',
65 )
66
67bld.SAMBA_SUBSYSTEM('sdb_hdb',
68 source='sdb_to_hdb.c',
69 includes=kdc_include,
70 deps='talloc sdb hdb',
71 autoproto='sdb_hdb.h',
72 enabled=bld.CONFIG_SET('SAMBA4_USES_HEIMDAL')
73 )
74
75bld.SAMBA_SUBSYSTEM('PAC_GLUE',
76 source='pac-glue.c',
77 includes=kdc_include,
78 deps='ldb auth4_sam auth_sam_reply samba-credentials samba-hostconfig com_err'
79 )
80
81bld.SAMBA_LIBRARY('pac',
82 source=[],
83 deps='PAC_GLUE',
84 private_library=True,
85 grouping_library=True)
86
87
88bld.SAMBA_LIBRARY('db-glue',
89 source='db-glue.c',
90 deps='ldb auth4_sam auth_sam_reply samba-credentials sdb samba-hostconfig com_err',
91 private_library=True,
92 includes=kdc_include,
93 )
94
95bld.SAMBA_SUBSYSTEM('KPASSWD_GLUE',
96 source='kpasswd_glue.c',
97 includes=kdc_include,
98 deps='ldb com_err')
99
100bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
101 source='mit_samba.c',
102 deps='''
103 ldb
104 auth4_sam
105 auth_sam_reply
106 samba-credentials
107 hdb
108 db-glue
109 PAC_GLUE
110 samba-hostconfig
111 com_err
112 ''',
113 enabled=not bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'))
Note: See TracBrowser for help on using the repository browser.