summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-04-30 16:51:56 +0000
committerOlivier Blin <oblin@mandriva.com>2010-04-30 16:51:56 +0000
commitc929f06f48d3e57a7f6a7a463de6730d28c135b1 (patch)
treef6337bb5e31ebf239bea8d34999c01086e0c19dd /Makefile
parent76bfef958e89c95069e5c38d6bff860c7dd23f5c (diff)
downloadmgaonline-c929f06f48d3e57a7f6a7a463de6730d28c135b1.tar
mgaonline-c929f06f48d3e57a7f6a7a463de6730d28c135b1.tar.gz
mgaonline-c929f06f48d3e57a7f6a7a463de6730d28c135b1.tar.bz2
mgaonline-c929f06f48d3e57a7f6a7a463de6730d28c135b1.tar.xz
mgaonline-c929f06f48d3e57a7f6a7a463de6730d28c135b1.zip
install extended maintenance helper only on supported distributions (2008.0, 2009.0, 2010.0)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 46f27b91..441568c8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,10 @@ MDKUPDATE = mdkupdate
MDKAPPLET = mdkapplet
SUBDIRS = po
+MANDRIVA_VERSION = $(shell awk 'BEGIN { RS=","; FS="=" } $$1 == "version" { print $$2 }' /etc/product.id)
+EXTENDED_VERSIONS = 2008.0 2009.0 2010.0
+EXTENDED_HELPER = $(if $(filter $(EXTENDED_VERSIONS),$(MANDRIVA_VERSION)),mdkapplet-extended-maintenance-helper)
+
PREFIX = /
DATADIR = $(PREFIX)/usr/share
ICONSDIR = $(DATADIR)/icons
@@ -55,7 +59,7 @@ install: all
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 mdkapplet-config mdkapplet-enterprise-update-helper mdkapplet-restricted-helper mdkapplet-upgrade-helper mdkapplet-extended-maintenance-helper; do \
+ for i in mdkapplet-config mdkapplet-enterprise-update-helper mdkapplet-restricted-helper mdkapplet-upgrade-helper $(EXTENDED_HELPER); do \
install -m755 $$i $(SBINDIR); \
ln -sf consolehelper $(PREFIX)/usr/bin/$$i; \
done