summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--NEWS3
2 files changed, 8 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
diff --git a/NEWS b/NEWS
index 06afbc4c..b0853162 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
- mdkapplet
o do not offer distribution upgrade on OEM Philco systems
+- mdkapplet-extended-maintenance-helper
+ o install only on distributions with extended maintenance
+ (2008.0, 2009.0, 2010.0)
Version 2.77.15.17 - 10 February 2010, Thierry Vignaud
- mdkapplet