i18n: drop intltool use, use meson's merge_file directly

This didn't work during the initial conversion to meson, but should now.
A sufficiently new polkit is also required, for the .its rules files.

Note that https://github.com/mesonbuild/meson/blob/master/docs/markdown/i18n-module.md
says that 'install' argument was added in meson 0.43.0. If this is accurate,
warnigs might be generated with older mesons. Fedora has 0.43.0 across the
board, but other distros probably don't, but I guess that a warning is
prefereable to having to update do latest meson.

The advantages are:
- one less dependency (intltool)
- using the generic implementation instead of our open-coded calls
- we don't need to use the fake "_" prefixes in XML

Replaces #1609, fixes #7300.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-11-13 13:30:39 +01:00
parent f38326f21a
commit c81217920e
16 changed files with 131 additions and 149 deletions

1
README
View File

@ -149,6 +149,7 @@ REQUIREMENTS:
libpython (optional) libpython (optional)
libidn2 or libidn (optional) libidn2 or libidn (optional)
elfutils >= 158 (optional) elfutils >= 158 (optional)
polkit >= 0.113-22-gc78819245f (optional)
pkg-config pkg-config
gperf gperf
docbook-xsl (optional, required for documentation) docbook-xsl (optional, required for documentation)

View File

@ -1,12 +1,4 @@
i18n = import('i18n') i18n = import('i18n')
i18n.gettext(meson.project_name()) i18n.gettext(meson.project_name())
#####################################################################
intltool_merge = find_program('intltool-merge')
po_dir = meson.current_source_dir() po_dir = meson.current_source_dir()
intltool_cache = join_paths(meson.current_build_dir(), 'intltool-merge-cache')
intltool_command = [intltool_merge, '-x', '-u',
'-c', intltool_cache,
po_dir, '@INPUT@', '@OUTPUT@']

View File

