]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager/meson.build: installation script added
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 21 Oct 2022 12:08:31 +0000 (14:08 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 31 Oct 2022 10:32:25 +0000 (11:32 +0100)
subdir removed, python3 deps removed

manager/meson.build

index de70f001319ac5a2a98afcbcf620bdb151cf7c3e..9ccd39e66dff58c5aa8bddb401dd2dbddd066ef3 100644 (file)
@@ -6,17 +6,8 @@ build_manager_client = false
 if get_option('manager') != 'disabled'
     message('--- manager dependencies ---')
 
-    python_deps = [
-        'jinja2',
-        'yaml',
-        'aiohttp',
-        'prometheus_client',
-        'supervisor',
-        'typing_extensions',
-    ]
-
     pymod = import('python')
-    py3 = pymod.find_installation('python3', modules: python_deps)
+    py3 = pymod.find_installation('python3')
     py3_deps = py3.dependency()
 
     if py3.language_version().version_compare('<3.6')
@@ -32,10 +23,10 @@ endif
 
 if build_manager
 
-    manager_module_dir = 'knot_resolver_manager'
-    subdir(manager_module_dir)
+    # installation script
+    meson.add_install_script('scripts/install.sh', py3.path())
 
-    # YAML config: etc/knot-resolver/config.yml
+    # YAML config configuration file
     install_data(
         sources: 'etc/knot-resolver/config.yml',
         install_dir: etc_dir,