Pārlūkot izejas kodu

data: add and install sysusers.d gamemode.conf

Add a trivial gamemode.conf file, which creates the gamemode group.

v2: git add gamemode.conf (d'oh)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Emil Velikov 3 gadi atpakaļ
vecāks
revīzija
898feb9c52
3 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 1 0
      data/gamemode.conf
  2. 5 0
      data/meson.build
  3. 2 0
      meson.build

+ 1 - 0
data/gamemode.conf

@@ -0,0 +1 @@
+g gamemode - -

+ 5 - 0
data/meson.build

@@ -20,6 +20,11 @@ if sd_bus_provider == 'systemd'
         configuration: data_conf,
         install_dir: path_systemd_unit_dir,
     )
+    # Install the sysusers.d file
+    install_data(
+        files('gamemode.conf'),
+        install_dir: path_systemd_sysusers_dir,
+    )
 endif
 
 # Install the D-BUS service file

+ 2 - 0
meson.build

@@ -111,6 +111,8 @@ if sd_bus_provider == 'systemd'
         pkgconfig_systemd = dependency('systemd')
         path_systemd_unit_dir = pkgconfig_systemd.get_pkgconfig_variable('systemduserunitdir')
     endif
+    pkgconfig_systemd = dependency('systemd')
+    path_systemd_sysusers_dir = pkgconfig_systemd.get_pkgconfig_variable('sysusersdir')
 endif
 
 with_limits_conf = get_option('with-pam-group')