|
|||||||||
Saturday the 17th of May, 2008 |
|||||||||
mysql5 most recent diff
Scroll down toward the bottom of the page to get installation instructions for mysql5. The raw portfile for mysql5 5.0.51 is located here: http://mysql5.darwinports.com/dports/databases/mysql5/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/mysql5 # $Id: Portfile 33701 2008-02-03 17:27:18Z ryandesign PortSystem 1.0 Name: mysql5 Version: 5.0.51 set branch [join [lrange [split ${version} .] 0 1] .] Homepage: http://www.mysql.com/ Category: databases Platform: darwin Maintainers: ryandesign distname mysql-${version} Description: Multithreaded SQL database server Long Description: MySQL is an open-source, multi-threaded SQL database with a command syntax very similar to mSQL. master_sites http://mysql.mirrors.pair.com/Downloads/MySQL-${branch}/ http://mysql.he.net/Downloads/MySQL-${branch}/ http://mysql.orst.edu/Downloads/MySQL-${branch} http://mysql.oss.eznetsols.org/Downloads/MySQL-${branch}/ http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ checksums md5 88c39c8cb77810febb83b7ee625364d7 sha1 a9a253ea842e973df6f475c04dac77522de0dea7 rmd160 e14baa1c40cb385fa64fc72355db9ca58a6be2f9 depends_lib port:zlib port:openssl set major_version [strsed ${version} {s/\..*$//}] set mysql mysql${major_version} set dbdir ${prefix}/var/db/${mysql} set sysconfdir ${prefix}/etc/${mysql} set mysqluser mysql configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info --localstatedir=${dbdir} --libdir=${prefix}/lib/${mysql} --bindir=${prefix}/lib/${mysql}/bin --includedir=${prefix}/include/${mysql} --datadir=${prefix}/share/${mysql} --sysconfdir=${sysconfdir} --with-zlib-dir=${prefix} --with-openssl=${prefix} --with-extra-charsets=complex --with-federated-storage-engine --with-unix-socket-path=${prefix}/var/run/${mysql}/mysqld.sock --with-mysqld-user=${mysqluser} --without-bench --enable-thread-safe-client 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" } 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/run/${mysql} destroot.keepdirs-append ${destroot}${dbdir} ${destroot}${prefix}/var/run/${mysql} } } 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} } foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${mysql}/mysql/my-*.cnf] { reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile} } # Symlink mysql binaries into bin directory, with ${major_version} appended to the name foreach f [glob -tails -directory ${destroot}${prefix}/lib/${mysql}/bin my*] { ln -sf ../lib/${mysql}/bin/${f} ${destroot}${prefix}/bin/${f}${major_version} } } 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/ livecheck.regex "GA (${major_version}\\.\[0-9.\]+)" If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/mysql5You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using mysql5 with these commands: % man mysql5 Where to find more information:
|
![]() |
![]() Digg mysql5 on MacOSX
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
aqua
archivers audio benchmarks cad comms cross databases devel editors emulators games genealogy gnome gnustep graphics irc java kde lang math multimedia net news palm perl python ruby science security shells sysutils textproc www x11 xfce zope
Current CVS DownloadsDarwin Ports Current :nightly CVS snapshot OpenDarwin CVSWeb SSH Key Gen |
|||||||
| |




