<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/1c4e5d65d4330ea61b214f5c293fffc7ba207341">https://github.com/macports/macports-ports/commit/1c4e5d65d4330ea61b214f5c293fffc7ba207341</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 1c4e5d6  mysql8: add a log file for the MySQL service
</span>1c4e5d6 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1c4e5d65d4330ea61b214f5c293fffc7ba207341
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Thu May 30 17:17:56 2019 -0400

<span style='display:block; white-space:pre;color:#404040;'>    mysql8: add a log file for the MySQL service
</span>---
 databases/mysql8/Portfile                              | 15 ++++++++++++++-
 databases/mysql8/files/org.macports.mysql-server.plist |  4 ++++
 2 files changed, 18 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/Portfile b/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d147585..d09c5b1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,7 +13,7 @@ homepage                https://www.mysql.com/
</span> 
 # Set revision_client and revision_server to 0 on version bump.
 set revision_client 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision_server 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_server 1
</span> 
 set name_mysql          ${name}
 set version_branch      [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -230,6 +230,8 @@ subport ${name_mysql}-server {
</span>     }
     add_users ${mysqluser} group=${mysqluser} realname=MySQL\ Server
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    set log_file ${prefix}/var/log/${name}/mysql.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     pre-extract {
         copy ${filespath}/org.macports.mysql-server.plist \
              ${workpath}/org.macports.${subport}.plist
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -246,6 +248,8 @@ subport ${name_mysql}-server {
</span>             ${workpath}/org.macports.${subport}.plist
         reinplace "s|@GROUP@|${mysqluser}|g" \
             ${workpath}/org.macports.${subport}.plist
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|@LOGFILE@|${log_file}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${workpath}/org.macports.${subport}.plist
</span>     }
 
     use_configure       no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -253,6 +257,12 @@ subport ${name_mysql}-server {
</span>     build {}
 
     destroot {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        xinstall -d -m 755 -o ${mysqluser} -g ${mysqluser} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            [file dirname ${destroot}${log_file}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        touch ${destroot}${log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file attributes ${destroot}${log_file} -o ${mysqluser} -g ${mysqluser}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         xinstall -d -m 755 ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
 
         xinstall -m 0644 -o root -W ${workpath} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -296,6 +306,9 @@ The first command creates the necessary files for the MySQL database service.
</span> (Remember to make a note of the auto-generated root password from this step.)
 The second command starts the MySQL service.
 The last command helps to improve the security of your running MySQL instance.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Once enabled, the MySQL logs can be found in:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[file dirname $log_file]
</span> "
 
     livecheck.type          none
<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><span style='display:block; white-space:pre;color:#808080;'>index a308af5..cc4356a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/mysql8/files/org.macports.mysql-server.plist
</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;'>@@ -26,5 +26,9 @@
</span>         <array>
             <string>@PREFIX@/lib/@NAMEMYSQL@/bin/mysqld</string>
         </array>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    <key>StandardErrorPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    <string>@LOGFILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    <key>StandardOutPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    <string>@LOGFILE@</string>
</span> </dict>
 </plist>
</pre><pre style='margin:0'>

</pre>