po: add a copy of polkit its rules

It's just a few lines, but this way we avoid a dependency on polkit, and
can use meson's i18n stuff on older distros.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-11-13 21:54:45 +01:00
parent c81217920e
commit d79a2f5fab
10 changed files with 22 additions and 1 deletions

2
README
View File

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

8
po/its/polkit.its Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
version="2.0">
<its:translateRule selector="//*" translate="no"/>
<its:translateRule selector="//action/description |
//action/message"
translate="yes"/>
</its:rules>

6
po/its/polkit.loc Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="polkit policy" pattern="*.policy">
<documentRule localName="policyconfig" target="polkit.its"/>
</locatingRule>
</locatingRules>

View File

@ -202,6 +202,7 @@ i18n.merge_file(
input : policy_in,
output : 'org.freedesktop.systemd1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)

View File

@ -9,6 +9,7 @@ if conf.get('ENABLE_HOSTNAMED') == 1
input : 'org.freedesktop.hostname1.policy.in',
output : 'org.freedesktop.hostname1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)
endif

View File

@ -59,6 +59,7 @@ if conf.get('ENABLE_IMPORTD') == 1
input : 'org.freedesktop.import1.policy.in',
output : 'org.freedesktop.import1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)

View File

@ -17,6 +17,7 @@ if conf.get('ENABLE_LOCALED') == 1
input : 'org.freedesktop.locale1.policy.in',
output : 'org.freedesktop.locale1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)
endif

View File

@ -76,6 +76,7 @@ if conf.get('ENABLE_LOGIND') == 1
input : 'org.freedesktop.login1.policy.in',
output : 'org.freedesktop.login1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)

View File

@ -32,6 +32,7 @@ if conf.get('ENABLE_MACHINED') == 1
input : 'org.freedesktop.machine1.policy.in',
output : 'org.freedesktop.machine1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)
endif

View File

@ -9,6 +9,7 @@ if conf.get('ENABLE_TIMEDATED') == 1
input : 'org.freedesktop.timedate1.policy.in',
output : 'org.freedesktop.timedate1.policy',
po_dir : po_dir,
data_dirs : po_dir,
install : install_polkit,
install_dir : polkitpolicydir)
endif