summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-10-12 15:20:51 +0100
committerColin Guthrie <colin@mageia.org>2013-10-12 15:26:23 +0100
commitcae1f59f7459a136cf52ae3a868b8733ef8c0e80 (patch)
treebc16410a5ae43825ccd734d2baef8d9732a52e41 /Makefile
parentc61197a3984f8975fa9fd9a3f0cabe05206c1cb9 (diff)
downloadmgaonline-cae1f59f7459a136cf52ae3a868b8733ef8c0e80.tar
mgaonline-cae1f59f7459a136cf52ae3a868b8733ef8c0e80.tar.gz
mgaonline-cae1f59f7459a136cf52ae3a868b8733ef8c0e80.tar.bz2
mgaonline-cae1f59f7459a136cf52ae3a868b8733ef8c0e80.tar.xz
mgaonline-cae1f59f7459a136cf52ae3a868b8733ef8c0e80.zip
Use polkit for authorisation (mga#11125)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 6 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 001563be..77c72c4d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,16 @@
PACKAGE = mgaonline
VERSION:=2.81
-SVNROOT = svn+ssh://svn.mageia.org/svn/soft/$(PACKAGE)
NAME = mgaonline
MGAUPDATE = mgaupdate
MGAAPPLET = mgaapplet
-SUBDIRS = po
+SUBDIRS = po polkit
PREFIX = /
DATADIR = $(PREFIX)/usr/share
ICONSDIR = $(DATADIR)/icons
PIXDIR = $(DATADIR)/$(NAME)
-SBINDIR = $(PREFIX)/usr/sbin
+LIBEXECDIR = $(PREFIX)/usr/libexec
BINDIR = $(PREFIX)/usr/bin
FBLIBDIR = $(PREFIX)/usr/lib/libDrakX/drakfirsttime
SYSCONFDIR = $(PREFIX)/etc/sysconfig
@@ -23,17 +22,17 @@ override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\"
all:
(find -name .svn -prune -name '*.pm' -o -name mgaapplet\* -o -name mgaupdate -o -name mgaonline_agent.pl -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
- for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+ for d in $(SUBDIRS); do ( make -C $$d $@ ) ; done
clean:
$(MAKE) -C po $@
rm -f core .#*[0-9]
- for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+ for d in $(SUBDIRS); do ( make -C $$d $@ ) ; done
find . -name '*~' | xargs rm -f
install: all
- install -d $(PREFIX)/usr/{sbin,bin,share/{mime/packages,$(NAME)/pixmaps,autostart,gnome/autostart,icons/{mini,large}},lib/libDrakX/drakfirsttime}
- install -m755 $(MGAUPDATE) $(SBINDIR)
+ install -d $(PREFIX)/usr/{bin,libexec,share/{mime/packages,$(NAME)/pixmaps,autostart,gnome/autostart,icons/{mini,large}},lib/libDrakX/drakfirsttime}
+ install -m755 $(MGAUPDATE) $(MGAAPPLET)-config $(MGAAPPLET)-upgrade-helper $(LIBEXECDIR)
install -m755 $(MGAAPPLET) $(BINDIR)
install -d $(SYSCONFDIR)
install -m644 mgaapplet.conf $(SYSCONFDIR)/mgaapplet
@@ -50,15 +49,6 @@ install: all
install -m644 mgaonline.xml $(DATADIR)/mime/packages/mgaonline.xml
mkdir -p $(DATADIR)/mimelnk/application/
install -m644 x-mga-exec.desktop $(DATADIR)/mimelnk/application/
- mkdir -p $(PREFIX)/etc/security/console.apps/
- install -m644 console.apps_urpmi.update $(PREFIX)/etc/security/console.apps/urpmi.update
- mkdir -p $(PREFIX)/etc/pam.d
- install -m644 pam.d_urpmi.update $(PREFIX)/etc/pam.d/urpmi.update
- ln -sf consolehelper $(PREFIX)/usr/bin/urpmi.update
- for i in mgaapplet-config mgaapplet-upgrade-helper; do \
- install -m755 $$i $(SBINDIR); \
- ln -sf consolehelper $(PREFIX)/usr/bin/$$i; \
- done
cleandist:
rm -rf $(PACKAGE)-$(VERSION) ../$(PACKAGE)-$(VERSION).tar.bz2