[21592] trunk/dports/net/cacti/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 29 18:28:08 PST 2007


Revision: 21592
          http://trac.macosforge.org/projects/macports/changeset/21592
Author:   markd at macports.org
Date:     2007-01-29 18:28:08 -0800 (Mon, 29 Jan 2007)

Log Message:
-----------
Add blank server variant to trigger mysql5's server variant.

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

Modified: trunk/dports/net/cacti/Portfile
===================================================================
--- trunk/dports/net/cacti/Portfile	2007-01-30 02:25:57 UTC (rev 21591)
+++ trunk/dports/net/cacti/Portfile	2007-01-30 02:28:08 UTC (rev 21592)
@@ -28,21 +28,13 @@
 build {}
 set cactidir ${prefix}/share/cacti
 
-pre-fetch {
-        ui_msg "\n
-
-                   ************************************************
-	           **** It is recommended that you pre-install ****
-	           **** MySQL with the +server variant so    ****
-	           **** MySQL will start at system boot.  To   ****
-	           **** do so:				       ****
-
-	              1) Cancel this install now with Cntrl-C.
-	              2) Type \"port install mysql5 +server\"
-	              3) Re-run the Cacti port install
-	           ************************************************\n"
+variant server  {
+# This variant doesn't do anything in this port, it only exists to trigger the server
+# variant in the mysql5 port.
 }
 
+variant_set server
+
 destroot {
 	xinstall -m 755 -d ${destroot}${cactidir}
 	system "cp -R ${worksrcpath}/* ${destroot}${cactidir}"
@@ -80,9 +72,6 @@
    Set MySQL to start at system boot (optional)
 	sudo launchctl load -w /Library/LaunchDaemons/org.darwinports.mysql5.plist
 
-   NOTE: MySQL must have been installed with the +server variant in order to
-      use launchctl to run MySQL at system boot.
-
    Set a root MySQL password.
 	Follow the instructions that were given after you executed 'mysql_install_db' above.
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070129/97aea98f/attachment.html


More information about the macports-changes mailing list