[109396] trunk/dports/multimedia
pixilla at macports.org
pixilla at macports.org
Wed Aug 14 15:35:41 PDT 2013
Revision: 109396
https://trac.macports.org/changeset/109396
Author: pixilla at macports.org
Date: 2013-08-14 15:35:41 -0700 (Wed, 14 Aug 2013)
Log Message:
-----------
multimedia/mythweb.26:
- Add new port mythweb.26.
Added Paths:
-----------
trunk/dports/multimedia/mythweb.26/
trunk/dports/multimedia/mythweb.26/Portfile
trunk/dports/multimedia/mythweb.26/files/
trunk/dports/multimedia/mythweb.26/files/patch-class_autoload.diff
trunk/dports/multimedia/mythweb.26/files/patch-mythweb.conf.diff
Added: trunk/dports/multimedia/mythweb.26/Portfile
===================================================================
--- trunk/dports/multimedia/mythweb.26/Portfile (rev 0)
+++ trunk/dports/multimedia/mythweb.26/Portfile 2013-08-14 22:35:41 UTC (rev 109396)
@@ -0,0 +1,95 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+# set fullhash 8aa49039796ca347503553b048b5bd7a750df7c1
+set shorthash 8aa49039
+github.setup MythTV mythweb ${shorthash}
+version .26
+revision 20130726
+set minorversion ""
+name mythweb${version}
+categories multimedia www
+platforms darwin
+license GPL-2 LGPL-2.1
+maintainers cogeco.ca:ctreleaven openmaintainer
+supported_archs noarch
+conflicts mythweb.25
+
+description control your Myth system via a web browser
+long_description MythWeb provides a frontend to MythTV using a web browser. \
+ Review program listings, schedule recordings, browse previous recordings, \
+ check on the status of your system and much more. Note that this is an \
+ INSECURE installation intended for local network access only. Take steps to \
+ secure if access from the internet is to be allowed. This port does not \
+ install MythTV since it is possible to have the web server and Myth backend \
+ on different machines.
+
+homepage http://www.mythtv.org/
+checksums rmd160 4d193d5f581382e40a9f9bb6248b1b90f1c38409 \
+ sha256 2086c1aefe826100f67f463026cf40bfeb8b992c459ab61f32dcc8a8fc201bc8
+
+set perlver perl5.12
+set perlbin ${prefix}/bin/${perlver}
+set perlmodver p5.12
+
+depends_run port:php5-mysql
+
+depends_lib port:${perlmodver}-http-request-ascgi \
+ port:${perlmodver}-dbd-mysql
+
+patchfiles patch-mythweb.conf.diff
+
+# Re class_autoload, see http://code.mythtv.org/trac/ticket/10600
+patchfiles-append patch-class_autoload.diff
+
+use_configure no
+build {}
+
+pre-patch {
+ copy ${worksrcpath}/mythweb.conf.apache ${worksrcpath}/mythweb.conf
+}
+
+post-patch {
+ reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/mythweb.conf
+ reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythweb.php
+
+ reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \
+ ${worksrcpath}/mythweb.pl \
+ ${worksrcpath}/modules/_shared/lang/build_translation.pl \
+ ${worksrcpath}/modules/coverart/handler.pl \
+ ${worksrcpath}/modules/stream/handler.pl \
+ ${worksrcpath}/modules/stream/stream_asx.pl \
+ ${worksrcpath}/modules/stream/stream_flv.pl \
+ ${worksrcpath}/modules/stream/stream_flvp.pl \
+ ${worksrcpath}/modules/stream/stream_mp4.pl \
+ ${worksrcpath}/modules/stream/stream_raw.pl \
+ ${worksrcpath}/modules/stream/tv.pl
+}
+
+destroot {
+ xinstall -d ${destroot}${prefix}/apache2/htdocs
+ copy ${worksrcpath} ${destroot}${prefix}/apache2/htdocs
+ file rename ${destroot}${prefix}/apache2/htdocs/mythweb-${shorthash} \
+ ${destroot}${prefix}/apache2/htdocs/MythWeb
+ system "chown -R _www:_www ${destroot}${prefix}/apache2/htdocs/MythWeb/data"
+
+ destroot.violate_mtree yes
+
+ destroot.keepdirs \
+ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/cache \
+ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/tv_icons
+}
+
+notes "\
+############################################################################
+#
+# If this is the first time installing MythWeb, please see
+# http://www.mythtv.org/wiki/MythWeb_via_MacPorts for information
+# essential to finishing the installation of MythWeb!
+#
+############################################################################"
+
+livecheck.type none
Property changes on: trunk/dports/multimedia/mythweb.26/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/multimedia/mythweb.26/files/patch-class_autoload.diff
===================================================================
--- trunk/dports/multimedia/mythweb.26/files/patch-class_autoload.diff (rev 0)
+++ trunk/dports/multimedia/mythweb.26/files/patch-class_autoload.diff 2013-08-14 22:35:41 UTC (rev 109396)
@@ -0,0 +1,48 @@
+commit f1f068e72d32c6df8c5d8f045b31611d632763f7
+Author: karog
+Date: Fri Jun 1 17:31:26 2012 -0400
+
+ modified: class_autoload.php
+ Moved search of include_path down since on OS X it prematurely found
+ case indpendent matching files.
+
+diff --git MythWeb/includes/class_autoload.php MythWeb/includes/class_autoload.php
+index 8ae760c..36b70d9 100644
+--- includes/class_autoload.php
++++ includes/class_autoload.php
+@@ -14,24 +14,24 @@
+ function autoload($className) {
+ global $Path;
+ $className = str_replace('_', '/', $className);
+- if (file_exists("classes/$className.php")) {
++ if (file_exists("classes/$className.php"))
+ include_once "classes/$className.php";
+- return true;
+- }
+- foreach (explode(PATH_SEPARATOR, ini_get('include_path')) as $path) {
+- if (!file_exists("$path/$className.php"))
+- continue;
+- include_once "$path/$className.php";
+- return true;
+- }
+- if (file_exists(modules_path.'/'.module."/classes/$className.php"))
++ elseif (file_exists(modules_path.'/'.module."/classes/$className.php"))
+ include_once modules_path.'/'.module."/classes/$className.php";
+ elseif (file_exists(modules_path.'/'.$Path[1]."/classes/$className.php"))
+ include_once modules_path.'/'.$Path[1]."/classes/$className.php";
+ elseif (file_exists(modules_path.'/'.$Path[0]."/classes/$className.php"))
+ include_once modules_path.'/'.$Path[0]."/classes/$className.php";
+- else
++ else {
++ foreach (explode(PATH_SEPARATOR, ini_get('include_path')) as $path) {
++ if (!file_exists("$path/$className.php"))
++ continue;
++ include_once "$path/$className.php";
++ return true;
++ }
+ return false;
++ }
++ return true;
+ }
+
+ spl_autoload_register('autoload');
Added: trunk/dports/multimedia/mythweb.26/files/patch-mythweb.conf.diff
===================================================================
--- trunk/dports/multimedia/mythweb.26/files/patch-mythweb.conf.diff (rev 0)
+++ trunk/dports/multimedia/mythweb.26/files/patch-mythweb.conf.diff 2013-08-14 22:35:41 UTC (rev 109396)
@@ -0,0 +1,71 @@
+--- mythweb.conf 2012-10-16 09:35:15.000000000 -0400
++++ mythweb.conf 2012-10-16 16:59:01.000000000 -0400
+@@ -3,6 +3,8 @@
+ # requirements and troubleshooting, along with the comments in this file.
+ #
+
++Alias /MythWeb @PREFIX@/apache2/htdocs/MythWeb
++
+ ############################################################################
+ # If you intend to use authentication for MythWeb (see below), you will
+ # probably also want to uncomment the following rules, which disable
+@@ -26,10 +28,10 @@
+ # /var/www/html/mythweb
+ # /srv/www/htdocs/mythweb
+ #
+- <Directory "/var/www/html/data">
++ <Directory @PREFIX@/apache2/htdocs/MythWeb/data>
+ Options -All +FollowSymLinks +IncludesNoExec
+ </Directory>
+- <Directory "/var/www/html" >
++ <Directory @PREFIX@/apache2/htdocs/MythWeb>
+
+ ############################################################################
+ # I *strongly* urge you to turn on authentication for MythWeb. It is disabled
+@@ -78,7 +80,7 @@
+ # (eg. for security reasons), set this variable to the directory that
+ # contains the directories like languages and templates. eg.
+ #
+- # setenv include_path "/usr/share/mythweb"
++ setenv include_path "@PREFIX@/apache2/htdocs/MythWeb"
+
+ # If you want MythWeb to email php/database errors (and a backtrace) to you,
+ # uncomment and set the email address below.
+@@ -146,7 +148,7 @@
+ # If MythWeb is installed outside of the document root (eg. using Alias) then
+ # you will need to set this directive to the base URL that MythWeb is visible
+ # from externally. If you do not, the web server will return 'not found'.
+- # RewriteBase /mythweb
++ RewriteBase /MythWeb
+
+ # Skip out early if we've already been through rewrites,
+ # or if this is a /css/, /js/ or /cache/ directory request.
+@@ -194,20 +196,20 @@
+ # to enable mod_deflate by default, but I strongly recommend that you
+ # enable this section.
+ #
+- # BrowserMatch ^Mozilla/4 gzip-only-text/html
+- # BrowserMatch ^Mozilla/4\.0[678] no-gzip
+- # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+- #
+- # AddOutputFilterByType DEFLATE text/html
+- # AddOutputFilterByType DEFLATE text/css
+- # AddOutputFilterByType DEFLATE application/x-javascript
++ BrowserMatch ^Mozilla/4 gzip-only-text/html
++ BrowserMatch ^Mozilla/4\.0[678] no-gzip
++ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
++
++ AddOutputFilterByType DEFLATE text/html
++ AddOutputFilterByType DEFLATE text/css
++ AddOutputFilterByType DEFLATE application/x-javascript
+
+ # This is helpful for mod_deflate -- it prevents proxies from changing
+ # the user agent to/from this server, which can prevent compression from
+ # being enabled. It is disabled here because many distros seem not to
+ # enable mod_headers by default, but I recommend that you enable it.
+ #
+- # Header append Vary User-Agent env=!dont-vary
++ Header append Vary User-Agent env=!dont-vary
+
+ # Set up the perl handler so we can stream properly. Do not use mod_perl
+ # because it has a tendency to hold onto child processes, which causes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130814/f158807f/attachment-0001.html>
More information about the macports-changes
mailing list