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

wilbury at users.sourceforge.net wilbury at users.sourceforge.net
Tue Oct 25 15:44:07 CEST 2011


Revision: 15986
          http://gar.svn.sourceforge.net/gar/?rev=15986&view=rev
Author:   wilbury
Date:     2011-10-25 13:44:06 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
postfix/trunk: Fix build, change /usr/local into /opt/csw

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

Modified: csw/mgar/pkg/postfix/trunk/Makefile
===================================================================
--- csw/mgar/pkg/postfix/trunk/Makefile	2011-10-25 12:02:36 UTC (rev 15985)
+++ csw/mgar/pkg/postfix/trunk/Makefile	2011-10-25 13:44:06 UTC (rev 15986)
@@ -115,9 +115,9 @@
 PROTOTYPE_PERMS_pid = 0755
 PROTOTYPE_CLASS_pid = ugfiles
 
-EXTRA_MERGE_EXCLUDE_FILES  = /etc/opt/csw/postfix/LICENSE
-EXTRA_MERGE_EXCLUDE_FILES += /etc/opt/csw/postfix/TLS_LICENSE
-EXTRA_MERGE_EXCLUDE_FILES += /etc/opt/csw/postfix/makedefs.out
+EXTRA_MERGE_EXCLUDE_FILES  = $(CONFIG_BASE)/LICENSE
+EXTRA_MERGE_EXCLUDE_FILES += $(CONFIG_BASE)/TLS_LICENSE
+EXTRA_MERGE_EXCLUDE_FILES += $(CONFIG_BASE)/makedefs.out
 
 STRIP_DIRS = $(DESTDIR)$(libexecdir)/postfix
 
@@ -132,7 +132,7 @@
 #   http://www.postfix.org/PACKAGE_README.html
 
 DEF_COMMAND_DIR    = /opt/csw/sbin
-DEF_CONFIG_DIR     = /etc/opt/csw/postfix
+DEF_CONFIG_DIR     = $(CONFIG_BASE)
 DEF_DAEMON_DIR     = /opt/csw/libexec/postfix
 DEF_MAILQ_PATH     = /opt/csw/bin/mailq
 DEF_HTML_DIR       = /opt/csw/share/doc/postfix/html
@@ -293,6 +293,15 @@
 	# Instructions to replace the system's sendmail
 	ginstall -Dm 644 $(FILEDIR)/README.CSW \
 		$(DESTDIR)$(docdir)/$(NAME)/README.CSW
+	@echo "===> Fixing /usr/local into /opt/csw"
+	find $(DESTDIR)/$(DEF_HTML_DIR) -type f -depth -print | \
+	   xargs -n 1 gsed -i -e 's|/usr/local|/opt/csw|g'
+	find $(DESTDIR)/$(DEF_README_DIR) -type f -depth -print | \
+	   xargs -n 1 gsed -i -e 's|/usr/local|/opt/csw|g'
+	find $(DESTDIR)/$(DEF_DAEMON_DIR) -type f -name '*.cf' -depth -print | \
+	   xargs -n 1 gsed -i -e 's|/usr/local|/opt/csw|g'
+	find $(DESTDIR)/$(CONFIG_BASE) -type f -name '*.cf' -depth -print | \
+	   xargs -n 1 gsed -i -e 's|/usr/local|/opt/csw|g'
 	@$(MAKECOOKIE)
 
 # Fails. A subsequent manual verify-config run is successfull,

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