[126985] trunk/dports/multimedia/mythtv-core.27

ctreleaven at macports.org ctreleaven at macports.org
Sat Oct 18 10:47:36 PDT 2014


Revision: 126985
          https://trac.macports.org/changeset/126985
Author:   ctreleaven at macports.org
Date:     2014-10-18 10:47:36 -0700 (Sat, 18 Oct 2014)
Log Message:
-----------
mythtv-core.27: update to Fixes-20141017, add config files re MariaDB

Modified Paths:
--------------
    trunk/dports/multimedia/mythtv-core.27/Portfile

Added Paths:
-----------
    trunk/dports/multimedia/mythtv-core.27/files/my.cnf
    trunk/dports/multimedia/mythtv-core.27/files/mythconverg_init.sql

Modified: trunk/dports/multimedia/mythtv-core.27/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/Portfile	2014-10-18 17:45:15 UTC (rev 126984)
+++ trunk/dports/multimedia/mythtv-core.27/Portfile	2014-10-18 17:47:36 UTC (rev 126985)
@@ -6,16 +6,16 @@
 PortGroup           qt4 1.0
 PortGroup           compiler_blacklist_versions 1.0
 
-set shorthash       e830993e
-# set fullhash      e830993e89fc3b7244e9614c2384ab074c449d1f
+set shorthash       b305eb5b
+# set fullhash      b305eb5b7fc662146e74983fa3754d622695cdeb
 set majorversion    .27
 set minorversion    .4
 github.setup        MythTV mythtv ${shorthash}
-checksums           rmd160  4696fe71f290c2ecb342b2129ac1d4bed0390b6f \
-                    sha256  f70cd512e05e888b8fb7dc3568d23a250f0bf0415216b54d55fd1518490da8ce
+checksums           rmd160  236b313c080a45eb41953b33a9efb5d0d9670442 \
+                    sha256  ce10a7e38a21bc2d0a985d87e80e866cfb0be2d0bd6fef0a1816c06c8d73898d
 
 name                mythtv-core${majorversion}
-version             0${majorversion}${minorversion}-Fixes-20141015
+version             0${majorversion}${minorversion}-Fixes-20141017
 revision            0
 categories          multimedia
 platforms           darwin
@@ -99,6 +99,8 @@
     copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
     copy ${filespath}/logrotate.conf ${worksrcpath}/macports/logrotate.conf
     copy ${filespath}/logrotate.mythtv ${worksrcpath}/macports/logrotate.mythtv
+    copy ${filespath}/my.cnf ${worksrcpath}/macports/my.cnf
+    copy ${filespath}/mythconverg_init.sql ${worksrcpath}/macports/mythconverg_init.sql
 }
 
 post-patch {
@@ -162,6 +164,7 @@
     reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${plistfile}
     reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${plistfile}
     reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/logrotate.conf
+    reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/my.cnf
     reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|g" ${worksrcpath}/macports/logrotate.mythtv
     reinplace -locale C "s|xxxyyyzzz|${mythtvpidfile}|" ${worksrcpath}/mythtv/configure
 }
@@ -284,6 +287,8 @@
 
     xinstall -m 755 \
         ${configure.dir}/database/mc.sql \
+        ${worksrcpath}/macports/mythconverg_init.sql \
+        ${worksrcpath}/macports/my.cnf \
         ${destroot}${prefix}/share/${nick}/database
     xinstall -m 755 \
         ${configure.dir}/contrib/maintenance/optimize_mythdb.pl \

Added: trunk/dports/multimedia/mythtv-core.27/files/my.cnf
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/my.cnf	                        (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/my.cnf	2014-10-18 17:47:36 UTC (rev 126985)
@@ -0,0 +1,25 @@
+# Use default MacPorts settings
+# MacPorts MythTV mods - 
+# Disable loading of macports-default.cnf so that
+# networking is not disabled
+# 2014Oct16
+#!include @PREFIX@/etc/mariadb/macports-default.cnf
+
+# The MySQL server
+[mysqld]
+
+#  Settings on the command line:
+#  /opt/local/bin/daemondo --label=mariadb-server --start-cmd /opt/local/lib/mariadb/bin/mysqld --user=_mysql ; --pid=exec
+#  /opt/local/bin/daemondo
+#    --label=mariadb-server
+#    --start-cmd /opt/local/lib/mariadb/bin/mysqld
+#    --user=_mysql ;
+#    --pid=exec
+
+log-error=@PREFIX@/var/db/mariadb/localhost.err
+
+[client]
+socket=@PREFIX@/var/run/mariadb/mysqld.sock
+port=3306
+
+# End MacPorts MythTV mods

Added: trunk/dports/multimedia/mythtv-core.27/files/mythconverg_init.sql
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/mythconverg_init.sql	                        (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/mythconverg_init.sql	2014-10-18 17:47:36 UTC (rev 126985)
@@ -0,0 +1,11 @@
+CREATE DATABASE IF NOT EXISTS mythconverg;
+GRANT ALL ON mythconverg.* TO mythtv at localhost IDENTIFIED BY "mythtv";
+FLUSH PRIVILEGES;
+grant all on mythconverg.* to mythtv@"%" identified by "mythtv";
+FLUSH PRIVILEGES;
+GRANT CREATE TEMPORARY TABLES ON mythconverg.* TO mythtv at localhost IDENTIFIED BY "mythtv";
+FLUSH PRIVILEGES;
+GRANT CREATE TEMPORARY TABLES ON mythconverg.* TO mythtv@"&" IDENTIFIED BY "mythtv";
+FLUSH PRIVILEGES;
+ALTER DATABASE mythconverg DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
+FLUSH PRIVILEGES;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141018/365cd871/attachment-0001.html>


More information about the macports-changes mailing list