[113155] trunk/dports/multimedia

pixilla at macports.org pixilla at macports.org
Sun Nov 10 17:54:29 PST 2013


Revision: 113155
          https://trac.macports.org/changeset/113155
Author:   pixilla at macports.org
Date:     2013-11-10 17:54:29 -0800 (Sun, 10 Nov 2013)
Log Message:
-----------
multimedia/mythweb.27:
- New port for mythweb.27.

Added Paths:
-----------
    trunk/dports/multimedia/mythweb.27/
    trunk/dports/multimedia/mythweb.27/Portfile
    trunk/dports/multimedia/mythweb.27/files/
    trunk/dports/multimedia/mythweb.27/files/patch-mythweb.conf.diff

Added: trunk/dports/multimedia/mythweb.27/Portfile
===================================================================
--- trunk/dports/multimedia/mythweb.27/Portfile	                        (rev 0)
+++ trunk/dports/multimedia/mythweb.27/Portfile	2013-11-11 01:54:29 UTC (rev 113155)
@@ -0,0 +1,92 @@
+# -*- 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      6d10afe73e1fb5f21688d4b6d6919cab618e6e88
+set shorthash       6d10afe7
+github.setup        MythTV mythweb ${shorthash}
+version             .27
+revision            20131017
+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 mythweb.26
+
+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  1834ffc20572e06ee83e05126796ae5dcb096009 \
+                    sha256  b9a9cd9148ba97031af9ec0f37d347a1fb060a3615ef403d3e922d07954312d8
+
+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
+
+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.27/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/multimedia/mythweb.27/files/patch-mythweb.conf.diff
===================================================================
--- trunk/dports/multimedia/mythweb.27/files/patch-mythweb.conf.diff	                        (rev 0)
+++ trunk/dports/multimedia/mythweb.27/files/patch-mythweb.conf.diff	2013-11-11 01:54:29 UTC (rev 113155)
@@ -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/20131110/3413a08a/attachment.html>


More information about the macports-changes mailing list