'ctdb_diagnostics.1',
'ctdbd_wrapper.1',
'onnode.1',
+ 'ctdb.conf.5',
'ctdb-script.options.5',
'ctdb.sysconfig.5',
- 'ctdbd.conf.5',
'ctdb.7',
'ctdb-statistics.7',
'ctdb-tunables.7',
pidfile.c run_proc.c
hash_count.c run_event.c
sock_client.c version.c
- cmdline.c path.c
+ cmdline.c path.c conf.c
'''),
deps='''samba-util sys_rw tevent-util
replace talloc tevent tdb popt''')
+ bld.SAMBA_SUBSYSTEM('ctdb-logging-conf',
+ source='common/logging_conf.c',
+ deps='ctdb-util talloc')
+
bld.SAMBA_SUBSYSTEM('ctdb-protocol',
source=bld.SUBDIR('protocol',
'''protocol_header.c protocol_packet.c
deps='''ctdb-util samba-util talloc replace popt''',
install_path='${CTDB_HELPER_BINDIR}')
+ bld.SAMBA_SUBSYSTEM('ctdb-cluster-conf',
+ source='cluster/cluster_conf.c',
+ deps='ctdb-util')
+
+ bld.SAMBA_SUBSYSTEM('ctdb-database-conf',
+ source='database/database_conf.c',
+ deps='ctdb-util')
+
+ bld.SAMBA_SUBSYSTEM('ctdb-event-conf',
+ source='event/event_conf.c',
+ deps='ctdb-util')
+
+ bld.SAMBA_SUBSYSTEM('ctdb-legacy-conf',
+ source='server/legacy_conf.c',
+ deps='ctdb-util')
+
+ bld.SAMBA_BINARY('ctdb-config',
+ source='common/conf_tool.c',
+ cflags='-DCTDB_CONF_TOOL',
+ deps='''ctdb-logging-conf
+ ctdb-event-conf
+ ctdb-cluster-conf
+ ctdb-database-conf
+ ctdb-legacy-conf
+ ctdb-util samba-util talloc replace popt''',
+ install_path='${CTDB_HELPER_BINDIR}')
+
bld.SAMBA_BINARY('ctdbd',
source='server/ctdbd.c ' +
bld.SUBDIR('server',
ctdb_statistics.c
ctdb_update_record.c
ctdb_lock.c ctdb_fork.c
- ctdb_tunnel.c ctdb_client.c'''),
+ ctdb_tunnel.c ctdb_client.c
+ ctdb_config.c
+ '''),
includes='include',
deps='''ctdb-common ctdb-system ctdb-protocol
ctdb-tcp ctdb-util replace sys_rw popt
+ ctdb-logging-conf
+ ctdb-cluster-conf
+ ctdb-database-conf
+ ctdb-event-conf
+ ctdb-legacy-conf
talloc tevent tdb-wrap tdb talloc_report''' +
ib_deps,
install_path='${SBINDIR}',
bld.install_dir(bld.env.CTDB_RUNDIR)
bld.install_dir(bld.env.CTDB_VARDIR)
+ for d in ['volatile', 'persistent', 'state']:
+ bld.install_dir(os.path.join(bld.env.CTDB_VARDIR, d))
+
# Unit tests
ctdb_unit_tests = [
'db_hash_test',
'sock_io_test',
'hash_count_test',
'run_event_test',
- 'cmdline_test'
+ 'cmdline_test',
+ 'conf_test',
]
for target in ctdb_unit_tests: