resolvectl: rename systemd-resolve to resolvectl
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Apr 2018 18:24:23 +0000 (03:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Apr 2018 18:24:23 +0000 (03:24 +0900)
For the compatibility, `systemd-resolve` will be created as a symbolic
link to `resolvectl`.

meson.build
src/resolve/meson.build
src/resolve/resolvconf-compat.c
src/resolve/resolvectl.c [moved from src/resolve/resolve-tool.c with 99% similarity]
src/resolve/resolvectl.h [moved from src/resolve/resolve-tool.h with 100% similarity]

index 6b633df..734a289 100644 (file)
@@ -1593,8 +1593,8 @@ if conf.get('ENABLE_RESOLVE') == 1
                    install : true,
                    install_dir : rootlibexecdir)
 
-        exe = executable('systemd-resolve',
-                         systemd_resolve_sources,
+        exe = executable('resolvectl',
+                         resolvectl_sources,
                          include_directories : includes,
                          link_with : [libshared,
                                       libbasic_gcrypt,
@@ -1608,8 +1608,12 @@ if conf.get('ENABLE_RESOLVE') == 1
         public_programs += [exe]
 
         meson.add_install_script(meson_make_symlink,
-                         join_paths(bindir, 'systemd-resolve'),
+                         join_paths(bindir, 'resolvectl'),
                          join_paths(rootsbindir, 'resolvconf'))
+
+        meson.add_install_script(meson_make_symlink,
+                         join_paths(bindir, 'resolvectl'),
+                         join_paths(bindir, 'systemd-resolve'))
 endif
 
 if conf.get('ENABLE_LOGIND') == 1
index f56ac45..a615774 100644 (file)
@@ -67,11 +67,11 @@ systemd_resolved_sources = files('''
         resolved-etc-hosts.c
 '''.split())
 
-systemd_resolve_sources = files('''
+resolvectl_sources = files('''
          resolvconf-compat.c
          resolvconf-compat.h
-         resolve-tool.c
-         resolve-tool.h
+         resolvectl.c
+         resolvectl.h
 '''.split())
 
 ############################################################
index 7f48610..62f2131 100644 (file)
@@ -10,7 +10,7 @@
 #include "fileio.h"
 #include "parse-util.h"
 #include "resolvconf-compat.h"
-#include "resolve-tool.h"
+#include "resolvectl.h"
 #include "resolved-def.h"
 #include "string-util.h"
 #include "strv.h"
similarity index 99%
rename from src/resolve/resolve-tool.c
rename to src/resolve/resolvectl.c
index 7b583fb..2894241 100644 (file)
@@ -24,7 +24,7 @@
 #include "pager.h"
 #include "parse-util.h"
 #include "resolvconf-compat.h"
-#include "resolve-tool.h"
+#include "resolvectl.h"
 #include "resolved-def.h"
 #include "resolved-dns-packet.h"
 #include "strv.h"