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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Fri Jul 31 16:56:30 CEST 2009


Revision: 5775
          http://gar.svn.sourceforge.net/gar/?rev=5775&view=rev
Author:   valholla
Date:     2009-07-31 14:56:30 +0000 (Fri, 31 Jul 2009)

Log Message:
-----------
my changes

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

Modified: csw/mgar/pkg/sendmail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-31 13:55:06 UTC (rev 5774)
+++ csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-31 14:56:30 UTC (rev 5775)
@@ -7,6 +7,10 @@
   XXX anacronism ;-) need text here
 endef
 
+INSTALLISADIR = $(WORKROOTDIR)/install-$(GAROSREL)-$(MODULATION)
+WORKDIR = $(WORKROOTDIR)/build-$(GAROSREL)-$(MODULATION)
+COOKIEDIR = $(COOKIEROOTDIR)/$(GAROSREL)-$(MODULATION)
+
 MASTER_SITES = ftp://ftp.sendmail.org/pub/sendmail/
 DISTFILES  = $(GARNAME).$(GARVERSION).tar.gz
 DISTFILES += cswsendmail site.config.m4
@@ -57,6 +61,7 @@
 MANFILES8 = sendmail/sendmail.8 mailstats/mailstats.8 makemap/makemap.8 \
             praliases/praliases.8 smrsh/smrsh.8 mail.local/mail.local.8 \
             rmail/rmail.8 editmap/editmap.8
+SOLVER = sol$(shell uname -r |sed 's/5\.//')
 
 configure-custom:
 	@( gsed 's,%CFLAGS%,$(CFLAGS),;s,%OCSWCC%,$(CC),' \
@@ -85,7 +90,7 @@
 	ginstall -d $(DESTDIR)$(sysconfdir)/mail
 
 	@# install the libraries
-	( for file in $(LIBFILES) ; do \
+	@( for file in $(LIBFILES) ; do \
 		ginstall -m 755 $(OBJDIR)/$$file $(DESTDIR)$(libdir) ; \
 		done )
 
@@ -96,6 +101,17 @@
 		ginstall -m 755 $(OBJDIR)/$$file $(DESTDIR)$(sbindir) ; \
 		done )
 
+	@# rename libraries and binaries os-specific
+	( for file in `ls $(DESTDIR)$(libdir)` ; do  \
+		mv $(DESTDIR)$(libdir)/$$file $(DESTDIR)$(libdir)/$(SOLVER).$$file ; \
+		done )
+	( for file in `ls $(DESTDIR)$(bindir)` ; do  \
+		mv $(DESTDIR)$(bindir)/$$file $(DESTDIR)$(bindir)/$(SOLVER).$$file ; \
+		done )
+	( for file in `ls $(DESTDIR)$(sbindir)` ; do  \
+		mv $(DESTDIR)$(sbindir)/$$file $(DESTDIR)$(sbindir)/$(SOLVER).$$file ; \
+		done )
+
 	@# install manpages
 	( for file in $(MANFILES1) ; do \
 		ginstall -m 644 $(OBJDIR)/$$file $(DESTDIR)$(mandir)/man1 ; \


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