<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bd93cdb954a1018f661da69fbaf69b3e46b0cb66">https://github.com/macports/macports-ports/commit/bd93cdb954a1018f661da69fbaf69b3e46b0cb66</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bd93cdb954a1018f661da69fbaf69b3e46b0cb66
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sat May 25 03:53:24 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> mysql8: new port for MySQL 8.0.16
</span>---
databases/mysql8/Portfile | 287 +++++++++++++++++++++
databases/mysql8/files/macports-default.cnf | 11 +
databases/mysql8/files/my.cnf | 2 +
databases/mysql8/files/mysql8 | 168 ++++++++++++
.../mysql8/files/org.macports.mysql-server.plist | 30 +++
.../files/patch-cmake-install_layout.cmake.diff | 60 +++++
6 files changed, 558 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/Portfile b/databases/mysql8/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8b6eaf2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,287 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name mysql8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 8.0.16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set boost_version 1.69.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories databases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:herby.gillot @herbygillot} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.mysql.com/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Set revision_client and revision_server to 0 on version bump.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_client 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_server 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set name_mysql ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set version_branch [join [lrange [split ${version} .] 0 1] .]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set boost_distver [join [split ${boost_version} .] _]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set boost_distname boost_${boost_distver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport eq $name} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Multithreaded SQL database server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description MySQL is an open-source, multi-threaded SQL database.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision ${revision_client}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ master_sites mysql:MySQL-${version_branch}:mysql \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sourceforge:project/boost/boost/${boost_version}:boost
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname mysql-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles ${distname}${extract.suffix}:mysql \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${boost_distname}${extract.suffix}:boost
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums ${distname}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 2e0d3326331b74fec8ab3e147f330d2d4f75382e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8d9fe89920dc8bbbde2857b7b877ad2fa5ec2f231c68e941d484f3b72735eaea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 146811037 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${boost_distname}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 ad6cd576a5229a11601986908ff03261582c9f81 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 9a2c2819310839ea373f42d69e733c339b4e9a19deab6bfec448281554aa4dbb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 111710205
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/libssl.dylib:openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:icu \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:mysql_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.group mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.file ${filespath}/${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_parallel_build yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use default CMake build_types
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.build_type Debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DEBUG:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DTRACE:BOOL= ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_MYSQLTESTDIR:PATH="share/${name_mysql}/mysql-test" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_UNIT_TESTS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.build_type Release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_MYSQLTESTDIR= \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_UNIT_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Disable RPATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.install_rpath {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_RPATH="[join [option cmake.install_rpath] \;]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_RPATH="[join [option cmake.install_rpath] \;]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_NAME_DIR="${cmake.install_prefix}/lib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_NAME_DIR:PATH="${prefix}/lib/${name_mysql}/mysql"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build configuration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDOWNLOAD_BOOST:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_DOWNLOADS:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_LAYOUT:STRING=MACPORTS \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMYSQL_DATADIR:PATH="${prefix}/var/db/${name_mysql}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMYSQL_UNIX_ADDR:PATH="${prefix}/var/run/${name_mysql}/mysqld.sock" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSYSCONFDIR:PATH="${prefix}/etc/${name_mysql}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_BOOST:PATH="${worksrcpath}/../${boost_distname}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_ICU:PATH="${prefix}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_ROUTER:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_SSL:PATH="${prefix}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_ZLIB:PATH="${prefix}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-cmake-install_layout.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${cmake.build_dir}/macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/macports-default.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${filespath}/my.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/macports/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAME@|${name_mysql}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/cmake/install_layout.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAME@|${name_mysql}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/macports/macports-default.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/macports/my.cnf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/macports/macports-default.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/macports/my.cnf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # proc portdestroot::destroot_finish fails to find and compress our man pages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # so borrow the compress command and run on our files now.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set manpath "${destroot}${prefix}/share/man"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach manpage [glob -type f ${destroot}${prefix}/share/man/${name_mysql}/man\[1-9\]/*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix paths in manpages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/etc/|${prefix}/etc/${name_mysql}/|g" ${manpage}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Compress all manpages with gzip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "$gzip -9vf ${manpage}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o root -d ${destroot}${prefix}/etc/${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${cmake.build_dir}/macports/macports-default.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name_mysql}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o root -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${name_mysql}/support-files/macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${cmake.build_dir}/macports/my.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${name_mysql}/support-files/macports/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-install {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/LaunchDaemons/org.macports.${name_mysql}/org.macports.${name_mysql}-server.plist]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "The ${name_mysql} client has been installed."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "To install the ${name_mysql} server, install the ${name_mysql}-server port."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/${name_mysql}/my.cnf]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prefix}/share/${name_mysql}/support-files/macports/my.cnf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/etc/${name_mysql}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+On activation if no ${prefix}/etc/${name_mysql}/my.cnf file exists one
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+will be created which loads
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${prefix}/etc/${name_mysql}/macports-default.cnf.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+If a ${prefix}/etc/${name_mysql}/my.cnf file exists MacPorts does not
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+touch it and any changes you make to ${prefix}/etc/${name_mysql}/my.cnf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+will be preserved (e.g., during port upgrades, deactivations or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+activations). ${prefix}/etc/${name_mysql}/my.cnf is a good place to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+customize your ${name_mysql} installation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Any changes made to ${prefix}/etc/${name_mysql}/macports-default.cnf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+will be lost during port upgrades, deactivations or activations so you
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+are advised to not make changes here. Currently
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${prefix}/etc/${name_mysql}/macports-default.cnf contains only one
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+directive; to disable networking. With disabled networking it is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+possible to install and have running all the MacPorts mysql ports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+simultaneously.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To set ${name_mysql} as your preferred version of MySQL, use `port select`,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+as follows:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo port select mysql ${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.url http://dev.mysql.com/downloads/mysql/${version_branch}.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex "MySQL Community Server (${version_branch}(\.\[0-9.\]+)?)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name_mysql}-server {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision ${revision_server}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Run ${name_mysql} as server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run port:${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {"darwin" eq ${os.platform} && ${os.major} > 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mysqluser _mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mysqluser mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_users ${mysqluser} group=${mysqluser} realname=MySQL\ Server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/org.macports.mysql-server.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAMEMYSQL@|${name_mysql}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@SUBPORT@|${subport}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@USER@|${mysqluser}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GROUP@|${mysqluser}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -o root -W ${workpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ org.macports.${subport}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/etc/LaunchDaemons/org.macports.${subport}/org.macports.${subport}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}/Library/LaunchDaemons/org.macports.${subport}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o root -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name_mysql} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/log/${name_mysql} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run/${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 700 -o ${mysqluser} -g ${mysqluser} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql}-files \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql}-keyring
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql}-files \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/db/${name_mysql}-keyring \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/log/${name_mysql} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run/${name_mysql}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+If this is a new install you might want to run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo ${prefix}/lib/${name_mysql}/bin/mysqld --initialize --user=${mysqluser}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo port load ${name_mysql}-server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ ${prefix}/lib/${name_mysql}/bin/mysql_secure_installation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The first command creates the necessary files for the MySQL database service.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(Remember to make a note of the auto-generated root password from this step.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The second command starts the MySQL service.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The last command helps to improve the security of your running MySQL instance.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/files/macports-default.cnf b/databases/mysql8/files/macports-default.cnf
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4e0dfc7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/files/macports-default.cnf
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# WARNING! ANY CHANGES TO THIS FILE WILL BE LOST ON UNINSTALL/UPGRADES!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Make your changes to @PREFIX@/etc/@NAME@/my.cnf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# YOU HAVE BEEN WARNED!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# MacPorts default options
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[mysqld]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+basedir="@PREFIX@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# skip-networking so multple mysql server ports can be loaded
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# without each competing for port 3306.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+skip-networking
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/files/my.cnf b/databases/mysql8/files/my.cnf
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1d00ab6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/files/my.cnf
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use default MacPorts settings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+!include @PREFIX@/etc/@NAME@/macports-default.cnf
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/files/mysql8 b/databases/mysql8/files/mysql8
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5fd4dd0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/files/mysql8
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,168 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/innochecksum
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/lz4_decompress
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/my_print_defaults
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/myisam_ftdump
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/myisamchk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/myisamlog
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/myisampack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_client_test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_config_editor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_secure_installation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_ssl_rsa_setup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_tzinfo_to_sql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysql_upgrade
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqladmin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlbinlog
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlcheck
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqld
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqld_multi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqld_safe
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqldump
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqldumpslow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlimport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlpump
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlshow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqlslap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/mysqltest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lib/mysql8/bin/perror
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/comp_err.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/innochecksum.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/lz4_decompress.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/my_print_defaults.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/myisam_ftdump.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/myisamchk.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/myisamlog.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/myisampack.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql.server.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_config.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_config_editor.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_secure_installation.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_ssl_rsa_setup.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_tzinfo_to_sql.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysql_upgrade.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqladmin.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlbinlog.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlcheck.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqld_multi.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqld_safe.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqldump.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqldumpslow.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlimport.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlman.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlpump.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlshow.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/mysqlslap.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/perror.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man1/zlib_decompress.1.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/man/mysql8/man8/mysqld.8.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/files/org.macports.mysql-server.plist b/databases/mysql8/files/org.macports.mysql-server.plist
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a308af5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/files/org.macports.mysql-server.plist
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version="1.0" encoding="UTF-8"?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version="1.0">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Label</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>org.macports.@SUBPORT@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProcessType</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Interactive</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Disabled</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <false/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>RunAtLoad</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>KeepAlive</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>SessionCreate</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>LaunchOnlyOnce</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <false/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>UserName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@USER@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>GroupName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@GROUP@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ExitTimeOut</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>600</integer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/lib/@NAMEMYSQL@/bin/mysqld</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/files/patch-cmake-install_layout.cmake.diff b/databases/mysql8/files/patch-cmake-install_layout.cmake.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0b8f8f6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/files/patch-cmake-install_layout.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,60 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/cmake/install_layout.cmake.orig 2016-02-08 20:35:02.000000000 -0430
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/cmake/install_layout.cmake 2016-02-08 20:53:31.000000000 -0430
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -82,7 +82,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(INSTALL_LAYOUT "${DEFAULT_INSTALL_LAYOUT}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), WIN (as in zip installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX, SLES")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), WIN (as in zip installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX, MACPORTS, SLES")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(UNIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(INSTALL_LAYOUT MATCHES "RPM" OR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -101,7 +101,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(CMAKE_INSTALL_PREFIX ${default_prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CACHE PATH "install prefix" FORCE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(VALID_INSTALL_LAYOUTS "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "TARGZ" "SLES" "STANDALONE")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SET(VALID_INSTALL_LAYOUTS "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "MACPORTS" "TARGZ" "SLES" "STANDALONE")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIST(FIND VALID_INSTALL_LAYOUTS "${INSTALL_LAYOUT}" ind)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(ind EQUAL -1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MESSAGE(FATAL_ERROR "Invalid INSTALL_LAYOUT parameter:${INSTALL_LAYOUT}."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -291,6 +291,39 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR_OSX ${secure_file_priv_embedded_path})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# MACPORTS layout
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_BINDIR_MACPORTS "lib/@NAME@/bin")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SBINDIR_MACPORTS "lib/@NAME@/bin")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SCRIPTDIR_MACPORTS "lib/@NAME@/bin")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_LIBDIR_MACPORTS "lib/@NAME@/mysql")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_PLUGINDIR_MACPORTS "lib/@NAME@/plugin")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_INCLUDEDIR_MACPORTS "include/@NAME@/mysql")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_DOCDIR_MACPORTS "share/doc/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_DOCREADMEDIR_MACPORTS "share/doc/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_MANDIR_MACPORTS "share/man/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_INFODIR_MACPORTS "share/doc/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SHAREDIR_MACPORTS "share/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_MYSQLSHAREDIR_MACPORTS "share/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_MYSQLTESTDIR_MACPORTS "share/@NAME@/mysql-test")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SQLBENCHDIR_MACPORTS "share/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SUPPORTFILESDIR_MACPORTS "share/@NAME@/support-files")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_MYSQLDATADIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_MYSQLKEYRINGDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-keyring")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SECURE_FILE_PRIVDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-files")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-files")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(INSTALL_PLUGINTESTDIR_MACPORTS ${plugin_tests})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# SUID /bin/ps is not in MacPorts sandbox causing scripts/CMakeLists.txt tests to fail so we set FIND_PROC here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SET(FIND_PROC "ps -ef | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID > /dev/null")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TARGZ layout
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(INSTALL_BINDIR_TARGZ "bin")
</span></pre><pre style='margin:0'>
</pre>