summaryrefslogtreecommitdiff
path: root/net-dns/knot-resolver/files/knot-resolver-5.7.0-tmpfiles.patch
blob: e199806972cb547e52c8ef8449c6077cb827a30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Always install tmpfiles config.

Bug: https://bugs.gentoo.org/921567
Bug: https://gitlab.nic.cz/knot/knot-resolver/-/issues/886
--- a/systemd/meson.build
+++ b/systemd/meson.build
@@ -12,6 +12,18 @@ systemd_config.set('etc_dir', etc_dir)
 systemd_config.set('run_dir', run_dir)
 systemd_config.set('lib_dir', lib_dir)
 
+## tmpfiles
+tmpfiles = configure_file(
+  input: 'tmpfiles.d/knot-resolver.conf.in',
+  output: 'knot-resolver.tmpfiles',
+  configuration: systemd_config,
+)
+install_data(
+  tmpfiles,
+  rename: ['knot-resolver.conf'],
+  install_dir: systemd_tmpfiles_dir,
+)
+
 if systemd_files == 'enabled'
   ## unit files
   kresd_service = configure_file(
@@ -39,18 +51,6 @@ if systemd_files == 'enabled'
   )
   install_man(kresd_systemd_man)
 
-  ## tmpfiles
-  tmpfiles = configure_file(
-    input: 'tmpfiles.d/knot-resolver.conf.in',
-    output: 'knot-resolver.tmpfiles',
-    configuration: systemd_config,
-  )
-  install_data(
-    tmpfiles,
-    rename: ['knot-resolver.conf'],
-    install_dir: systemd_tmpfiles_dir,
-  )
-
   ## sysusers
   sysusers = configure_file(
     input: 'sysusers.d/knot-resolver.conf.in',
-- 
2.43.0