|
|||||||||
Saturday the 4th of July, 2009 |
|||||||||
mysql5 most recent diffversion 5.0.67
Scroll down toward the bottom of the page to get installation instructions for mysql5. The raw portfile for mysql5 5.0.67 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 The mysql5 Portfile 39951 2008-09-14 02:38:18Z ryandesign PortSystem 1.0 Name: mysql5 Version: 5.0.67 Revision: 1 set branch [join [lrange [split ${version} .] 0 1] .] Homepage: http://www.mysql.com/ Category: databases Platform: darwin Maintainers: ryandesign distname mysql-${version} use_parallel_build yes 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://distfiles.macports.org/${dist_subdir} 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 7164483a5ffb8f7aa59b761c13cdbd6e sha1 168090a4698a3a5efa2f2c9380a4352d4433d377 rmd160 05d38a5f8d91cb4dac1ee446af96b28163bd3722 depends_lib port:zlib port:openssl set major_version [strsed ${version} {s/\..*$//}] set mysql mysql${major_version} set libdir ${prefix}/lib/${mysql} set bindir ${libdir}/bin set dbdir ${prefix}/var/db/${mysql} set sysconfdir ${prefix}/etc/${mysql} set mysqluser mysql Patch Files: patch-mysql_secure_installation.sh.diff post-patch { reinplace s% } configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info --localstatedir=${dbdir} --libdir=${libdir} --bindir=${bindir} --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}${bindir} my*] { ln -sf ${bindir}/${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 Download the Darwinports Installer version 1.7 How to Install Darwinports Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
accounting
amusements aqua archivers audio benchmarks biology blinkenlights cad chat chinese comms compression cross crypto databases devel editors education electronics emacs emulators erlang finance fonts framework fuse games genealogy gis gnome gnustep graphics gtk haskell iphone irc japanese java kde kde4 lang macports math mercurial ml mono multimedia net network news ocaml office palm parallel perl php pim project python reporting rox ruby russian scheme science security shells spelling squeak sysutils tcl tex textproc tk unicode vnc win32 wsn www x11 x11-font x11-wm xfce zope
Current SVN DownloadsDarwin Ports Current :nightly SVN snapshot SSH Key Gen See also: GNU-Darwin Ports for GNU-only software |
|||||||
| |



