summaryrefslogtreecommitdiffstats
path: root/polkit/policy
diff options
context:
space:
mode:
Diffstat (limited to 'polkit/policy')
-rw-r--r--polkit/policy/Makefile16
-rw-r--r--polkit/policy/org.mageia.drakkeyboard.policy.in (renamed from polkit/policy/org.mageia.drakkeyboard.policy)4
-rw-r--r--polkit/policy/org.mageia.drakmouse.policy.in (renamed from polkit/policy/org.mageia.drakmouse.policy)4
-rw-r--r--polkit/policy/org.mageia.drakx11.policy.in (renamed from polkit/policy/org.mageia.drakx11.policy)4
4 files changed, 22 insertions, 6 deletions
diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile
new file mode 100644
index 0000000..1de7222
--- /dev/null
+++ b/polkit/policy/Makefile
@@ -0,0 +1,16 @@
+POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions
+
+POLICY_IN := $(wildcard *.policy.in)
+POLICY = $(POLICY_IN:.policy.in=.policy)
+
+all: $(POLICY)
+
+clean:
+ rm -f $(POLICY)
+
+install: all
+ install -d $(POLKITPOLICYDEST)
+ install -m644 $(POLICY) $(POLKITPOLICYDEST)
+
+%.policy: %.policy.in
+ intltool-merge --utf8 ../../po $< $@ -x -u -c ../../po/.intltool-merge-cache
diff --git a/polkit/policy/org.mageia.drakkeyboard.policy b/polkit/policy/org.mageia.drakkeyboard.policy.in
index e3cd5bd..7ebaf2a 100644
--- a/polkit/policy/org.mageia.drakkeyboard.policy
+++ b/polkit/policy/org.mageia.drakkeyboard.policy.in
@@ -8,8 +8,8 @@
<vendor_url>http://www.mageia.org/</vendor_url>
<action id="org.mageia.drakkeyboard.pkexec.run">
- <description>Run Mageia Keyboard Configuration</description>
- <message>Authentication is required to run Mageia Keyboard Configuration</message>
+ <_description>Run Mageia Keyboard Configuration</_description>
+ <_message>Authentication is required to run Mageia Keyboard Configuration</_message>
<icon_name>drakconf</icon_name>
<defaults>
<allow_any>no</allow_any>
diff --git a/polkit/policy/org.mageia.drakmouse.policy b/polkit/policy/org.mageia.drakmouse.policy.in
index 157e2d2..dc9981e 100644
--- a/polkit/policy/org.mageia.drakmouse.policy
+++ b/polkit/policy/org.mageia.drakmouse.policy.in
@@ -8,8 +8,8 @@
<vendor_url>http://www.mageia.org/</vendor_url>
<action id="org.mageia.drakmouse.pkexec.run">
- <description>Run Mageia Mouse Configuration</description>
- <message>Authentication is required to run Mageia Mouse Configuration</message>
+ <_description>Run Mageia Mouse Configuration</_description>
+ <_message>Authentication is required to run Mageia Mouse Configuration</_message>
<icon_name>drakconf</icon_name>
<defaults>
<allow_any>no</allow_any>
diff --git a/polkit/policy/org.mageia.drakx11.policy b/polkit/policy/org.mageia.drakx11.policy.in
index efa8441..5d1fad2 100644
--- a/polkit/policy/org.mageia.drakx11.policy
+++ b/polkit/policy/org.mageia.drakx11.policy.in
@@ -8,8 +8,8 @@
<vendor_url>http://www.mageia.org/</vendor_url>
<action id="org.mageia.drakx11.pkexec.run">
- <description>Run Mageia Graphics Configuration</description>
- <message>Authentication is required to run Mageia Graphics Configuration</message>
+ <_description>Run Mageia Graphics Configuration</_description>
+ <_message>Authentication is required to run Mageia Graphics Configuration</_message>
<icon_name>drakconf</icon_name>
<defaults>
<allow_any>no</allow_any>