Skip to content

Commit

Permalink
timedatectl: add timesync-status and show-timesync commands
Browse files Browse the repository at this point in the history
Closes systemd#1589.
  • Loading branch information
yuwata committed Apr 30, 2018
1 parent 9e42b90 commit e68741d
Show file tree
Hide file tree
Showing 2 changed files with 471 additions and 13 deletions.
10 changes: 10 additions & 0 deletions meson.build
Expand Up @@ -1238,6 +1238,13 @@ foreach term : ['utmp',
m4_defines += have ? ['-D' + name] : []
endforeach

if get_option('timedated') == 1 or get_option('timesyncd') == 1
conf.set10('ENABLE_TIMEDATECTL', true)
m4_defines += ['-DENABLE_TIMEDATECTL']
else
conf.set10('ENABLE_TIMEDATECTL', false)
endif

want_tests = get_option('tests')
install_tests = get_option('install-tests')
slow_tests = get_option('slow-tests')
Expand Down Expand Up @@ -1864,12 +1871,15 @@ if conf.get('ENABLE_TIMEDATED') == 1
install_rpath : rootlibexecdir,
install : true,
install_dir : rootlibexecdir)
endif

if conf.get('ENABLE_TIMEDATECTL') == 1
exe = executable('timedatectl',
'src/timedate/timedatectl.c',
include_directories : includes,
install_rpath : rootlibexecdir,
link_with : [libshared],
dependencies : [libm],
install : true)
public_programs += [exe]
endif
Expand Down

0 comments on commit e68741d

Please sign in to comment.