From b41295b9c893a210913e8e85c71a9ba7e056973b Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 12 Oct 2013 14:18:04 +0100 Subject: polkit: Tidy up polkit support --- polkit/Makefile | 24 ++++++++++++++++++++++ polkit/org.mageia.drakrpm-addmedia.policy.in | 22 ++++++++++++++++++++ polkit/org.mageia.drakrpm-editmedia.policy.in | 22 ++++++++++++++++++++ polkit/org.mageia.drakrpm-update.policy.in | 22 ++++++++++++++++++++ polkit/org.mageia.drakrpm.policy.in | 22 ++++++++++++++++++++ polkit/policy/Makefile | 16 --------------- .../policy/org.mageia.rpmdrake-addmedia.policy.in | 22 -------------------- .../policy/org.mageia.rpmdrake-editmedia.policy.in | 22 -------------------- polkit/policy/org.mageia.rpmdrake-update.policy.in | 22 -------------------- polkit/policy/org.mageia.rpmdrake.policy.in | 22 -------------------- polkit/wrappers/MageiaUpdate | 2 -- polkit/wrappers/drakrpm-edit-media | 2 -- polkit/wrappers/gurpmi.addmedia | 2 -- polkit/wrappers/rpmdrake | 2 -- 14 files changed, 112 insertions(+), 112 deletions(-) create mode 100644 polkit/Makefile create mode 100644 polkit/org.mageia.drakrpm-addmedia.policy.in create mode 100644 polkit/org.mageia.drakrpm-editmedia.policy.in create mode 100644 polkit/org.mageia.drakrpm-update.policy.in create mode 100644 polkit/org.mageia.drakrpm.policy.in delete mode 100644 polkit/policy/Makefile delete mode 100644 polkit/policy/org.mageia.rpmdrake-addmedia.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake-editmedia.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake-update.policy.in delete mode 100644 polkit/policy/org.mageia.rpmdrake.policy.in delete mode 100755 polkit/wrappers/MageiaUpdate delete mode 100755 polkit/wrappers/drakrpm-edit-media delete mode 100755 polkit/wrappers/gurpmi.addmedia delete mode 100755 polkit/wrappers/rpmdrake (limited to 'polkit') diff --git a/polkit/Makefile b/polkit/Makefile new file mode 100644 index 00000000..34e81069 --- /dev/null +++ b/polkit/Makefile @@ -0,0 +1,24 @@ +BINDIR = /usr/bin +LIBEXECDIR = /usr/libexec +BINDEST = $(DESTDIR)$(BINDIR) +POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions + +POLICY_IN := $(wildcard *.policy.in) +POLICY = $(POLICY_IN:.policy.in=.policy) +WRAPPERS = $(patsubst org.mageia.%.policy,%,$(POLICY)) + +all: $(WRAPPERS) $(POLICY) + +clean: + rm -f $(WRAPPERS) $(POLICY) + +%: org.mageia.%.policy.in + @echo -e "#!/bin/sh\nexec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$""*" > $@ + +%.policy: %.policy.in + intltool-merge --utf8 ../po $< $@ -x -u -c ../po/.intltool-merge-cache + +install: all + install -d $(BINDEST) $(POLKITPOLICYDEST) + install -m755 $(WRAPPERS) $(BINDEST) + install -m644 $(POLICY) $(POLKITPOLICYDEST) diff --git a/polkit/org.mageia.drakrpm-addmedia.policy.in b/polkit/org.mageia.drakrpm-addmedia.policy.in new file mode 100644 index 00000000..a42946ec --- /dev/null +++ b/polkit/org.mageia.drakrpm-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/drakrpm-addmedia + true + + diff --git a/polkit/org.mageia.drakrpm-editmedia.policy.in b/polkit/org.mageia.drakrpm-editmedia.policy.in new file mode 100644 index 00000000..81008bba --- /dev/null +++ b/polkit/org.mageia.drakrpm-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-editmedia + true + + diff --git a/polkit/org.mageia.drakrpm-update.policy.in b/polkit/org.mageia.drakrpm-update.policy.in new file mode 100644 index 00000000..29096238 --- /dev/null +++ b/polkit/org.mageia.drakrpm-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/drakrpm-update + true + + diff --git a/polkit/org.mageia.drakrpm.policy.in b/polkit/org.mageia.drakrpm.policy.in new file mode 100644 index 00000000..6af5277c --- /dev/null +++ b/polkit/org.mageia.drakrpm.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/drakrpm + true + + diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile deleted file mode 100644 index 1de72221..00000000 --- a/polkit/policy/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -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.in b/polkit/policy/org.mageia.rpmdrake-addmedia.policy.in deleted file mode 100644 index d4a58362..00000000 --- a/polkit/policy/org.mageia.rpmdrake-addmedia.policy.in +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 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.in b/polkit/policy/org.mageia.rpmdrake-editmedia.policy.in deleted file mode 100644 index d250ca73..00000000 --- a/polkit/policy/org.mageia.rpmdrake-editmedia.policy.in +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 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.in b/polkit/policy/org.mageia.rpmdrake-update.policy.in deleted file mode 100644 index ac7bf615..00000000 --- a/polkit/policy/org.mageia.rpmdrake-update.policy.in +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 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.in b/polkit/policy/org.mageia.rpmdrake.policy.in deleted file mode 100644 index bdc43360..00000000 --- a/polkit/policy/org.mageia.rpmdrake.policy.in +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 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 - - diff --git a/polkit/wrappers/MageiaUpdate b/polkit/wrappers/MageiaUpdate deleted file mode 100755 index f732b981..00000000 --- a/polkit/wrappers/MageiaUpdate +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/bin/pkexec /usr/libexec/MageiaUpdate $* diff --git a/polkit/wrappers/drakrpm-edit-media b/polkit/wrappers/drakrpm-edit-media deleted file mode 100755 index 30fb48d3..00000000 --- a/polkit/wrappers/drakrpm-edit-media +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/bin/pkexec /usr/libexec/drakrpm-edit-media $* diff --git a/polkit/wrappers/gurpmi.addmedia b/polkit/wrappers/gurpmi.addmedia deleted file mode 100755 index 2e029258..00000000 --- a/polkit/wrappers/gurpmi.addmedia +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/bin/pkexec /usr/libexec/gurpmi.addmedia $* diff --git a/polkit/wrappers/rpmdrake b/polkit/wrappers/rpmdrake deleted file mode 100755 index 60a00841..00000000 --- a/polkit/wrappers/rpmdrake +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/bin/pkexec /usr/libexec/rpmdrake $* -- cgit v1.2.1