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 + +