]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
po: add a copy of polkit its rules 7313/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Nov 2017 20:54:45 +0000 (21:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Nov 2017 15:18:27 +0000 (16:18 +0100)
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.

README
po/its/polkit.its [new file with mode: 0644]
po/its/polkit.loc [new file with mode: 0644]
src/core/meson.build
src/hostname/meson.build
src/import/meson.build
src/locale/meson.build
src/login/meson.build
src/machine/meson.build
src/timedate/meson.build

diff --git a/README b/README
index f73524df1d72f2f78863410176527f2571262629..835763dca84451c89c3fb3a11f75731509982f43 100644 (file)
--- 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 (file)
index 0000000..1c37e6b
--- /dev/null
@@ -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 (file)
index 0000000..c7427ec
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<locatingRules>
+  <locatingRule name="polkit policy" pattern="*.policy">
+    <documentRule localName="policyconfig" target="polkit.its"/>
+  </locatingRule>
+</locatingRules>
index d364c5a284a26a0121a229d7f72e2fbc5c0d042d..caa686ae01c7686af718fd2143b5712564c82427 100644 (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)
 
index b4db5afb1f6eca00e643e139420031f5a257efdc..f03d8304104c47c801aaf3edfd5336ed974b1eac 100644 (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
index 9ace20f50d948f03916919d24fd47e00500cdca2..fa8fa6a5c08b960f23af4bf1813acd55b3297fec 100644 (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)
 
index a0411fb1a666b6f4c624e264a141be45d318078f..7f9dd4db0eeaebf6c0093ef0e465d663860cb223 100644 (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
index 339c5d73cae3d9dccdb0b205f2f3a6e832bdf356..a8f32a2f9324a0a4d2f2a2eaaeaae4ec7901fd8a 100644 (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)
 
index bdf64ac3d2b7484f73eac8623ff09c11ca1c2074..12ea9c8f3c1dc080b989c7f29266102a9a83cf10 100644 (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
index 188cdcac7d4d77063163c0445dc0a691282a4cce..e5abaac05be4415314e1b91ccad2af1d942ad463 100644 (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