@ -197,25 +197,14 @@ policy_in = configure_file(
output : 'org.freedesktop.systemd1.policy.in', output : 'org.freedesktop.systemd1.policy.in',
configuration : substs) configuration : substs)
custom_target( i18n.merge_file(
'org.freedesktop.systemd1.policy', 'org.freedesktop.systemd1.policy',
input : policy_in, input : policy_in,
output : 'org.freedesktop.systemd1.policy', output : 'org.freedesktop.systemd1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)
# TODO: this might work with meson from git, see
# https://github.com/mesonbuild/meson/issues/1441#issuecomment-283585493
#
# i18n.merge_file(
# 'org.freedesktop.systemd1.policy',
# po_dir : po_dir,
# input : policy_in,
# output : 'org.freedesktop.systemd1.policy',
# install : install_polkit,
# install_dir : polkitpolicydir)
install_data('system.conf', install_data('system.conf',
'user.conf', 'user.conf',
install_dir : pkgsysconfdir) install_dir : pkgsysconfdir)

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.systemd1.reply-password"> <action id="org.freedesktop.systemd1.reply-password">
<_description>Send passphrase back to system</_description> <description>Send passphrase back to system</description>
<_message>Authentication is required to send the entered passphrase back to the system.</_message> <message>Authentication is required to send the entered passphrase back to the system.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
@ -28,8 +28,8 @@
</action> </action>
<action id="org.freedesktop.systemd1.manage-units"> <action id="org.freedesktop.systemd1.manage-units">
<_description>Manage system services or other units</_description> <description>Manage system services or other units</description>
<_message>Authentication is required to manage system services or other units.</_message> <message>Authentication is required to manage system services or other units.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -38,8 +38,8 @@
</action> </action>
<action id="org.freedesktop.systemd1.manage-unit-files"> <action id="org.freedesktop.systemd1.manage-unit-files">
<_description>Manage system service or unit files</_description> <description>Manage system service or unit files</description>
<_message>Authentication is required to manage system service or unit files.</_message> <message>Authentication is required to manage system service or unit files.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -48,8 +48,8 @@
</action> </action>
<action id="org.freedesktop.systemd1.set-environment"> <action id="org.freedesktop.systemd1.set-environment">
<_description>Set or unset system and service manager environment variables</_description> <description>Set or unset system and service manager environment variables</description>
<_message>Authentication is required to set or unset system and service manager environment variables.</_message> <message>Authentication is required to set or unset system and service manager environment variables.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -58,8 +58,8 @@
</action> </action>
<action id="org.freedesktop.systemd1.reload-daemon"> <action id="org.freedesktop.systemd1.reload-daemon">
<_description>Reload the systemd state</_description> <description>Reload the systemd state</description>
<_message>Authentication is required to reload the systemd state.</_message> <message>Authentication is required to reload the systemd state.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>

View File

@ -4,11 +4,11 @@ if conf.get('ENABLE_HOSTNAMED') == 1
install_data('org.freedesktop.hostname1.service', install_data('org.freedesktop.hostname1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.hostname1.policy', 'org.freedesktop.hostname1.policy',
input : 'org.freedesktop.hostname1.policy.in', input : 'org.freedesktop.hostname1.policy.in',
output : 'org.freedesktop.hostname1.policy', output : 'org.freedesktop.hostname1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)
endif endif

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.hostname1.set-hostname"> <action id="org.freedesktop.hostname1.set-hostname">
<_description>Set host name</_description> <description>Set host name</description>
<_message>Authentication is required to set the local host name.</_message> <message>Authentication is required to set the local host name.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.hostname1.set-static-hostname"> <action id="org.freedesktop.hostname1.set-static-hostname">
<_description>Set static host name</_description> <description>Set static host name</description>
<_message>Authentication is required to set the statically configured local host name, as well as the pretty host name.</_message> <message>Authentication is required to set the statically configured local host name, as well as the pretty host name.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -38,8 +38,8 @@
</action> </action>
<action id="org.freedesktop.hostname1.set-machine-info"> <action id="org.freedesktop.hostname1.set-machine-info">
<_description>Set machine information</_description> <description>Set machine information</description>
<_message>Authentication is required to set local machine information.</_message> <message>Authentication is required to set local machine information.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -54,11 +54,11 @@ if conf.get('ENABLE_IMPORTD') == 1
install_data('org.freedesktop.import1.service', install_data('org.freedesktop.import1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.import1.policy', 'org.freedesktop.import1.policy',
input : 'org.freedesktop.import1.policy.in', input : 'org.freedesktop.import1.policy.in',
output : 'org.freedesktop.import1.policy', output : 'org.freedesktop.import1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.import1.import"> <action id="org.freedesktop.import1.import">
<_description>Import a VM or container image</_description> <description>Import a VM or container image</description>
<_message>Authentication is required to import a VM or container image</_message> <message>Authentication is required to import a VM or container image</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.import1.export"> <action id="org.freedesktop.import1.export">
<_description>Export a VM or container image</_description> <description>Export a VM or container image</description>
<_message>Authentication is required to export a VM or container image</_message> <message>Authentication is required to export a VM or container image</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -37,8 +37,8 @@
</action> </action>
<action id="org.freedesktop.import1.pull"> <action id="org.freedesktop.import1.pull">
<_description>Download a VM or container image</_description> <description>Download a VM or container image</description>
<_message>Authentication is required to download a VM or container image</_message> <message>Authentication is required to download a VM or container image</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>

View File

@ -12,11 +12,11 @@ if conf.get('ENABLE_LOCALED') == 1
install_data('org.freedesktop.locale1.service', install_data('org.freedesktop.locale1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.locale1.policy', 'org.freedesktop.locale1.policy',
input : 'org.freedesktop.locale1.policy.in', input : 'org.freedesktop.locale1.policy.in',
output : 'org.freedesktop.locale1.policy', output : 'org.freedesktop.locale1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)
endif endif

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.locale1.set-locale"> <action id="org.freedesktop.locale1.set-locale">
<_description>Set system locale</_description> <description>Set system locale</description>
<_message>Authentication is required to set the system locale.</_message> <message>Authentication is required to set the system locale.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -28,8 +28,8 @@
</action> </action>
<action id="org.freedesktop.locale1.set-keyboard"> <action id="org.freedesktop.locale1.set-keyboard">
<_description>Set system keyboard settings</_description> <description>Set system keyboard settings</description>
<_message>Authentication is required to set the system keyboard settings.</_message> <message>Authentication is required to set the system keyboard settings.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -71,11 +71,11 @@ if conf.get('ENABLE_LOGIND') == 1
install_data('org.freedesktop.login1.service', install_data('org.freedesktop.login1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.login1.policy', 'org.freedesktop.login1.policy',
input : 'org.freedesktop.login1.policy.in', input : 'org.freedesktop.login1.policy.in',
output : 'org.freedesktop.login1.policy', output : 'org.freedesktop.login1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.login1.inhibit-block-shutdown"> <action id="org.freedesktop.login1.inhibit-block-shutdown">
<_description>Allow applications to inhibit system shutdown</_description> <description>Allow applications to inhibit system shutdown</description>
<_message>Authentication is required for an application to inhibit system shutdown.</_message> <message>Authentication is required for an application to inhibit system shutdown.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -28,8 +28,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-delay-shutdown"> <action id="org.freedesktop.login1.inhibit-delay-shutdown">
<_description>Allow applications to delay system shutdown</_description> <description>Allow applications to delay system shutdown</description>
<_message>Authentication is required for an application to delay system shutdown.</_message> <message>Authentication is required for an application to delay system shutdown.</message>
<defaults> <defaults>
<allow_any>yes</allow_any> <allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -39,8 +39,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-block-sleep"> <action id="org.freedesktop.login1.inhibit-block-sleep">
<_description>Allow applications to inhibit system sleep</_description> <description>Allow applications to inhibit system sleep</description>
<_message>Authentication is required for an application to inhibit system sleep.</_message> <message>Authentication is required for an application to inhibit system sleep.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -50,8 +50,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-delay-sleep"> <action id="org.freedesktop.login1.inhibit-delay-sleep">
<_description>Allow applications to delay system sleep</_description> <description>Allow applications to delay system sleep</description>
<_message>Authentication is required for an application to delay system sleep.</_message> <message>Authentication is required for an application to delay system sleep.</message>
<defaults> <defaults>
<allow_any>yes</allow_any> <allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -60,8 +60,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-block-idle"> <action id="org.freedesktop.login1.inhibit-block-idle">
<_description>Allow applications to inhibit automatic system suspend</_description> <description>Allow applications to inhibit automatic system suspend</description>
<_message>Authentication is required for an application to inhibit automatic system suspend.</_message> <message>Authentication is required for an application to inhibit automatic system suspend.</message>
<defaults> <defaults>
<allow_any>yes</allow_any> <allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -70,8 +70,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-handle-power-key"> <action id="org.freedesktop.login1.inhibit-handle-power-key">
<_description>Allow applications to inhibit system handling of the power key</_description> <description>Allow applications to inhibit system handling of the power key</description>
<_message>Authentication is required for an application to inhibit system handling of the power key.</_message> <message>Authentication is required for an application to inhibit system handling of the power key.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -81,8 +81,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-handle-suspend-key"> <action id="org.freedesktop.login1.inhibit-handle-suspend-key">
<_description>Allow applications to inhibit system handling of the suspend key</_description> <description>Allow applications to inhibit system handling of the suspend key</description>
<_message>Authentication is required for an application to inhibit system handling of the suspend key.</_message> <message>Authentication is required for an application to inhibit system handling of the suspend key.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -92,8 +92,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-handle-hibernate-key"> <action id="org.freedesktop.login1.inhibit-handle-hibernate-key">
<_description>Allow applications to inhibit system handling of the hibernate key</_description> <description>Allow applications to inhibit system handling of the hibernate key</description>
<_message>Authentication is required for an application to inhibit system handling of the hibernate key.</_message> <message>Authentication is required for an application to inhibit system handling of the hibernate key.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -102,8 +102,8 @@
</action> </action>
<action id="org.freedesktop.login1.inhibit-handle-lid-switch"> <action id="org.freedesktop.login1.inhibit-handle-lid-switch">
<_description>Allow applications to inhibit system handling of the lid switch</_description> <description>Allow applications to inhibit system handling of the lid switch</description>
<_message>Authentication is required for an application to inhibit system handling of the lid switch.</_message> <message>Authentication is required for an application to inhibit system handling of the lid switch.</message>
<defaults> <defaults>
<allow_any>no</allow_any> <allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -112,8 +112,8 @@
</action> </action>
<action id="org.freedesktop.login1.set-self-linger"> <action id="org.freedesktop.login1.set-self-linger">
<_description>Allow non-logged-in user to run programs</_description> <description>Allow non-logged-in user to run programs</description>
<_message>Explicit request is required to run programs as a non-logged-in user.</_message> <message>Explicit request is required to run programs as a non-logged-in user.</message>
<defaults> <defaults>
<allow_any>yes</allow_any> <allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive> <allow_inactive>yes</allow_inactive>
@ -122,8 +122,8 @@
</action> </action>
<action id="org.freedesktop.login1.set-user-linger"> <action id="org.freedesktop.login1.set-user-linger">
<_description>Allow non-logged-in users to run programs</_description> <description>Allow non-logged-in users to run programs</description>
<_message>Authentication is required to run programs as a non-logged-in user.</_message> <message>Authentication is required to run programs as a non-logged-in user.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -132,8 +132,8 @@
</action> </action>
<action id="org.freedesktop.login1.attach-device"> <action id="org.freedesktop.login1.attach-device">
<_description>Allow attaching devices to seats</_description> <description>Allow attaching devices to seats</description>
<_message>Authentication is required for attaching a device to a seat.</_message> <message>Authentication is required for attaching a device to a seat.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -143,8 +143,8 @@
</action> </action>
<action id="org.freedesktop.login1.flush-devices"> <action id="org.freedesktop.login1.flush-devices">
<_description>Flush device to seat attachments</_description> <description>Flush device to seat attachments</description>
<_message>Authentication is required for resetting how devices are attached to seats.</_message> <message>Authentication is required for resetting how devices are attached to seats.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -153,8 +153,8 @@
</action> </action>
<action id="org.freedesktop.login1.power-off"> <action id="org.freedesktop.login1.power-off">
<_description>Power off the system</_description> <description>Power off the system</description>
<_message>Authentication is required for powering off the system.</_message> <message>Authentication is required for powering off the system.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -164,8 +164,8 @@
</action> </action>
<action id="org.freedesktop.login1.power-off-multiple-sessions"> <action id="org.freedesktop.login1.power-off-multiple-sessions">
<_description>Power off the system while other users are logged in</_description> <description>Power off the system while other users are logged in</description>
<_message>Authentication is required for powering off the system while other users are logged in.</_message> <message>Authentication is required for powering off the system while other users are logged in.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -175,8 +175,8 @@
</action> </action>
<action id="org.freedesktop.login1.power-off-ignore-inhibit"> <action id="org.freedesktop.login1.power-off-ignore-inhibit">
<_description>Power off the system while an application asked to inhibit it</_description> <description>Power off the system while an application asked to inhibit it</description>
<_message>Authentication is required for powering off the system while an application asked to inhibit it.</_message> <message>Authentication is required for powering off the system while an application asked to inhibit it.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -186,8 +186,8 @@
</action> </action>
<action id="org.freedesktop.login1.reboot"> <action id="org.freedesktop.login1.reboot">
<_description>Reboot the system</_description> <description>Reboot the system</description>
<_message>Authentication is required for rebooting the system.</_message> <message>Authentication is required for rebooting the system.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -197,8 +197,8 @@
</action> </action>
<action id="org.freedesktop.login1.reboot-multiple-sessions"> <action id="org.freedesktop.login1.reboot-multiple-sessions">
<_description>Reboot the system while other users are logged in</_description> <description>Reboot the system while other users are logged in</description>
<_message>Authentication is required for rebooting the system while other users are logged in.</_message> <message>Authentication is required for rebooting the system while other users are logged in.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -208,8 +208,8 @@
</action> </action>
<action id="org.freedesktop.login1.reboot-ignore-inhibit"> <action id="org.freedesktop.login1.reboot-ignore-inhibit">
<_description>Reboot the system while an application asked to inhibit it</_description> <description>Reboot the system while an application asked to inhibit it</description>
<_message>Authentication is required for rebooting the system while an application asked to inhibit it.</_message> <message>Authentication is required for rebooting the system while an application asked to inhibit it.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -219,8 +219,8 @@
</action> </action>
<action id="org.freedesktop.login1.halt"> <action id="org.freedesktop.login1.halt">
<_description>Halt the system</_description> <description>Halt the system</description>
<_message>Authentication is required for halting the system.</_message> <message>Authentication is required for halting the system.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -230,8 +230,8 @@
</action> </action>
<action id="org.freedesktop.login1.halt-multiple-sessions"> <action id="org.freedesktop.login1.halt-multiple-sessions">
<_description>Halt the system while other users are logged in</_description> <description>Halt the system while other users are logged in</description>
<_message>Authentication is required for halting the system while other users are logged in.</_message> <message>Authentication is required for halting the system while other users are logged in.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -241,8 +241,8 @@
</action> </action>
<action id="org.freedesktop.login1.halt-ignore-inhibit"> <action id="org.freedesktop.login1.halt-ignore-inhibit">
<_description>Halt the system while an application asked to inhibit it</_description> <description>Halt the system while an application asked to inhibit it</description>
<_message>Authentication is required for halting the system while an application asked to inhibit it.</_message> <message>Authentication is required for halting the system while an application asked to inhibit it.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -252,8 +252,8 @@
</action> </action>
<action id="org.freedesktop.login1.suspend"> <action id="org.freedesktop.login1.suspend">
<_description>Suspend the system</_description> <description>Suspend the system</description>
<_message>Authentication is required for suspending the system.</_message> <message>Authentication is required for suspending the system.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -262,8 +262,8 @@
</action> </action>
<action id="org.freedesktop.login1.suspend-multiple-sessions"> <action id="org.freedesktop.login1.suspend-multiple-sessions">
<_description>Suspend the system while other users are logged in</_description> <description>Suspend the system while other users are logged in</description>
<_message>Authentication is required for suspending the system while other users are logged in.</_message> <message>Authentication is required for suspending the system while other users are logged in.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -273,8 +273,8 @@
</action> </action>
<action id="org.freedesktop.login1.suspend-ignore-inhibit"> <action id="org.freedesktop.login1.suspend-ignore-inhibit">
<_description>Suspend the system while an application asked to inhibit it</_description> <description>Suspend the system while an application asked to inhibit it</description>
<_message>Authentication is required for suspending the system while an application asked to inhibit it.</_message> <message>Authentication is required for suspending the system while an application asked to inhibit it.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -284,8 +284,8 @@
</action> </action>
<action id="org.freedesktop.login1.hibernate"> <action id="org.freedesktop.login1.hibernate">
<_description>Hibernate the system</_description> <description>Hibernate the system</description>
<_message>Authentication is required for hibernating the system.</_message> <message>Authentication is required for hibernating the system.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -294,8 +294,8 @@
</action> </action>
<action id="org.freedesktop.login1.hibernate-multiple-sessions"> <action id="org.freedesktop.login1.hibernate-multiple-sessions">
<_description>Hibernate the system while other users are logged in</_description> <description>Hibernate the system while other users are logged in</description>
<_message>Authentication is required for hibernating the system while other users are logged in.</_message> <message>Authentication is required for hibernating the system while other users are logged in.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -305,8 +305,8 @@
</action> </action>
<action id="org.freedesktop.login1.hibernate-ignore-inhibit"> <action id="org.freedesktop.login1.hibernate-ignore-inhibit">
<_description>Hibernate the system while an application asked to inhibit it</_description> <description>Hibernate the system while an application asked to inhibit it</description>
<_message>Authentication is required for hibernating the system while an application asked to inhibit it.</_message> <message>Authentication is required for hibernating the system while an application asked to inhibit it.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -316,8 +316,8 @@
</action> </action>
<action id="org.freedesktop.login1.manage"> <action id="org.freedesktop.login1.manage">
<_description>Manage active sessions, users and seats</_description> <description>Manage active sessions, users and seats</description>
<_message>Authentication is required for managing active sessions, users and seats.</_message> <message>Authentication is required for managing active sessions, users and seats.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -326,8 +326,8 @@
</action> </action>
<action id="org.freedesktop.login1.lock-sessions"> <action id="org.freedesktop.login1.lock-sessions">
<_description>Lock or unlock active sessions</_description> <description>Lock or unlock active sessions</description>
<_message>Authentication is required to lock or unlock active sessions.</_message> <message>Authentication is required to lock or unlock active sessions.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -336,8 +336,8 @@
</action> </action>
<action id="org.freedesktop.login1.set-reboot-to-firmware-setup"> <action id="org.freedesktop.login1.set-reboot-to-firmware-setup">
<_description>Allow indication to the firmware to boot to setup interface</_description> <description>Allow indication to the firmware to boot to setup interface</description>
<_message>Authentication is required to indicate to the firmware to boot to setup interface.</_message> <message>Authentication is required to indicate to the firmware to boot to setup interface.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -346,8 +346,8 @@
</action> </action>
<action id="org.freedesktop.login1.set-wall-message"> <action id="org.freedesktop.login1.set-wall-message">
<_description>Set a wall message</_description> <description>Set a wall message</description>
<_message>Authentication is required to set a wall message</_message> <message>Authentication is required to set a wall message</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>

View File

@ -27,11 +27,11 @@ if conf.get('ENABLE_MACHINED') == 1
install_data('org.freedesktop.machine1.service', install_data('org.freedesktop.machine1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.machine1.policy', 'org.freedesktop.machine1.policy',
input : 'org.freedesktop.machine1.policy.in', input : 'org.freedesktop.machine1.policy.in',
output : 'org.freedesktop.machine1.policy', output : 'org.freedesktop.machine1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)
endif endif

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.machine1.login"> <action id="org.freedesktop.machine1.login">
<_description>Log into a local container</_description> <description>Log into a local container</description>
<_message>Authentication is required to log into a local container.</_message> <message>Authentication is required to log into a local container.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -27,8 +27,8 @@
</action> </action>
<action id="org.freedesktop.machine1.host-login"> <action id="org.freedesktop.machine1.host-login">
<_description>Log into the local host</_description> <description>Log into the local host</description>
<_message>Authentication is required to log into the local host.</_message> <message>Authentication is required to log into the local host.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -37,8 +37,8 @@
</action> </action>
<action id="org.freedesktop.machine1.shell"> <action id="org.freedesktop.machine1.shell">
<_description>Acquire a shell in a local container</_description> <description>Acquire a shell in a local container</description>
<_message>Authentication is required to acquire a shell in a local container.</_message> <message>Authentication is required to acquire a shell in a local container.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -48,8 +48,8 @@
</action> </action>
<action id="org.freedesktop.machine1.host-shell"> <action id="org.freedesktop.machine1.host-shell">
<_description>Acquire a shell on the local host</_description> <description>Acquire a shell on the local host</description>
<_message>Authentication is required to acquire a shell on the local host.</_message> <message>Authentication is required to acquire a shell on the local host.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -59,8 +59,8 @@
</action> </action>
<action id="org.freedesktop.machine1.open-pty"> <action id="org.freedesktop.machine1.open-pty">
<_description>Acquire a pseudo TTY in a local container</_description> <description>Acquire a pseudo TTY in a local container</description>
<_message>Authentication is required to acquire a pseudo TTY in a local container.</_message> <message>Authentication is required to acquire a pseudo TTY in a local container.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -69,8 +69,8 @@
</action> </action>
<action id="org.freedesktop.machine1.host-open-pty"> <action id="org.freedesktop.machine1.host-open-pty">
<_description>Acquire a pseudo TTY on the local host</_description> <description>Acquire a pseudo TTY on the local host</description>
<_message>Authentication is required to acquire a pseudo TTY on the local host.</_message> <message>Authentication is required to acquire a pseudo TTY on the local host.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -79,8 +79,8 @@
</action> </action>
<action id="org.freedesktop.machine1.manage-machines"> <action id="org.freedesktop.machine1.manage-machines">
<_description>Manage local virtual machines and containers</_description> <description>Manage local virtual machines and containers</description>
<_message>Authentication is required to manage local virtual machines and containers.</_message> <message>Authentication is required to manage local virtual machines and containers.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>
@ -90,8 +90,8 @@
</action> </action>
<action id="org.freedesktop.machine1.manage-images"> <action id="org.freedesktop.machine1.manage-images">
<_description>Manage local virtual machine and container images</_description> <description>Manage local virtual machine and container images</description>
<_message>Authentication is required to manage local virtual machine and container images.</_message> <message>Authentication is required to manage local virtual machine and container images.</message>
<defaults> <defaults>
<allow_any>auth_admin</allow_any> <allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive> <allow_inactive>auth_admin</allow_inactive>

View File

@ -4,11 +4,11 @@ if conf.get('ENABLE_TIMEDATED') == 1
install_data('org.freedesktop.timedate1.service', install_data('org.freedesktop.timedate1.service',
install_dir : dbussystemservicedir) install_dir : dbussystemservicedir)
custom_target( i18n.merge_file(
'org.freedesktop.timedate1.policy', 'org.freedesktop.timedate1.policy',
input : 'org.freedesktop.timedate1.policy.in', input : 'org.freedesktop.timedate1.policy.in',
output : 'org.freedesktop.timedate1.policy', output : 'org.freedesktop.timedate1.policy',
command : intltool_command, po_dir : po_dir,
install : install_polkit, install : install_polkit,
install_dir : polkitpolicydir) install_dir : polkitpolicydir)
endif endif

View File

@ -17,8 +17,8 @@
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
<action id="org.freedesktop.timedate1.set-time"> <action id="org.freedesktop.timedate1.set-time">
<_description>Set system time</_description> <description>Set system time</description>
<_message>Authentication is required to set the system time.</_message> <message>Authentication is required to set the system time.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -28,8 +28,8 @@
</action> </action>
<action id="org.freedesktop.timedate1.set-timezone"> <action id="org.freedesktop.timedate1.set-timezone">
<_description>Set system timezone</_description> <description>Set system timezone</description>
<_message>Authentication is required to set the system timezone.</_message> <message>Authentication is required to set the system timezone.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -38,9 +38,9 @@
</action> </action>
<action id="org.freedesktop.timedate1.set-local-rtc"> <action id="org.freedesktop.timedate1.set-local-rtc">
<_description>Set RTC to local timezone or UTC</_description> <description>Set RTC to local timezone or UTC</description>
<_message>Authentication is required to control whether <message>Authentication is required to control whether
the RTC stores the local or UTC time.</_message> the RTC stores the local or UTC time.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>
@ -49,9 +49,9 @@
</action> </action>
<action id="org.freedesktop.timedate1.set-ntp"> <action id="org.freedesktop.timedate1.set-ntp">
<_description>Turn network time synchronization on or off</_description> <description>Turn network time synchronization on or off</description>
<_message>Authentication is required to control whether <message>Authentication is required to control whether
network time synchronization shall be enabled.</_message> network time synchronization shall be enabled.</message>
<defaults> <defaults>
<allow_any>auth_admin_keep</allow_any> <allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive> <allow_inactive>auth_admin_keep</allow_inactive>