summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-13 21:54:45 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-14 16:18:27 +0100
commitd79a2f5fabaf91521bdf425a7ffd1a71b6acc24d (patch)
treed6cd5fef0c5b71647f3eb7829a8070230ca2a1e9
parentc81217920effddc93fb780cf8f9eb699d6fe1319 (diff)
downloadsystemd-d79a2f5fabaf91521bdf425a7ffd1a71b6acc24d.tar.gz
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.
-rw-r--r--README2
-rw-r--r--po/its/polkit.its8
-rw-r--r--po/its/polkit.loc6
-rw-r--r--src/core/meson.build1
-rw-r--r--src/hostname/meson.build1
-rw-r--r--src/import/meson.build1
-rw-r--r--src/locale/meson.build1
-rw-r--r--src/login/meson.build1
-rw-r--r--src/machine/meson.build1
-rw-r--r--src/timedate/meson.build1
10 files changed, 22 insertions, 1 deletions
diff --git a/README b/README
index f73524df1d..835763dca8 100644
--- a/README
+++ b/README
@@ -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)
diff --git a/po/its/polkit.its b/po/its/polkit.its
new file mode 100644
index 0000000000..1c37e6bee7
--- /dev/null
+++ b/po/its/polkit.its
@@ -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>
diff --git a/po/its/polkit.loc b/po/its/polkit.loc
new file mode 100644
index 0000000000..c7427ec672
--- /dev/null
+++ b/po/its/polkit.loc
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<locatingRules>
+ <locatingRule name="polkit policy" pattern="*.policy">
+ <documentRule localName="policyconfig" target="polkit.its"/>
+ </locatingRule>
+</locatingRules>
diff --git a/src/core/meson.build b/src/core/meson.build
index d364c5a284..caa686ae01 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -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)
diff --git a/src/hostname/meson.build b/src/hostname/meson.build
index b4db5afb1f..f03d830410 100644
--- a/src/hostname/meson.build
+++ b/src/hostname/meson.build
@@ -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
diff --git a/src/import/meson.build b/src/import/meson.build
index 9ace20f50d..fa8fa6a5c0 100644
--- a/src/import/meson.build
+++ b/src/import/meson.build
@@ -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)
diff --git a/src/locale/meson.build b/src/locale/meson.build
index a0411fb1a6..7f9dd4db0e 100644
--- a/src/locale/meson.build
+++ b/src/locale/meson.build
@@ -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
diff --git a/src/login/meson.build b/src/login/meson.build
index 339c5d73ca..a8f32a2f93 100644
--- a/src/login/meson.build
+++ b/src/login/meson.build
@@ -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)
diff --git a/src/machine/meson.build b/src/machine/meson.build
index bdf64ac3d2..12ea9c8f3c 100644
--- a/src/machine/meson.build
+++ b/src/machine/meson.build
@@ -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
diff --git a/src/timedate/meson.build b/src/timedate/meson.build
index 188cdcac7d..e5abaac05b 100644
--- a/src/timedate/meson.build
+++ b/src/timedate/meson.build
@@ -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