meson: Replace configure_file with fs.copyfile

configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If06241c070a7ee06e60c0b346af41138d967bdcc
diff --git a/meson.build b/meson.build
index 62ecf9c..0011fba 100644
--- a/meson.build
+++ b/meson.build
@@ -201,14 +201,13 @@
     install: true
 )
 
+fs = import('fs')
 foreach s : extra_scripts
-    configure_file(
-        input: s,
-        copy: true,
+    fs.copyfile(
+        s,
         install: true,
         install_mode: 'rwxr-xr-x',
-        install_dir: get_option('bindir'),
-        output: '@BASENAME@'
+        install_dir: get_option('bindir')
     )
 endforeach
 
@@ -221,12 +220,10 @@
     'systemdsystemunitdir',
     pkgconfig_define: ['prefix', get_option('prefix')])
 foreach u : unit_files
-    configure_file(
-        input: u,
-        copy: true,
+    fs.copyfile(
+        u,
         install: true,
-        install_dir: systemd_system_unit_dir,
-        output: '@BASENAME@.service'
+        install_dir: systemd_system_unit_dir
     )
 endforeach