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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Feb 4 13:13:59 CET 2011


Revision: 13187
          http://gar.svn.sourceforge.net/gar/?rev=13187&view=rev
Author:   dmichelsen
Date:     2011-02-04 12:13:59 +0000 (Fri, 04 Feb 2011)

Log Message:
-----------
msmtp: Fix post install

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

Modified: csw/mgar/pkg/msmtp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/msmtp/trunk/Makefile	2011-02-04 11:46:53 UTC (rev 13186)
+++ csw/mgar/pkg/msmtp/trunk/Makefile	2011-02-04 12:13:59 UTC (rev 13187)
@@ -39,20 +39,25 @@
 RUNTIME_DEP_PKGS_CSWmsmtp += CSWlibgsasl7
 RUNTIME_DEP_PKGS_CSWmsmtp += CSWggettextrt
 
+sysconfdir = /etc/opt/csw
 CONFIGURE_ARGS = $(DIRPATHS)
 
 TEST_TARGET = check
 
 include gar/category.mk
 
-post-install:
-	@rm -f $(DESTDIR)$(infodir)/dir
-	@ginstall -d $(DESTDIR)$(docdir)
-	@ginstall $(WORKSRC)/doc/Mutt+msmtp.txt	\
-		$(WORKSRC)/doc/msmtp.html 		\
-		$(WORKSRC)/doc/msmtp.pdf		\
-		$(DESTDIR)$(docdir)
-	@ginstall -d $(DESTDIR)$(sysconfdir)
-	@ginstall $(WORKSRC)/doc/msmtprc-system.example \
+post-install-modulated: DOCDIR=$(docdir)/msmtp
+post-install-modulated:
+	ginstall -d $(DESTDIR)$(DOCDIR)
+	ginstall $(WORKSRC)/doc/Mutt+msmtp.txt $(DESTDIR)$(DOCDIR)
+	# ginstall $(WORKSRC)/doc/msmtp.html $(DESTDIR)$(DOCDIR)
+	# ginstall $(WORKSRC)/doc/msmtp.pdf $(DESTDIR)$(DOCDIR)
+	ginstall -d $(DESTDIR)$(sysconfdir)
+	ginstall $(WORKSRC)/doc/msmtprc-system.example \
 		$(WORKSRC)/doc/msmtprc-user.example	\
 		$(DESTDIR)$(sysconfdir)
+	perl -pi -e 's,/usr/local/etc,$(sysconfdir),;' \
+		-e 's,/usr/local/bin,$(bindir),;' \
+		$(DESTDIR)$(infodir)/msmtp.info \
+		$(DESTDIR)$(DOCDIR)/Mutt+msmtp.txt
+	@$(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