3 # dnsserver_common is enabled without the ad-dc to prevent imports from failing
4 # when samba-tool is called where the ad-dc was not built. The server-side dns
5 # code is used in the client when we do direct LDAP modification of DNS records.
6 bld
.SAMBA_LIBRARY('dnsserver_common',
7 source
='dnsserver_common.c',
8 deps
='samba-util samba-errors ldbsamba clidns',
12 bld
.SAMBA_MODULE('service_dns',
13 source
='dns_server.c dns_query.c dns_update.c dns_utils.c dns_crypto.c',
15 init_function
='server_service_dns_init',
16 deps
='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET ldbsamba clidns gensec auth samba_server_gensec dnsserver_common',
18 internal_module
=False,
19 enabled
=bld
.AD_DC_BUILD_IS_ENABLED()
22 # a bind9 dlz module giving access to the Samba DNS SAM
23 bld
.SAMBA_LIBRARY('dlz_bind9_10',
25 cflags
='-DBIND_VERSION_9_10',
27 link_name
='modules/bind9/dlz_bind9_10.so',
28 realname
='dlz_bind9_10.so',
29 install_path
='${MODULESDIR}/bind9',
30 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
31 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
33 bld
.SAMBA_LIBRARY('dlz_bind9_11',
35 cflags
='-DBIND_VERSION_9_11',
37 link_name
='modules/bind9/dlz_bind9_11.so',
38 realname
='dlz_bind9_11.so',
39 install_path
='${MODULESDIR}/bind9',
40 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
41 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
43 bld
.SAMBA_LIBRARY('dlz_bind9_12',
45 cflags
='-DBIND_VERSION_9_12',
47 link_name
='modules/bind9/dlz_bind9_12.so',
48 realname
='dlz_bind9_12.so',
49 install_path
='${MODULESDIR}/bind9',
50 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
51 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
53 bld
.SAMBA_LIBRARY('dlz_bind9_14',
55 cflags
='-DBIND_VERSION_9_14',
57 link_name
='modules/bind9/dlz_bind9_14.so',
58 realname
='dlz_bind9_14.so',
59 install_path
='${MODULESDIR}/bind9',
60 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
61 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
63 bld
.SAMBA_LIBRARY('dlz_bind9_16',
65 cflags
='-DBIND_VERSION_9_16',
67 link_name
='modules/bind9/dlz_bind9_16.so',
68 realname
='dlz_bind9_16.so',
69 install_path
='${MODULESDIR}/bind9',
70 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
71 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
73 bld
.SAMBA_LIBRARY('dlz_bind9_18',
75 cflags
='-DBIND_VERSION_9_18',
77 link_name
='modules/bind9/dlz_bind9_18.so',
78 realname
='dlz_bind9_18.so',
79 install_path
='${MODULESDIR}/bind9',
80 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
81 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
83 bld
.SAMBA_LIBRARY('dlz_bind9_for_torture',
85 cflags
='-DBIND_VERSION_9_16',
87 deps
='samba-hostconfig samdb-common gensec popt dnsserver_common',
88 enabled
=bld
.AD_DC_BUILD_IS_ENABLED())
90 pyldb_util
= bld
.pyembed_libname('pyldb-util')
91 pyrpc_util
= bld
.pyembed_libname('pyrpc_util')
92 pytalloc_util
= bld
.pyembed_libname('pytalloc-util')
94 bld
.SAMBA_PYTHON('python_dsdb_dns',
96 deps
='samdb %s %s dnsserver_common %s' % (
97 pyldb_util
, pyrpc_util
, pytalloc_util
),
98 realname
='samba/dsdb_dns.so')