[146329] trunk/dports/perl/p5-mail-spamassassin/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Mar 5 04:14:52 PST 2016


Revision: 146329
          https://trac.macports.org/changeset/146329
Author:   ryandesign at macports.org
Date:     2016-03-05 04:14:52 -0800 (Sat, 05 Mar 2016)
Log Message:
-----------
p5-mail-spamassassin: use notes instead of post-install ui_msgs

Modified Paths:
--------------
    trunk/dports/perl/p5-mail-spamassassin/Portfile

Modified: trunk/dports/perl/p5-mail-spamassassin/Portfile
===================================================================
--- trunk/dports/perl/p5-mail-spamassassin/Portfile	2016-03-05 10:10:37 UTC (rev 146328)
+++ trunk/dports/perl/p5-mail-spamassassin/Portfile	2016-03-05 12:14:52 UTC (rev 146329)
@@ -97,20 +97,14 @@
             ${destroot}${exdir}
     }
 
-    post-install {
-        ui_msg "****************************************************************"
-        ui_msg "*                                                              *"
-        ui_msg "* If you run spamassassin for the first time, you should copy  *"
-        ui_msg "* the following configuration files and remove the .sample     *"
-        ui_msg "* extension:                                                   *"
-        ui_msg "*                                                              *"
-        ui_msg "* cd ${prefix}/etc/mail/spamassassin                          *"
-        foreach file ${conf_files} {
-            ui_msg "* cp ${file}.sample ${file}                                  *"
-        }
-        ui_msg "*                                                              *"
-        ui_msg "****************************************************************"
+    set conf_file_notes {}
+    foreach file ${conf_files} {
+        append conf_file_notes "cp ${file}.sample ${file}\n"
     }
+    
+    notes "If you're running spamassassin for the first time, you should copy the\
+following configuration files and remove the .sample extension:\n\ncd\
+${prefix}/etc/mail/spamassassin\n${conf_file_notes}"
 
     variant razor description {Use Vipuls Razor module} {
         depends_lib-append      port:p${perl5.major}-razor-agents
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160305/130e1385/attachment.html>


More information about the macports-changes mailing list