meson.build 943 Bytes
Newer Older
1
service_conf = {'libprivdir': pk_prefix / pk_libprivdir}
Jan Rybar's avatar
Jan Rybar committed
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

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: pk_sysconfdir / 'pam.d',
  )
endif

its_data = files(
  'polkit.its',
  'polkit.loc',
)

install_data(
  its_data,
  install_dir: pk_datadir / 'gettext/its',
)

if enable_logind
  configure_file(
    input: 'polkit.service.in',
    output: '@BASENAME@',
    configuration: service_conf,
    install: true,
    install_dir: systemd_systemdsystemunitdir,
  )
endif