[79209] trunk/dports/net/ejabberd/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jun 5 14:51:43 PDT 2011


Revision: 79209
          http://trac.macports.org/changeset/79209
Author:   ryandesign at macports.org
Date:     2011-06-05 14:51:41 -0700 (Sun, 05 Jun 2011)
Log Message:
-----------
ejabberd: use notes instead of ui_msg's; see #29693

Modified Paths:
--------------
    trunk/dports/net/ejabberd/Portfile

Modified: trunk/dports/net/ejabberd/Portfile
===================================================================
--- trunk/dports/net/ejabberd/Portfile	2011-06-05 20:11:04 UTC (rev 79208)
+++ trunk/dports/net/ejabberd/Portfile	2011-06-05 21:51:41 UTC (rev 79209)
@@ -36,12 +36,12 @@
 
 destroot.keepdirs   ${destroot}${prefix}/var/log/ejabberd/
 
+set etc ${prefix}/etc/ejabberd
 post-destroot {
     # Create sample configuration files so they don't get overwritten by an
     # update.
-    set etc ${destroot}${prefix}/etc/ejabberd
     foreach file ${conf_files} {
-        file rename ${etc}/${file} ${etc}/${file}.sample
+        file rename ${destroot}${etc}/${file} ${destroot}${etc}/${file}.sample
     }
 
     # Install documentation.
@@ -50,19 +50,14 @@
     file copy ${worksrcpath}/../doc ${doc}/${name}-${version}
 }
 
-post-install {
-    ui_msg "****************************************************************"
-    ui_msg "*                                                              *"
-    ui_msg "* If you run ejabberd for the first time, then you must rename *"
-    ui_msg "* the following configuration files by removing the .sample    *"
-    ui_msg "* extension:                                                   *"
-    ui_msg "*                                                              *"
-    ui_msg "* cd ${prefix}/etc/ejabberd/                                  *"
-    foreach file ${conf_files} {
-        ui_msg "* mv ${file}.sample ${file}"
-    }
-    ui_msg "*                                                              *"
-    ui_msg "****************************************************************"
+notes "
+Before running ${name} for the first time, you must copy the sample\
+configuration files:
+
+cd ${etc}/
+"
+foreach file ${conf_files} {
+    notes-append "cp ${file}.sample ${file}"
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110605/889a7780/attachment.html>


More information about the macports-changes mailing list