meson: properly conditionalize polkit installation
... including pkla installation on Debian. v2: - fix polkit-gobject-1 pkgconfig name
This commit is contained in:
@@ -203,7 +203,7 @@ custom_target(
|
||||
input : policy_in,
|
||||
output : 'org.freedesktop.systemd1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
|
||||
# TODO: this might work with meson from git, see
|
||||
@@ -214,7 +214,7 @@ custom_target(
|
||||
# po_dir : po_dir,
|
||||
# input : policy_in,
|
||||
# output : 'org.freedesktop.systemd1.policy',
|
||||
# install : true,
|
||||
# install : install_polkit,
|
||||
# install_dir : polkitpolicydir)
|
||||
|
||||
install_data('system.conf',
|
||||
|
||||
@@ -11,6 +11,6 @@ if conf.get('ENABLE_HOSTNAMED', 0) == 1
|
||||
input : 'org.freedesktop.hostname1.policy.in',
|
||||
output : 'org.freedesktop.hostname1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
endif
|
||||
|
||||
@@ -61,7 +61,7 @@ if conf.get('ENABLE_IMPORTD', 0) == 1
|
||||
input : 'org.freedesktop.import1.policy.in',
|
||||
output : 'org.freedesktop.import1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
|
||||
install_data('import-pubring.gpg',
|
||||
|
||||
@@ -19,7 +19,7 @@ if conf.get('ENABLE_LOCALED', 0) == 1
|
||||
input : 'org.freedesktop.locale1.policy.in',
|
||||
output : 'org.freedesktop.locale1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
endif
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ if conf.get('ENABLE_LOGIND', 0) == 1
|
||||
input : 'org.freedesktop.login1.policy.in',
|
||||
output : 'org.freedesktop.login1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
|
||||
install_data('70-power-switch.rules',
|
||||
|
||||
@@ -34,7 +34,7 @@ if conf.get('ENABLE_MACHINED', 0) == 1
|
||||
input : 'org.freedesktop.machine1.policy.in',
|
||||
output : 'org.freedesktop.machine1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
endif
|
||||
|
||||
|
||||
@@ -108,8 +108,14 @@ if conf.get('ENABLE_NETWORKD', 0) == 1
|
||||
install_dir : dbuspolicydir)
|
||||
install_data('org.freedesktop.network1.service',
|
||||
install_dir : dbussystemservicedir)
|
||||
install_data('systemd-networkd.rules',
|
||||
install_dir : polkitrulesdir)
|
||||
if install_polkit
|
||||
install_data('systemd-networkd.rules',
|
||||
install_dir : polkitrulesdir)
|
||||
endif
|
||||
if install_polkit_pkla
|
||||
install_data('systemd-networkd.pkla',
|
||||
install_dir : polkitpkladir)
|
||||
endif
|
||||
|
||||
tests += [
|
||||
[['src/network/test-networkd-conf.c'],
|
||||
|
||||
@@ -11,6 +11,6 @@ if conf.get('ENABLE_TIMEDATED', 0) == 1
|
||||
input : 'org.freedesktop.timedate1.policy.in',
|
||||
output : 'org.freedesktop.timedate1.policy',
|
||||
command : intltool_command,
|
||||
install : true,
|
||||
install : install_polkit,
|
||||
install_dir : polkitpolicydir)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user