[51837] trunk/dports/databases/mysql5/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Jun 4 16:06:16 PDT 2009
Revision: 51837
http://trac.macports.org/changeset/51837
Author: ryandesign at macports.org
Date: 2009-06-04 16:06:16 -0700 (Thu, 04 Jun 2009)
Log Message:
-----------
mysql5:
* update to 5.0.82
* make +server variant obsolete; use the mysql5-server port instead
Modified Paths:
--------------
trunk/dports/databases/mysql5/Portfile
Modified: trunk/dports/databases/mysql5/Portfile
===================================================================
--- trunk/dports/databases/mysql5/Portfile 2009-06-04 22:53:49 UTC (rev 51836)
+++ trunk/dports/databases/mysql5/Portfile 2009-06-04 23:06:16 UTC (rev 51837)
@@ -3,7 +3,7 @@
PortSystem 1.0
name mysql5
-version 5.0.81
+version 5.0.82
set branch [join [lrange [split ${version} .] 0 1] .]
homepage http://www.mysql.com/
categories databases
@@ -29,9 +29,9 @@
http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/
checksums \
- md5 2d35e4980f279c839172a6efdb0f0b15 \
- sha1 2aaaef8a08eeb0bbff46ca6c1b1f8d416ad5c18a \
- rmd160 c0dfdc8144f721a4af5ed38200e7233868033695
+ md5 1732a0a06c3cf0f0fb6e6fb77ae11456 \
+ sha1 571eb69a23afd180edd4152346d89c8c86ae7636 \
+ rmd160 f467fc4ede4ac4fbe5d2c6f900e3f86e534cda9e
depends_lib \
port:zlib \
@@ -76,36 +76,15 @@
depends_lib-append port:readline
configure.args-append --without-readline
-variant server {
- # Create a startupitem to start/stop the server
- startupitem.create yes
- startupitem.start "${prefix}/share/${mysql}/mysql/mysql.server start"
- startupitem.stop "${prefix}/share/${mysql}/mysql/mysql.server stop"
+variant server description {Obsolete; install mysql5-server port instead} {
+ pre-configure {
+ ui_msg "The +server variant is obsolete. Please install the mysql5-server port instead."
+ }
}
pre-destroot {
- # Some directories we must have in all cases
xinstall -m 755 -d ${destroot}${sysconfdir}
destroot.keepdirs-append ${destroot}${sysconfdir}
-
- # Setup only for server
- if { [variant_isset server] } {
- addgroup ${mysqluser}
- set gid [existsgroup ${mysqluser}]
- adduser ${mysqluser} gid=${gid} realname=MySQL\ Server
-
- # 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/log/${mysql} \
- ${destroot}${prefix}/var/run/${mysql}
- destroot.keepdirs-append \
- ${destroot}${dbdir} \
- ${destroot}${prefix}/var/log/${mysql} \
- ${destroot}${prefix}/var/run/${mysql}
- }
}
post-destroot {
@@ -125,16 +104,6 @@
}
}
-post-install {
- if { [variant_isset server] } {
- 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 "******************************************************"
- }
-}
-
livecheck.check regex
livecheck.url http://dev.mysql.com/doc/refman/${branch}/en/releasenotes-cs-[strsed ${branch} {s/\./-/}].html
livecheck.regex {Changes in MySQL ([0-9.]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090604/ea075549/attachment.html>
More information about the macports-changes
mailing list