From b0c11102c1ab0f6297b27738fb1988815340dda6 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 1 Oct 2013 21:58:32 +0100 Subject: polkit: Make the polkit policy files translatable. --- polkit/policy/Makefile | 16 ++++++++++++++++ polkit/policy/org.mageia.rpmdrake-addmedia.policy | 22 ---------------------- .../policy/org.mageia.rpmdrake-addmedia.policy.in | 22 ++++++++++++++++++++++ polkit/policy/org.mageia.rpmdrake-editmedia.policy | 22 ---------------------- .../policy/org.mageia.rpmdrake-editmedia.policy.in | 22 ++++++++++++++++++++++ polkit/policy/org.mageia.rpmdrake-update.policy | 22 ---------------------- polkit/policy/org.mageia.rpmdrake-update.policy.in | 22 ++++++++++++++++++++++ polkit/policy/org.mageia.rpmdrake.policy | 22 ---------------------- polkit/policy/org.mageia.rpmdrake.policy.in | 22 ++++++++++++++++++++++ 9 files changed, 104 insertions(+), 88 deletions(-) create mode 100644 polkit/policy/Makefile delete mode 100644 polkit/policy/org.mageia.rpmdrake-addmedia.policy create mode 100644 polkit/policy/org.mageia.rpmdrake-addmedia.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake-editmedia.policy create mode 100644 polkit/policy/org.mageia.rpmdrake-editmedia.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake-update.policy create mode 100644 polkit/policy/org.mageia.rpmdrake-update.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake.policy create mode 100644 polkit/policy/org.mageia.rpmdrake.policy.in (limited to 'polkit') diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile new file mode 100644 index 00000000..1de72221 --- /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.rpmdrake-addmedia.policy b/polkit/policy/org.mageia.rpmdrake-addmedia.policy deleted file mode 100644 index 4f4435f5..00000000 --- a/polkit/policy/org.mageia.rpmdrake-addmedia.policy +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Mageia - http://www.mageia.org/ - - - Run Mageia Package Media Adder - Authentication is required to run Mageia Package Media Adder - rpmdrake - - no - no - auth_admin_keep - - /usr/libexec/gurpmi.addmedia - true - - diff --git a/polkit/policy/org.mageia.rpmdrake-addmedia.policy.in b/polkit/policy/org.mageia.rpmdrake-addmedia.policy.in new file mode 100644 index 00000000..d4a58362 --- /dev/null +++ b/polkit/policy/org.mageia.rpmdrake-addmedia.policy.in @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + <_description>Run Mageia Package Media Adder + <_message>Authentication is required to run Mageia Package Media Adder + rpmdrake + + no + no + auth_admin_keep + + /usr/libexec/gurpmi.addmedia + true + + diff --git a/polkit/policy/org.mageia.rpmdrake-editmedia.policy b/polkit/policy/org.mageia.rpmdrake-editmedia.policy deleted file mode 100644 index d5a56cd4..00000000 --- a/polkit/policy/org.mageia.rpmdrake-editmedia.policy +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Mageia - http://www.mageia.org/ - - - Run Mageia Package Media Editor - Authentication is required to run Mageia Package Media Editor - rpmdrake - - no - no - auth_admin_keep - - /usr/libexec/drakrpm-edit-media - true - - diff --git a/polkit/policy/org.mageia.rpmdrake-editmedia.policy.in b/polkit/policy/org.mageia.rpmdrake-editmedia.policy.in new file mode 100644 index 00000000..d250ca73 --- /dev/null +++ b/polkit/policy/org.mageia.rpmdrake-editmedia.policy.in @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + <_description>Run Mageia Package Media Editor + <_message>Authentication is required to run Mageia Package Media Editor + rpmdrake + + no + no + auth_admin_keep + + /usr/libexec/drakrpm-edit-media + true + + diff --git a/polkit/policy/org.mageia.rpmdrake-update.policy b/polkit/policy/org.mageia.rpmdrake-update.policy deleted file mode 100644 index c9437bfb..00000000 --- a/polkit/policy/org.mageia.rpmdrake-update.policy +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Mageia - http://www.mageia.org/ - - - Run Mageia Updater - Authentication is required to run Mageia Updater - rpmdrake - - no - no - auth_self_keep - - /usr/libexec/MageiaUpdate - true - - diff --git a/polkit/policy/org.mageia.rpmdrake-update.policy.in b/polkit/policy/org.mageia.rpmdrake-update.policy.in new file mode 100644 index 00000000..ac7bf615 --- /dev/null +++ b/polkit/policy/org.mageia.rpmdrake-update.policy.in @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + <_description>Run Mageia Updater + <_message>Authentication is required to run Mageia Updater + rpmdrake + + no + no + auth_self_keep + + /usr/libexec/MageiaUpdate + true + + diff --git a/polkit/policy/org.mageia.rpmdrake.policy b/polkit/policy/org.mageia.rpmdrake.policy deleted file mode 100644 index 5b7b3ee8..00000000 --- a/polkit/policy/org.mageia.rpmdrake.policy +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Mageia - http://www.mageia.org/ - - - Run Mageia Package Manager - Authentication is required to run Mageia Package Manager - rpmdrake - - no - no - auth_admin_keep - - /usr/libexec/rpmdrake - true - - diff --git a/polkit/policy/org.mageia.rpmdrake.policy.in b/polkit/policy/org.mageia.rpmdrake.policy.in new file mode 100644 index 00000000..bdc43360 --- /dev/null +++ b/polkit/policy/org.mageia.rpmdrake.policy.in @@ -0,0 +1,22 @@ + + + + + Mageia + http://www.mageia.org/ + + + <_description>Run Mageia Package Manager + <_message>Authentication is required to run Mageia Package Manager + rpmdrake + + no + no + auth_admin_keep + + /usr/libexec/rpmdrake + true + + -- cgit v1.2.1