summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 74d24547f8ee52606aab2b65dcd5c3d0edb69eb7 (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
48
49
50
51
52
53
54
service_conf = {
  'libprivdir': pk_prefix / pk_libprivdir,
  'polkitd_user': polkitd_user,
  'polkitd_uid': polkitd_uid,
}

configure_file(
  input: 'org.freedesktop.PolicyKit1.service.in',
  output: '@BASENAME@',
  configuration: service_conf,
  install: true,
  install_dir: dbus_system_bus_services_dir,
)

configure_file(
  input: 'org.freedesktop.PolicyKit1.conf.in',
  output: '@BASENAME@',
  configuration: {'polkitd_user': polkitd_user},
  install: true,
  install_dir: dbus_policydir,
)

if enable_pam
  configure_file(
    input: 'polkit-1.in',
    output: '@BASENAME@',
    configuration: pam_conf,
    install: true,
    install_dir: pam_prefix,
  )
endif

if session_tracking == 'libsystemd-login'
  configure_file(
    input: 'polkit.service.in',
    output: '@BASENAME@',
    configuration: service_conf,
    install: true,
    install_dir: systemd_systemdsystemunitdir,
  )

  configure_file(
    input: 'polkit.conf.in',
    output: '@BASENAME@',
    configuration: service_conf,
    install: true,
    install_dir: systemd_sysusers_dir,
  )
endif

install_data(
  'policyconfig-1.dtd',
  install_dir: pk_datadir / 'polkit-1'
)