[74462] trunk/dports/net/whois/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Dec 17 21:20:49 PST 2010


Revision: 74462
          http://trac.macports.org/changeset/74462
Author:   ryandesign at macports.org
Date:     2010-12-17 21:20:40 -0800 (Fri, 17 Dec 2010)
Log Message:
-----------
whois: use notes

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

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2010-12-18 05:13:31 UTC (rev 74461)
+++ trunk/dports/net/whois/Portfile	2010-12-18 05:20:40 UTC (rev 74462)
@@ -88,11 +88,16 @@
     xinstall -m 644 -W ${worksrcpath} whois.conf ${destroot}${prefix}/etc/whois.conf.sample
 }
 
-post-activate {
-    if {![file exists ${prefix}/etc/whois.conf]} {
-        ui_msg "To customize which whois servers get used, copy"
-        ui_msg "${prefix}/etc/whois.conf.sample to"
-        ui_msg "${prefix}/etc/whois.conf and then make changes."
+notes "
+To customize which whois servers get used, copy\
+${prefix}/etc/whois.conf.sample to\
+${prefix}/etc/whois.conf and then make changes.
+"
+
+pre-activate {
+    # Clear the notes if the user has already done what they say to do.
+    if {[file exists ${prefix}/etc/whois.conf]} {
+        notes
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101217/56edbcb9/attachment.html>


More information about the macports-changes mailing list