From 77bc0b98d19fd0eced1856252e3bce1e84b640f0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 19 Feb 2012 17:40:00 +0100 Subject: [PATCH] =?UTF-8?q?Install=20polkit=20file=20to=20allow=20run=20of?= =?UTF-8?q?=20'pkexec=20/usr/sbin/usbinstall=C3=AC=20to=20current=20active?= =?UTF-8?q?=20user;=20drop=20sudoers.d=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 +++-- src/org.openmamba.usbinstall.policy | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/org.openmamba.usbinstall.policy diff --git a/Makefile b/Makefile index f56d89f..3c30ae4 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ sbindir := /usr/sbin sysconfdir := /etc datadir := /usr/share mambadir := /usr/share/openmamba +polkitdir := /usr/share/polkit-1/actions localesdir := ${datadir}/locale DESTDIR := @@ -48,14 +49,14 @@ install-dirs: @$(INSTALL_DIR) $(DESTDIR)$(mambadir)/usbinstall @$(INSTALL_DIR) $(DESTDIR)$(datadir)/applications @$(INSTALL_DIR) $(DESTDIR)$(mambadir)/usbinstall/img - @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/sudoers.d/ + @$(INSTALL_DIR) $(DESTDIR)$(polkitdir) install: install-dirs install-locales $(INSTALL_PROGRAM) src/usbinstall.py $(DESTDIR)$(mambadir)/usbinstall/usbinstall.py $(INSTALL_SCRIPT) src/usbinstall.sh $(DESTDIR)$(sbindir)/usbinstall $(INSTALL_DATA) src/fdisk_template $(DESTDIR)$(mambadir)/usbinstall/fdisk_template $(INSTALL_DATA) src/img/*.png $(DESTDIR)$(mambadir)/usbinstall/img/ - ${INSTALL} -m 440 src/usbinstall-sudoers $(DESTDIR)$(sysconfdir)/sudoers.d/usbinstall + $(INSTALL_DATA) src/org.openmamba.usbinstall.policy $(DESTDIR)$(polkitdir)/org.openmamba.usbinstall.policy $(INSTALL_DATA) src/usbinstall.desktop $(DESTDIR)$(datadir)/applications/usbinstall.desktop clean: diff --git a/src/org.openmamba.usbinstall.policy b/src/org.openmamba.usbinstall.policy new file mode 100644 index 0000000..a63218f --- /dev/null +++ b/src/org.openmamba.usbinstall.policy @@ -0,0 +1,21 @@ + + + + openmamba + http://www.openmamba.org + + + openmamba installation on USB pendrive + Installatione di openmamba su chiavetta USB + Authentication is required to install openmamba on USB pendrive + Bisogna autenticarsi per installare openmamba su una chiavetta USB + security-high + + no + yes + + /usr/sbin/usbinstall + +