[33253] trunk/dports/databases/mysql5-devel/Portfile

jwa at macports.org jwa at macports.org
Tue Jan 22 02:55:14 PST 2008


Revision: 33253
          http://trac.macosforge.org/projects/macports/changeset/33253
Author:   jwa at macports.org
Date:     2008-01-22 02:55:12 -0800 (Tue, 22 Jan 2008)

Log Message:
-----------
make port lint clean

Modified Paths:
--------------
    trunk/dports/databases/mysql5-devel/Portfile

Modified: trunk/dports/databases/mysql5-devel/Portfile
===================================================================
--- trunk/dports/databases/mysql5-devel/Portfile	2008-01-22 10:53:49 UTC (rev 33252)
+++ trunk/dports/databases/mysql5-devel/Portfile	2008-01-22 10:55:12 UTC (rev 33253)
@@ -77,8 +77,8 @@
     configure.compiler	gcc-4.0
     configure.cppflags-append	-I${worksrcpath}/include
 }
-				
-variant server {
+
+variant server description {add a startup item} {
     configure.args-delete --without-server
     # Create a startupitem to start/stop the server
     startupitem.create	yes
@@ -93,7 +93,7 @@
     # Some directories we must have in all cases
     xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
     destroot.keepdirs-append ${destroot}${prefix}/etc/${name}
-	
+
     # Setup only for server
     if { [variant_isset server] } {
 	addgroup ${mysqluser}
@@ -102,7 +102,7 @@
 
 	# Some directories we must have only if we're running as a server
 	xinstall -m 755 -o root -d ${destroot}${prefix}/var/run
-		
+
 	xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \
 	    ${destroot}${dbdir} \
 	    ${destroot}${prefix}/var/run/${name}
@@ -114,7 +114,7 @@
 
 post-destroot {
     delete ${destroot}${prefix}/mysql-test
-	
+
     # Fix paths in manpages and sample configuration files
     foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
 	reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage}
@@ -122,7 +122,7 @@
     foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${name}/mysql/my-*.cnf] {
 	reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile}
     }
-	
+
     # Symlink mysql binaries into bin directory
     foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
 	ln -sf ${prefix}/lib/${name}/bin/${f} ${destroot}${prefix}/bin/${f}${major_version}
@@ -134,7 +134,7 @@
 	ui_msg "******************************************************"
 	ui_msg "* In order to setup the database, you might want to run"
 	ui_msg "* sudo -u ${mysqluser} mysql_install_db5"
-	ui_msg "* if this is a new install" 
+	ui_msg "* if this is a new install"
 	ui_msg "******************************************************"
     }
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080122/5f689c47/attachment.html


More information about the macports-changes mailing list