[csw-devel] SF.net SVN: gar:[8534] csw/mgar/pkg/automake/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Feb 13 11:33:59 CET 2010


Revision: 8534
          http://gar.svn.sourceforge.net/gar/?rev=8534&view=rev
Author:   dmichelsen
Date:     2010-02-13 10:33:59 +0000 (Sat, 13 Feb 2010)

Log Message:
-----------
automake: Update postmsg

Modified Paths:
--------------
    csw/mgar/pkg/automake/trunk/Makefile

Modified: csw/mgar/pkg/automake/trunk/Makefile
===================================================================
--- csw/mgar/pkg/automake/trunk/Makefile	2010-02-13 10:29:59 UTC (rev 8533)
+++ csw/mgar/pkg/automake/trunk/Makefile	2010-02-13 10:33:59 UTC (rev 8534)
@@ -21,8 +21,9 @@
 MASTER_SITES = $(GNU_MIRROR)
 SOURCEFILES = $(foreach VERSION,$(MODULATIONS_GARVERSION),$(GARNAME)-$(VERSION).tar.gz)
 DISTFILES = $(SOURCEFILES)
-DISTFILES += README.CSW
-NOCHECKSUM = README.CSW
+POSTMSG = $(docdir)/automake/CSWautomake.postmsg
+DISTFILES += $(notdir $(POSTMSG))
+NOCHECKSUM = $(notdir $(POSTMSG))
 NOEXTRACT = $(filter-out $(GARNAME)-$(GARVERSION).tar.gz, $(SOURCEFILES))
 
 RUNTIME_DEP_PKGS = CSWperl
@@ -65,16 +66,27 @@
 
 include gar/category.mk
 
-$(DOWNLOADDIR)/README.CSW:
-	@echo " ==> Generating README.CSW"
+$(DOWNLOADDIR)/$(notdir $(POSTMSG)):
+	@echo " ==> Generating $(notdir $(POSTMSG))"
 	@(exec >$@;								\
-	  echo "This package contains the following automake versions:";	\
-	  for VERSION in $(MODULATIONS_GARVERSION); do					\
-	    echo "  automake-$$VERSION";					\
-	  done)
+		echo "There are multiple versions of automake on the system installed:"; \
+		echo; \
+	  	for VERSION in $(MODULATIONS_GARVERSION); do \
+		  echo "  * automake-$$VERSION"; \
+		done; \
+		echo; \
+		echo "You can easily select between the versions with the alternatives(8)"; \
+		echo "system by executing"; \
+		echo; \
+		echo "  /opt/csw/sbin/alternatives --config automake"; \
+		echo; \
+		echo "See http://wiki.opencsw.org/package-alternatives for details."; \
+	)
+	@$(MAKECOOKIE)
 
 post-merge:
-	@rm -f $(PKGROOT)$(bindir)/aclocal
-	@rm -f $(PKGROOT)$(bindir)/automake
-	@ginstall $(WORKDIR)/README.CSW $(PKGROOT)$(docdir)/$(GARNAME)/
+	rm -f $(PKGROOT)$(bindir)/aclocal
+	rm -f $(PKGROOT)$(bindir)/automake
+	ginstall -d $(PKGROOT)$(dir $(POSTMSG))
+	ginstall $(WORKDIR)/$(notdir $(POSTMSG)) $(PKGROOT)$(POSTMSG)
 	@$(MAKECOOKIE)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list