aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG1
-rw-r--r--Makefile19
-rw-r--r--README.md7
-rw-r--r--isodumper.spec11
4 files changed, 26 insertions, 12 deletions
diff --git a/CHANGELOG b/CHANGELOG
index c652bed..44ac36b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -5,6 +5,7 @@ IsoDumper 0.20
------------
- added function to backup the content of the device before overwriting.
- added Release number in the window title (on isodumper.py).
+ - use mageia polkit policy instead of usermode.
- added and update Estonian translations.
- updated de,fr,id,ro,sl,sv,zh_TW,tr,uk,pt_BR,ru,es and it translations.
diff --git a/Makefile b/Makefile
index 9136c67..a945b76 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
LIBDIR=$(PREFIX)/lib
+LIBEXECDIR=$(PREFIX)/libexec
+POLKITPOLICYDIR=$(PREFIX)/share/polkit-1/actions
DATADIR=$(PREFIX)/share
ICONSDIR=$(PREFIX)/share/icons
PIXMAPSDIR=$(PREFIX)/share/pixmaps
@@ -34,12 +36,19 @@ clean:
install: all
- # for binary file isodumper on /usr/sbin/
- mkdir -p $(DESTDIR)$(SBINDIR)
- install -m 755 isodumper $(DESTDIR)$(SBINDIR)
- # Adjust for console-helper magic
+ # for binary file script isodumper on /usr/libexec/
+ mkdir -p $(DESTDIR)$(LIBEXECDIR)
+ install -m 755 isodumper $(DESTDIR)$(LIBEXECDIR)
+
+ # for binary file isodumper on /usr/bin/
+ # to have authentication with polkit (use for mageia policy)
mkdir -p $(DESTDIR)$(BINDIR)
- cd $(DESTDIR)$(BINDIR); ln -s consolehelper isodumper
+ install -m 755 bin/isodumper $(DESTDIR)$(BINDIR)
+
+ # for policy file isodumper on /usr/share/polkit-1/actions/
+ # to have authentication with polkit (use for mageia policy)
+ mkdir -p $(DESTDIR)$(POLKITPOLICYDIR)
+ install -m 644 share/polkit-1/actions/org.mageia.isodumper.policy $(DESTDIR)$(POLKITPOLICYDIR)
# for LIBFILES isodumper.py find_devices
mkdir -p $(DESTDIR)$(LIBDIR)/isodumper
diff --git a/README.md b/README.md
index 945f8f7..608b9a3 100644
--- a/README.md
+++ b/README.md
@@ -8,12 +8,13 @@ Requirements
-------------
- coreutils
-- udisks
+- pango
+- polkit
- procps
+- pygtk2.0-libglade
- python
+- udisks
- xterm
-- pygtk2.0-libglade
-- usermode-consoleonly
License
diff --git a/isodumper.spec b/isodumper.spec
index 927f9e0..2d4310a 100644
--- a/isodumper.spec
+++ b/isodumper.spec
@@ -13,12 +13,14 @@ BuildArch: noarch
BuildRequires: imagemagick
Requires: coreutils
-Requires: udisks
+Requires: pango
+Requires: polkit
Requires: procps
+Requires: pygtk2.0-libglade
Requires: python
+Requires: udisks
Requires: xterm
-Requires: pygtk2.0-libglade
-Requires: usermode-consoleonly
+
%description
A GUI tool for writing ISO images on a USB stick.
@@ -46,10 +48,11 @@ Ce logiciel est écrit en python.
%files -f %{name}.lang
%doc COPYING CHANGELOG
-%{_sbindir}/%{name}
%{_bindir}/%{name}
+%{_libexecdir}/%{name}
%{_usr}/lib/%{name}/
%{_datadir}/%{name}/
+%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_miconsdir}/%{name}.png