aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-09-03 11:58:05 +0100
committerColin Guthrie <colin@mageia.org>2013-09-03 12:15:20 +0100
commitf7cc863196075c0f0634a115e3417370e8646acd (patch)
treed1e48cddebb32982e154c543bc69a2133a1680fa /Makefile
parentce2a0726339307d5b747ac397825adf2cad396ac (diff)
downloadrpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.gz
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.bz2
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.tar.xz
rpmdrake-f7cc863196075c0f0634a115e3417370e8646acd.zip
Convert to polkit from usermode consolehelper for gaining root privileges
polkit is better integrated into various environments, both console and GUI and offers better access rules and prevents the internal need to run su which is prone to errors and doesn't offer an environment agnostic prompt to the user. The 'auth as user' (as opposed to 'auth as root') for the 'MageiaUpdate' binary has been ported to the polkit equiv. mga#11125
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 9 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 2d3dc470..fc6b7137 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PREFIX = /usr/local
DATADIR = $(PREFIX)/share
BINDIR = $(PREFIX)/bin
SBINDIR = $(PREFIX)/sbin
-RELATIVE_SBIN = ../sbin
+LIBEXECDIR = $(PREFIX)/libexec
RPM=$(shell rpm --eval %_topdir)
PERL_VENDORLIB=$(DESTDIR)/$(shell perl -V:installvendorlib | perl -pi -e "s/.*=//; s/[;']//g")
@@ -22,18 +22,14 @@ install: $(ALL)
find -name '*.pm' -o -name rpmdrake -o -name MageiaUpdate | xargs ./simplify-drakx-modules
./simplify-drakx-modules {gurpmi.addmedia,edit-urpm-sources.pl}
@for n in $(DIRS); do make -C $$n install; done
- install -d $(SBINDIR)
- install rpmdrake MageiaUpdate edit-urpm-sources.pl gurpmi.addmedia $(SBINDIR)
- install -d $(BINDIR)
- ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/rpmdrake
- ln -sf $(RELATIVE_SBIN)/MageiaUpdate $(BINDIR)/MageiaUpdate
- ln -sf $(RELATIVE_SBIN)/edit-urpm-sources.pl $(BINDIR)/edit-urpm-sources.pl
- ln -sf edit-urpm-sources.pl $(SBINDIR)/drakrpm-edit-media
- ln -sf $(RELATIVE_SBIN)/drakrpm-edit-media $(BINDIR)/drakrpm-edit-media
- ln -sf $(RELATIVE_SBIN)/gurpmi.addmedia $(BINDIR)/gurpmi.addmedia
- ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/drakrpm
- ln -sf $(RELATIVE_SBIN)/MageiaUpdate $(SBINDIR)/drakrpm-update
- ln -sf $(RELATIVE_SBIN)/drakrpm-update $(BINDIR)/drakrpm-update
+ install -d $(BINDIR) $(SBINDIR) $(LIBEXECDIR) $(PREFIX)/share/polkit-1/actions
+ install rpmdrake MageiaUpdate gurpmi.addmedia $(LIBEXECDIR)
+ install edit-urpm-sources.pl $(LIBEXECDIR)/drakrpm-edit-media
+ install polkit/wrappers/* $(BINDIR)
+ install polkit/policy/* $(PREFIX)/share/polkit-1/actions
+ ln -sf drakrpm-edit-media $(BINDIR)/edit-urpm-sources.pl
+ ln -sf rpmdrake $(BINDIR)/drakrpm
+ ln -sf MageiaUpdate $(BINDIR)/drakrpm-update
install -d $(DATADIR)/rpmdrake/icons
install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
install -m644 gui.lst $(DATADIR)/rpmdrake