mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
744f9910c8
After consolidating DNS resolver code to lib/addns, there is one piece that still needs to be moved into a common DNS resolver library: DNS_HOSTS_FILE subsystem. Unfortunately, direct move would require lib/addns to depend on libcli/util/{ntstatus.h,werror.h} (provided by errors subsystem). In addition, moving libcli/dns/* code to lib/addns/ would make conflicting the dns_tkey_record struct. The conflict comes from source4/dns_server/ and is due to use of IDL to define the struct. lib/addns/ library also provides its own definition so we either need to keep them in sync (rewrite code in lib/addns/ a bit) or depend on generated IDL headers. Thus, making a private library and subsystem clidns is an intermediate step that allows to buy some time fore refactoring.
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_MODULE('service_dns',
|
|
source='dns_server.c dns_query.c dns_update.c dns_utils.c',
|
|
subsystem='service',
|
|
init_function='server_service_dns_init',
|
|
deps='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET ldbsamba clidns',
|
|
local_include=False,
|
|
internal_module=False,
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED()
|
|
)
|
|
|
|
# a bind9 dlz module giving access to the Samba DNS SAM
|
|
bld.SAMBA_LIBRARY('dlz_bind9',
|
|
source='dlz_bind9.c',
|
|
cflags='-DBIND_VERSION_9_8',
|
|
private_library=True,
|
|
link_name='modules/bind9/dlz_bind9.so',
|
|
realname='dlz_bind9.so',
|
|
install_path='${MODULESDIR}/bind9',
|
|
deps='samba-hostconfig samdb-common gensec popt',
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED())
|
|
|
|
bld.SAMBA_LIBRARY('dlz_bind9_9',
|
|
source='dlz_bind9.c',
|
|
cflags='-DBIND_VERSION_9_9',
|
|
private_library=True,
|
|
link_name='modules/bind9/dlz_bind9_9.so',
|
|
realname='dlz_bind9_9.so',
|
|
install_path='${MODULESDIR}/bind9',
|
|
deps='samba-hostconfig samdb-common gensec popt',
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED())
|